query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
sequencelengths
3
101
negative_scores
sequencelengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Driver program to test above function
public static void main(String args[]) { String txt = "ABABDABACDABABCABAB"; String pat = "ABABCABAB"; new KMP().KMPSearch(pat, txt); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\r\n // 2. Call your method in various ways to test it here.\r\n }", "private void test() {\n\n\t}", "public static void main(String[] args) {\n // PUT YOUR TEST CODE HERE\n }", "public void TestMain(){\n SampleStatements();\n TestMyPow();\n }", "private test5() {\r\n\t\r\n\t}", "public static void main(String[] args){\n //The driver of the methods created above\n //first display homeowork header\n homeworkHeader();\n //calls driver method\n System.out.println(\"Calling driver method:\");\n driver(true);//runs choice driver\n //when prompted for a choice input 9 to see test driver\n System.out.println(\"End calling of driver method\");\n \n }", "@Test\n public void testMain() throws Exception {\n //main function cannot be tested as it is dependant on user input\n System.out.println(\"main\");\n }", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "@Test\n public void testWalkForPduTarget() throws Exception {\n//TODO: Test goes here... \n }", "static void testCaculator(){\n }", "public void testGetInsDyn() {\n }", "@Test\n public void testMain() {\n String simulatedUserInput = \"100AUD\" + System.getProperty(\"line.separator\")\n + \"1\" + System.getProperty(\"line.separator\");\n\n InputStream savedStandardInputStream = System.in;\n System.setIn(new ByteArrayInputStream(simulatedUserInput.getBytes()));\n\n mainFunction mainfunc = new mainFunction();\n\n try {\n mainfunc.start();\n } catch(Exception e) {\n System.out.println(\"Exception!\");\n }\n\n assertEquals(1,1);\n }", "public static void main(String[] args) {\n System.out.println(testLibraryParseCardBarCode());\n System.out.println(testLibraryParseRunLibrarianCheckoutBookCommand());\n System.out.println(testLibraryParseRunSubscriberReturnBookCommand());\n System.out.println(testparseBookId());\n System.out.println(testparseRunSubscriberCheckoutBookCommand());\n }", "@Test\n\tpublic void testMain() {\n\t\t// TODO: test output streams for various IO methods, emulating a user's\n\t\t// input - kinda like Joel did for CSSE2310\n\t\tAssert.fail();\n\t}", "@Test\n public void testDAM30203001() {\n testDAM30102001();\n }", "public void test5() {\n\t\t\n\t}", "@Override\n public void runTest() {\n }", "public static void main(String [] args) {\r\n\t\ttestOne(); //adds items to WH; tests getNumItems method & toString method\r\n\t\tSystem.out.print(\"\\n\");\r\n\t\ttestTwo(); //tests getItem(String) method\r\n\t\tSystem.out.print(\"\\n\");\r\n\t\ttestThree(); //test getItem(Item) method\r\n\t\tSystem.out.print(\"\\n\");\r\n\t\ttestFour(); //tests total cost method\r\n\t\tSystem.out.print(\"\\n\");\r\n\t\ttestFive(); //this will test the getRefrigeratedItems method\r\n\t\tSystem.out.print(\"\\n\"); \r\n\t\ttestSix(); //tests getTotalCostRefrigerated method\r\n\t\tSystem.out.print(\"\\n\");\r\n\t\ttestSeven(); //tests remove method\r\n\t}", "public static void main (String[] args){\n\t\tincPieceCountTest();\n\t\tdecPieceCountTest();\n\t\tsetPieceTest();\n\t\tmoveTest();\n\t\tanyMoveTest();\n\t\tgetPiecesTest();\n\t\tsetPieceTest2();\n\t}", "public static void main(String[] args) {\n\t\tint firstValue = fnInputFirst();\r\n\t\tfnChoice(firstValue);\r\n\t\t//test(args);\r\n\t\t\r\n\t}", "@Test\n public void run () {\n\t \n\t System.out.println(\"---------->\");\n\t //System.out.println(md5list.getResult());\n\t //System.out.println(hashsearch.getResult());\n\t \n\t \n\t \n\t // System.out.println(samples.Testing());\n\t //System.out.println(\"getserult: \"+samples.getResult());\n\t \n }", "public void testBidu(){\n\t}", "public void test() {\n\t}", "public static void main (String[] args) {\n \n doTest (\"hello\");\n doTest (\"query\");\n doTest (\"Mississippi\");\n doTest (\"elephant\");\n doTest (\"Qatar\");\n System.out.println();\n \n }", "@Test\n public void testDAM30402001() {\n testDAM30101001();\n }", "public static void main(String[] args) {\r\n\t\t// test method\r\n\t\tNewFeatures newFeatures = new NewFeatures();\r\n\t\tnewFeatures.testingArrayList();\r\n\t\tnewFeatures.testingTryCatch();\r\n\t\tnewFeatures.testingNumericValues();\r\n\t\tnewFeatures.testingSwitchWithStringStatemant();\r\n\r\n\t}", "public void testCheck()\r\n {\n DataUtil.check(9, \"This is a test!\");\r\n }", "public static void main(String[] args){\n\t\ttest1();\r\n\t}", "public void testOperation();", "public static void main(String args[]) {\n\t\tSystem.out.println(\"\\r\\ngetGameSituationTest()\");\n\t\tgetGameSituationTest();\n\n\t\tSystem.out.println(\"\\r\\nstateCheckerboardConvertionTest()\");\n\t\tstateCheckerboardConvertionTest();\n\n\t\tSystem.out.println(\"\\r\\ngetValidActionsTest()\");\n\t\tgetValidActionsTest();\n\t}", "@Test\n public void testPrintPosLnS() throws Exception\n {\n//TODO: Test goes here... \n }", "public static void main(String[] args) throws Exception{\n test1();\n }", "public void mainTest()\n {\n \tprintSimilarRatingsByYearAfterAndMinutes();\n }", "@Test\n public void testDAM30601001() {\n testDAM30102001();\n }", "public static void main(String[] args) {\n\t\t\n\t\t\n\t\ttest01();\n\t}", "public static void main(String[] args){\n new Testing().runTests();\r\n \r\n }", "public static void main(String[] args) throws Exception {\n\n\t\t testDistance();\n\n\t\t //functionFitting();\n\t\t //testFunction();\n\t}", "@Override\n\tpublic void test() {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tglobalTest();\n//\t\ttimeTest();\n//\t\ttestPrefixSearch();\n//\t\ttestSearch();\n//\t\ttestPrediction();\n//\t\ttestTrieSearch();\n//\t\ttestRebuid();\n//\t\ttest13();\n//\t\ttest14();\n\t}", "@Test\n public void test() {\n\n testBookExample();\n // testK5();\n // testK3_3();\n }", "public static void main(String[] args) throws InterruptedException {\n signin();\n\n\n //test case 4\n searchProduct();\n //test case 5:\n //searchInvalidProduct();\n\n }", "public static void main(String[] args) {\n\t\t\tmeth(args);\r\n\t\t\targument_test:meth(args);\r\n\t}", "@Test\n public void testDAM30903001() {\n testDAM30802001();\n }", "public void testLizard(){\n }", "public static void main(String[] args) {\n\t\t\n\t\ttestQuery();\n\t\t//testInsert();\n\t\t\n\t}", "public static void main(String[] args) {\n ListTest lt = new ListTest();\n lt.testAdd();\n// lt.testGet();\n lt.testIterator();\n lt.testListContains();\n }", "@Test\n public void test() throws Exception {\n// diversifiedRankingxPM2()\n diversifiedRankingxQuAD();\n }", "void test02(){\n\t}", "public static void main(String[] arg) {\n testSingleLowRate();\n testSingleHighRate();\n testMarriedLowRate();\n testMarriedHighRate();\n System.out.println(doesPass ? \"PASS\" : \"FAIL\");\n }", "public static void main(String[] args) {\n\t\tDifferentMethods di = new DifferentMethods();\r\n\t\tdi.ReadNumber();\r\n\t\tint isEven = di.Verify();\r\n\t di.Print(isEven);\r\n\t\r\n\t\t\r\n\r\n\t}", "@Test\n public void testGetThisProgramRecord() {\n System.out.println(\"getThisProgramRecord\");\n String programName = \"TestProgram\";\n String programDS = \"This is a test program\";\n PicardCommandLine instance = new PicardCommandLineImpl();\n String [] args = {};\n instance.instanceMain(args);\n SAMProgramRecord result = instance.getThisProgramRecord(programName, programDS);\n assertEquals(result.getProgramGroupId(), programName);\n assertEquals(result.getProgramName(), programName);\n assertEquals(result.getProgramVersion(), PicardCommandLine.version);\n assertEquals(result.getAttribute(\"DS\"), programDS);\n }", "public static void main(String[] args) {\n\t\t \n\t\tResult result1 = JUnitCore.runClasses(TestUnitForCreate.class);\n\t for (Failure failure : result1.getFailures()) {\n\t System.out.println(failure.toString());\n\t }\n\t System.out.println(result1.wasSuccessful());\n\n\t Result result2 = JUnitCore.runClasses(TestUnitForReadByCalimNumber.class);\n\t for (Failure failure : result2.getFailures()) {\n\t System.out.println(failure.toString());\n\t }\n\t System.out.println(result2.wasSuccessful());\n\t \n\t Result result3 = JUnitCore.runClasses(TestUnitForReadByLossDate.class);\n\t for (Failure failure : result3.getFailures()) {\n\t System.out.println(failure.toString());\n\t }\n\t System.out.println(result3.wasSuccessful());\n\t \n\t\tResult result4 = JUnitCore.runClasses(TestUnitForUpdate.class);\n\t\tfor (Failure failure : result4.getFailures()) {\n\t\t\tSystem.out.println(failure.toString());\n\t\t}\n\t\tSystem.out.println(result4.wasSuccessful());\n\t \n\t Result result5 = JUnitCore.runClasses(TestUnitForReadVehicle.class);\n\t for (Failure failure : result5.getFailures()) {\n\t System.out.println(failure.toString());\n\t }\n\t System.out.println(result5.wasSuccessful());\n \n\t Result result6 = JUnitCore.runClasses(TestUnitForDelete.class);\n\t for (Failure failure : result6.getFailures()) {\n\t System.out.println(failure.toString());\n\t }\n\t System.out.println(result6.wasSuccessful());\n\t \n\t}", "@Test\n public void testGetAnalyzedData() {\n System.out.println(\"getAnalyzedData\");\n \n }", "public static void main(String[] args) {\n\ttest(tests);\n }", "public static void run() {\n testAlgorithmOptimality();\n// BenchmarkGraphSets.testMapLoading();\n //testAgainstReferenceAlgorithm();\n //countTautPaths();\n// other();\n// testLOSScan();\n //testRPSScan();\n }", "public static void main(String[] args) {\n testFactorial();\n testFibonacci();\n testMissing();\n testPrime();\n\n\n }", "public static void main(String[] args) \r\n\t{\r\n\t\tShouldGetSize();\r\n\t\tShouldFindIfContains();\r\n\t\tShouldFindRange();\r\n\t}", "@Test\n\tpublic void testMain() {\n\t}", "public static void main(String[] args) {\n // TODO Auto-generated method stub\n test2();\n }", "public static void main(String[] args) {\n\t\ttestStreamMapReduce();\r\n\t\t//testMethodReference();\r\n\t}", "@Test\n\tvoid testLectureChoixInt() {\n\t\t\n\t}", "@Test\n public void testDAM31501001() {\n //\n testDAM30201001();\n }", "@Test\n public void solve1() {\n }", "public static void main(String[] args) {\r\n// Use for unit testing\r\n }", "@Test //This is integration test\r\n\tpublic void testCalculatePrice01() throws Exception\r\n\t{\n\t\tImportInformation information = new ImportInformation();\r\n\t\tinformation.importMenu(\"Food_Data_Test1\");\r\n\t\tinformation.importUserInput();\t\r\n\t\tCalculation calcPrice = new Calculation();\r\n\t\tcalcPrice.calculatePrice(information.getMenu(),information.getUserInput());\r\n\t\t// compare the object itself and its side effects instead of String output, the string output can be done in main.\r\n\t\tArrayList<Food> exspectedFoodList = new ArrayList<Food>();\r\n\t\tArrayList<Combination> exspectedCombinationList = new ArrayList<Combination>();\r\n\t\tassertEquals(exspectedCombinationList, calcPrice.getResult());\r\n\t}", "public static void main(String... args) throws Exception {\n //testHelloWorld();\n //testExchange();\n //testParentChild();\n //testLinking();\n //testListener();\n //testParse(\"1\");\n //testOuterInner();\n //testResourceARM();\n //testExecuteAround();\n testExecuteAroundARM();\n }", "@Override\n public void test() {\n \n }", "public static void main(String arg[]) {\n System.out.println(\"testGuset(): \" + testGuset());\n System.out.println(\"testServingQueue(): \" + testServingQueue());\n System.out.println(\"testDessertSolvers(): \" + testDessertSolvers());\n testCapicity();\n }", "public static void hvitetest1w(){\r\n\t}", "public static void main(String [] args) {\n TestFListInteger test = new TestFListInteger();\n \n test.testIsEmpty();\n test.testGet();\n test.testSet();\n test.testSize();\n test.testToString();\n test.testEquals();\n \n test.summarize();\n \n }", "public static void main(String[] args) throws IOException, ParseException{\n\t\tGetBrowser browser=new GetBrowser();\n\t\tWebDriver driver = browser.getDriver(\"FireFox\");\n\t\t\n\t\tHashMap<String, String> test = new CommonUtilities(driver).getTestCases();\n\t\tfor(Map.Entry m:test.entrySet()){ \n\t\t\t System.out.println(m.getKey()+\" \"+m.getValue()); \n\t\t\t } \n\t}", "public void testMain(Object[] args) \n\t{\n\t\t//----------------------------------------------------------------------\n\t\t// Verify SUCCESS of Journey\n\t\t// Grab Inspection Details and Report\n\t\t//----------------------------------------------------------------------\n\t\ttry {\t\t\t\n\t\t\t//----------------------------------------------------------------------\t\t\t\t\n\t\t\thtml_thankYou().waitForExistence(20.0, 0.25);\n\t\t\t//----------------------------------------------------------------------\t\t\t\t\n\t\t\tString sPaymentSuccess_Text = (String)html_thankYou().getProperty(\".text\");\t\t\n\t\t\t//----------------------------------------------------------------------\t\t\t\t\n\t\t\tSystem.out.println(\" PAYMENT SUCCESS * * * \"+sPaymentSuccess_Text+\"* * * \");\n\t\t\tlogTestResult(\" PAYMENT SUCCESS * * * \"+sPaymentSuccess_Text+\"* * * \", true);\t\t\n\t\t\t//----------------------------------------------------------------------\t\t\t\t\n\t\t} catch (Exception e) {\t\t\t\n\t\t\tlogTestResult(\" There Is A Problem WIth The CONFIRMATION Page - Quote Text Is NULL, Payment Gateway Issue or The Page Structure Changed?\", false);\t\t\n\t\t}\n\t\t//----------------------------------------------------------------------\t\n\t\tSystem.out.println(\"Test Journey Completed\");\n\t\tSystem.out.println(\"---------------------------------------------------\");\n\t\tiE().close();\n\t\t//stop();\n\t\t//----------------------------------------------------------------------\t\n\t}", "public void testexecute(String test) throws Exception;", "@Test\n public void testLocateManager() {\n System.out.println(\"locateManager\");\n int x = 0;\n int y = 0; \n //instance.locateManager(x, y);\n \n }", "Testcase createTestcase();", "@Test\n public void testMain() {\n System.out.println(\"main\");\n String[] args = null;\n CashRegister.main(args);\n // TODO review the generated test code and remove the default call to fail.\n //fail(\"The test case is a prototype.\");\n }", "public void testSpock(){\n }", "public static void main(String[] args) {\r\n\t\tSystem.out.println(\"Testing Calculator\");\r\n\t\ttestConstructors();\r\n\t\ttestSetters();\r\n\t\ttestGetters();\r\n\t\ttestToString();\r\n\t}", "@Test\r\n\tpublic void testSanity() {\n\t}", "@Test\n public void testCheckPositive() {\n Helper.checkPositive(1, \"obj\", \"method\", LogManager.getLog());\n }", "@Test\n public void testGetFileScanner() throws Exception {\n //get file scanner cannot be accurately tested as it is dependant on user input\n System.out.println(\"getFileScanner\");\n Scanner expResult = null;\n Scanner result = BTRouterPatch.getFileScanner();\n System.out.println(\"result = \" + result);\n assertEquals(expResult, result);\n }", "@Test\npublic void testCal() throws Exception {\n\tsearchText();\n}", "@Test\n public void testPrintErrPosLnS() throws Exception\n {\n//TODO: Test goes here... \n }", "public static void main(String[] args) {\n \tif(testInsert()) \n \t\tSystem.out.println(\"testInsert: succeeded\");\n \telse\n \t\tSystem.out.println(\"testInsert: failed\");\n if(testSearch()) \n System.out.println(\"testSearch: succeeded\");\n else\n System.out.println(\"testSearch: failed\");\n }", "@Test\n public void main() {\n // App.main(null);\n // assertEquals(\"Hello world\", outContent.toString());\n }", "public static void main(String[] args) {\n\t\ttest4();\n//\t\ttest7();\n//\t\ttest8();\n//\t\ttest9();\n//\t\ttest10();\n//\t\ttest11();\n//\t\t test13() ;\n\t}", "public static void dummyTest(){}", "public static void dummyTest(){}", "public abstract int simulate();", "@Test\n\tpublic void Account_test() { Using HamCrest \t\t\n\t\t// Exercise code to run and test\n\t\t//\n\t\tmiCuenta.setHolder(this.arg1);\n\t\tString resHolder = miCuenta.getHolder(); \n\t\t//\n\t\tmiCuenta.setBalance(this.arg2);\n\t\tint resBalance = miCuenta.getBalance(); \n\t\t//\n\t\tmiCuenta.setZone(this.arg3);\n\t\tint resZone = miCuenta.getZone(); \n\t\t\t\t\t\t\n\t\t// Verify\n\t\tassertThat(this.arg1, is(resHolder));\n\t\tassertThat(this.arg2, is(resBalance)); \n\t\tassertThat(this.arg3, is(resZone)); \n\t}", "public static void main(String[] args) {\n\t\ttest();\n\t}", "public static void run()\n {\n String[] testInput = FileIO.readAsStrings(\"2020/src/day17/Day17TestInput.txt\");\n String[] realInput = FileIO.readAsStrings(\"2020/src/day17/Day17Input.txt\");\n\n Test.assertEqual(\"Day 17 - Part A - Test input\", partA(testInput), 112);\n Test.assertEqual(\"Day 17 - Part A - Challenge input\", partA(realInput), 384);\n Test.assertEqual(\"Day 17 - Part B - Test input\", partB(testInput), 848);\n Test.assertEqual(\"Day 17 - Part B - Challenge input\", partB(realInput), 2012);\n }", "public static void main(String[] args) throws IOException {\n\t\t testType1();\n\n\t\t// testMatrix();\n//\t\ttestKening();\n\t\t\n//\t\ttestOutline();\n\t}", "@Test\n public void should_return_() {\n }", "public static void main(String[] args) {\n\r\n\t\ttry {\r\n\t\t\tSystem.out.println(\"INSERT\");\r\n\t\t\tTestFromFile(\"C:\\\\\\\\Users\\\\\\\\dhdim\\\\\\\\projects\\\\\\\\Coursework\\\\\\\\src\\\\\\\\Coursework\\\\\\\\test.txt\",\r\n\t\t\t\t\tHashDirectory::testInsert);\r\n\t\t\tSystem.out.println(\"LOOKUP\");\r\n\t\t\tTestFromFile(\"C:\\\\\\\\Users\\\\\\\\dhdim\\\\\\\\projects\\\\\\\\Coursework\\\\\\\\src\\\\\\\\Coursework\\\\\\\\test.txt\",\r\n\t\t\t\t\tHashDirectory::testLookup);\r\n\t\t\tSystem.out.println(\"DELETE BY NAME\");\r\n\t\t\tTestFromFile(\"C:\\\\Users\\\\dhdim\\\\projects\\\\Coursework\\\\src\\\\Coursework\\\\test.txt\",\r\n\t\t\t\t\tHashDirectory::testDeleteByName);\r\n\t\t\tSystem.out.println(\"DELETE BY NUMBER\");\r\n\t\t\tTestFromFile(\"C:\\\\\\\\Users\\\\\\\\dhdim\\\\\\\\projects\\\\\\\\Coursework\\\\\\\\src\\\\\\\\Coursework\\\\\\\\test.txt\",\r\n\t\t\t\t\tHashDirectory::testDeleteByNumber);\r\n\t\t\tSystem.out.println(\"CHANGE NUMBER\");\r\n\t\t\tTestFromFile(\"C:\\\\\\\\Users\\\\\\\\dhdim\\\\\\\\projects\\\\\\\\Coursework\\\\\\\\src\\\\\\\\Coursework\\\\\\\\test.txt\",\r\n\t\t\t\t\tHashDirectory::testChangeNumber);\r\n\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}", "public void test() {\n }", "public void test() {\n }", "@Test\n public void testMakeAUser05() {\n System.out.println(\"make A Test User\");\n String givenName = \"GivenName\";\n String surname = \"surname\";\n String addressLine1 = \"addressLine1\";\n String addressLine2 = \"addressLine2\";\n String addressLine3 = \"addressLine3\";\n String addressPostcode = \"addressPostcode\";\n String DOB = \"DOB\";\n EPersonType personType = EPersonType.Test;\n String password = \"password\";\n CheckUserAndPasswords checkUserAndPasswords = new CheckUserAndPasswords();\n String expResult = checkUserAndPasswords.checkForNextAvailableUserID(\"T\");\n String result = MakeUser.makeAUser(givenName, surname, addressLine1, \n addressLine2, addressLine3, addressPostcode, DOB, personType, \n password);\n assertEquals(expResult, result);\n checkUserIDAndPasswordInTable(result, password);\n System.out.println(\"result \" + result);\n }", "@Test\n public void testingTheTwoPlane2016Order() {\n }", "@Test\r\n public void dummyCanGiveXP() {\n\r\n dummy.giveExperience();\r\n\r\n assertEquals(DUMMY_EXPERIENCE, dummy.giveExperience());\r\n }", "static void mainTest(PrintWriter out) throws Exception {\n\t}" ]
[ "0.7135004", "0.6905942", "0.6684947", "0.6560713", "0.6545559", "0.6538317", "0.6483956", "0.64658284", "0.64559746", "0.6431122", "0.6414808", "0.6409539", "0.6396703", "0.63649297", "0.63646185", "0.63642824", "0.63627696", "0.6355217", "0.6335398", "0.6334076", "0.63106775", "0.6286742", "0.6281656", "0.6274786", "0.62644905", "0.6253766", "0.62535614", "0.6240003", "0.6235946", "0.6223533", "0.6193964", "0.61910695", "0.61866975", "0.61594605", "0.6145507", "0.6139618", "0.613752", "0.613719", "0.6134435", "0.61323065", "0.61235785", "0.6120431", "0.611083", "0.61103225", "0.6096742", "0.60936165", "0.6084918", "0.6082195", "0.60797155", "0.6069355", "0.6053551", "0.6045419", "0.6043414", "0.6041801", "0.604054", "0.60386527", "0.6038049", "0.60338837", "0.6031592", "0.60154355", "0.6011381", "0.6004718", "0.60003024", "0.59991175", "0.5996994", "0.59923387", "0.59877557", "0.598438", "0.59805083", "0.59803987", "0.59782815", "0.5977605", "0.5976865", "0.59756786", "0.59737384", "0.5972953", "0.5968474", "0.5959988", "0.59593904", "0.59517616", "0.5943123", "0.59415495", "0.5937834", "0.59310734", "0.59214616", "0.5920738", "0.59202886", "0.59202886", "0.5913845", "0.5912796", "0.5911001", "0.5906445", "0.5905917", "0.5905378", "0.5898621", "0.5896525", "0.5896525", "0.58941746", "0.58941364", "0.5893698", "0.5891174" ]
0.0
-1
Complete the designerPdfViewer function below.
static int designerPdfViewer(int[] h, String word) { char c='a'; int maxHeight=0; Map<Character, Integer> alphabet = new HashMap<>(); for(int height:h) { alphabet.put(c, height); c++; } for(int i=0;i<word.length();i++) { if( alphabet.get( word.charAt(i) ) > maxHeight ) { maxHeight = alphabet.get( word.charAt(i) ); } } //System.out.println(alphabet); return maxHeight*word.length(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void verPDFFrame(String filePath) {\n SwingController c = new SwingController();\n c.setIsEmbeddedComponent(true);\n\n PropertiesManager prop = new PropertiesManager(\n System.getProperties(),\n ResourceBundle.getBundle(PropertiesManager.DEFAULT_MESSAGE_BUNDLE));\n\n prop.set(PropertiesManager.PROPERTY_DEFAULT_ZOOM_LEVEL, \"1.25\");\n prop.setBoolean(PropertiesManager.PROPERTY_VIEWPREF_FITWINDOW, Boolean.TRUE);\n prop.setBoolean(PropertiesManager.PROPERTY_SHOW_TOOLBAR_ANNOTATION, Boolean.FALSE);\n prop.setBoolean(PropertiesManager.PROPERTY_SHOW_TOOLBAR_FIT, Boolean.FALSE);\n prop.setBoolean(PropertiesManager.PROPERTY_SHOW_TOOLBAR_ROTATE, Boolean.FALSE);\n prop.setBoolean(PropertiesManager.PROPERTY_SHOW_TOOLBAR_TOOL, Boolean.FALSE);\n prop.setBoolean(PropertiesManager.PROPERTY_SHOW_UTILITY_UPANE, Boolean.FALSE);\n prop.setBoolean(PropertiesManager.PROPERTY_SHOW_UTILITY_SEARCH, Boolean.FALSE);\n\n SwingViewBuilder fac = new SwingViewBuilder(c, prop);\n\n // add interactive mouse link annotation support via callback\n c.getDocumentViewController().setAnnotationCallback(\n new org.icepdf.ri.common.MyAnnotationCallback(c.getDocumentViewController()));\n javax.swing.JPanel viewerComponentPanel = fac.buildViewerPanel();\n JFrame applicationFrame = new JFrame();\n\n applicationFrame.setDefaultCloseOperation(DISPOSE_ON_CLOSE);\n applicationFrame.getContentPane().add(viewerComponentPanel);\n // Now that the GUI is all in place, we can try openning a PDF\n c.setPageFitMode(DocumentViewController.PAGE_FIT_WINDOW_WIDTH, false);\n c.openDocument(filePath);\n // show the component\n applicationFrame.pack();\n Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\n applicationFrame.setExtendedState(JFrame.MAXIMIZED_BOTH);\n applicationFrame.setSize(screenSize);\n applicationFrame.setLocationRelativeTo(null);\n applicationFrame.setResizable(false);\n applicationFrame.setVisible(true);\n\n }", "public void PDF() {\n try {\r\n /* try {\r\n ImageIO.write(Imagen, \"png\", new File(Path + \"1\" + \".png\"));\r\n } catch (IOException ex) {\r\n Logger.getLogger(panelprincipal.getName()).log(Level.SEVERE, null, ex);\r\n }*/\r\n Image imagen = Image.getInstance(jfc.getSelectedFile().getPath() + \"#\" + \".png\");\r\n imagen.scaleAbsolute(500, 400);\r\n imagen.setAlignment(Element.ALIGN_CENTER);\r\n FileOutputStream archivo = new FileOutputStream(jfc.getSelectedFile().getPath() + \".PDF\");\r\n Document d = new Document();\r\n PdfWriter.getInstance(d, archivo);\r\n PDF creacion = new PDF();\r\n d.open();\r\n d.setPageSize(PageSize.LETTER);\r\n d.add(creacion.setTitulo(nombrediagrama));\r\n //doc.add(new Paragraph(\" Carlos Wilfredo Romero Maradiaga \\n\"));\r\n d.add(imagen);\r\n // doc.add(pdf.getCuerpo(\"\\nCódigo Generado:\\n\"));\r\n /* if (codigo.length()<2) {\r\n doc.add(pdf.getCuerpo(\"Para poder visualizar el código, primero debe generarlo desde el Sistema y vuelva a guardar el archivo.\"));\r\n } else {\r\n doc.add(pdf.getCuerpo(codigo));\r\n */\r\n d.close();\r\n JOptionPane.showMessageDialog(null, \"El PDF se genero excelente\", \"Excelente\", JOptionPane.INFORMATION_MESSAGE);\r\n } catch (Exception e) {\r\n }\r\n }", "void onPDFViewVisibilityChanged(int prevVisibility, int currVisibility);", "public void cargarPdf() {\n\t\tif (pdf != null) {\n\t\t\tFacesMessage message = new FacesMessage(\"Se cargo \", pdf.getFileName() + \" correctamente.\");\n\t\t\tFacesContext.getCurrentInstance().addMessage(null, message);\n\t\t}\n\t}", "public void manipulatePdf(String dest) throws IOException, SQLException {\n DatabaseConnection connection = new HsqldbConnection(\"filmfestival\");\n\n PdfDocument pdfDoc = new PdfDocument(new PdfWriter(DEST));\n Document doc = new Document(pdfDoc);\n doc.setMargins(54, 36, 36, 36);\n\n HeaderHandler headerHandler = new HeaderHandler();\n pdfDoc.addEventHandler(PdfDocumentEvent.START_PAGE, headerHandler);\n\n WatermarkHandler watermarkHandler = new WatermarkHandler();\n pdfDoc.addEventHandler(PdfDocumentEvent.END_PAGE, watermarkHandler);\n\n template = new PdfFormXObject(new Rectangle(550, 803, 30, 30));\n PdfCanvas canvas = new PdfCanvas(template, pdfDoc);\n\n\n bold = PdfFontFactory.createFont(StandardFonts.HELVETICA_BOLD);\n italic = PdfFontFactory.createFont(StandardFonts.HELVETICA_OBLIQUE);\n normal = PdfFontFactory.createFont(StandardFonts.HELVETICA);\n\n Statement stm = connection.createStatement();\n ResultSet rs = stm.executeQuery(\n \"SELECT country, id FROM film_country ORDER BY country\");\n int d = 1;\n while (rs.next()) {\n headerHandler.setHeader(rs.getString(\"country\"));\n if (1 != d) {\n doc.add(new AreaBreak());\n }\n Set<Movie> movies =\n new TreeSet<>(new MovieComparator(MovieComparator.BY_YEAR));\n movies.addAll(PojoFactory.getMovies(connection, rs.getString(\"id\")));\n for (Movie movie : movies) {\n doc.add(new Paragraph(movie.getMovieTitle()).setFont(bold));\n if (movie.getOriginalTitle() != null)\n doc.add(new Paragraph(movie.getOriginalTitle()).setFont(italic));\n doc.add(new Paragraph(String.format(\"Year: %d; run length: %d minutes\",\n movie.getYear(), movie.getDuration())).setFont(normal));\n doc.add(PojoToElementFactory.getDirectorList(movie));\n }\n d++;\n }\n\n canvas.beginText();\n try {\n canvas.setFontAndSize(PdfFontFactory.createFont(StandardFonts.HELVETICA), 12);\n } catch (IOException e) {\n e.printStackTrace();\n }\n canvas.moveText(550, 803);\n canvas.showText(Integer.toString(pdfDoc.getNumberOfPages()));\n canvas.endText();\n canvas.stroke();\n\n doc.close();\n connection.close();\n }", "private void generarDocP(){\n generarPdf(this.getNombre());\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jButton1 = new javax.swing.JButton();\n jPanel2 = new javax.swing.JPanel();\n jScrollPane1 = new javax.swing.JScrollPane();\n jTextArea1 = new javax.swing.JTextArea();\n jPanel3 = new javax.swing.JPanel();\n jTextField2 = new javax.swing.JTextField();\n jTextField1 = new javax.swing.JTextField();\n jTextField3 = new javax.swing.JTextField();\n jTextField4 = new javax.swing.JTextField();\n jTextField5 = new javax.swing.JTextField();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"Extractor PDF\");\n\n jPanel1.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));\n\n jButton1.setText(\"Seleccionar archivo\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(34, 34, 34)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 210, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jButton1, javax.swing.GroupLayout.DEFAULT_SIZE, 48, Short.MAX_VALUE)\n .addContainerGap())\n );\n\n jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Vista previa\"));\n\n jTextArea1.setColumns(20);\n jTextArea1.setRows(5);\n jScrollPane1.setViewportView(jTextArea1);\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addContainerGap(20, Short.MAX_VALUE)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 504, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(20, 20, 20))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(22, 22, 22)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 416, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Meta data\"));\n\n jLabel3.setText(\"Autor\");\n\n jLabel4.setText(\"Titulo\");\n\n jLabel5.setText(\"Correo\");\n\n jLabel6.setText(\"Año\");\n\n jLabel7.setText(\"Editorial\");\n\n javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);\n jPanel3.setLayout(jPanel3Layout);\n jPanel3Layout.setHorizontalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGap(56, 56, 56)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel7)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel6)\n .addComponent(jTextField3, javax.swing.GroupLayout.DEFAULT_SIZE, 420, Short.MAX_VALUE)\n .addComponent(jTextField2)\n .addComponent(jLabel4)\n .addComponent(jLabel3)\n .addComponent(jLabel5)\n .addComponent(jTextField1)\n .addComponent(jTextField5)\n .addComponent(jTextField4)))\n .addGap(0, 32, Short.MAX_VALUE))\n );\n jPanel3Layout.setVerticalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()\n .addGap(34, 34, 34)\n .addComponent(jLabel3)\n .addGap(18, 18, 18)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jLabel4)\n .addGap(18, 18, 18)\n .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jLabel5)\n .addGap(18, 18, 18)\n .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jLabel6)\n .addGap(18, 18, 18)\n .addComponent(jTextField4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jLabel7)\n .addGap(18, 18, 18)\n .addComponent(jTextField5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(44, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(58, 58, 58)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(46, 46, 46)\n .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(42, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap(30, Short.MAX_VALUE)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(37, 37, 37)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addContainerGap())\n );\n\n pack();\n }", "public void onStartPage(PdfWriter writer, Document document){}", "@FXML\n\tpublic void generarPDFClick(ActionEvent event) {\n\t\tString htmlContent = this.examen.getTitolHtml()+this.examen.getEnunciatHtml()+System.lineSeparator();\n\n\t\tPdfManager manager;\n\t\ttry {\n\t\t\tmanager = new PdfManager(\"Examen.pdf\");\n\n\t\t\tmanager.generarPDF( htmlContent );\n\n\t\t\tFile pdfGenerat = new File(\"Examen.pdf\");\n\n\t\t\tHostServices hostServices = Model.getInstance().getApp().getHostServices();\n\t hostServices.showDocument(pdfGenerat.getAbsolutePath());\n\n\t\t} catch (Excepcio e) {\n\t\t\t//e.printStackTrace();\n\t\t MenuController.mostrarError(\"Examen a PDF\", \"Error generant el document. \"+e.getMessage());\n\t\t}\n\t}", "public void populateViewer(iContainer fv) {\n fv.setLinkedData(this);\n populateViewer(fv, mainDocument);\n\n WindowViewer w = Platform.getWindowViewer();\n CollapsiblePaneViewer cpv = (CollapsiblePaneViewer) fv.getWidget(\"attachments\");\n\n if (cpv != null) {\n TableViewer table = (TableViewer) cpv.getWidget();\n\n table.clear();\n if(table.getActionListener()==null) {\n iActionListener al = new AttachmentActionListener();\n table.setActionListener(al);\n }\n\n int len = getAttachmentCount();\n\n cpv.getTarget().setVisible(len > 0);\n\n if (len > 0) {\n cpv.setTitleText(w.getString(\"bv.format.attachments_spec\", StringCache.valueOf(len)));\n // we can change this because we have already populated the form\n mainDocument.rowData.get(1).setValue(w.getString(\"bv.text.master_document\"));\n\n boolean hasDate = false;\n\n for (int i = 0; i < len; i++) {\n DocumentItem item = docAttachments.get(i);\n\n if (item.rowData != null) {\n table.addEx(item.rowData);\n\n if (item.hasDate()) {\n hasDate = true;\n }\n }\n }\n\n if (UIScreen.isMediumDensity()) {\n table.addEx(mainDocument.rowData);\n }\n\n table.setColumnVisible(2, hasDate);\n table.refreshItems();\n if(hasDate) {\n table.sort(2, true);\n }\n }\n }\n }", "public void showPdfChooser() {\n Intent intent2 = new Intent();\n intent2.setType(\"application/pdf\");\n intent2.setAction(\"android.intent.action.GET_CONTENT\");\n startActivityForResult(Intent.createChooser(intent2, \"Select Document\"), PICK_IMAGE_REQUEST);\n }", "@FXML\n void displayPD() {\n generalTextArea.clear();\n clearEverything();\n String employeeListPD = company.printByDepartment();\n generalTextArea.appendText(employeeListPD);\n }", "public PDFViewCtrl getPdfViewCtrl() {\n/* 136 */ return this.mPdfViewCtrl;\n/* */ }", "@SneakyThrows\n private void pdfReport() {\n NotificationUtil.warningAlert(\"Warning\", \"Nothing to export\", NotificationUtil.SHORT);\n ServiceFactory.getPdfService().projectReport(table.getItems());\n }", "private void pdfActionPerformed(java.awt.event.ActionEvent evt) {\n\n try{\n prepareFile();\n relv.GeneratePDF(path, Client.getNom() + \" \" + Client.getPrenom(), Client.getCin(), operations, periode, from, to);\n JOptionPane.showMessageDialog(this,\"Votre relevé en format PDF a été généré avec Succes\",\"Succes\", JOptionPane.INFORMATION_MESSAGE); \n } catch (SQLException ex) {\n JOptionPane.showMessageDialog(this, \"Échec lors de l'écriture dans la base de données. Veuillez réessayer plus tard\", \"Echec de l'opération\", JOptionPane.ERROR_MESSAGE);\n } catch (Exception ex) {\n System.out.println(\"error \"+ex.getMessage());\n } \n }", "public static void main(String[] args) throws DocumentException, IOException {\n \t\n// // step 1\n// Document document = new Document();\n \n // step 1: creation of the document with a certain size and certain margins\n Document document = new Document(PageSize.A4, 50, 50, 50, 50);\n \n // step 2: create a writer (we have many type of writer, eg HtmlWriter, PdfWriter)\n PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream(RESULT));\n \n /* step 3: BEFORE open the document we add some meta information to the document (that properties can be viewed with adobe reader or right click-properties)\n * they don't appear in the document view\n */\n document.addAuthor(\"Author Test\"); \n document.addSubject(\"This is the result of a Test.\"); \n \n // step 4\n document.open();\n \n //The com.itextpdf.text.Image is used to add images to IText PDF documents\n Image image1 = Image.getInstance(\"src/main/resources/sms.png\");\n document.add(image1);\n \n // step 5\n /*\n access at the content under the new pdf document just created (ie the writer object that i can control/move)\n PdfContentByte is the object that contains the text to write and the content of a page (it offer the methods to add content to a page)\n */\n PdfContentByte canvas = writer.getDirectContentUnder();\n \n //Sets the compression level to be used for streams written by the writer.\n writer.setCompressionLevel(0);\n canvas.saveState(); \n canvas.beginText(); \n //move the writer to tha X,Y position\n canvas.moveText(360, 788); \n canvas.setFontAndSize(BaseFont.createFont(), 12);\n \n Rectangle rectangle = new Rectangle(400, 300);\n rectangle.setBorder(2);\n document.add(rectangle);\n \n /* \n Writes something to the direct content using a convenience method\n A Phrase is a series of Chunks (A Chunk is the smallest significant part of text that can be added to a document)\n \n Conclusion: A chunk is a String with a certain Font ---> A Phrase is a series of Chunk\n Both Chunck and Font has a Font field (but if a Chunk haven't a Font uses the one of the Phrase that own it)\n */\n \n //------- Two modes to set a Phrase: --------\n \n //mode 1) set the phrase directly without a separate chunk object\n Phrase hello = new Phrase(\"Hello World3\");\n document.add(hello);\n \n //mode 2) create before a chunk, adjust it and after assign it to a Phrase(s) \n Chunk chunk2 = new Chunk(\"Setting the Font\", FontFactory.getFont(\"dar-black\"));\n chunk2.setUnderline(0.5f, -1.5f);\n \n Phrase p1 = new Phrase(chunk2);\n document.add(p1); \n \n canvas.showText(\"Hello sms\"); \n canvas.endText(); \n canvas.restoreState(); \n \n document.add(Chunk.NEWLINE);\n \n //i chunk posso aggiungerli solo tramite l'oggetto Document ?\n Chunk chunk = new Chunk(\"I'm a chunk\");\n chunk.setBackground(BaseColor.GRAY, 1f, 0.5f, 1f, 1.5f);\n document.add(chunk);\n \n /*\n * A Paragraph is a series of Chunks and/or Phrases, has the same qualities of a Phrase, but also some additional layout-parameters\n * A paragraph is a sub-section in the document. After each Paragraph a CRLF is added\n */\n Paragraph paragraph = new Paragraph(\"A:\\u00a0\");\n Chunk chunk1 = new Chunk(\"I'm a chunk1\");\n paragraph.add(chunk1);\n paragraph.setAlignment(Element.ALIGN_JUSTIFIED);\n document.add(paragraph);\n \n \n //----- Add a table to the document ------\n \n //A cell in a PdfPTable\n PdfPCell cell;\n \n PdfPTable table = new PdfPTable(2); //in argument vis the number of column\n table.setWidths(new int[]{ 1, 2 }); //the width of the first and second cell. The number of element in the array must be equal at the number of column\n \n table.addCell(\"Name:\");\n cell = new PdfPCell();\n //We can attach event at the cell\n //cell.setCellEvent(new TextFields(1));\n table.addCell(cell);\n \n table.addCell(\"Loginname:\");\n cell = new PdfPCell();\n //cell.setCellEvent(new TextFields(2));\n table.addCell(cell);\n \n table.addCell(\"Password:\");\n cell = new PdfPCell(); \n table.addCell(cell);\n \n table.addCell(\"Reason:\");\n cell = new PdfPCell(); \n cell.setFixedHeight(60);\n table.addCell(cell);\n \n document.add(table);\n \n //add an horizontal line\n LineSeparator ls = new LineSeparator(); \n ls.setLineWidth(0);\n document.add(new Chunk(ls));\n \n Anchor pdfRef = new Anchor(\"http://www.java2s.com\");\n document.add(pdfRef);\n \n // step 5\n document.close();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n imageFileChooser = new javax.swing.JFileChooser();\n destinationPathChooser = new javax.swing.JFileChooser();\n imageBrowseBtn = new javax.swing.JButton();\n destinationPathField = new javax.swing.JTextField();\n destinationBrowseBtn = new javax.swing.JButton();\n generatePdfBtn = new javax.swing.JButton();\n generateDocBtn = new javax.swing.JButton();\n imageCounterTextFld = new javax.swing.JTextField();\n imageListScrollPane = new javax.swing.JScrollPane();\n imageList = new javax.swing.JList();\n multiFileCheckBox = new javax.swing.JCheckBox();\n imageListLbl = new java.awt.Label();\n destinationLbl = new java.awt.Label();\n menuBar = new javax.swing.JMenuBar();\n helpMenu = new javax.swing.JMenu();\n aboutMenuItem = new javax.swing.JMenuItem();\n\n imageFileChooser.setAcceptAllFileFilterUsed(false);\n imageFileChooser.setCurrentDirectory(new File(\"user.home\"));\n imageFileChooser.setFileFilter(new FileNameExtensionFilter(\"Image Files\", \"jpg\", \"png\", \"tif\", \"jpeg\"));\n imageFileChooser.setToolTipText(\"\");\n imageFileChooser.setMultiSelectionEnabled(true);\n\n destinationPathChooser.setCurrentDirectory(new File(\"user.home\"));\n destinationPathChooser.setFileSelectionMode(javax.swing.JFileChooser.DIRECTORIES_ONLY);\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"DocGen\");\n setIconImage(new ImageIcon(getClass().getResource(\"/img/icon.png\")).getImage());\n setResizable(false);\n\n imageBrowseBtn.setText(\"Browse\");\n imageBrowseBtn.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n imageBrowseBtnActionPerformed(evt);\n }\n });\n\n destinationPathField.setEditable(false);\n\n destinationBrowseBtn.setText(\"Browse\");\n destinationBrowseBtn.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n destinationBrowseBtnActionPerformed(evt);\n }\n });\n\n generatePdfBtn.setText(\"Generate Pdf\");\n generatePdfBtn.setName(\"PDF\"); // NOI18N\n generatePdfBtn.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n generateBtnActionPerformed(evt);\n }\n });\n\n generateDocBtn.setText(\"Generate Doc\");\n generateDocBtn.setName(\"WORD\"); // NOI18N\n generateDocBtn.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n generateBtnActionPerformed(evt);\n }\n });\n\n imageCounterTextFld.setEditable(false);\n\n imageList.setModel(new DefaultListModel<File>()\n );\n imageList.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n imageListKeyPressed(evt);\n }\n });\n imageListScrollPane.setViewportView(imageList);\n\n multiFileCheckBox.setText(\"Create Multiple Files\");\n\n imageListLbl.setText(\"Choose files to generate into Pdf or Doc\");\n\n destinationLbl.setText(\"Select Destination folder for Pdf or Doc files\");\n\n helpMenu.setText(\"Help\");\n\n aboutMenuItem.setText(\"About\");\n aboutMenuItem.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n aboutMenuItemActionPerformed(evt);\n }\n });\n helpMenu.add(aboutMenuItem);\n\n menuBar.add(helpMenu);\n\n setJMenuBar(menuBar);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap(31, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(imageListLbl, javax.swing.GroupLayout.PREFERRED_SIZE, 285, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(destinationLbl, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(multiFileCheckBox)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(generatePdfBtn)\n .addGap(81, 81, 81)\n .addComponent(generateDocBtn))\n .addComponent(destinationPathField, javax.swing.GroupLayout.PREFERRED_SIZE, 285, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(destinationBrowseBtn))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addComponent(imageListScrollPane, javax.swing.GroupLayout.PREFERRED_SIZE, 285, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(9, 9, 9)\n .addComponent(imageCounterTextFld, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(imageBrowseBtn))))\n .addContainerGap(32, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(30, 30, 30)\n .addComponent(imageListLbl, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(imageBrowseBtn)\n .addComponent(imageCounterTextFld, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(imageListScrollPane, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(11, 11, 11)\n .addComponent(destinationLbl, javax.swing.GroupLayout.PREFERRED_SIZE, 19, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(destinationPathField, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(destinationBrowseBtn))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(multiFileCheckBox)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(generatePdfBtn)\n .addComponent(generateDocBtn))\n .addGap(19, 19, 19))\n );\n\n destinationLbl.getAccessibleContext().setAccessibleName(\"\");\n\n pack();\n setLocationRelativeTo(null);\n }", "public void loadPdfFile() {\n PDFView.Configurator configurator;\n RelativeLayout relativeLayout = (RelativeLayout)this.pdfView.getParent();\n this.errorTextView = (TextView)relativeLayout.findViewById(2131296408);\n this.progressBar = (ProgressBar)relativeLayout.findViewById(2131296534);\n this.sharedPreferences = Factory.getInstance().getMainNavigationActivity().getSharedPreferences(\"AppsgeyserPrefs\", 0);\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"pdf_saved_page_\");\n stringBuilder.append(this.initialTabId);\n savedPageKey = stringBuilder.toString();\n if (this.pathFile.startsWith(\"file:///\")) {\n String string2 = this.pathFile.replace((CharSequence)\"file:///android_asset/\", (CharSequence)\"\");\n configurator = this.pdfView.fromAsset(string2);\n } else {\n boolean bl = this.pathFile.startsWith(\"http\");\n configurator = null;\n if (bl) {\n String string3 = this.pathFile;\n new LoaderPdf().execute((Object[])new String[]{string3});\n }\n }\n this.pdfView.useBestQuality(true);\n if (configurator == null) return;\n try {\n this.loadConfigurator(configurator);\n return;\n }\n catch (Exception exception) {\n exception.printStackTrace();\n this.progressBar.setVisibility(8);\n }\n }", "public void populateViewer(iContainer fv, DocumentItem doc) {\n try {\n RenderableDataItem row = doc.rowData;\n iWidget field;\n\n field = fv.getWidget(\"documentDate\");\n\n String s;\n\n if (field != null) {\n s = (row == null)\n ? \"\"\n : Functions.convertDateTime(row.get(2).getValue());\n field.setValue(s);\n }\n\n field = fv.getWidget(\"documentTitle\");\n\n if (field != null) {\n s = doc.itemTitle;\n\n if ((s == null) && (row != null)) {\n s = row.get(1).toString();\n }\n\n field.setValue((s == null)\n ? \"\"\n : s);\n }\n\n field = fv.getWidget(\"extraHeaderDetail\");\n\n if (field != null) {\n s = \"\";\n\n if ((row != null) && (row.size() > 4)) {\n s = field.getValueAsString();\n\n if ((s != null) && (s.length() != 0)) {\n String title = (String) row.get(4).getValue();\n\n s = String.format(s, title);\n } else {\n s = (String) row.get(4).getValue();\n }\n }\n\n field.setValue(s);\n }\n\n iViewer v = (iViewer) fv.getWidget(\"documentDetail\");\n\n if (v != null) {\n boolean html = false;\n\n if ((doc.mimeType != null) && doc.mimeType.startsWith(iConstants.HTML_MIME_TYPE)) {\n html = true;\n }\n\n if (v instanceof DocumentPaneViewer) {\n ((DocumentPaneViewer) v).setText(doc.itemBody, html);\n } else if (v instanceof WebBrowser) {\n s = doc.itemBody;\n\n if (!html) {\n s = \"<html><body><pre style=\\\"white-space: pre-wrap; margin:0; padding:0\\\">\" + s + \"</pre></body></html>\";\n }\n //do not pass in the base href because if it is not http/https it will break some browsers (notable iOS)\n String href = null; //JavaURLConnection.baseToExternalForm(documentLink.getURL(contextWidget));\n \n final WebBrowser browser = (WebBrowser) v;\n\n if (v.getWidth() < 50) {\n\n /**\n * We need to wait until the browser has been sized before we load\n * the content so the the content will be appropriately zoomed for\n * iOS\n *\n * Setting the 'autoInsertMetaContent' to true in the custom\n * properties in the RML file Causes a 'viewport' meta tag to be\n * inserted and set to the size of the browser.\n */\n final String data = s;\n final String url = href;\n browser.getContainerComponent().addViewListener(new aViewListenerAdapter() {\n @Override\n public void viewResized(ChangeEvent e) {\n if (!browser.isDisposed() && (browser.getWidth() > 50)) {\n browser.getContainerComponent().removeViewListener(this);\n browser.setHTML(url, data);\n }\n }\n @Override\n public boolean wantsResizeEvent() {\n return true;\n }\n });\n } else {\n browser.setHTML(href, s);\n }\n }\n else {\n v.setValue(doc.itemBody);\n }\n }\n } catch(Exception e) {\n Utils.handleError(e);\n }\n }", "public void genPDF(String qfname)\r\n\t{\n\t\tboolean res = loadQg(qfname);\r\n\t\tif(!res)\r\n\t\t{\r\n\t\t\tmsg = \"(PDFW:GenPDF) Can not load questions from: \"+qfname;\r\n\t\t\tJOptionPane.showMessageDialog(null, msg);\r\n\t\t\treturn;\r\n\t\t}\r\n\t}", "public void pdfChanged(Document pdfDoc) {\n ZoomMode lastZoomMode = getZoomMode();\n double lastZoom = getZoom();\n PageViewMode lastViewMode = getViewMode();\n int lastActivePage = getActivePage();\n int lastTopPage = topViewPage;\n Point2D.Float lastViewLocation = (Point2D.Float) relativeViewLocation.clone();\n\n docCache.setPDF(pdfDoc);\n docCache.setPageIndent(hasValidDocument() ? new Dimension(10, 10) : new Dimension());\n\n // update zoom\n setZoom(0.0);\n this.zoomMode = ZoomMode.ZOOM_NONE;\n if (hasValidDocument()) {\n if (lastZoomMode == ZoomMode.ZOOM_NONE)\n lastZoomMode = ZoomMode.ZOOM_FIT_PAGE;\n if (lastZoom == 0)\n lastZoom = 1.0;\n\n setZoomMode(lastZoomMode);\n if (!lastZoomMode.isFitMode())\n setZoom(lastZoom);\n }\n\n // update view mode\n this.viewMode = PageViewMode.PAGE_MODE_NONE;\n if (hasValidDocument()) {\n if (lastViewMode == PageViewMode.PAGE_MODE_NONE)\n lastViewMode = PageViewMode.PAGE_MODE_SINGLE;\n\n setViewMode(lastViewMode);\n }\n\n // update active page\n this.activePage = this.topViewPage = -1;\n if (hasValidDocument()) {\n if (!docCache.isPageValid(lastActivePage))\n lastActivePage = 0;\n if (!docCache.isPageValid(lastTopPage))\n lastTopPage = 0;\n } else {\n lastActivePage = lastTopPage = -1;\n }\n updateViewSize();\n if (lastTopPage != -1)\n goToPositionAbsolute(lastTopPage, toAbsoluteLocation(lastTopPage, lastViewLocation));\n\n // force update when document is closed\n if (!hasValidDocument())\n onViewUpdate(true);\n }", "private void getPDF(){\r\n\t\t\r\n\t\tif(request.getParameter(\"exportType\").equals(PDFGenerator.EXPORT_ADMIN)){\r\n\t\t\tgetAdministration(); // pdf uses same data\r\n\t\t} else if(request.getParameter(\"exportType\").equals(PDFGenerator.EXPORT_TEACHER)){\r\n\t\t\tgetEventRegistration(); // pdf uses same data\r\n\t\t}\r\n\t\t\r\n\t\tPDFGenerator pdfGen = new PDFGenerator();\r\n\t\tpdfGen.createDocument(request, response);\r\n\t\t\r\n\t\tString eventTitle = \"all\";\r\n\t\t\r\n\t}", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n \n\t\tOptions.setOrientation(this);\n\t\tSharedPreferences options = PreferenceManager.getDefaultSharedPreferences(this);\n\t\t\n\t\t mid = new PointF();\n\t start = new PointF();\n\n\t\t//this.box = Integer.parseInt(options.getString(Options.PREF_BOX, \"2\"));\n\t\tthis.requestWindowFeature(Window.FEATURE_NO_TITLE);\n \n // Get display metrics\n DisplayMetrics metrics = new DisplayMetrics();\n getWindowManager().getDefaultDisplay().getMetrics(metrics);\n \n // use a relative layout to stack the views\n activityLayout = new RelativeLayout(this);\n \n // the PDF view\n this.pagesView = new ModPageView(this);\n pagesView.setLoadNewPage();\n activityLayout.addView(pagesView);\n \n \n \n drawingSurface = new DrawingSurface(this, null);\n\t\t LinearLayout.LayoutParams dlp = new LinearLayout.LayoutParams(LayoutParams.FILL_PARENT,LayoutParams.FILL_PARENT);\n drawingSurface.setLayoutParams(dlp);\n activityLayout.addView(drawingSurface);\n \n surfaceMatrix = new Matrix();\n\n\t\tdrawingSurface.setOnTouchListener(this);\n drawingSurface.previewPath = new DrawingPath();\n drawingSurface.previewPath.path = new Path();\n drawingSurface.previewPath.paint = getPreviewPaint();\n drawingSurface.setZOrderOnTop(true); \n drawingSurface.getHolder().setFormat(PixelFormat.TRANSPARENT);\n\n currentBrush = new PenBrush();\n \n \n \n pdfPageView = new ImageView(this);\n RelativeLayout.LayoutParams pdfParam = new RelativeLayout.LayoutParams(\n \t\tLayoutParams.FILL_PARENT, \n \t\tLayoutParams.FILL_PARENT);\n pdfPageView.setLayoutParams(pdfParam);\n pdfPageView.setScaleType(ScaleType.MATRIX);\n pdfPageView.setOnTouchListener(this);\n \n /* Matrix matrix = new Matrix();\n matrix.postTranslate(metrics.widthPixels/2, metrics.heightPixels/2);\n pdfPageView.setImageMatrix(matrix);*/\n activityLayout.addView(pdfPageView);\n \n \n \n startPDF(options);\n if (!this.pdf.isValid()) {\n \tfinish();\n }\n \n// #ifdef pro\n\n /* LinearLayout textReflowLayout = new LinearLayout(this);\n this.textReflowView = textReflowLayout;\n textReflowLayout.setOrientation(LinearLayout.VERTICAL);\n \n this.textReflowScrollView = new ScrollView(this);\n this.textReflowScrollView.setFillViewport(true);\n \n this.textReflowTextView = new TextView(this);\n \n LinearLayout textReflowButtonsLayout = new LinearLayout(this);\n textReflowButtonsLayout.setGravity(Gravity.CENTER);\n textReflowButtonsLayout.setOrientation(LinearLayout.HORIZONTAL);\n Button textReflowPrevPageButton = new Button(this);\n textReflowPrevPageButton.setText(\"Prev\");\n textReflowPrevPageButton.setOnClickListener(new OnClickListener() {\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tOpenFileActivity.this.nextPage(-1);\n\t\t\t}\n });\n Button textReflowNextPageButton = new Button(this);\n textReflowNextPageButton.setText(\"Next\");\n textReflowNextPageButton.setOnClickListener(new OnClickListener() {\n \tpublic void onClick(View v) {\n \t\tOpenFileActivity.this.nextPage(1);\n \t}\n });\n textReflowButtonsLayout.addView(textReflowPrevPageButton);\n textReflowButtonsLayout.addView(textReflowNextPageButton);\n\n this.textReflowScrollView.addView(this.textReflowTextView);\n LinearLayout.LayoutParams textReflowScrollViewLayoutParams = new LinearLayout.LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT, 1);\n textReflowLayout.addView(this.textReflowScrollView, textReflowScrollViewLayoutParams);\n textReflowLayout.addView(textReflowButtonsLayout, new LinearLayout.LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT, 0));\n\n activityLayout.addView(this.textReflowView, new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.FILL_PARENT, RelativeLayout.LayoutParams.FILL_PARENT));\n this.textReflowView.setVisibility(View.GONE);\n AndroidReflections.setScrollbarFadingEnabled(this.textReflowView, true);\n// #endif\n \n // the find buttons\n this.findButtonsLayout = new LinearLayout(this);\n this.findButtonsLayout.setOrientation(LinearLayout.HORIZONTAL);\n this.findButtonsLayout.setVisibility(View.GONE);\n this.findButtonsLayout.setGravity(Gravity.CENTER);\n this.findPrevButton = new Button(this);\n this.findPrevButton.setText(\"Prev\");\n this.findButtonsLayout.addView(this.findPrevButton);\n this.findNextButton = new Button(this);\n this.findNextButton.setText(\"Next\");\n this.findButtonsLayout.addView(this.findNextButton);\n this.findHideButton = new Button(this);\n this.findHideButton.setText(\"Hide\");\n this.findButtonsLayout.addView(this.findHideButton);\n this.setFindButtonHandlers();\n RelativeLayout.LayoutParams lp = new RelativeLayout.LayoutParams(\n \t\tRelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT);\n lp.addRule(RelativeLayout.CENTER_HORIZONTAL);\n lp.addRule(RelativeLayout.ALIGN_PARENT_TOP);\n activityLayout.addView(this.findButtonsLayout, lp);\n*/\n RelativeLayout.LayoutParams lp;\n this.pageNumberTextView = new TextView(this);\n this.pageNumberTextView.setTextSize(8f*metrics.density);\n lp = new RelativeLayout.LayoutParams(\n \t\tRelativeLayout.LayoutParams.WRAP_CONTENT, \n \t\tRelativeLayout.LayoutParams.WRAP_CONTENT);\n lp.addRule(RelativeLayout.ALIGN_PARENT_RIGHT);\n lp.addRule(RelativeLayout.ALIGN_PARENT_TOP);\n activityLayout.addView(this.pageNumberTextView, lp);\n \n\t\t// display this\n this.setContentView(activityLayout);\n \n // go to last viewed page\n// gotoLastPage();\n \n // send keyboard events to this view\n pagesView.setFocusable(true);\n pagesView.setFocusableInTouchMode(true);\n\n this.menuHandler = new Handler();\n this.drawHandler = new Handler();\n this.pageHandler = new Handler();\n this.zoomRunnable = new Runnable() {\n \tpublic void run() {\n \t\t//fadeZoom();\n \t}\n };\n this.pageRunnable = new Runnable() {\n \tpublic void run() {\n \t\tfadePage();\n \t\t\n \t}\n };\n \n /* myOrientationEventListener = new OrientationEventListener(this, SensorManager.SENSOR_DELAY_NORMAL){\n\n @Override\n public void onOrientationChanged(int arg0) {\n // TODO Auto-generated method stub\n \t if(arg0<100){\n \t\t setOrientation(ActivityInfo.SCREEN_ORIENTATION_SENSOR_PORTRAIT);\n \t\t pagesView.fitPage();\n \t }else if(arg0>200){\n \t\t setOrientation(ActivityInfo.SCREEN_ORIENTATION_SENSOR_LANDSCAPE);\n \t\t pagesView.fitPage();\n \t }\n }};\n \n if (myOrientationEventListener.canDetectOrientation()){\n // Toast.makeText(this, \"Can DetectOrientation\", Toast.LENGTH_LONG).show();\n myOrientationEventListener.enable();\n }\n else{\n // Toast.makeText(this, \"Can't DetectOrientation\", Toast.LENGTH_LONG).show();\n finish();\n }\n */\n pagesView.setPageViewListener(this);\n \n }", "@Override\n public void onLayout(PrintAttributes oldAttributes,\n PrintAttributes newAttributes,\n CancellationSignal cancellationSignal,\n LayoutResultCallback callback,\n Bundle extras) {\n\n if (cancellationSignal.isCanceled()) {\n callback.onLayoutCancelled();\n gotoCompletePage();\n return;\n }\n\n PrintDocumentInfo info = new PrintDocumentInfo\n .Builder(Constants.PDF_FILE_NAME)\n .setContentType(PrintDocumentInfo.CONTENT_TYPE_DOCUMENT)\n .build();\n callback.onLayoutFinished(info, true);\n gotoCompletePage();\n }", "@Override\r\n\tpublic File createPDF() {\n\t\treturn null;\r\n\t}", "public static void designTextEditor() {\n\t\t\n\t}", "public manageDoc() {\r\r\r\n\r\r\r\n }", "public PDF()\n {\n \n i_hdl = create_Handler();\n }", "private void detectionPDF() {\n\t\tif (sourcePDF.getText().equals(\"\")){\n\t\t\tlockButton();\n\t\t\tmessage.setText(\"<html><span color='red'>Pas de PDF</span></html>\");\n\t\t}\n\t\telse{\n\t\t\tif(new File(sourcePDF.getText()).exists()){\n\t\t\t\tmessage.setText(\"<html><head><meta charset=\\\"UTF-8\\\"><span color='green'>Fichier PDF détecté</span></html>\");\n\t\t\t\tunlockButton();\n\t\t\t}\n\t\t\telse\n\t\t\t\tmessage.setText(\"<html><span color='red'>le fichier \"+ sourcePDF.getText() +\" n'existe pas</span></html>\");\n\t\t}\n\t}", "@Override\r\n\tpublic boolean writeDocument(Collection<IDataHandler> datas, Document document, PdfWriter writer,\r\n\t\t\tProgressBarFrame pBFrame) throws Exception {\n\t\tdocument.open();\r\n\t\t\r\n\t\t// Creation de la BaseFfont par defaut\r\n\t BaseFont basefont = BaseFont.createFont(BaseFont.HELVETICA, BaseFont.CP1252, BaseFont.EMBEDDED);\r\n\t\t// Creation de la Font concrete\r\n\t Font baseConcreteFont = new Font (basefont, 12, Font.NORMAL);\r\n\t \r\n\t\t// On creer un Iterator pour les donnees\r\n\t\tIterator<IDataHandler> datasIterator = datas.iterator();\r\n\t\t\r\n\t\t// On obtient le progres courant de la ProgressBar\r\n\t\tint counter = pBFrame.getProgress();\r\n\t\t\r\n\t\t// On definit le nombre d'increment pour la ProgressBar en fonction du nombre de donnee et de son degre d'avancement prealable\r\n\t\tint progressIncrement = ProgressBarFrame.MY_MAXIMUM - counter / datas.size();\r\n\t\t\r\n\t\t// On itere sur les parties\r\n\t\twhile (datasIterator.hasNext()) {\r\n\t\t\t\r\n\t\t\t// La partie courante\r\n\t\t\tIDataHandler currentDataPart = datasIterator.next();\r\n\t\t\t// L'iterator sur les donnees de la partie courante\r\n\t\t\tIterator<Collection<Object>> currentPartIter = currentDataPart.getDataStorage().iterator();\r\n\t\t\t\r\n\t\t\t// L'Iterator sur les types de donnees\r\n\t\t\tIterator<Object> datasTypeIter = currentPartIter.next().iterator();\r\n\t\t\t// L'Iterator sur les donnes\r\n\t\t\tIterator<Object> datasIter = currentPartIter.next().iterator();\r\n\t\t\t\r\n\t\t\t// On creer un paragraphe\r\n\t\t\tParagraph para = new Paragraph();\r\n\t\t\t\r\n\t\t\t// On ajoute le titre du paragraphe\r\n\t\t\tpara.add(new Phrase(currentDataPart.getPartTitle(), baseConcreteFont));\r\n\t\t\t// On ajoute une nouvelle ligne\r\n\t\t\tpara.add(Chunk.NEWLINE);\r\n\t\t\t\r\n\t\t\t// Tous ce qui releve des tableaux est une tentative de mise en page a l'aide de tableau mais c'est un echec\r\n\t\t\t// On cree un tableau a 2 colonnes : titre donnee\r\n\t\t\t//PdfPTable table = new PdfPTable(2);\r\n\t\t\t// On enleve les bordures (ne fonctionne pas mais bon...)\r\n\t\t\t//table.getDefaultCell().setBorder(Rectangle.NO_BORDER);\r\n\t\t\t\r\n\t\t\t/*\r\n\t\t\t// On creer des float pour determiner la largeur que doivent prendre les colonnes\r\n\t\t\tfloat[] tableCellsWidths = new float[] {0f, 0f};\r\n\t\t\t\r\n\t\t\t// On creer un tableau de cellules a ajoute a la fin\r\n\t\t\tArrayList<PdfPCell> tableCells = new ArrayList<PdfPCell>();\r\n\t\t\t*/\r\n\t\t\t\r\n\t\t\t// On itere sur le type de donne\r\n\t\t\twhile (datasTypeIter.hasNext()) {\r\n\t\t\t\r\n\t\t\t\tswitch ((IDataHandler.DataType)datasTypeIter.next()) {\r\n\t\t\t\t\t// Si c'est une String\r\n\t\t\t\t\tcase STRING:\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// On obtient le titre\r\n\t\t\t\t\t\t/*String stringTitle = (String)datasIter.next();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// On calcul sa largeur pour la mise en page\r\n\t\t\t\t\t\tfloat titleWidth = baseConcreteFont.getCalculatedBaseFont(true).getWidthPoint(stringTitle, baseConcreteFont.getCalculatedSize()); \r\n\t\t\t\t\t\tif (titleWidth > tableCellsWidths[0]) {\r\n\t\t\t\t\t\t\ttableCellsWidths[0] = titleWidth;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t// On ajoute le titre dans la premiere colonne\r\n\t\t\t\t\t\tPdfPCell title = new PdfPCell(new Phrase (stringTitle, baseConcreteFont));\r\n\t\t\t\t\t\t// On enleve les bordures\r\n\t\t\t\t\t\ttitle.setBorder(Rectangle.NO_BORDER);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\ttableCells.add(title);\r\n\t\r\n\t\t\t\t\t\t// On obtient la donnee correspondante\r\n\t\t\t\t\t\tString stringData = (String)datasIter.next();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// On calcul sa largeur pour la mise en page\r\n\t\t\t\t\t\tfloat dataWidth = baseConcreteFont.getCalculatedBaseFont(true).getWidthPoint(stringData, baseConcreteFont.getCalculatedSize()); \r\n\t\t\t\t\t\tif (dataWidth > tableCellsWidths[1]) {\r\n\t\t\t\t\t\t\ttableCellsWidths[1] = dataWidth;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// Puis on met la valeur dans la seconde colonne\r\n\t\t\t\t\t\tPdfPCell stringDataCell = new PdfPCell(new Phrase (stringData, baseConcreteFont));\r\n\t\t\t\t\t\t// On enleve les bordures\r\n\t\t\t\t\t\tstringDataCell.setBorder(Rectangle.NO_BORDER);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\ttableCells.add(stringDataCell);\r\n\t\t\t\t\t\t*/\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// On ajoute le titre de la donnee\r\n\t\t\t\t\t\tpara.add(new Phrase ((String)datasIter.next(), baseConcreteFont));\r\n\t\t\t\t\t\t// Puis on ajoute la donnee\r\n\t\t\t\t\t\tpara.add(new Phrase ((String)datasIter.next(), baseConcreteFont));\r\n\t\t\t\t\t\t// Enfin on ajoute un saut de ligne\r\n\t\t\t\t\t\tpara.add(Chunk.NEWLINE);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t// Si c'est un graphe\r\n\t\t\t\t\tcase JFREECHART :\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// On obtient le PdfContentByte du PdfWriter\r\n\t\t\t\t\t\tPdfContentByte contentByte = writer.getDirectContent();\r\n\t\t\t\t\t\t// A partir de ca, on cree un PdfTemplate avec les tailles de l'instance\r\n\t\t\t PdfTemplate template = contentByte.createTemplate(chartWidth, chartHeight);\r\n\t\t\t \r\n\t\t\t // On crer l'objet Graphics2D dans le template qui en prend toute la place\r\n\t\t\t\t\t\tGraphics2D graphics2d = new PdfGraphics2D(template, chartWidth, chartHeight);\r\n\t\t\t \r\n\t\t\t\t\t\t// On crer un Rectangle2D avec la bonne taille\r\n\t\t\t java.awt.geom.Rectangle2D rectangle2d = new java.awt.geom.Rectangle2D.Double(0, 0, chartWidth,\r\n\t\t\t \t\tchartHeight);\r\n\t\t\t \r\n\t\t\t // On obtient le graphe\r\n\t\t\t JFreeChart chart = (JFreeChart) datasIter.next();\r\n\t\t\t // On le dessine dans le rectangle a l'interieur du Graphics2D\r\n\t\t\t chart.draw(graphics2d, rectangle2d);\r\n\t\t\t \r\n\t\t\t // On libere la memoire du Graphics2D\r\n\t\t\t graphics2d.dispose();\r\n\t\t\t \r\n\t\t\t // On obtient un objet Image a partir du template\r\n\t\t\t Image chartImage = Image.getInstance(template);\r\n\t\t\t \r\n\t\t\t // Que l'on peut ajouter normalement dans le Paragraphe\r\n\t\t\t para.add(chartImage);\r\n\t\t\t // Enfin on ajoute un saut de ligne\r\n\t\t\t para.add(Chunk.NEWLINE);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t// Si c'est une Image\r\n\t\t\t\t\tcase IMAGE :\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// On obtient l'objet awt.Image (different de IText.Image)\r\n\t\t\t\t\t\tjava.awt.Image image = (java.awt.Image) datasIter.next();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// On le convertit en IText.Image que l'on insere dans le paragraphe\r\n\t\t\t\t\t\tpara.add(Image.getInstance(image, null));\r\n\t\t\t\t\t\tbreak;\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t// Si le type est inconnue, on lance une Exception\r\n\t\t\t\t\t\tthrow new Exception (\"data type not handled\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//para.add(Chunk.NEWLINE);\r\n\t\t\t}\r\n\t\t\t// On definit les largeurs du tableau\r\n\t\t\t/*table.setWidths(tableCellsWidths);\r\n\t\t\t\r\n\t\t\t// On ajoute toutes les cellules\r\n\t\t\tfor (PdfPCell cell : tableCells) {\r\n\t\t\t\ttable.addCell(cell);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Enfin, on ajoute le tableau au paragraphe\r\n\t\t\tpara.add(table);\r\n\t\t\t*/\r\n\t\t\t// S'il y a une suite, on ajoute une nouvelle page\r\n\t\t\tif (datasTypeIter.hasNext()) {\r\n\t\t\t\tpara.add(Chunk.NEWPAGE);\r\n\t\t\t}\r\n\t\t\t// On ajout le paragraphe au document\r\n\t\t\tdocument.add(para);\r\n\t\t\t\r\n\t\t\t// S'il y a eu un ajout de nouvelle page, on indique au Document de prevoir une nouvelle page\r\n\t\t\tif (datasTypeIter.hasNext()) {\r\n\t\t\t\tdocument.newPage();\r\n\t\t\t}\r\n\t\r\n\t\t\t// On met a jour la ProgressBar\r\n\t\t\tcounter += progressIncrement;\r\n\t\t\tpBFrame.updateBar(counter);\r\n\t\t}\r\n\t\t\r\n\t\t// A la fin, on ferme tous les flux\r\n\t\tdocument.close();\r\n\t\twriter.close();\r\n\t\r\n\t\t// Renvoie de réussite\r\n\t\treturn true;\r\n\t}", "public void ReportPdf(Context context, String date, String name, String reportnum, List<EditText> goals, List<EditText> objectives, List<EditText> task,List<EditText> deadline,List<EditText> status ){\n PdfDocument document = new PdfDocument();\n\n // crate a page description\n PdfDocument.PageInfo pageInfo =\n new PdfDocument.PageInfo.Builder(500, 1500, 2).create();\n\n // start a page\n PdfDocument.Page page = document.startPage(pageInfo);\n\n Canvas canvas = page.getCanvas();\n\n Paint paint = new Paint();\n paint.setColor(Color.BLUE);\n canvas.drawText(\"SIMBA EDUCATION\",220,140,paint);\n paint.setColor(Color.BLACK);\n canvas.drawText(\"Report\",10,160,paint);\n canvas.drawText(\"Dated\"+\" :\"+date,10,180,paint);\n canvas.drawText(\"Name\"+\" :\"+name,10,200,paint);\n\n\n //goals label section\n canvas.drawText(\"Goals\",100,240,paint);\n\n //goals Section\n int y0 = 240;\n int y = 0 ;\n\n for (int i = 0 ;i < goals.size() ; i++){\n y = y0+20;\n y0 = y;\n\n canvas.drawText(\"-> \" + goals.get(i).getText().toString(), 10, y, paint);\n\n }\n\n //objectives label section\n canvas.drawText(\"Objectives\",100,y+10,paint);\n\n //objectives Section\n for (int i = 0 ;i < objectives.size() ; i++){\n y0 = y+20;\n y = y0;\n canvas.drawText(\"* -> \" + objectives.get(i).getText().toString(), 10, y0, paint);\n\n }\n\n\n\n //new line code\n\n status.get(0).append(\"\\n\");\n //task label section\n\n\n\n\n for (int i = 0 ;i < 1; i++){\n y = y0+30;\n y0 = y;\n canvas.drawText(\"Task\", 10, y, paint);\n canvas.drawText(\"Deadline\", 150, y, paint);\n canvas.drawText(\"Status\", 280, y, paint);\n\n }\n\n //task section\n\n for (int i = 0 ;i < task.size() ; i++){\n y0 = y+50;\n y = y0;\n\n int x =y0+40;\n int z = x+20;\n z = x;\n\n int q = 20;\n\n\n // canvas.drawText(\"Tasks\",100,y0+10,paint);\n\n canvas.drawText(task.get(i).getText().toString(), 10, y0, paint);\n canvas.drawText(deadline.get(i).getText().toString(),150,y0,paint);\n canvas.drawText(status.get(i).getText().toString(),280,y0,paint);\n\n }\n\n\n\n\n paint.setColor(Color.RED);\n\n canvas.drawText(\"Designed by Kidkudzy \", 220,1460,paint);\n\n\n\n\n\n\n\n\n\n //canvas.drawCircle(50, 50, 30, paint);\n\n document.finishPage(page);\n\n // write the document content\n File folder = new File(Environment.getExternalStorageDirectory() +\n File.separator + \"REPORTit/Reports/\");\n boolean success = true;\n if (!folder.exists()) {\n success = folder.mkdirs();\n }\n if (success) {\n // Do something on success\n } else {\n // Do something else on failure\n }\n //appending cuurent timestamp to my generated file\n\n Date_Operations dateOp = new Date_Operations();\n String currenttime = dateOp.GetCurrentTimeAndDate();\n\n\n\n String targetPdf = \"/sdcard/REPORTit/Reports/Report\"+currenttime+\".pdf\";\n //String targetPdf = \"/sdcard/REPORTit/Reports/Report.pdf\";\n File filePath = new File(targetPdf);\n try {\n document.writeTo(new FileOutputStream(filePath));\n Toast.makeText(context, \"Pdf stored in \\n \" + targetPdf, Toast.LENGTH_LONG).show();\n } catch (IOException e) {\n e.printStackTrace();\n Toast.makeText(context, \"Something wrong: \" + e.toString(),\n Toast.LENGTH_LONG).show();\n }\n document.close();\n }", "private void displayFromAsset(String assetFileName) {\n pdfFileName = assetFileName;\n\n pdfView.fromAsset(SAMPLE_FILE)\n .defaultPage(pageNumber)\n .enableSwipe(true)\n\n .swipeHorizontal(false)\n .enableAnnotationRendering(true)\n .scrollHandle(new DefaultScrollHandle(this))\n .load();\n\n }", "public static void main(String[] args) {\n PdfDocument pdf = new PdfDocument();\r\n\r\n PdfPageBase page = pdf.getPages().add();\r\n\r\n Rectangle2D rectangle2D = new Rectangle.Float();\r\n rectangle2D.setFrame(new Point2D.Double(10,10),new Dimension(100,100));\r\n\r\n PdfPopupAnnotation annotation = new PdfPopupAnnotation(rectangle2D, \"test\");\r\n annotation.setIcon(PdfPopupIcon.Help);\r\n annotation.setOpen(true);\r\n annotation.setAuthor(\"e-iceblue\");\r\n annotation.setSubject(\"subject_popup\");\r\n annotation.setColor(new PdfRGBColor(255,0,150));\r\n\r\n page.getAnnotationsWidget().add(annotation);\r\n String result = \"output/setAuthorAndSubjectForPdfPopupAnnotation.pdf\";\r\n\r\n //Save the document\r\n pdf.saveToFile(result);\r\n\t}", "public void clickOnPdfFormatButton()\n \t{\n \t\tproductRequirementsPageLocators.clickOnpdfFormatButton.click();\n\n \t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_pdf, container, false);\n\n try {\n Bundle bundle = getArguments();\n String filename = bundle.getString(\"FILE_NAME\");\n pdfView = view.findViewById(R.id.pdfView);\n File pdf = new File(filename);\n pdfView.fromFile(pdf)\n .enableDoubletap(true)\n .enableSwipe(true)\n .load();\n } catch (Exception ex) {\n Snackbar.make(getActivity().getWindow().getDecorView(), \"فایل خراب است\", Snackbar.LENGTH_LONG).show();\n }\n return view;\n }", "public VechicleLoanRequiredDoc() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "protected void previewStarted() {\n\n }", "public void crearPDF()\r\n\t{\r\n\t\tif (!new File(ruta).exists())\r\n\t\t\t(new File(ruta)).mkdirs();\r\n\r\n\t\tFile[] files = (new File(ruta)).listFiles();\r\n\t\tString ruta = \"\";\r\n\t\tif (files.length == 0) {\r\n\t\t\truta = this.ruta + huesped + \"0\" + \".pdf\";\r\n\t\t} else {\r\n\t\t\tString path = files[files.length - 1].getAbsolutePath();\r\n\t\t\tString num = path.substring(path.length() - 5, path.length() - 4);\r\n\r\n\t\t\truta = this.ruta + huesped + (Integer.parseInt(num) + 1) + \".pdf\";\r\n\t\t}\r\n\r\n\t\tSimpleDateFormat formato = new SimpleDateFormat(\"dd/MM/YYYY\");\r\n\t\t\r\n\t\tcabecera = \"\\n\"+\"Resonance Home\" + \"\\n\"+ \r\n \"Armenia, Quindio\" + \"\\n\" + \r\n \"Colombia\" + \"\\n\\n\" + \r\n\t\t\t\t\"Fecha \" + reserva.getFecha().toString() + \"\\n\\n\\n\";\r\n\t\tcontenido = \"Reserva de hospedaje: \"+ reserva.getHospedaje().getId() + \"\\n\" + \r\n \t\"Titulo del Hospedaje: \" + reserva.getHospedaje().getTitulo() + \" \" + \"\\n\" +\r\n \t\"Dirección: \" + reserva.getHospedaje().getDireccion().getDireccion() + \", \" + reserva.getHospedaje().getDireccion().toString() + \"\\n\" +\r\n\t\t\t\t\"Anfitrion: \" + nombreAnfitrion + \"\\n\" + \"Correo: \" + emailAnfitrion + \"\\n\\n\\n\" + \"Huesped: \"\r\n\t\t\t\t+ nombreHuesped + \"\\n\" +\r\n \t\"Metodo de pago: \" + reserva.getTarjeta().getNumeroT() + \" Tarjeta de credito\" + \"\\n\\n\" +\r\n \tformato.format(reserva.getFechaInicial()) + \" hasta \"+ formato.format(reserva.getFechaFinal()) +\"\\n\\n\" +\r\n \t\"Descripcion\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvalor\" + \"\\n\\n\" + \r\n\t\t\t\t\"Huespedes\" + \"\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \"\r\n\t\t\t\t+ reserva.getNumeroHuespedes() + \"\\n\" +\r\n\t\t\t\t\"Alojamiento\" + \"\t\t\t\t\t\t\t\t\t\t\t\t\t \" + precioCompleto + \"\\n\"\r\n\t\t\t\t+ \"Tarifa de limpieza\" + \"\t\t\t\t \t \" + precioLimpieza + \"\\n\" + \"Comision por servicio\"\r\n\t\t\t\t+ \"\t\t\t\t\t\" + precioComision + \"\\n\\n\";\r\n\t\tpiePagina = \"TOTAL \" + \" \" + \"$ \" + reserva.getValor() + \"\\n\" ;\r\n\t\t\r\n\t\ttry {\r\n\t\t\tFileOutputStream archivo = new FileOutputStream(ruta);\r\n\t\t\tDocument doc = new Document(PageSize.A5, 10, 10, 10, 10);\r\n\t\t\tPdfWriter.getInstance(doc, archivo);\r\n\t\t\tdoc.open();\r\n\t\t\tdoc.add(obtenerCabecera(cabecera));\r\n\t\t\tdoc.add(obtenerContenido(contenido));\r\n\t\t\tdoc.add(obtenerPiePagina(piePagina));\r\n\t\t\tdoc.close();\r\n\t\t\tthis.ruta = ruta;\r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\t\t\tSystem.out.println(\"\" + e);\r\n\t\t}\r\n\r\n\t}", "@Override\r\n\tpublic void createPages() {\r\n\t\t// Creates the model from the editor input\r\n\t\t//\r\n\t\t\r\n\t\tcreateModel();\r\n\r\n\t\t// Only creates the other pages if there is something that can be edited\r\n\t\t//\r\n\t\t// if (!getEditingDomain().getResourceSet().getResources().isEmpty()) {\r\n\t\tif (editorModel != null) {\r\n\t\t\t// Create a page for the selection tree view.\r\n\t\t\t//\r\n\r\n\t\t\t/*\r\n\t\t\t * Tree tree = new Tree(getContainer(), SWT.MULTI); selectionViewer\r\n\t\t\t * = new TreeViewer(tree); setCurrentViewer(selectionViewer);\r\n\t\t\t * \r\n\t\t\t * selectionViewer.setContentProvider(new\r\n\t\t\t * AdapterFactoryContentProvider(adapterFactory));\r\n\t\t\t * selectionViewer.setLabelProvider(new\r\n\t\t\t * AdapterFactoryLabelProvider(adapterFactory));\r\n\t\t\t * selectionViewer.setInput(editingDomain.getResourceSet());\r\n\t\t\t * selectionViewer.setSelection(new\r\n\t\t\t * StructuredSelection(editingDomain\r\n\t\t\t * .getResourceSet().getResources().get(0)), true);\r\n\t\t\t * \r\n\t\t\t * new AdapterFactoryTreeEditor(selectionViewer.getTree(),\r\n\t\t\t * adapterFactory);\r\n\t\t\t * \r\n\t\t\t * createContextMenuFor(selectionViewer);\r\n\t\t\t */\r\n\t\t\tComposite parent = getContainer();\r\n\t\t\tformToolkit = new FormToolkit(parent.getDisplay());\r\n\t\t\tform = formToolkit.createForm(parent);\r\n//\t\t\tform.setText(\"SETTINGS - View and modify setting values in \"\r\n//\t\t\t\t\t+ editorModel.getName() + \".\");\r\n\t\t\tComposite client = form.getBody();\r\n\t\t\t// client.setBackground(Display.getCurrent().getSystemColor(\r\n\t\t\t// SWT.COLOR_WHITE));\r\n\t\t\tclient.setLayout(new FillLayout());\r\n\t\t\tfeatureViewer = new FeatureViewer(client);\r\n\r\n\t\t\tfeatureViewer.setContentProvider(new FeatureViewerContentProvider(\r\n\t\t\t\t\teditingDomain.getCommandStack(), this));\r\n\t\t\tfeatureViewer.setInput(editorModel);\r\n\t\t\tfeatureViewer.setLabelProvider(new FeatureViewerLabelProvider(CrmlBuilder.getResourceModelRoot()));\r\n\t\t\t// featureViewer.refresh();\r\n\r\n\t\t\tfeatureViewer.addSelectionChangedListener(new ISelectionChangedListener(){\r\n\t\t\t\t\r\n\t\t\t\tpublic void selectionChanged(SelectionChangedEvent event) {\r\n\t\t\t\t\tIStructuredSelection selection = (IStructuredSelection) event\r\n\t\t\t\t\t.getSelection();\r\n\r\n\t\t\t\t\tsetSelection(selection);\r\n\t\t\t\t\t\r\n\t\t\t\t/*\tISelection convertSelection = convertSelectionToMainModel(selection);\r\n\t\t\t\t\tSelectionChangedEvent newEvent = new SelectionChangedEvent(\r\n\t\t\t\t\t\t\tConfmlEditor.this, convertSelection);\r\n\t\t\t\t\tfireSelection(newEvent);*/\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t});\r\n\t\t\t\r\n\t\t\tgetSite().setSelectionProvider(featureViewer);\r\n\t\t\t// create pop up menu actions\r\n\t\t\tresetToDefaults = new ResetToDefaultAction(featureViewer);\r\n\t\t\tmoveUpAction = new MoveUpAction(featureViewer,this);\r\n\t\t\tmoveDownAction = new MoveDownAction(featureViewer,this);\r\n\t\t\tduplicateAction = new DuplicateSequencesAction(featureViewer,this);\r\n\t\t\topenDataConfmlAction = new OpenDataConfmlAction(featureViewer);\r\n\t\t\topenConfmlAction = new OpenConfmlAction(featureViewer);\r\n\t\t\topenImplAction = new OpenImplementationAction(featureViewer);\r\n\t\t\t\r\n\t\t\tIWorkbenchWindow window = getSite().getWorkbenchWindow();\r\n\t\t\tresetToDefaults.init(window);\r\n\t\t\tmoveUpAction.init(window);\r\n\t\t\tmoveDownAction.init(window);\r\n\t\t\tduplicateAction.init(window);\r\n\t\t\topenDataConfmlAction.init(window);\r\n\t\t\topenConfmlAction.init(window);\r\n\t\t\topenImplAction.init(window);\r\n\t\t\tdisableActions();\r\n\t\t\t\r\n\t\t\t// create pop up menu with actions\r\n\t\t\tcontextMenuListener = contextMenuListener(form);\r\n\t\t\tmenuManager = new MenuManager();\r\n\t\t\tmenuManager.addMenuListener(contextMenuListener);\r\n\t\t\tmenuManager.setRemoveAllWhenShown(true);\r\n\t\t\tMenu menu = menuManager.createContextMenu(form);\r\n\t\t\tform.setMenu(menu);\r\n\t\t\t\r\n\t\t\tint pageIndex = addPage(form);\r\n\t\t\tsetPageText(pageIndex, getString(\"_UI_SelectionPage_label\"));\r\n\r\n\t\t\tgetSite().getShell().getDisplay().asyncExec(new Runnable() {\r\n\t\t\t\tpublic void run() {\r\n\t\t\t\t\tsetActivePage(0);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\t// featureViewer.addDirtyButtonListener(new MouseListener() {\r\n\t\t//\r\n\t\t// public void mouseDoubleClick(MouseEvent e) {\r\n\t\t//\r\n\t\t// }\r\n\t\t//\r\n\t\t// public void mouseDown(MouseEvent e) {\r\n\t\t// LeafGroup selectedGroup = getSelectedGroup();\r\n\t\t// if (selectedGroup != null\r\n\t\t// && !(selectedGroup instanceof SummaryLeafGroup)) {\r\n\t\t// UIGroup group = createDirtyForGroup(selectedGroup);\r\n\t\t// settingsViewer.setInput(group);\r\n\t\t// refreshAndHandleWidgetState();\r\n\t\t// // settingsViewer.refresh();\r\n\t\t// dirtySorting = true;\r\n\t\t// errorSorting = false;\r\n\t\t// notesSorting = false;\r\n\t\t// }\r\n\t\t// }\r\n\t\t//\r\n\t\t// public void mouseUp(MouseEvent e) {\r\n\t\t//\r\n\t\t// }\r\n\t\t//\r\n\t\t// });\r\n\r\n\t\t// Ensures that this editor will only display the page's tab\r\n\t\t// area if there are more than one page\r\n\t\t//\r\n\t\tgetContainer().addControlListener(new ControlAdapter() {\r\n\t\t\tboolean guard = false;\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void controlResized(ControlEvent event) {\r\n\t\t\t\tif (!guard) {\r\n\t\t\t\t\tguard = true;\r\n\t\t\t\t\thideTabs();\r\n\t\t\t\t\tguard = false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\r\n//\t\tgetSite().getShell().getDisplay().asyncExec(new Runnable() {\r\n//\t\t\tpublic void run() {\r\n//\t\t\t\tupdateProblemIndication();\r\n//\t\t\t}\r\n//\t\t});\r\n\t\t\r\n\t\tupdateErrors();\r\n\t}", "public JDPdf(PDFConfiguration config) {\n\t\tsuper();\n\t\tthis.configuration = config;\n\t\tthis.setTitle(ApplicationInternationalization.getString(\"PDFDialog_Title\"));\n\t\t\n\t\tsetDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);\n\t\tthis.addWindowListener(new WindowAdapter() {\n\t\t\tpublic void windowClosing(WindowEvent evt) {\n closeWin();\n\t\t\t}\n });\n\t\t\n\t\tinitGUI();\n\t}", "private void generateInvoice(String clientID, String selectedMovieTheater, String selectedMovieOriginalName, String selectedScreeningId, int seatListSize) {\n\n AdministratorSQLiteOpenHelper administratorSQLiteOpenHelper = new AdministratorSQLiteOpenHelper(this, \"CineTEC\", null, 1);\n SQLiteDatabase sqLiteDatabase = administratorSQLiteOpenHelper.getWritableDatabase();\n\n PdfDocument pdfDocument = new PdfDocument();\n\n PdfDocument.PageInfo pageInfo = new PdfDocument.PageInfo.Builder(1200, 2010, 1).create();\n PdfDocument.Page page = pdfDocument.startPage(pageInfo);\n\n Canvas canvas = page.getCanvas();\n\n Paint titlePaint = new Paint();\n\n Bitmap bitmap = BitmapFactory.decodeResource(getResources(), R.drawable.logo);\n Bitmap bitmapLogo = Bitmap.createScaledBitmap(bitmap, 580, 300, false);\n\n canvas.drawBitmap(bitmapLogo, -100, 120, titlePaint);\n\n titlePaint.setTextAlign(Paint.Align.RIGHT);\n titlePaint.setTypeface(Typeface.create(Typeface.DEFAULT, Typeface.BOLD));\n titlePaint.setTextSize(70);\n canvas.drawText(\"CineTEC\", 1150, 150, titlePaint);\n\n titlePaint.setTypeface(Typeface.create(Typeface.DEFAULT, Typeface.NORMAL));\n titlePaint.setTextSize(35);\n canvas.drawText(\"Barrio Escalante, Avenida 7, San José, Costa Rica\", 1150, 250, titlePaint);\n canvas.drawText(\"(+506) 2555 5555\", 1150, 300, titlePaint);\n canvas.drawText(\"[email protected]\", 1150, 350, titlePaint);\n canvas.drawText(\"www.cinetec.cr\", 1150, 450, titlePaint);\n\n canvas.drawLine(50, 500, 1150, 500, titlePaint);\n\n Paint paint = new Paint();\n\n // Getting client by id\n Cursor cursor = sqLiteDatabase.rawQuery(\"SELECT * FROM CLIENT WHERE ID=\" + clientID, null);\n\n String firstName = \"\";\n String lastName = \"\";\n String secLastName = \"\";\n String phoneNumber = \"\";\n\n while(cursor.moveToNext()) {\n\n firstName = cursor.getString(1);\n lastName = cursor.getString(2);\n secLastName = cursor.getString(3);\n phoneNumber = cursor.getString(6);\n\n }\n\n paint.setTextAlign(Paint.Align.LEFT);\n paint.setTextSize(35);\n canvas.drawText(\"Invoice issued for:\", 50, 550, paint);\n\n paint.setTypeface(Typeface.create(Typeface.DEFAULT, Typeface.BOLD));\n paint.setTextSize(50);\n canvas.drawText(firstName + \" \" + lastName + \" \" + secLastName, 50, 600, paint);\n\n paint.setTypeface(Typeface.create(Typeface.DEFAULT, Typeface.NORMAL));\n paint.setTextSize(35);\n canvas.drawText(\"(+506) \" + phoneNumber, 50, 700, paint);\n\n Date date = new Date();\n DateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n DateFormat timeFormat = new SimpleDateFormat(\"HH:mm\");\n\n paint.setTextAlign(Paint.Align.RIGHT);\n canvas.drawText(\"Payment Date: \" + dateFormat.format(date) + \" \" + timeFormat.format(date), 1150, 700, paint);\n canvas.drawText(\"Invoice Date: \" + dateFormat.format(date) + \" \" + timeFormat.format(date), 1150, 750, paint);\n\n paint.setStyle(Paint.Style.FILL);\n paint.setTextAlign(Paint.Align.LEFT);\n canvas.drawText(\"Movie\", 50, 850, paint);\n canvas.drawText(\"Screening\", 300, 850, paint);\n canvas.drawText(\"Theater\", 500, 850, paint);\n canvas.drawText(\"Price\", 700, 850, paint);\n canvas.drawText(\"Quantity\", 850, 850, paint);\n canvas.drawText(\"Total\", 1050, 850, paint);\n\n canvas.drawLine(50, 870, 1150, 870, paint);\n\n // Getting seats by screening id\n cursor = sqLiteDatabase.rawQuery(\"SELECT * FROM SCREENING WHERE ID=\" + selectedScreeningId, null);\n\n String hour = \"\";\n\n while(cursor.moveToNext()) {\n\n hour = cursor.getString(3);\n\n }\n\n String subTotal = Integer.toString(3097 * seatListSize);\n\n canvas.drawText(selectedMovieOriginalName, 50, 920, paint);\n canvas.drawText(hour + \":00\", 330, 920, paint);\n canvas.drawText(selectedMovieTheater, 500, 920, paint);\n canvas.drawText(\"₡ 3097\", 680, 920, paint);\n canvas.drawText(Integer.toString(seatListSize), 910, 920, paint);\n canvas.drawText(\"₡ \" + subTotal, 1040, 920, paint);\n\n canvas.drawLine(690, 1000, 1150, 1000, paint);\n\n String total = Integer.toString(3500 * seatListSize);\n\n paint.setTextAlign(Paint.Align.RIGHT);\n canvas.drawText(\"Subtotal:\", 830, 1050, paint);\n canvas.drawText(\"₡ \" + subTotal, 1150, 1050, paint);\n\n canvas.drawText(\"IVA:\", 830, 1100, paint);\n canvas.drawText(\"13 %\", 1150, 1100, paint);\n\n canvas.drawText(\"Total:\", 830, 1150, paint);\n canvas.drawText(\"₡ \" + total, 1150, 1150, paint);\n\n pdfDocument.finishPage(page);\n\n String pathFile = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS).toString();\n\n File file = new File(pathFile, \"/CineTEC_Invoice.pdf\");\n\n try {\n\n pdfDocument.writeTo(new FileOutputStream(file));\n\n } catch (FileNotFoundException e) {\n\n e.printStackTrace();\n\n } catch (IOException e) {\n\n e.printStackTrace();\n\n }\n\n pdfDocument.close();\n\n }", "public static void main(String[] args) throws IOException {\n\n int[] h = new int[26];\n\n// String[] hItems = scanner.nextLine().split(\" \");\n// scanner.skip(\"(\\r\\n|[\\n\\r\\u2028\\u2029\\u0085])?\");\n\n// for (int i = 0; i < 26; i++) {\n// int hItem = Integer.parseInt(hItems[i]);\n// h[i] = hItem;\n// }\n h[0] = 1;\n h[1] = 3;\n h[2] = 1;\n h[3] = 3;\n h[4] = 1;\n h[5] = 4;\n h[6] = 1;\n h[7] = 3;\n h[8] = 2;\n h[9] = 5;\n h[10] = 5;\n h[11] = 5;\n h[12] = 5;\n h[13] = 5;\n h[14] = 5;\n h[15] = 5;\n h[16] = 5;\n h[17] = 5;\n h[18] = 5;\n h[19] = 5;\n h[20] = 5;\n h[21] = 5;\n h[22] = 5;\n h[23] = 5;\n h[24] = 5;\n h[25] = 7;\n\n\n String word = \"zaba\";\n\n int result = designerPdfViewer(h, word);\n\n// bufferedWriter.write(String.valueOf(result));\n// bufferedWriter.newLine();\n//\n// bufferedWriter.close();\n\n// scanner.close();\n }", "private void doc() {\n if (gvBus.getDsgv()== null) {\n try {\n mhBus.docDSMH();\n gvBus.docDSGV(mhBus.getDsmh());\n } catch (Exception ex) {\n Logger.getLogger(QuanLyGiaoVienGUI.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n tbDanhSachGiaoVien.requestFocus();\n showTable(gvBus.getDsgv());\n }", "public static void main( String[] args ) throws Exception\n {\n if( args.length != 2 )\n {\n System.out.println(\"Usage: <input pdf> <output file>\");\n }\n else\n {\n \tFile file = new File(\"./\"+args[0]);\n \tPDDocument document = PDDocument.load(file);\n\n \t List<PDPage> documentPages = document.getDocumentCatalog().getAllPages();\n\n \t\n try\n {\n \tPDPage page = documentPages.get(0);\n //document.addPage(page);\n List annotations = page.getAnnotations();\n\n // Setup some basic reusable objects/constants\n // Annotations themselves can only be used once!\n\n float inch = 72;\n PDGamma colourGreen = new PDGamma();\n colourGreen.setG(1);\n PDGamma colourBlue = new PDGamma();\n colourBlue.setB(1);\n\n PDBorderStyleDictionary borderThick = new PDBorderStyleDictionary();\n borderThick.setWidth(inch/12); // 12th inch\n PDBorderStyleDictionary borderThin = new PDBorderStyleDictionary();\n borderThin.setWidth(inch/72); // 1 point\n PDBorderStyleDictionary borderULine = new PDBorderStyleDictionary();\n borderULine.setStyle(PDBorderStyleDictionary.STYLE_UNDERLINE);\n borderULine.setWidth(inch/72); // 1 point\n\n float pw = page.getMediaBox().getUpperRightX();\n float ph = page.getMediaBox().getUpperRightY();\n\n // Add the markup annotation, a highlight to PDFBox text\n PDFont font = PDType1Font.HELVETICA_BOLD;\n PDAnnotationTextMarkup txtMark = new PDAnnotationTextMarkup(PDAnnotationTextMarkup.SUB_TYPE_HIGHLIGHT);\n txtMark.setColour(colourBlue);\n txtMark.setConstantOpacity((float)0.1); // Make the highlight 20% transparent\n\n // Set the rectangle containing the markup\n\n float textWidth = (font.getStringWidth( \"PDFBox\" )/1000) * 18;\n PDRectangle position = new PDRectangle();\n position.setLowerLeftX(inch);\n position.setLowerLeftY( ph-inch-18 );\n position.setUpperRightX(72 + textWidth);\n position.setUpperRightY(ph-inch);\n txtMark.setRectangle(position);\n\n // work out the points forming the four corners of the annotations\n // set out in anti clockwise form (Completely wraps the text)\n // OK, the below doesn't match that description.\n // It's what acrobat 7 does and displays properly!\n float[] quads = new float[8];\n\n quads[0] = position.getLowerLeftX(); // x1\n quads[1] = position.getUpperRightY()-2; // y1\n quads[2] = position.getUpperRightX(); // x2\n quads[3] = quads[1]; // y2\n quads[4] = quads[0]; // x3\n quads[5] = position.getLowerLeftY()-2; // y3\n quads[6] = quads[2]; // x4\n quads[7] = quads[5]; // y5\n\n txtMark.setQuadPoints(quads);\n txtMark.setContents(\"Highlighted since it's important\");\n\n annotations.add(txtMark);\n\n\n \n\n // Now a square annotation\n\n PDAnnotationSquareCircle aSquare =\n new PDAnnotationSquareCircle( PDAnnotationSquareCircle.SUB_TYPE_SQUARE);\n aSquare.setContents(\"Square Annotation\");\n aSquare.setColour(colourGreen); // Outline in red, not setting a fill\n aSquare.setBorderStyle(borderThick);\n aSquare.setConstantOpacity((float)0.1);\n\n // Place the annotation on the page, we'll make this 1\" (72points) square\n // 3.5\" down, 1\" in from the right on the page\n\n position = new PDRectangle(); // Reuse the variable, but note it's a new object!\n position.setLowerLeftX(pw-(2*inch)); // 1\" in from right, 1\" wide\n position.setLowerLeftY(ph-(float)(3.5*inch) - inch); // 1\" height, 3.5\" down\n position.setUpperRightX(pw-inch); // 1\" in from right\n position.setUpperRightY(ph-(float)(3.5*inch)); // 3.5\" down\n aSquare.setRectangle(position);\n\n // add to the annotations on the page\n annotations.add(aSquare);\n\n\n\n document.save(args[1]);\n }\n finally\n {\n document.close();\n }\n }\n }", "private void btnReporteActionPerformed(java.awt.event.ActionEvent evt) {\n HashMap parametros = new HashMap();\n parametros.put(\"Logo\", \".//src//Imagenes//BuscarComputadora.png\");\n parametros.put(\"Titulo\", \"Resultado de Análisis\");\n parametros.put(\"Subtitulo\", \"Documentos\");\n JasperPrint jprint = EvaluacionBL.generaReporte(\"rptReporteAnalisis\", parametros, null);\n\n try {\n JRViewer jrv = new JRViewer(jprint);\n JFrame frmReporteAnalisis = new JFrame();\n frmReporteAnalisis.getContentPane().add(jrv,BorderLayout.CENTER);\n frmReporteAnalisis.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n frmReporteAnalisis.setSize(706, 478);\n\n frmReporteAnalisis.setTitle(\"Pre - View de Resultado de Análisis\");\n frmReporteAnalisis.setVisible(true);\n\n }catch(Exception e){\n System.out.println(e.getMessage());\n }\n\n }", "public documentMetadataPanel() {\n initComponents();\n }", "@Override\n\tpublic void buildPdfDocument(Map<String, Object> model, Document doc, PdfWriter writer,\n\t\t\tHttpServletRequest request, HttpServletResponse response) throws Exception {\n\t\tExportExam exportExam = (ExportExam) model.get(\"exportExam\");\n\t\tExportExam exportExam2 = (ExportExam) model.get(\"exportExam2\");\n\t\tListExam listExam = null;\n\t\tListExam listExam2 = null;\n\t\tif(exportExam!=null){\n\t\tlistExam = exportExam.listExam;\n\t\t}\n\t if(exportExam2!=null){\n\t\tlistExam2 = exportExam2.listExam;\n\t\t}\n\t\n\t\tString url = request.getRequestURL().toString();\n\t\tString baseURL = url.substring(0, url.length() - request.getRequestURI().length()) + request.getContextPath();\n\t\tString path = baseURL + \"/resources/fonts/vuArial.ttf\";\n\t\tFontFactory.register(path);\n\t\t\n\t\t//\"C:\\\\Users\\\\HennessyVox\\\\Downloads\\\\Compressed\\\\vuArial.ttf\"\n\t\t//Font fontHeader = FontFactory.getFont(FONT, BaseFont.IDENTITY_H, BaseFont.NOT_EMBEDDED);\n\t\tBaseFont base = BaseFont.createFont(path, BaseFont.IDENTITY_H, BaseFont.NOT_EMBEDDED);\n\t\t Font fontHeader = new Font(base, 10, Font.NORMAL);\n\t\t Font fontHeader2 = new Font(base, 10, Font.UNDERLINE);\n\t\t Font fontContent = new Font(base, 11, Font.NORMAL);\n\t\t Font fontAnswent = new Font(base, 11, Font.NORMAL, BaseColor.RED);\n\t\t Font fontTitle = new Font(base, 12, Font.BOLD);\n\t\t Font fontNumber = new Font(base, 11, Font.BOLD);\n\t\t//Font fontHeader = new Font(FontFamily.TIMES_ROMAN, 12, Font.NORMAL);\n\t String SchoolHeader = \"TRƯỜNG ĐẠI HỌC BÁCH KHOA TP HCM\";\n\t\t\n\t // Get faulty info.\n\t\n\t \n\t\ttry {\n\t\t\t\n\t\t\t if(listExam!=null){\n\t\t\t\t System.out.println(\"=============================================================\");\n\t\t\t\t int CoutExam = 1;\n\t\t\t String FacultyHeader = exportExam.getFaulty().toUpperCase();\n\t\t\t \t\n\t\t\t /// String FacultyHeader = \"KHOA KHOA HỌC VÀ KỸ THUẬT MÁY TÍNH\";\n\t\t\t String InfoStudentHeader1 = \"Họ Tên : ..........................\";\n\t\t\t String InfoStudentHeader2 = \"MSSV : ..........................\";\n\t\t\t PdfPTable table = new PdfPTable(new float[] { 75, 25 });\n\t\t\t table.setWidthPercentage(100);\n\t\t\t \n\t\t\t table.addCell(getCell(new Paragraph(SchoolHeader,fontHeader), PdfPCell.ALIGN_LEFT));\n\t\t\t \n\t\t\t table.addCell(getCell(new Paragraph(InfoStudentHeader1,fontHeader), PdfPCell.ALIGN_RIGHT));\n\t\t\t table.addCell(getCell(new Paragraph(FacultyHeader,fontHeader2), PdfPCell.ALIGN_LEFT));\n\t\t\t table.addCell(getCell(new Paragraph(InfoStudentHeader2,fontHeader), PdfPCell.ALIGN_RIGHT));\n\t\t\t table.setSpacingAfter(10);\n\t\t\t doc.add(table);\n\t\t\t \n\t\t\t // ADD title\n\t\t\t //Font fontTitle = FontFactory.getFont(FONT, BaseFont.IDENTITY_H, BaseFont.EMBEDDED);\n\t\t\t //String titleExam = \"ĐỀ KIỂM TRA CUỐI KÌ 2017\";\n\t\t\t // System.out.println(exportExam.getExamName().toUpperCase());\n\t\t\t String titleExam = exportExam.getExamName().toUpperCase();\n\t\t\t \n\t\t\t Paragraph pHeader = new Paragraph(titleExam,fontTitle);\n\t\t\t pHeader.setAlignment(Paragraph.ALIGN_CENTER);\n\t\t\t doc.add(pHeader);\n\t\t\t \n\t\t\t String SubjectExam = \"Môn Thi : \" +exportExam.getSubjectName();\n\t\t\t String CodeExam = \"Mã đề : \" + exportExam.getCode();\n\t\t\t String timeExam = \"Thời gian : \" + exportExam.getTime();\n\t\t\t Font fontSubject = new Font(base, 10, Font.NORMAL);\n\t\t\t Font fontExam = new Font(base, 10, Font.NORMAL);\n\t\t\t \n\t\t\t PdfPTable table2 = new PdfPTable(2);\n\t\t\t table2.setWidthPercentage(80);\n\t\t\t //System.out.println(Charset.forName(\"UTF-8\").encode(SchoolHeader));\n\n\t\t\t table2.addCell(getCell(new Paragraph(SubjectExam,fontSubject), PdfPCell.ALIGN_LEFT));\n\t\t\t \n\t\t\t table2.addCell(getCell(new Paragraph(timeExam,fontExam), PdfPCell.ALIGN_RIGHT));\n\t\t\t table2.addCell(getCell(new Paragraph(CodeExam,fontExam), PdfPCell.ALIGN_LEFT));\n\t\t\t table2.addCell(getCell(new Paragraph(\"\",fontHeader), PdfPCell.ALIGN_RIGHT));\n\t\t\t table2.setSpacingBefore(5);\n\t\t\t doc.add(table2);\n\t\t\t \n\t\t\t String noteExam = exportExam.getNoteExam();\n\t\t\t Font fontNote = new Font(base, 8, Font.ITALIC);\n\t\t\t \n\t\t\t Paragraph pNote = new Paragraph(noteExam, fontNote);\n\t\t\t pNote.setAlignment(Paragraph.ALIGN_MIDDLE);\n\t\t\t doc.add(pNote);\n\t\t\t PdfPTable table3 = new PdfPTable(1);\n\t\t\t table3.setSpacingBefore(5);\n\t\t\t table3.setWidthPercentage(80);\n\t\t\t Font finalExam = new Font(base, 10, Font.NORMAL);\n\t\t\t table3.addCell(getCell(new Paragraph(\"*****\",finalExam), PdfPCell.ALIGN_CENTER));\n\t\t\t doc.add(table3);\n\t\t\t\t \n\t\t\t for(int i = 0; i < listExam.blockRootQuestion.size() ; i++){\n\t\t\t\t System.out.println(\"++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\");\n\t\t\t\t \n\t\t\t\t List listBlock = new List(List.UNORDERED);\n\t\t\t\t listBlock.setAutoindent(false);\n\t\t\t\t // listBlock.setSymbolIndent(20);\t\n\t\t\t\t listBlock.add(new ListItem(new Paragraph(listExam.blockRootQuestion.get(i).rootQuestionBlock.getContent(),fontContent)));\n\t\t\t System.out.println(\"########### Block NAME \" +listExam.blockRootQuestion.get(i).rootQuestionBlock.getContent());\n\t\t\t\t \n\t\t\t\t doc.add(listBlock);\n\t\t\t \n\t\t\t \n\t\t \tSystem.out.println(\"########### SIZE QUESTION \" +listExam.blockRootQuestion.get(i).questionList.size());\n \n\t\t\t for(int j = 0 ; j < listExam.blockRootQuestion.get(i).questionList.size(); j++){\t\n\t\t\t \tSystem.out.println(\"########### QUESTION NAME \" +listExam.blockRootQuestion.get(i).questionList.get(j).question.getContent());\n\t\t\t\t\t\t\n\t\t\t \t List listQuestion = new List(List.UNORDERED);\n\t\t\t\t\t listQuestion.setListSymbol(\"\");\n\t\t\t \t\n\t\t\t \t//SingleQuestion questionPDF = null;\n\t\t\t \t//questionPDF = listExam.blockRootQuestion.get(i).questionList.get(j);\n\t\t\t \tStringBuilder sb = new StringBuilder();\n\t\t\t\t\t\tsb.append(\"Câu \");\n\t\t\t\t\t\tsb.append(CoutExam);\n\t\t\t\t\t\tsb.append(\". \");\n\t\t\t\t\t\tString strI = sb.toString();\n\t\t\t \t//strI = new Paragraph(strI, fontNumber);\n\t\t\t \t//listQuestion.setPostSymbol(strI);\n\t\t\t \tSystem.out.println(strI);\n\t\t\t listQuestion.add(new ListItem(new Paragraph(strI + listExam.blockRootQuestion.get(i).questionList.get(j).question.getContent(), fontContent)));\n\t\t\t listQuestion.setIndentationLeft(10);\n\t\t\t doc.add(listQuestion);\n\t\t\t List listAnswerPDF = new List(List.ORDERED, List.ALPHABETICAL);\n\t\t\t for(int k = 0; k < listExam.blockRootQuestion.get(i).questionList.get(j).answerList.size(); k++){\n\t\t\t\t\t System.out.println(\"########### Answer NAME \" +listExam.blockRootQuestion.get(i).questionList.get(j).answerList.get(k).getContent());\n\t\t\t \t listAnswerPDF.add(new ListItem(new Paragraph(listExam.blockRootQuestion.get(i).questionList.get(j).answerList.get(k).getContent(), fontContent))); \t \n\t\t\t }\n\t\t\t listAnswerPDF.setIndentationLeft(25);\n\t\t\t doc.add(listAnswerPDF);\n\t\t\t CoutExam++;\n\t\t\t }\n\t\t\t doc.add( Chunk.NEWLINE ); \n\t\t\t }\n\t\t\t // doc.close();\n\t\t\t listExam =null;\n\t\t\t }\n\t\t\t /*\n\t\t\t * Export Answer\n\t\t\t */\n\t\t\telse if(listExam2!=null){\n\t\t\t\t int CoutExam = 1;\n\t\t\t\t System.out.println(\"#######################################################\");\n\t\t\t\t String FacultyHeader = exportExam2.getFaulty().toUpperCase();\n\t\t\t \t\n\t\t\t\t /// String FacultyHeader = \"KHOA KHOA HỌC VÀ KỸ THUẬT MÁY TÍNH\";\n\t\t\t\t String InfoStudentHeader1 = \"Họ Tên : ..........................\";\n\t\t\t\t String InfoStudentHeader2 = \"MSSV : ..........................\";\n\t\t\t\t PdfPTable table = new PdfPTable(new float[] { 75, 25 });\n\t\t\t\t table.setWidthPercentage(100);\n\t\t\t\t \n\t\t\t\t table.addCell(getCell(new Paragraph(SchoolHeader,fontHeader), PdfPCell.ALIGN_LEFT));\n\t\t\t\t \n\t\t\t\t table.addCell(getCell(new Paragraph(InfoStudentHeader1,fontHeader), PdfPCell.ALIGN_RIGHT));\n\t\t\t\t table.addCell(getCell(new Paragraph(FacultyHeader,fontHeader2), PdfPCell.ALIGN_LEFT));\n\t\t\t\t table.addCell(getCell(new Paragraph(InfoStudentHeader2,fontHeader), PdfPCell.ALIGN_RIGHT));\n\t\t\t\t table.setSpacingAfter(10);\n\t\t\t\t doc.add(table);\n\t\t\t\t \n\t\t\t\t // ADD title\n\t\t\t\t //Font fontTitle = FontFactory.getFont(FONT, BaseFont.IDENTITY_H, BaseFont.EMBEDDED);\n\t\t\t\t //String titleExam = \"ĐỀ KIỂM TRA CUỐI KÌ 2017\";\n\t\t\t\t // System.out.println(exportExam.getExamName().toUpperCase());\n\t\t\t\t String titleExam = exportExam2.getExamName().toUpperCase();\n\t\t\t\t \n\t\t\t\t Paragraph pHeader = new Paragraph(titleExam,fontTitle);\n\t\t\t\t pHeader.setAlignment(Paragraph.ALIGN_CENTER);\n\t\t\t\t doc.add(pHeader);\n\t\t\t\t \n\t\t\t\t String SubjectExam = \"Môn Thi : \" +exportExam2.getSubjectName();\n\t\t\t\t String CodeExam = \"Mã đề : \" + exportExam2.getCode();\n\t\t\t\t String timeExam = \"Thời gian : \" + exportExam2.getTime();\n\t\t\t\t Font fontSubject = new Font(base, 10, Font.NORMAL);\n\t\t\t\t Font fontExam = new Font(base, 10, Font.NORMAL);\n\t\t\t\t \n\t\t\t\t PdfPTable table2 = new PdfPTable(2);\n\t\t\t\t table2.setWidthPercentage(80);\n\t\t\t\t //System.out.println(Charset.forName(\"UTF-8\").encode(SchoolHeader));\n\n\t\t\t\t table2.addCell(getCell(new Paragraph(SubjectExam,fontSubject), PdfPCell.ALIGN_LEFT));\n\t\t\t\t \n\t\t\t\t table2.addCell(getCell(new Paragraph(timeExam,fontExam), PdfPCell.ALIGN_RIGHT));\n\t\t\t\t table2.addCell(getCell(new Paragraph(CodeExam,fontExam), PdfPCell.ALIGN_LEFT));\n\t\t\t\t table2.addCell(getCell(new Paragraph(\"\",fontHeader), PdfPCell.ALIGN_RIGHT));\n\t\t\t\t table2.setSpacingBefore(5);\n\t\t\t\t doc.add(table2);\n\t\t\t\t \n\t\t\t\t String noteExam = exportExam2.getNoteExam();\n\t\t\t\t Font fontNote = new Font(base, 8, Font.ITALIC);\n\t\t\t\t \n\t\t\t\t Paragraph pNote = new Paragraph(noteExam, fontNote);\n\t\t\t\t pNote.setAlignment(Paragraph.ALIGN_MIDDLE);\n\t\t\t\t doc.add(pNote);\n\t\t\t\t PdfPTable table3 = new PdfPTable(1);\n\t\t\t\t table3.setSpacingBefore(5);\n\t\t\t\t table3.setWidthPercentage(80);\n\t\t\t\t Font finalExam = new Font(base, 10, Font.NORMAL);\n\t\t\t\t table3.addCell(getCell(new Paragraph(\"*****\",finalExam), PdfPCell.ALIGN_CENTER));\n\t\t\t\t doc.add(table3);\n\t\t\t\t\t \n\t\t\t\t\t \n\t\t\t\t for(int i = 0; i < listExam2.blockRootQuestion.size() ; i++){\n\t\t\t\t\t System.out.println(\"++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\");\n\t\t\t\t\t \n\t\t\t\t\t List listBlock = new List(List.UNORDERED);\n\t\t\t\t\t listBlock.setAutoindent(false);\n\t\t\t\t\t // listBlock.setSymbolIndent(20);\t\n\t\t\t\t\t listBlock.add(new ListItem(new Paragraph(listExam2.blockRootQuestion.get(i).rootQuestionBlock.getContent(),fontContent)));\n\t\t\t\t System.out.println(\"########### Block NAME \" +listExam2.blockRootQuestion.get(i).rootQuestionBlock.getContent());\n\t\t\t\t\t \n\t\t\t\t\t doc.add(listBlock);\n\t\t\t\t \n\t\t\t\t \n\t\t\t \tSystem.out.println(\"########### SIZE QUESTION \" +listExam2.blockRootQuestion.get(i).questionList.size());\n\t \n\t\t\t\t for(int j = 0 ; j < listExam2.blockRootQuestion.get(i).questionList.size(); j++){\t\n\t\t\t\t \tSystem.out.println(\"########### QUESTION NAME \" +listExam2.blockRootQuestion.get(i).questionList.get(j).question.getContent());\n\t\t\t\t\t\t\t\n\t\t\t\t \t List listQuestion = new List(List.UNORDERED);\n\t\t\t\t\t\t listQuestion.setListSymbol(\"\");\n\t\t\t\t \t\n\t\t\t\t \t//SingleQuestion questionPDF = null;\n\t\t\t\t \t//questionPDF = listExam.blockRootQuestion.get(i).questionList.get(j);\n\t\t\t\t \tStringBuilder sb = new StringBuilder();\n\t\t\t\t\t\t\tsb.append(\"Câu \");\n\t\t\t\t\t\t\tsb.append(CoutExam);\n\t\t\t\t\t\t\tsb.append(\". \");\n\t\t\t\t\t\t\tString strI = sb.toString();\n\t\t\t\t \t//strI = new Paragraph(strI, fontNumber);\n\t\t\t\t \t//listQuestion.setPostSymbol(strI);\n\t\t\t\t \tSystem.out.println(strI);\n\t\t\t\t listQuestion.add(new ListItem(new Paragraph(strI + listExam2.blockRootQuestion.get(i).questionList.get(j).question.getContent(), fontContent)));\n\t\t\t\t listQuestion.setIndentationLeft(10);\n\t\t\t\t doc.add(listQuestion);\n\t\t\t\t List listAnswerPDF = new List(List.ORDERED, List.ALPHABETICAL);\n\t\t\t\t for(int k = 0; k < listExam2.blockRootQuestion.get(i).questionList.get(j).answerList.size(); k++){\n\t\t\t\t\t\t System.out.println(\"########### Answer NAME \" +listExam2.blockRootQuestion.get(i).questionList.get(j).answerList.get(k).getContent());\n\t\t\t\t\t\t if(listExam2.blockRootQuestion.get(i).questionList.get(j).answerList.get(k).getIssolution())\n\t\t\t\t \t listAnswerPDF.add(new ListItem(new Paragraph(listExam2.blockRootQuestion.get(i).questionList.get(j).answerList.get(k).getContent(), fontAnswent)));\n\t\t\t\t \t else \n\t\t\t\t\t \tlistAnswerPDF.add(new ListItem(new Paragraph(listExam2.blockRootQuestion.get(i).questionList.get(j).answerList.get(k).getContent(), fontContent)));\n\t\t\t\t }\n\t\t\t\t listAnswerPDF.setIndentationLeft(25);\n\t\t\t\t doc.add(listAnswerPDF);\n\t\t\t\t CoutExam++;\n\t\t\t\t }\n\t\t\t\t doc.add( Chunk.NEWLINE );\n\t\t\t\t }\n\t\t\t\t doc.close();\n\t\t\t\t listExam2=null;\n\t\t\t }\n\t\t\t model.clear();\n\t\t\t doc.close();\n\t\t\t exportExam = null;\n\t\t\t// exportExam2 = null;\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"ERROR \"+ e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public DataViewerImpl() {\n\t\tsuper();\n\t}", "private void generatePdf(){\n drawContent();\n\n itemList.clear(); //clear the temporary list of number of items\n\n // clear the form\n AddedItem = 0;\n\n EditText[] AllText = { pay1, pay2, detail1, detail2, item, qty, price, Remark };\n for (EditText e: AllText)\n e.setText(\"\");\n\n items = findViewById(R.id.itemAdded);\n items.setText(\"Item Added: \");\n }", "public void generatePDF(String directory, String nameOfTheDocument) throws Exception{\n\t\t\n\t\t//Create empty document (instance of Document classe from Apose.Words)\n\t\tDocument doc = new Document();\n\t\t\n\t\t//Every word document have section, so now we are creating section\n\t\tSection section = new Section(doc);\n\t\tdoc.appendChild(section);\n\t\t\n\t\tsection.getPageSetup().setPaperSize(PaperSize.A4);\n\t\tsection.getPageSetup().setHeaderDistance (35.4); // 1.25 cm\n\t\tsection.getPageSetup().setFooterDistance (35.4); // 1.25 cm\n\t\t\n\t\t//Crating the body of section\n\t\tBody body = new Body(doc);\n\t\tsection.appendChild(body);\n\t\t\n\t\t//Crating paragraph\n\t\tParagraph paragraph = new Paragraph(doc);\n\t\t\n\t\tparagraph.getParagraphFormat().setStyleName(\"Heading 1\");\n\t\tparagraph.getParagraphFormat().setAlignment(ParagraphAlignment.CENTER);\n\t\t//Crating styles\n\t\tStyle style = doc.getStyles().add(StyleType.PARAGRAPH, \"Style1\");\n\t\tstyle.getFont().setSize(24);\n\t\tstyle.getFont().setBold(true);\n\t\tstyle.getFont().setColor(Color.RED);\n\t\t//paragraph.getParagraphFormat().setStyle(style);\n\t\tbody.appendChild(paragraph);\n\t\t\n\t\tStyle styleForIntroduction = doc.getStyles().add(StyleType.PARAGRAPH, \"Style2\");\n\t\tstyle.getFont().setSize(40);\n\t\tstyle.getFont().setBold(false);\n\t\tstyle.getFont().setItalic(true);\n\t\tstyle.getFont().setColor(Color.CYAN);\n\t\t\n\t\tStyle styleForText = doc.getStyles().add(StyleType.PARAGRAPH, \"Style3\");\n\t\tstyle.getFont().setSize(15);\n\t\tstyle.getFont().setBold(false);\n\t\tstyle.getFont().setItalic(false);\n\t\tstyle.getFont().setColor(Color.BLACK);\n\t\t\n\t\t//Crating run of text\n\t\tRun textRunHeadin1 = new Run(doc);\n\t\ttry {\n\t\t\ttextRunHeadin1.setText(\"Probni test fajl\" + \"\\r\\r\");\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tparagraph.appendChild(textRunHeadin1);\n\t\t\n\t\t\n\t\t//Creating paragraph1 for every question in list\n\t\tfor (Question question : questions) {\n\t\t\t\n\t\t\t\n\t\t\t\t//Paragraph for Instruction Question\n\t\t\t\tParagraph paragraphForInstruction = new Paragraph(doc);\n\t\t\t\tparagraphForInstruction.getParagraphFormat().setStyleName(\"Heading 1\");\n\t\t\t\tparagraphForInstruction.getParagraphFormat().setAlignment(ParagraphAlignment.LEFT);\n\t\t\t\tparagraphForInstruction.getParagraphFormat().setStyle(styleForIntroduction);\n\t\t\t\tparagraphForInstruction.getParagraphFormat().setStyleName(\"Heading 3\");\n\t\t\t\t\n\t\t\t\tRun runIntroduction = new Run(doc);\n\t\t\t\t\n\t\t\t\trunIntroduction.getFont().setColor(Color.BLUE);\n\t\t\t\ttry {\n\t\t\t\t\trunIntroduction.setText(((Question)question).getTextInstructionForQuestion()+\"\\r\");\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\tparagraphForInstruction.appendChild(runIntroduction);\n\t\t\t\tbody.appendChild(paragraphForInstruction);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t//Paragraph for Question\n\t\t\t\tParagraph paragraphForQuestion = new Paragraph(doc);\n\t\t\t\tparagraphForQuestion.getParagraphFormat().setStyleName(\"Heading 1\");\n\t\t\t\tparagraphForQuestion.getParagraphFormat().setAlignment(ParagraphAlignment.LEFT);\n\t\t\t\tparagraphForQuestion.getParagraphFormat().setStyle(styleForText);\n\t\t\t\tparagraphForQuestion.getParagraphFormat().setStyleName(\"Normal\");\n\t\t\t\t\n\t\t\t\tRun runText = new Run(doc);\n\t\t\t\tif(question instanceof QuestionBasic){\n\t\t\t\t\t\n\t\t\t\t\ttry {\n\t\t\t\t\t\trunText.setText(((QuestionBasic)question).toStringForDocument()+\"\\r\");\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\t\n\t\t\t\t\n\t\t\t\tif(question instanceof QuestionFillTheBlank){\n\t\t\t\t\t\n\t\t\t\t\ttry {\n\t\t\t\t\t\trunText.setText(((QuestionFillTheBlank)question).toStringForDocument());\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\t\n\t\t\t\t\n\t\t\t\tif(question instanceof QuestionMatching){\n\t\t\t\t\t\n\t\t\t\t\ttry {\n\t\t\t\t\t\trunText.setText(((QuestionMatching)question).toStringForDocument());\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\t\n\t\t\t\t\n\t\t\t\tif(question instanceof QuestionTrueOrFalse){\n\t\t\t\t\t\n\t\t\t\t\ttry {\n\t\t\t\t\t\trunText.setText(((QuestionTrueOrFalse)question).toStringForDocument());\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\t\n\t\t\t\t\n\t\t\t\tparagraphForQuestion.appendChild(runText);\n\t\t\t\tbody.appendChild(paragraphForQuestion);\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\tdoc.save(directory + nameOfTheDocument +\".pdf\");\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jbtPrint = new javax.swing.JButton();\n jbtClose = new javax.swing.JButton();\n jScrPanMain = new javax.swing.JScrollPane();\n jEdpan_facture = new javax.swing.JEditorPane();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"Résumé de la facture\");\n\n jbtPrint.setText(\"Imprimer\");\n jbtPrint.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jbtPrintActionPerformed(evt);\n }\n });\n\n jbtClose.setText(\"Fermer\");\n jbtClose.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jbtCloseActionPerformed(evt);\n }\n });\n\n jEdpan_facture.setContentType(\"text/html\"); // NOI18N\n jScrPanMain.setViewportView(jEdpan_facture);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(250, Short.MAX_VALUE)\n .addComponent(jbtPrint)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jbtClose)\n .addGap(252, 252, 252))\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jScrPanMain)\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jScrPanMain, javax.swing.GroupLayout.DEFAULT_SIZE, 620, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jbtPrint)\n .addComponent(jbtClose))\n .addContainerGap())\n );\n\n pack();\n }", "public void onCreatePdf(View view) {\n\n\t\t// Images used in the PDF should be JPG images, stored as Assets\n\t\tbyte[] stickerBmp = Pdf.getAssetJpgBytes(this, JPG_SRC);\n\n\t\t// Create a new PDF\n\t\tPdf pdf = new Pdf();\n\t\tStream stream = pdf.addPage();\n\n\t\t// Add some text at a specific position\n\t\t// The coordinate system is setup where the origin (0,0) is at the\n\t\t// bottom left corner\n\t\tstream.addText(\"This is a test pdf.\", PDF_HEADER_FONT_SIZE, 100, 50, RED);\n\n\t\t// Add some text with a different color\n\t\tstream.addText(userText.getText().toString(), BLUE, PDF_HEADER_FONT_SIZE);\n\n\t\t// Add a line with a color and a width\n\t\tstream.addHorizontalLine(GREEN, LINE_WIDTH);\n\n\t\t// Add an image at a specific coordinate (top right corner of the page)\n\t\tstream.addBmpImage(Pages.PAGE_WIDTH - (int) Stream.MARGIN_HORIZONTAL - JPG_WIDTH, Pages.PAGE_HEIGHT - (int) Stream.MARGIN_VERTICAL - JPG_HEIGHT,\n\t\t\t\tJPG_WIDTH, JPG_HEIGHT, stickerBmp);\n\n\t\t// Get the raw PDF bytes like this:\n\t\tbyte[] pdfBytes = pdf.getPDF();\n\n\t\t// Optionally, write the bytes out to a file:\n\t\tFile file = Pdf.writePdf(this, pdfBytes, PDF_PDFNAME);\n\n\t\t// Show the PDF in an external viewer\n\t\tIntent intent = new Intent(Intent.ACTION_VIEW);\n\t\tUri uri = Uri.fromFile(file);\n\t\tintent.setDataAndType(uri, MIME_TYPE_PDF);\n\t\tstartActivity(intent);\n\n\t}", "public static void main(String[] args) throws IOException {\n\t PDDocument document = new PDDocument();\n\n\t //Creating a blank page\n\t PDPage blankPage = new PDPage();\n\t \n\t //Adding the blank page to the document\n\t document.addPage( blankPage );\n\n\t //Creating the PDDocumentInformation object \n\t PDDocumentInformation pdd = document.getDocumentInformation();\n\n\t //Setting the author of the document\n\t pdd.setAuthor(\"Tutorialspoint\");\n\t \n\t // Setting the title of the document\n\t pdd.setTitle(\"Sample document\"); \n\t \n\t //Setting the creator of the document \n\t pdd.setCreator(\"PDF Examples\"); \n\t \n\t //Setting the subject of the document \n\t pdd.setSubject(\"Example document\"); \n\t \n\t //Setting the created date of the document \n\t Calendar date = new GregorianCalendar();\n\t date.set(2015, 11, 5); \n\t pdd.setCreationDate(date);\n\t //Setting the modified date of the document \n\t date.set(2016, 6, 5); \n\t pdd.setModificationDate(date); \n\t \n\t //Setting keywords for the document \n\t pdd.setKeywords(\"sample, first example, my pdf\"); \n\t \n\t \n\t PDPageContentStream contentStream = new PDPageContentStream(document, blankPage);\n\t \n\t //Begin the Content stream \n\t contentStream.beginText(); \n\t \n\t //Setting the font to the Content stream \n\t contentStream.setFont(PDType1Font.TIMES_ROMAN, 12);\n\n\t //Setting the position for the line \n\t contentStream.newLineAtOffset(25, 500);\n\n\t String text = \"This is the sample document and we are adding content to it.\";\n\n\t //Adding text in the form of string \n\t contentStream.showText(text); \n\n\t //Ending the content stream\n\t contentStream.endText();\n\n\t System.out.println(\"Content added\");\n\n\t //Closing the content stream\n\t contentStream.close();\n\t \n\t //Saving the document \n\t document.save(\"doc_attributes.pdf\");\n\n\t System.out.println(\"Properties added successfully \");\n\t \n\t //Closing the document\n\t document.close();\n\t}", "@SuppressWarnings(\"unchecked\")\r\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\r\n private void initComponents() {\r\n\r\n jPanel1 = new javax.swing.JPanel()\r\n {\r\n public void paintComponent(Graphics g)\r\n {\r\n ImageIcon img=new ImageIcon(\"nurse.jpg\");\r\n Image i=img.getImage();\r\n\r\n g.drawImage(i, 0, 0, this.getSize().width, this.getSize().height,this);\r\n }\r\n\r\n };\r\n jPanel2 = new javax.swing.JPanel();\r\n jLabel3 = new javax.swing.JLabel();\r\n jLabel5 = new javax.swing.JLabel();\r\n jLabel6 = new javax.swing.JLabel();\r\n jLabel2 = new javax.swing.JLabel();\r\n jLabel1 = new javax.swing.JLabel();\r\n foodItemNameTextField = new javax.swing.JTextField();\r\n foodSupplierOrganizationComboBox = new javax.swing.JComboBox();\r\n quantityRequiredTextField = new javax.swing.JTextField();\r\n jScrollPane1 = new javax.swing.JScrollPane();\r\n descriptionTextArea = new javax.swing.JTextArea();\r\n requestTestJButton = new javax.swing.JButton();\r\n saveAsPDFButton = new javax.swing.JButton();\r\n backJButton = new javax.swing.JButton();\r\n jSeparator1 = new javax.swing.JSeparator();\r\n\r\n setLayout(new java.awt.BorderLayout());\r\n\r\n jPanel1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\r\n\r\n jPanel2.setBackground(new java.awt.Color(255, 255, 255,150));\r\n jPanel2.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\r\n\r\n jLabel3.setText(\"Description\");\r\n jPanel2.add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(50, 310, 90, -1));\r\n\r\n jLabel5.setText(\"Quantity Required\");\r\n jPanel2.add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 190, -1, -1));\r\n\r\n jLabel6.setText(\"Food Supplier Organization\");\r\n jPanel2.add(jLabel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 150, -1, -1));\r\n\r\n jLabel2.setText(\"Food Item Name\");\r\n jPanel2.add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 110, 102, -1));\r\n\r\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\r\n jLabel1.setText(\"Request A Food Supplier Panel\");\r\n jPanel2.add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 40, -1, -1));\r\n\r\n foodItemNameTextField.setEnabled(false);\r\n jPanel2.add(foodItemNameTextField, new org.netbeans.lib.awtextra.AbsoluteConstraints(240, 110, 290, -1));\r\n\r\n foodSupplierOrganizationComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\r\n jPanel2.add(foodSupplierOrganizationComboBox, new org.netbeans.lib.awtextra.AbsoluteConstraints(240, 150, 288, -1));\r\n\r\n quantityRequiredTextField.addKeyListener(new java.awt.event.KeyAdapter() {\r\n public void keyTyped(java.awt.event.KeyEvent evt) {\r\n quantityRequiredTextFieldKeyTyped(evt);\r\n }\r\n });\r\n jPanel2.add(quantityRequiredTextField, new org.netbeans.lib.awtextra.AbsoluteConstraints(240, 190, 290, -1));\r\n\r\n descriptionTextArea.setColumns(20);\r\n descriptionTextArea.setRows(5);\r\n jScrollPane1.setViewportView(descriptionTextArea);\r\n\r\n jPanel2.add(jScrollPane1, new org.netbeans.lib.awtextra.AbsoluteConstraints(250, 280, 170, 76));\r\n\r\n requestTestJButton.setText(\"Send Request\");\r\n requestTestJButton.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n requestTestJButtonActionPerformed(evt);\r\n }\r\n });\r\n jPanel2.add(requestTestJButton, new org.netbeans.lib.awtextra.AbsoluteConstraints(200, 470, -1, -1));\r\n\r\n saveAsPDFButton.setText(\"Save As PDF\");\r\n saveAsPDFButton.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n saveAsPDFButtonActionPerformed(evt);\r\n }\r\n });\r\n jPanel2.add(saveAsPDFButton, new org.netbeans.lib.awtextra.AbsoluteConstraints(360, 470, -1, -1));\r\n\r\n backJButton.setText(\"Back\");\r\n backJButton.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n backJButtonActionPerformed(evt);\r\n }\r\n });\r\n jPanel2.add(backJButton, new org.netbeans.lib.awtextra.AbsoluteConstraints(470, 40, -1, -1));\r\n jPanel2.add(jSeparator1, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 80, 510, 20));\r\n\r\n jPanel1.add(jPanel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(70, 60, 550, 590));\r\n\r\n add(jPanel1, java.awt.BorderLayout.CENTER);\r\n }", "@Override\n\tpublic void createPartControl(Composite parent) {\n\t\tTree tree = new Tree(parent, SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL); //create a tree \n\t\ttree.setHeaderVisible(true);//show header in interface\n\t\ttree.setLinesVisible(true); //show lines in interface\n\t\tviewer = new TreeViewer(tree);\n\n\t\t//first column\n\t\tTreeColumn column1 = new TreeColumn(tree, SWT.LEFT);\n\t\tcolumn1.setText(\"Project\");\n\t\tcolumn1.setWidth(500);\n\n\t\t//second column\n\t\tTreeColumn column2 = new TreeColumn(tree, SWT.LEFT);\n\t\tcolumn2.setText(\"DUAs Coverage\");\n\t\tcolumn2.setWidth(200);\n\n\t\tlong start = System.currentTimeMillis();\n\t\t\n\t\tviewer.setContentProvider(new CoverageContentProvider());\n\t\tviewer.setLabelProvider(new CoverageLabelProvider());\n\t\tviewer.setInput(new CoverageInput());\t\t// provide the input to the ContentProvider\n\t\tlogger.info(\"Time to show view: \" + (System.currentTimeMillis() - start) / 1000.0);\n\t\t\n\t\t//change selection event\n\t\tviewer.addSelectionChangedListener(new ISelectionChangedListener() {\n\n\t\t\t@Override\n\t\t\tpublic void selectionChanged(SelectionChangedEvent event) {\n\t\t\t\tIStructuredSelection thisSelection = (IStructuredSelection) event.getSelection();\n\t\t\t\tObject selectedNode = thisSelection.getFirstElement();\n\t\t\t\t\n\t\t\t\tif(selectedNode instanceof TreeDua){\n\t\t\t\t\tfinal ICompilationUnit cu = ((TreeDua) selectedNode).getCompilationUnit();\n\t\t\t\t\ttry {\n\t\t\t\t\t\t//remove old markers\n\t\t\t\t\t\tCodeMarkerFactory.removeMarkers(CodeMarkerFactory.findMarkers(cu.getUnderlyingResource()));\n\t\t\t\t\t\t//get the first and last char of definition line to draw\n\t\t\t\t\t\tint[] defOffset = parserLine(cu.getSource(),((TreeDua) selectedNode).getDef());\n\t\t\t\t\t\t//get the first and last char of c-use line to draw\n\t\t\t\t\t\tint[] useOffset = parserLine(cu.getSource(), ((TreeDua) selectedNode).getUse());\n\t\t\t\t\t\t//get the first and last char of target line to draw\n\t\t\t\t\t\tint[] targetOffset = null;\n\t\t\t\t\t\tif(((TreeDua) selectedNode).getTarget() != 1){\n\t\t\t\t\t\t\ttargetOffset = parserLine(cu.getSource(),((TreeDua) selectedNode).getTarget());\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//create new markers based on selected DUA\n\t\t\t\t\t\tfinal TreeDua dua = (TreeDua) selectedNode;\n\t\t\t\t\t\tfinal String covered = dua.isCovered()? \"true\" : \"false\";\n\t\t\t\t\t\tCodeMarkerFactory.mark(cu.getUnderlyingResource(), defOffset, useOffset, targetOffset, covered);\n\t\t\t\t\t\tsetFocus();\n\t\t\t\t\t}\n\t\t\t\t\tcatch (Exception e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t});\n\n\t\t//double click event to expand state\n\t\tviewer.addDoubleClickListener(new IDoubleClickListener() {\n\t\t\t@Override\n\t\t\tpublic void doubleClick(DoubleClickEvent event) {\n\t\t\t\tTreeViewer viewer = (TreeViewer) event.getViewer();\n\t\t\t\tIStructuredSelection thisSelection = (IStructuredSelection) event\n\t\t\t\t\t\t.getSelection();\n\t\t\t\tObject selectedNode = thisSelection.getFirstElement();\n\n\t\t\t\tif(selectedNode instanceof TreeMethod \n\t\t\t\t\t\t|| selectedNode instanceof TreeClass \n\t\t\t\t\t\t|| selectedNode instanceof TreePackage \n//\t\t\t\t\t\t|| selectedNode instanceof TreeFolder \n\t\t\t\t\t\t|| selectedNode instanceof TreeProject){\n\n\t\t\t\t\tviewer.setExpandedState(selectedNode,\n\t\t\t\t\t\t\t!viewer.getExpandedState(selectedNode));\n\t\t\t\t}\n\t\t\t}\n\n\t\t});\n\t\t\n\t\t//Listener to closing view in workbench shutdown\n\t\tPlatformUI.getWorkbench().addWorkbenchListener(new IWorkbenchListener() {\n\t\t\t@Override\n\t\t\tpublic boolean preShutdown(IWorkbench workbench, boolean forced) {\n\t\t\t\tcloseViews();\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void postShutdown(IWorkbench workbench) {\n\t\t\t}\n\t\t});\n\n\t}", "@Override\r\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\tprgDlg.setMax(nTotalPage);\r\n\t\t\t\t\t\t\tprgDlg.setProgress(nPage);\r\n\t\t\t\t\t\t}", "public void onLayoutFinished(PrintDocumentInfo info, boolean changed) {\n /* do nothing - stub */\n }", "@SuppressWarnings(\"unchecked\")\r\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\r\n private void initComponents() {\r\n\r\n jPanel1 = new javax.swing.JPanel();\r\n noTitleRadio = new javax.swing.JRadioButton();\r\n jLabel1 = new javax.swing.JLabel();\r\n onjishiTitleRadio = new javax.swing.JRadioButton();\r\n onkikaRadio = new javax.swing.JRadioButton();\r\n jLabel3 = new javax.swing.JLabel();\r\n greetingsChk = new javax.swing.JCheckBox();\r\n jPanel2 = new javax.swing.JPanel();\r\n jLabel2 = new javax.swing.JLabel();\r\n printRadio = new javax.swing.JRadioButton();\r\n noPrintRadio = new javax.swing.JRadioButton();\r\n jPanel3 = new javax.swing.JPanel();\r\n jLabel4 = new javax.swing.JLabel();\r\n pdfBtn = new javax.swing.JButton();\r\n pdfFld = new javax.swing.JTextField();\r\n\r\n jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(\"診療情報提供書\"));\r\n\r\n noTitleRadio.setText(\"無し(先生のみ)\");\r\n\r\n jLabel1.setText(\"宛先敬称:\");\r\n\r\n onjishiTitleRadio.setText(\"御侍史\");\r\n\r\n onkikaRadio.setText(\"御机下\");\r\n\r\n jLabel3.setText(\"PDF印刷時の挨拶文:\");\r\n\r\n greetingsChk.setText(\"入れる\"); // NOI18N\r\n\r\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\r\n jPanel1.setLayout(jPanel1Layout);\r\n jPanel1Layout.setHorizontalGroup(\r\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel1Layout.createSequentialGroup()\r\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel1Layout.createSequentialGroup()\r\n .addGap(69, 69, 69)\r\n .addComponent(jLabel1)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(onkikaRadio)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(onjishiTitleRadio)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(noTitleRadio))\r\n .addGroup(jPanel1Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addComponent(jLabel3)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(greetingsChk)))\r\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\r\n );\r\n jPanel1Layout.setVerticalGroup(\r\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel1Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(onkikaRadio)\r\n .addComponent(onjishiTitleRadio)\r\n .addComponent(noTitleRadio)\r\n .addComponent(jLabel1))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\r\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(jLabel3)\r\n .addComponent(greetingsChk))\r\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\r\n );\r\n\r\n jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder(\"プレイン文書\"));\r\n\r\n jLabel2.setText(\"患者氏名印刷:\");\r\n\r\n printRadio.setText(\"有り\");\r\n\r\n noPrintRadio.setText(\"無し\");\r\n\r\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\r\n jPanel2.setLayout(jPanel2Layout);\r\n jPanel2Layout.setHorizontalGroup(\r\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel2Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addComponent(jLabel2)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\r\n .addComponent(printRadio)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(noPrintRadio)\r\n .addContainerGap(205, Short.MAX_VALUE))\r\n );\r\n jPanel2Layout.setVerticalGroup(\r\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel2Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(jLabel2)\r\n .addComponent(printRadio)\r\n .addComponent(noPrintRadio))\r\n .addContainerGap())\r\n );\r\n\r\n jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder(\"紹介状等のPDF/OpenDocumentの出力先\"));\r\n\r\n jLabel4.setText(\"出力先:\");\r\n\r\n pdfBtn.setText(\"設 定\");\r\n\r\n javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);\r\n jPanel3.setLayout(jPanel3Layout);\r\n jPanel3Layout.setHorizontalGroup(\r\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel3Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel3Layout.createSequentialGroup()\r\n .addComponent(jLabel4)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(pdfFld, javax.swing.GroupLayout.DEFAULT_SIZE, 366, Short.MAX_VALUE)\r\n .addContainerGap())\r\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()\r\n .addComponent(pdfBtn)\r\n .addGap(173, 173, 173))))\r\n );\r\n jPanel3Layout.setVerticalGroup(\r\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel3Layout.createSequentialGroup()\r\n .addGap(15, 15, 15)\r\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(jLabel4)\r\n .addComponent(pdfFld, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(pdfBtn)\r\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\r\n );\r\n\r\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\r\n this.setLayout(layout);\r\n layout.setHorizontalGroup(\r\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\r\n .addComponent(jPanel3, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addComponent(jPanel1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\r\n .addContainerGap())\r\n );\r\n layout.setVerticalGroup(\r\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\r\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\r\n .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addContainerGap(15, Short.MAX_VALUE))\r\n );\r\n }", "public void btnGenerarReporteDestruccionPDF() {\n try {\n byte[] bytesFile;\n bytesFile = null;\n Map parameters = new HashMap();\n\n parameters.put(\"rfc\", produccionCigarrosHelper.getTabacalera().getRfc());\n parameters.put(\"incidencia\", \"Desperdicios y destrucción\");\n parameters.put(\"fecha\", new Date());\n parameters.put(\"folio\", desperdiciosHelper.getIdAcuseRecibo());\n parameters.put(\"cadenaOriginal\", firmaFormHelper.getCadenaOriginal());\n parameters.put(\"selloDigital\", selloDigital.generaSelloDigital(firmaFormHelper.getCadenaOriginal()));\n parameters.put(\"codigo_qr\", QRCodeUtil.getQr(desperdiciosHelper.getIdAcuseRecibo(), produccionCigarrosHelper.getTabacalera().getRfc(), Constantes.CINCUENTA, Constantes.CINCUENTA, Constantes.ARCHIVO_PNG));\n\n if (reporterService != null) {\n bytesFile = reporterService.makeReport(ReportesTabacosEnum.REPORTE_ACUSE_DESPERDICIO_DESTRUCCION, ARCHIVO_PDF, parameters, null);\n if (bytesFile != null) {\n generaDocumento(bytesFile, MIMETypesEnum.PDF, \"AcuseDescargapDesperdiciosDestruccion_\" + desperdiciosHelper.getIdAcuseRecibo(), FileExtensionEnum.PDF);\n }\n }\n } catch (ReporterJasperException e) {\n super.addErrorMessage(ERROR, \"Error al generar el acuse\");\n LOGGER.error(\"Error al generar el Reporte en PDF\" + e.getMessage());\n } catch (QRCodeUtilException ex) {\n super.addErrorMessage(ERROR, \"Error al generar el acuse\");\n LOGGER.error(\"Error al generar el Reporte en PDF\" + ex.getMessage());\n } catch (SelloDigitalException ex) {\n super.addErrorMessage(ERROR, \"Error al generar el acuse\");\n LOGGER.error(\"Error al generar el Reporte en PDF\" + ex.getMessage());\n }\n\n }", "public void gerarRelatorioPaciente() {\n Document documento = new Document(PageSize.A4.rotate());\n \n //Defina as margens\n documento.setMargins(40f, 40f, 150f, 40f);\n \n try {\n CabecalhoRodapeEvento inserircabecalho = new CabecalhoRodapeEvento();\n \n //Cria um arquivo relatorio.pdf com o documento\n PdfWriter.getInstance(documento, new FileOutputStream(\"relatorioPaciente.pdf\")).setPageEvent(inserircabecalho);\n \n documento.open();\n \n Paragraph tituloDoRelatorio = new Paragraph(new Phrase(20F, \"RELATÓRIO DOS PACIENTES CADASTRADOS\",\n FontFactory.getFont(FontFactory.HELVETICA_BOLD, 15F)));\n tituloDoRelatorio.setAlignment(Element.ALIGN_CENTER);\n\n documento.add(tituloDoRelatorio);\n \n Table tabelaPacientes = new Table(7);\n tabelaPacientes.setBorder(10);\n tabelaPacientes.setBorderWidth(2);\n tabelaPacientes.setBorderColor(Color.black);\n tabelaPacientes.setPadding(2);\n //tabelaPacientes.setSpacing(0);\n tabelaPacientes.setWidth(100f);\n tabelaPacientes.setWidths(new float[]{5f, 10f, 25f, 7f, 13f, 28f, 12f});\n \n Paragraph paragrafoId = new Paragraph(new Phrase(12F, \"ID\",\n FontFactory.getFont(FontFactory.HELVETICA_BOLD, 10F)));\n paragrafoId.setAlignment(Element.ALIGN_CENTER);\n \n Paragraph paragrafoCpf = new Paragraph(new Phrase(12F, \"CPF\",\n FontFactory.getFont(FontFactory.HELVETICA_BOLD, 10F)));\n paragrafoCpf.setAlignment(Element.ALIGN_CENTER);\n \n Paragraph paragrafoNome = new Paragraph(new Phrase(12F, \"NOME\",\n FontFactory.getFont(FontFactory.HELVETICA_BOLD, 10F)));\n paragrafoNome.setAlignment(Element.ALIGN_CENTER);\n \n Paragraph paragrafoSexo = new Paragraph(new Phrase(12F, \"SEXO\",\n FontFactory.getFont(FontFactory.HELVETICA_BOLD, 10F)));\n paragrafoSexo.setAlignment(Element.ALIGN_CENTER);\n \n Paragraph paragrafoTelefone = new Paragraph(new Phrase(12F, \"TELEFONE\",\n FontFactory.getFont(FontFactory.HELVETICA_BOLD, 10F)));\n paragrafoTelefone.setAlignment(Element.ALIGN_CENTER);\n \n Paragraph paragrafoEndereco = new Paragraph(new Phrase(12F, \"ENDEREÇO\",\n FontFactory.getFont(FontFactory.HELVETICA_BOLD, 10F)));\n paragrafoEndereco.setAlignment(Element.ALIGN_CENTER);\n \n Paragraph paragrafoDataNascimento = new Paragraph(new Phrase(12F, \"DATA NASCIMENTO\",\n FontFactory.getFont(FontFactory.HELVETICA_BOLD, 10F)));\n paragrafoDataNascimento.setAlignment(Element.ALIGN_CENTER);\n \n Cell celulaPacienteId = new Cell(paragrafoId);\n Cell celulaPacienteCpf = new Cell(paragrafoCpf);\n Cell celulaPacienteNome = new Cell(paragrafoNome);\n Cell celulaPacienteSexo = new Cell(paragrafoSexo);\n Cell celulaPacienteTelefone = new Cell(paragrafoTelefone);\n Cell celulaPacienteEndereco = new Cell(paragrafoEndereco);\n Cell celulaPacienteDataNascimento = new Cell(paragrafoDataNascimento);\n \n celulaPacienteId.setHeader(true);\n tabelaPacientes.addCell(celulaPacienteId);\n tabelaPacientes.addCell(celulaPacienteCpf);\n tabelaPacientes.addCell(celulaPacienteNome);\n tabelaPacientes.addCell(celulaPacienteSexo);\n tabelaPacientes.addCell(celulaPacienteTelefone);\n tabelaPacientes.addCell(celulaPacienteEndereco);\n tabelaPacientes.addCell(celulaPacienteDataNascimento);\n \n //definindo alinhamento, cores do cabeçalho da tabela\n for (int i = 0; i < tabelaPacientes.getColumns(); i++) {\n\n Cell celula = (Cell) tabelaPacientes.getElement(0, i);\n celula.setHorizontalAlignment(Element.ALIGN_CENTER);\n celula.setBackgroundColor(Color.yellow);\n celula.setBorderColor(Color.black);\n\n }\n \n for(Paciente paciente : listarTodosPacientes()) {\n paragrafoId = new Paragraph(new Phrase(15F, \"\"+ paciente.getId(),\n FontFactory.getFont(FontFactory.HELVETICA, 9F)));\n paragrafoId.setAlignment(Element.ALIGN_CENTER);\n celulaPacienteId = new Cell(paragrafoId);\n celulaPacienteId.setBorderColor(Color.black);\n celulaPacienteId.setHorizontalAlignment(Element.ALIGN_CENTER);\n tabelaPacientes.addCell(celulaPacienteId);\n \n paragrafoCpf = new Paragraph(new Phrase(15F, \"\"+ paciente.getCpf(),\n FontFactory.getFont(FontFactory.HELVETICA, 9F)));\n paragrafoCpf.setAlignment(Element.ALIGN_CENTER);\n celulaPacienteCpf = new Cell(paragrafoCpf);\n celulaPacienteCpf.setBorderColor(Color.black);\n celulaPacienteCpf.setHorizontalAlignment(Element.ALIGN_CENTER);\n tabelaPacientes.addCell(celulaPacienteCpf);\n \n paragrafoNome = new Paragraph(new Phrase(15F, \"\"+ paciente.getNome(),\n FontFactory.getFont(FontFactory.HELVETICA, 9F)));\n paragrafoNome.setAlignment(Element.ALIGN_CENTER);\n celulaPacienteNome = new Cell(paragrafoNome);\n celulaPacienteNome.setBorderColor(Color.black);\n celulaPacienteNome.setHorizontalAlignment(Element.ALIGN_LEFT);\n tabelaPacientes.addCell(celulaPacienteNome);\n \n paragrafoSexo = new Paragraph(new Phrase(15F, \"\"+ paciente.getSexo(),\n FontFactory.getFont(FontFactory.HELVETICA, 9F)));\n paragrafoSexo.setAlignment(Element.ALIGN_CENTER);\n celulaPacienteSexo = new Cell(paragrafoSexo);\n celulaPacienteSexo.setBorderColor(Color.black);\n celulaPacienteSexo.setHorizontalAlignment(Element.ALIGN_CENTER);\n tabelaPacientes.addCell(celulaPacienteSexo);\n \n paragrafoTelefone = new Paragraph(new Phrase(15F, paciente.getTelefone(),\n FontFactory.getFont(FontFactory.HELVETICA, 9F)));\n paragrafoTelefone.setAlignment(Element.ALIGN_CENTER);\n celulaPacienteTelefone = new Cell(paragrafoTelefone);\n celulaPacienteTelefone.setBorderColor(Color.black);\n celulaPacienteTelefone.setHorizontalAlignment(Element.ALIGN_CENTER);\n tabelaPacientes.addCell(celulaPacienteTelefone);\n \n paragrafoEndereco = new Paragraph(new Phrase(15F, paciente.getEndereco(),\n FontFactory.getFont(FontFactory.HELVETICA, 9F)));\n paragrafoEndereco.setAlignment(Element.ALIGN_CENTER);\n celulaPacienteEndereco = new Cell(paragrafoEndereco);\n celulaPacienteEndereco.setBorderColor(Color.black);\n celulaPacienteEndereco.setHorizontalAlignment(Element.ALIGN_CENTER);\n tabelaPacientes.addCell(celulaPacienteEndereco);\n \n paragrafoDataNascimento = new Paragraph(new Phrase(15F, \"\"+ sdf.format(paciente.getDataDeNascimento()),\n FontFactory.getFont(FontFactory.HELVETICA, 9F)));\n paragrafoDataNascimento.setAlignment(Element.ALIGN_CENTER);\n celulaPacienteDataNascimento = new Cell(paragrafoDataNascimento);\n celulaPacienteDataNascimento.setBorderColor(Color.black);\n celulaPacienteDataNascimento.setHorizontalAlignment(Element.ALIGN_CENTER);\n tabelaPacientes.addCell(celulaPacienteDataNascimento);\n \n } \n \n documento.add(tabelaPacientes);\n \n Runtime.getRuntime().exec(new String[]{\"cmd.exe\", \"/c\", \"start\", \"relatorioPaciente.pdf\"});\n \n documento.close();\n \n } catch (DocumentException ex) {\n System.out.println(ex);\n } catch (FileNotFoundException ex) {\n System.out.println(ex);\n } catch (IOException ex) {\n System.out.println(ex);\n } catch (SQLException ex) {\n System.out.println(ex);\n }\n }", "final void initViewer()\n {\n if (viewer.getViewContext().getStartInStandaloneWindow() == true)\n {\n \n JFrame frame=null; \n // JFrame\n {\n frame = new JFrame();\n frame.setSize(new Dimension(800, 600));\n GuiSettings.placeToCenter(frame);\n }\n\n if (viewer.haveOwnScrollPane() == false)\n {\n // embed viewer in scrollPane \n JScrollPane scrollPane = new JScrollPane();\n scrollPane.setViewportView(viewer.getViewComponent());\n frame.add(scrollPane);\n }\n else\n {\n frame.add(viewer.getViewComponent());\n }\n \n // Viewer\n // viewer.setFrame(frame); \n viewer.initViewer();\n \n ViewerFrameListener listener = new ViewerFrameListener(frame,this);\n frame.addWindowListener(listener);\n frame.addComponentListener(listener); \n \n frame.pack();\n\n frame.setVisible(true);\n // viewer.setFrame(frame); \n }\n else\n {\n viewer.initViewer();\n }\n }", "public void buildDocument() {\n/* 248 */ setDocument(getDocumentLoader().getDocument(getClass()), \"text/html\", \"ISO-8859-1\");\n/* */ \n/* 250 */ syncAccessMethods();\n/* */ }", "public void buildDocument() {\n/* 310 */ setDocument(getDocumentLoader().getDocument(getClass()), \"text/html\", \"ISO-8859-1\");\n/* */ \n/* 312 */ syncAccessMethods();\n/* */ }", "public void recallPaint() { advw.showResearchersPanel();}", "public interface PdfProvider {\n /**\n * Create a thumbnail image for a given PDF file.\n *\n * @param inputFile Input file.\n * @param outputStream OutputStream, to which the thumbnail is written. Important: Stream is not closed!\n * @param format Output file format given as a MIME type.\n * @param width Width in pixel.\n * @param height Height in pixel.\n * @param quality Quality factor for output compression.\n * @param speedHint Speed factor for conversion.\n * @throws Exception on any error opening the file, converting the file or writing to the output.\n */\n\n void createThumbNail(File inputFile, OutputStream outputStream,\n String format, int width, int height,\n ConversionCommand.CompressionQuality quality,\n ConversionCommand.SpeedHint speedHint) throws Exception;\n\n PdfDocumentInformation getDocumentInformation(File pdfFile) throws Exception;\n\n int countPages(File pdfFile) throws Exception;\n\n void createPdfFromImages(File[] imageFiles, PdfDocumentInformation documentInformation, File outputPdfFile) throws Exception;\n\n void createPdfFromImages(byte[][] imageFileByteArrays, PdfDocumentInformation documentInformation,\n int width, int height, OutputStream outputStream) throws Exception;\n}", "protected void postConstruct(final Composite parent) {\n\t\t// create viewer and canvas only after toolkit has been initialized\n\t\tfxCanvas = createCanvas(parent);\n\n\t\t// // hook viewer controls and selection forwarder\n\t\t// hookViewers();\n\t\t//\n\t\t// // activate domain\n\t\t// activate();\n\t}", "@Override\r\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\tString Btn = e.getActionCommand();\r\n\t\t\tif(Btn.equals(\"Find\"))\r\n\t\t\t{\r\n\t\t\t\tFrame frame = getFrame();\r\n\t\t\t\tJFileChooser chooser = new JFileChooser();\r\n\t\t\t\tchooser.setDialogTitle(\"Find PDF\");\r\n\t\t\t\tFileNameExtensionFilter filter = new FileNameExtensionFilter(\"PDF files\",\"PDF\");\r\n\t\t\t\tchooser.setFileFilter(filter);\r\n\t\t\t\tchooser.setAcceptAllFileFilterUsed(false);\r\n\t\t\t\tint ret = chooser.showOpenDialog(frame);\t\t\t\t\r\n\t\t\t\tif (ret != JFileChooser.APPROVE_OPTION) {\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\ttry {\r\n\t\t\t\t\tpdfSouce = chooser.getSelectedFile();\r\n\t\t\t\t\tFile file = new File(pdfSouce.getAbsolutePath());\r\n\t\t\t\t\tRandomAccessFile raf = new RandomAccessFile(file, \"r\");\r\n\t\t\t\t\tFileChannel channel = raf.getChannel();\r\n\t\t\t\t\tMappedByteBuffer buf = channel.map(FileChannel.MapMode.READ_ONLY, 0, channel.size());\r\n\t\t\t\t\tpdffile = new PDFFile(buf);\r\n\t\t\t\t\tString pdfInfo = pdffile.getStringMetadata(\"Producer\");\r\n\t\t\t\t\tif(pdfInfo.contains(\"PowerPoint\"))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(this, \"PPT形式のPDFは変更できません。\");\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tinputLocation.setEnabled(true);\r\n\t\t\t\t\t\tinputLocation.setText(pdfSouce.getAbsolutePath());\r\n\t\t\t\t}\r\n\t\t\t\t} \r\n\t\t\t\tcatch (IOException e1) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse if(Btn.equals(\"Out\"))\r\n\t\t\t{\r\n\t\t\t\timagePath = pdfSouce.getAbsolutePath();\r\n\t\t\t\ttry\r\n\t\t\t\t{\r\n\t\t\t\t\tif(inputLocation.getText()==null)\r\n\t\t\t\t\t{\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t\texportsDir = chooseDir(imagePath, this, true); \r\n\t\t\t\t\tif (exportsDir == null)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\toutLocation.setEnabled(true);\r\n\t\t\t\t\toutLocation.setText(exportsDir.getAbsolutePath());\r\n\t\t\t\t}\r\n\t\t\t\tfinally\r\n\t\t\t\t{\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\r\n\t\t\t\ttry {\r\n\t\t\t\t\tFile file = new File(pdfSouce.getAbsolutePath());\r\n\t\t\t\t\tRandomAccessFile raf = new RandomAccessFile(file, \"r\");\r\n\t\t\t\t\tFileChannel channel = raf.getChannel();\r\n\t\t\t\t\tMappedByteBuffer buf = channel.map(FileChannel.MapMode.READ_ONLY, 0, channel.size());\r\n\t\t\t\t\tpdffile = new PDFFile(buf);\r\n\r\n\r\n\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// draw the first page to an image\r\n\t\t\t\tfor(int i = 1 ;i<=pdffile.getNumPages();i++ )\r\n\t\t\t\t{\t\t\t\t\r\n\t\t\t\t\tPDFPage page = pdffile.getPage(i);\r\n\r\n\t\t\t\t\t//get the width and height for the doc at the default zoom \r\n\t\t\t\t\tRectangle rect = new Rectangle(0,0,\r\n\t\t\t\t\t\t\t(int)page.getBBox().getWidth(),\r\n\t\t\t\t\t\t\t(int)page.getBBox().getHeight());\r\n\r\n\t\t\t\t\t//generate the image\r\n\r\n\t\t\t\t\tImage image = page.getImage(\r\n\t\t\t\t\t\t\trect.width, rect.height, //width & height\r\n\t\t\t\t\t\t\trect, // clip rect\r\n\t\t\t\t\t\t\tnull, // null for the ImageObserver\r\n\t\t\t\t\t\t\ttrue, // fill background with white\r\n\t\t\t\t\t\t\ttrue // block until drawing is done\r\n\t\t\t\t\t\t\t);\r\n\r\n\t\t\t\t\tint w = image.getWidth(null);\r\n\t\t\t\t\tint h = image.getHeight(null);\r\n\t\t\t\t\tBufferedImage bi = new BufferedImage(w, h, BufferedImage.TYPE_INT_RGB);\r\n\t\t\t\t\tGraphics2D g2 = bi.createGraphics();\r\n\t\t\t\t\tg2.drawImage(image, 0, 0, null);\r\n\t\t\t\t\tg2.dispose();\r\n\t\t\t\t\ttry\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tImageIO.write(bi, \"PNG\", new File(exportsDir.getAbsolutePath(),pdfSouce.getName().replaceAll(\".pdf\", \"_\")+i+\".png\"));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcatch(IOException ioe)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.println(\"write: \" + ioe.getMessage());\r\n\t\t\t\t\t} \r\n\t\t\t\t}\r\n\t\t\t\tCompress zip = new Compress();\r\n\t\t\t\tzip.Zip();\r\n\t\t\t\tDelfiles();\r\n\t\t\t\tJOptionPane.showMessageDialog(this, \"Files were exported to:\\n\" + exportsDir.getAbsolutePath());\r\n\t\t\t}\r\n\t\t}", "protected SourceViewer createViewer(Composite parent) {\n \t\t\tSourceViewer viewer= new SourceViewer(parent, null, null, false, SWT.BORDER | SWT.V_SCROLL | SWT.H_SCROLL);\n \t\t\tSourceViewerConfiguration configuration= new SourceViewerConfiguration() {\n \t\t\t\tpublic IContentAssistant getContentAssistant(ISourceViewer sourceViewer) {\n \n \t\t\t\t\tContentAssistant assistant= new ContentAssistant();\n \t\t\t\t\tassistant.enableAutoActivation(true);\n \t\t\t\t\tassistant.enableAutoInsert(true);\n \t\t\t\t\tassistant.setContentAssistProcessor(fTemplateProcessor, IDocument.DEFAULT_CONTENT_TYPE);\n \t\t\t\t\treturn assistant;\n \t\t\t\t}\n \t\t\t};\n \t\t\tviewer.configure(configuration);\n \t\t\treturn viewer;\n \t\t}", "public void gerarRelatorioMedico() {\n Document documento = new Document(PageSize.A4.rotate());\n \n //Defina as margens\n documento.setMargins(40f, 40f, 150f, 40f);\n \n try {\n CabecalhoRodapeEvento inserircabecalho = new CabecalhoRodapeEvento();\n \n //Cria um arquivo relatorio.pdf com o documento\n PdfWriter.getInstance(documento, new FileOutputStream(\"relatorioMedico.pdf\")).setPageEvent(inserircabecalho);\n \n documento.open();\n \n Paragraph tituloDoRelatorio = new Paragraph(new Phrase(20F, \"RELATÓRIO DOS MÉDICOS CADASTRADOS\",\n FontFactory.getFont(FontFactory.HELVETICA_BOLD, 15F)));\n tituloDoRelatorio.setAlignment(Element.ALIGN_CENTER);\n\n documento.add(tituloDoRelatorio);\n \n Table tabelaMedicos = new Table(6);\n tabelaMedicos.setBorder(10);\n tabelaMedicos.setBorderWidth(2);\n tabelaMedicos.setBorderColor(Color.black);\n tabelaMedicos.setPadding(2);\n //tabelaMedicos.setSpacing(0);\n tabelaMedicos.setWidth(100f);\n tabelaMedicos.setWidths(new float[]{10f, 30f, 20f, 10f, 15f, 15f});\n \n Paragraph paragrafoCrm = new Paragraph(new Phrase(12F, \"CRM\",\n FontFactory.getFont(FontFactory.HELVETICA_BOLD, 10F)));\n paragrafoCrm.setAlignment(Element.ALIGN_CENTER);\n \n Paragraph paragrafoNome = new Paragraph(new Phrase(12F, \"NOME\",\n FontFactory.getFont(FontFactory.HELVETICA_BOLD, 10F)));\n paragrafoNome.setAlignment(Element.ALIGN_CENTER);\n \n Paragraph paragrafoEspecialidade = new Paragraph(new Phrase(12F, \"ESPECIALIDADE\",\n FontFactory.getFont(FontFactory.HELVETICA_BOLD, 10F)));\n paragrafoEspecialidade.setAlignment(Element.ALIGN_CENTER);\n \n Paragraph paragrafoSexo = new Paragraph(new Phrase(12F, \"SEXO\",\n FontFactory.getFont(FontFactory.HELVETICA_BOLD, 10F)));\n paragrafoSexo.setAlignment(Element.ALIGN_CENTER);\n \n Paragraph paragrafoSalario = new Paragraph(new Phrase(12F, \"SALARIO\",\n FontFactory.getFont(FontFactory.HELVETICA_BOLD, 10F)));\n paragrafoSalario.setAlignment(Element.ALIGN_CENTER);\n \n Paragraph paragrafoDataNascimento = new Paragraph(new Phrase(12F, \"DATA NASCIMENTO\",\n FontFactory.getFont(FontFactory.HELVETICA_BOLD, 10F)));\n paragrafoDataNascimento.setAlignment(Element.ALIGN_CENTER);\n \n Cell celulaMedicoCrm = new Cell(paragrafoCrm);\n Cell celulaMedicoNome = new Cell(paragrafoNome);\n Cell celulaMedicoEspecialidade = new Cell(paragrafoEspecialidade);\n Cell celulaMedicoSexo = new Cell(paragrafoSexo);\n Cell celulaMedicoSalario = new Cell(paragrafoSalario);\n Cell celulaMedicoDataNascimento = new Cell(paragrafoDataNascimento);\n \n celulaMedicoCrm.setHeader(true);\n tabelaMedicos.addCell(celulaMedicoCrm);\n tabelaMedicos.addCell(celulaMedicoNome);\n tabelaMedicos.addCell(celulaMedicoEspecialidade);\n tabelaMedicos.addCell(celulaMedicoSexo);\n tabelaMedicos.addCell(celulaMedicoSalario);\n tabelaMedicos.addCell(celulaMedicoDataNascimento);\n \n //definindo alinhamento, cores do cabeçalho da tabela\n for (int i = 0; i < tabelaMedicos.getColumns(); i++) {\n\n Cell celula = (Cell) tabelaMedicos.getElement(0, i);\n celula.setHorizontalAlignment(Element.ALIGN_CENTER);\n celula.setBackgroundColor(Color.yellow);\n celula.setBorderColor(Color.black);\n\n }\n \n for(Medico medico : listarTodosMedicos()) {\n paragrafoCrm = new Paragraph(new Phrase(15F, \"\"+ medico.getCRM(),\n FontFactory.getFont(FontFactory.HELVETICA, 9F)));\n paragrafoCrm.setAlignment(Element.ALIGN_CENTER);\n celulaMedicoCrm = new Cell(paragrafoCrm);\n celulaMedicoCrm.setBorderColor(Color.black);\n celulaMedicoCrm.setHorizontalAlignment(Element.ALIGN_CENTER);\n tabelaMedicos.addCell(celulaMedicoCrm);\n \n paragrafoNome = new Paragraph(new Phrase(15F, \"\"+ medico.getNome(),\n FontFactory.getFont(FontFactory.HELVETICA, 9F)));\n paragrafoNome.setAlignment(Element.ALIGN_CENTER);\n celulaMedicoNome = new Cell(paragrafoNome);\n celulaMedicoNome.setBorderColor(Color.black);\n celulaMedicoNome.setHorizontalAlignment(Element.ALIGN_LEFT);\n tabelaMedicos.addCell(celulaMedicoNome);\n \n paragrafoEspecialidade = new Paragraph(new Phrase(15F, \"\"+ medico.getEspecialidade(),\n FontFactory.getFont(FontFactory.HELVETICA, 9F)));\n paragrafoEspecialidade.setAlignment(Element.ALIGN_CENTER);\n celulaMedicoEspecialidade = new Cell(paragrafoEspecialidade);\n celulaMedicoEspecialidade.setBorderColor(Color.black);\n celulaMedicoEspecialidade.setHorizontalAlignment(Element.ALIGN_CENTER);\n tabelaMedicos.addCell(celulaMedicoEspecialidade);\n \n paragrafoSexo = new Paragraph(new Phrase(15F, \"\"+ medico.getSexo(),\n FontFactory.getFont(FontFactory.HELVETICA, 9F)));\n paragrafoSexo.setAlignment(Element.ALIGN_CENTER);\n celulaMedicoSexo = new Cell(paragrafoSexo);\n celulaMedicoSexo.setBorderColor(Color.black);\n celulaMedicoSexo.setHorizontalAlignment(Element.ALIGN_CENTER);\n tabelaMedicos.addCell(celulaMedicoSexo);\n \n paragrafoSalario = new Paragraph(new Phrase(15F, \"R$ \"+ medico.getSalario(),\n FontFactory.getFont(FontFactory.HELVETICA, 9F)));\n paragrafoSalario.setAlignment(Element.ALIGN_CENTER);\n celulaMedicoSalario = new Cell(paragrafoSalario);\n celulaMedicoSalario.setBorderColor(Color.black);\n celulaMedicoSalario.setHorizontalAlignment(Element.ALIGN_CENTER);\n tabelaMedicos.addCell(celulaMedicoSalario);\n \n paragrafoDataNascimento = new Paragraph(new Phrase(15F, \"\"+ sdf.format(medico.getDataDeNascimento()),\n FontFactory.getFont(FontFactory.HELVETICA, 9F)));\n paragrafoDataNascimento.setAlignment(Element.ALIGN_CENTER);\n celulaMedicoDataNascimento = new Cell(paragrafoDataNascimento);\n celulaMedicoDataNascimento.setBorderColor(Color.black);\n celulaMedicoDataNascimento.setHorizontalAlignment(Element.ALIGN_CENTER);\n tabelaMedicos.addCell(celulaMedicoDataNascimento);\n \n } \n \n documento.add(tabelaMedicos);\n \n Runtime.getRuntime().exec(new String[]{\"cmd.exe\", \"/c\", \"start\", \"relatorioMedico.pdf\"});\n \n documento.close();\n \n } catch (DocumentException ex) {\n System.out.println(ex);\n } catch (FileNotFoundException ex) {\n System.out.println(ex);\n } catch (IOException ex) {\n System.out.println(ex);\n } catch (SQLException ex) {\n System.out.println(ex);\n }\n }", "public void buildDocument() {\n/* 220 */ setDocument(getDocumentLoader().getDocument(getClass()), \"text/html\", \"ISO-8859-1\");\n/* */ \n/* 222 */ syncAccessMethods();\n/* */ }", "void reporte(){\n //Variable para abrir el listado automaticamente\n Desktop pc=Desktop.getDesktop();\n //Se crea el documento\n Document doc=new Document();\n try {\n //Se crea el documento PDF\n FileOutputStream pdf=new FileOutputStream(\"ListadoCursos.pdf\");\n //El documento almacena la infomación del pdf.\n PdfWriter.getInstance(doc, pdf);\n \n //Se abre el documento para que se pueda modificar\n doc.open();\n \n //Se crea el título del documento y se configura\n Paragraph titulo=new Paragraph(\"Listado de Cursos\\n\\n\",\n FontFactory.getFont(\"Serif\",22,Font.PLAIN));\n //Se agrega el titulo al documento\n doc.add(titulo);\n \n //Se crea la tabla con la información\n PdfPTable tabla=new PdfPTable(5);\n //Se agregan los titulos a la tabla\n tabla.addCell(\"Codigo\");\n tabla.addCell(\"Nombre\");\n tabla.addCell(\"Creditos\");\n tabla.addCell(\"Alumnos\");\n tabla.addCell(\"Profesor\");\n \n //Se agregan los datos del los profesores\n for (int i = 0; i < datos.cantCur; i++) {\n tabla.addCell(datos.codigoC[i]+\"\");\n tabla.addCell(datos.nombreC[i]);\n tabla.addCell(datos.creditosC[i]+\"\");\n tabla.addCell(datos.alumnosC[i]+\"\");\n //Se busca al profesor\n String profesor=\"\";\n int a=0;\n while(a<datos.cantPro){\n if (datos.codigoPC[i]==datos.codigoP[a]) {\n profesor=datos.nombreP[a]+\" \"+datos.apellidoP[a];\n break;\n }\n a++;\n }\n tabla.addCell(profesor);\n }\n \n //Se agrega la tabla\n doc.add(tabla);\n //Se cierra el documento\n doc.close();\n //El documento creado se pasa a una variable tipo FILE\n File f=new File(\"ListadoCursos.pdf\");\n //Se abre el documento PDF\n pc.open(f);\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null,\"Error al crear el pdf\");\n }\n }", "public static void main(String[] args) {\n JFileChooser f = new JFileChooser();\n f.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);\n f.showSaveDialog(null);\n\n //System.out.println(f.getCurrentDirectory());\n \n \n String destinationFolder = f.getSelectedFile().toString();\n \n //check if OS is Windows, Linux or Mac and change file path\n String operatingSystem = System.getProperty(\"os.name\").toLowerCase();\n char c = operatingSystem.charAt(0);\n String FILE = \"\";\n if (c == 'w') {\n \tFILE = destinationFolder + \"\\\\FirstPdf.pdf\";\n } else {\n \tFILE = destinationFolder + \"/FirstPdf.pdf\";\n }\n \n\n\n try {\n Document document = new Document();\n PdfWriter.getInstance(document, new FileOutputStream(FILE));\n\n //create new font for the unicode symbols\n //font is in fonts folder\n BaseFont baseFont = BaseFont.createFont(\"fonts/arialuni.ttf\", BaseFont.IDENTITY_H, true);\n Font fontRed = new Font(baseFont, 18, Font.BOLD, BaseColor.RED);\n Font fontBlack = new Font(baseFont, 18, Font.BOLD, BaseColor.BLACK);\n document.open();\n\n //create table with 4 columns\n PdfPTable table = new PdfPTable(4);\n\n //create table header row\n PdfPCell c1 = new PdfPCell(new Phrase(\"Hearts\"));\n c1.setBorder(Rectangle.NO_BORDER);\n c1.setHorizontalAlignment(Element.ALIGN_CENTER);\n table.addCell(c1);\n\n c1 = new PdfPCell(new Phrase(\"Diamonds\"));\n c1.setBorder(Rectangle.NO_BORDER);\n c1.setHorizontalAlignment(Element.ALIGN_CENTER);\n table.addCell(c1);\n\n c1 = new PdfPCell(new Phrase(\"Clubs\"));\n c1.setBorder(Rectangle.NO_BORDER);\n c1.setHorizontalAlignment(Element.ALIGN_CENTER);\n table.addCell(c1);\n\n c1 = new PdfPCell(new Phrase(\"Spades\"));\n c1.setBorder(Rectangle.NO_BORDER);\n c1.setHorizontalAlignment(Element.ALIGN_CENTER);\n table.addCell(c1);\n table.setHeaderRows(1);\n\n\n //cards symbols and suites\n String[] cards = {\"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\", \"10\", \"J\", \"Q\", \"K\", \"A\"};\n String[] symbols = {\"\\u2665\", \"\\u2666\", \"\\u2663\", \"\\u2660\"};\n\n for (int i = 0; i < 13; i++) {\n for (int j = 0; j < 4; j++) {\n //fill cards, first two cards - red, other two - black\n if ( j < 2) {\n c1 = new PdfPCell(new Phrase(cards[i] + symbols[j], fontRed));\n } else {\n c1 = new PdfPCell(new Phrase(cards[i] + symbols[j], fontBlack));\n }\n c1.setVerticalAlignment(Element.ALIGN_MIDDLE);\n c1.setHorizontalAlignment(Element.ALIGN_CENTER);\n c1.setBackgroundColor(BaseColor.LIGHT_GRAY);\n c1.setBorderColor(BaseColor.WHITE);\n c1.setFixedHeight(150);\n\n c1.setBorderWidth(20);\n table.addCell(c1);\n table.setHorizontalAlignment(Element.ALIGN_CENTER);\n }\n }\n\n document.add(table);\n\n document.close();\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n System.out.println(\"You can find your file at: \" + FILE);\n }", "public static void writePDF(PDFWriter aWriter, PDFFile readerFile, int aPageIndex)\n {\n // Trap exceptions for PDF parsing (reader.getPDFFile())\n try {\n\n // Get reader PDF file and page\n PDFPage readerPage = readerFile.getPage(aPageIndex);\n String imageName = System.identityHashCode(readerPage) + \"\"; //anImageData.getName()\n\n // Bump the pdf version number, if necessary\n aWriter.getPDFFile().setVersion(readerFile.getVersion());\n\n // Get the crop box of page for use in BBox and Matrix strings\n Rect crop = readerPage.getCropBox();\n\n // Now create the form dictionary\n Map dict = new Hashtable(8);\n dict.put(\"Type\", \"/XObject\");\n dict.put(\"Subtype\", \"/Form\");\n dict.put(\"FormType\", \"1\");\n dict.put(\"BBox\", \"[\" + crop.getX() + \" \" + crop.getY() + \" \" + crop.getMaxX() + \" \" + crop.getMaxY() + \"]\");\n dict.put(\"Matrix\", \"[1 0 0 1 \" + (-crop.getX()) + \" \" + (-crop.getY()) + \"]\");\n dict.put(\"Name\", \"/\" + imageName);\n\n // Add page resources from reader page to writer and form dictionary\n Object readerPageResources = readerPage.getPageResources();\n Object writerPageResources = addObjectToWriter(aWriter, readerFile, readerPageResources);\n dict.put(\"Resources\", writerPageResources);\n\n // Get reader page contents stream and add its dictionary to writer\n PDFStream readerPageContentsStream = readerPage.getPageContentsStream();\n Map readerPageContentsDict = readerPageContentsStream.getDict();\n Map writerPageContentsDict = (Map) addObjectToWriter(aWriter, readerFile, readerPageContentsDict);\n dict.putAll(writerPageContentsDict);\n\n // Now create the form stream object and dump it to writer\n PDFStream formStream = new PDFStream(readerPageContentsStream.getBytes(), dict);\n aWriter.writeStream(formStream);\n\n // Everything is wrapped in parse exception handler, complain if thrown\n }\n catch (Exception e) {\n System.err.println(\"Error parsing pdf file : \" + e);\n e.printStackTrace();\n }\n }", "private void createTableViewer(SashForm aSashForm) {\n\n\t\tList<AdapterFactoryImpl> factories = new ArrayList<AdapterFactoryImpl>();\n\t\tfactories.add(new ReportItemProviderAdapterFactory());\n\t\tfactories.add(new ResourceItemProviderAdapterFactory());\n\t\tfactories.add(new ReflectiveItemProviderAdapterFactory());\n\n\t\tComposedAdapterFactory adapterFactory = new ComposedAdapterFactory(\n\t\t\t\tfactories);\n\n\t\tTable table = new Table(aSashForm, SWT.SINGLE | SWT.H_SCROLL\n\t\t\t\t| SWT.V_SCROLL | SWT.FULL_SELECTION);\n\t\tcreateTable(table);\n\n\t\t// Create the table viewer\n\t\tthis.viewer = new TableViewer(table);\n\n\t\t// Set the content provider\n\t\tthis.contentProvider = new ReportAdapterFactoryContentProvider(\n\t\t\t\tadapterFactory);\n\t\tthis.viewer.setContentProvider(this.contentProvider);\n\n\t\t// set the label provider\n\t\tthis.labelProvider = new ReportAdapterFactoryLabelProvider(adapterFactory);\n\t\tthis.viewer.setLabelProvider(this.labelProvider);\n\n\t\tthis.viewer.setUseHashlookup(true);\n\n\t\tGridData layoutData = new GridData();\n\t\tthis.viewer.getControl().setLayoutData(layoutData);\n\n\t\t// add a selection action listener\n\t\tthis.viewer.addSelectionChangedListener(new ISelectionChangedListener() {\n\t\t\tpublic void selectionChanged(SelectionChangedEvent aEvent) {\n\t\t\t\tif (aEvent.getSelection() instanceof IStructuredSelection) {\n\t\t\t\t\tIStructuredSelection lSelection = (IStructuredSelection) aEvent\n\t\t\t\t\t\t\t.getSelection();\n\n\t\t\t\t\tString lLog = null;\n\t\t\t\t\tEList lExceptions;\n\t\t\t\t\t// we are interrested in GenericReport, TefReport and\n\t\t\t\t\t// ReportInfo\n\t\t\t\t\tif (lSelection.getFirstElement() instanceof GenericReport) {\n\t\t\t\t\t\tGenericReport lReport = (GenericReport) lSelection\n\t\t\t\t\t\t\t\t.getFirstElement();\n\n\t\t\t\t\t\t// populate the browser area\n\t\t\t\t\t\tlLog = lReport.getLog();\n\t\t\t\t\t\tupdateBrowser(lLog);\n\n\t\t\t\t\t\t// populate the exceptions area\n\t\t\t\t\t\tlExceptions = lReport.getExecptionReport();\n\t\t\t\t\t\tupdateExceptions(lExceptions);\n\n\t\t\t\t\t} else if (lSelection.getFirstElement() instanceof TefReport) {\n\t\t\t\t\t\tTefReport lReport = (TefReport) lSelection\n\t\t\t\t\t\t\t\t.getFirstElement();\n\n\t\t\t\t\t\t// populate the browser area\n\t\t\t\t\t\tlLog = lReport.getLog();\n\t\t\t\t\t\tupdateBrowser(lLog);\n\n\t\t\t\t\t\t// populate the exceptions\n\t\t\t\t\t\tlExceptions = lReport.getExecptionReport();\n\t\t\t\t\t\tupdateExceptions(lExceptions);\n\n\t\t\t\t\t} else if (lSelection.getFirstElement() instanceof ReportInfo) {\n\t\t\t\t\t\tFile lRoot = getXMLLocationFromModel();\n\t\t\t\t\t\tif (lRoot != null) {\n\t\t\t\t\t\t\tString lPath = lRoot.getAbsolutePath().replaceAll(\n\t\t\t\t\t\t\t\t\t\"\\\\.xml\", \"\\\\.html\");\n\t\t\t\t\t\t\tFile lHtmlFile = new File(lPath);\n\t\t\t\t\t\t\tif (lHtmlFile.exists()) {\n\t\t\t\t\t\t\t\tiBrowser.setUrl(lPath);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tiBrowser.setText(iFileDoesNotExist\n\t\t\t\t\t\t\t\t\t\t+ lHtmlFile.toString()\n\t\t\t\t\t\t\t\t\t\t+ iFileDoesNotExist2);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tiBrowser.setText(iNoHtmlLog);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tiException.setText(\"\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tprivate void updateExceptions(EList lExceptions) {\n\t\t\t\tiException.setText(\"\");\n\t\t\t\tIterator lIter = lExceptions.iterator();\n\t\t\t\twhile (lIter.hasNext()) {\n\t\t\t\t\tExceptionReport lEx = (ExceptionReport) lIter.next();\n\t\t\t\t\tString lMessage = lEx.getMessage();\n\t\t\t\t\tString lExStack = lEx.getStackTrace();\n\t\t\t\t\tiException.append(lMessage + \"\\n\" + lExStack + iLineBreak );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tprivate void updateBrowser(String lLog) {\n\t\t\t\tif (lLog != null) {\n\t\t\t\t\t// this path is relative to the path of the xml file\n\t\t\t\t\tFile lRoot = getXMLLocationFromModel();\n\t\t\t\t\tif (lRoot != null) {\n\t\t\t\t\t\t// an html log file\n\t\t\t\t\t\tFile lHtmlFile = new File(lRoot.getParent(), lLog);\n\t\t\t\t\t\tif (lHtmlFile.exists()) {\n\t\t\t\t\t\t\tiBrowser.setUrl(lHtmlFile.getAbsolutePath());\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tiBrowser\n\t\t\t\t\t\t\t\t\t.setText(iFileDoesNotExist\n\t\t\t\t\t\t\t\t\t\t\t+ lHtmlFile.toString()\n\t\t\t\t\t\t\t\t\t\t\t+ iFileDoesNotExist2);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tiBrowser.setText(iNoHtmlLog);\n\t\t\t\t}\n\t\t\t\tiBrowser.update();\n\t\t\t}\n\t\t});\n\t}", "public interface OnPDFViewVisibilityChanged {\n /**\n * This method will be invoked when PDFViewCtrl visibility has changed\n *\n * @param prevVisibility previous PDFViewCtrl visibility\n * @param currVisibility current PDFViewCtrl visibility\n */\n void onPDFViewVisibilityChanged(int prevVisibility, int currVisibility);\n }", "public void createPDF(Loan loan, boolean isSwedish, String path, int count, String pathname) \n throws FileNotFoundException, DocumentException {\n log.info(\"createPDF : {} -- {}\", path, isSwedish);\n\n this.isSwedish = isSwedish;\n\n switch (pathname) {\n case \"local\":\n externalPath = LOCAL_EXTERNAL_FILES;\n break;\n case \"dina-loans\":\n externalPath = REMOTE_EXTERNAL_FILES_LOANS;\n break;\n default:\n externalPath = REMOTE_EXTERNAL_FILES_AS;\n break;\n }\n\n StringBuilder sb = new StringBuilder();\n sb.append(path);\n sb.append(\"/loanrequest_\");\n sb.append(loan.getId());\n\n File summaryAdminFile = new File(sb.toString() + \"_admin.pdf\"); \n sb.append(\".pdf\");\n File summaryFile = new File(sb.toString().trim()); \n\n document = new Document(PageSize.LETTER);\n adminDocument = new Document(PageSize.LETTER);\n PdfWriter.getInstance(document, new FileOutputStream(summaryFile));\n PdfWriter.getInstance(adminDocument, new FileOutputStream(summaryAdminFile));\n document.open();\n adminDocument.open();\n\n addTitle(loan);\n addContact(loan);\n\n switch (count) {\n case 9:\n addLoanRequestForScientificPurpose(loan);\n addLoanSampleList(loan);\n if (!RequestType.Information.isInformation(loan.getType())) {\n if (RequestType.Physical.isPhysical(loan.getType())) {\n addDestructiveInformation(loan);\n } else {\n addPhotoInformation(loan);\n }\n addCITESInformation(loan);\n } break;\n case 7:\n addEducationRequest(loan);\n break;\n default:\n addCommercialInformation(loan);\n break;\n }\n\n if (!RequestType.Information.isInformation(loan.getType())) {\n addTermsOfLoanAgreement();\n }\n document.close();\n adminDocument.close();\n }", "@RequiresApi(api = Build.VERSION_CODES.KITKAT)\n public void CreatePdf(View view) throws IOException {\n\n // file path and file name\n int i = 1;\n String dir = Environment.getExternalStorageDirectory() + \"/Documents/\";\n String filePath = new File(dir, sName + \"_result_\" + i + \".pdf\").toString();\n File pdfFile = new File(filePath);\n while (pdfFile.exists()) {\n i++;\n filePath = new File(dir, sName + \"_result_\" + i + \".pdf\").toString();\n pdfFile = new File(filePath);\n }\n\n FileOutputStream fOut = new FileOutputStream(filePath);\n PdfWriter pdfWriter = new PdfWriter(fOut);\n\n PdfDocument pdfDocument = new PdfDocument(pdfWriter);\n Document document = new Document(pdfDocument);\n\n // setting title\n document.add(new Paragraph(sName)\n .setBold()\n .setUnderline()\n .setFontSize(30)\n .setTextAlignment(TextAlignment.CENTER));\n document.add(new Paragraph(\" \"));\n\n Table table = new Table(new float[] { 80, 80, 80, 80, 80, 80, 80 });\n\n //setting column headings\n for (String header : columnHeaders)\n table.addCell(new Paragraph(header).setBold());\n\n // fill data\n for (FinalCompetitorData competitorData : competitorsList) {\n table.addCell(new Paragraph(competitorData.rank + \"\"));\n table.addCell(new Paragraph(competitorData.boatClass + \"\"));\n table.addCell(new Paragraph(competitorData.sailNo + \"\"));\n table.addCell(new Paragraph(competitorData.helmName + \"\"));\n table.addCell(new Paragraph(competitorData.crewName + \"\"));\n table.addCell(new Paragraph(competitorData.PY + \"\"));\n table.addCell(new Paragraph(competitorData.points + \"\"));\n }\n\n document.add(table);\n document.close();\n Toast.makeText(DisplaySeriesResult.this, \"PDF created, check Documents!!\", Toast.LENGTH_LONG).show();\n }", "private void createPdf(String sometext) {\n PdfDocument document = new PdfDocument();\n // crate a page description\n PdfDocument.PageInfo pageInfo = new PdfDocument.PageInfo.Builder(300, 600, 1).create();\n // start a page\n PdfDocument.Page page = document.startPage(pageInfo);\n Canvas canvas = page.getCanvas();\n Paint paint = new Paint();\n paint.setColor(Color.RED);\n canvas.drawCircle(50, 50, 30, paint);\n paint.setColor(Color.BLACK);\n canvas.drawText(sometext, 80, 50, paint);\n //canvas.drawt\n // finish the page\n document.finishPage(page);\n // draw text on the graphics object of the page\n // Create Page 2\n pageInfo = new PdfDocument.PageInfo.Builder(300, 600, 2).create();\n page = document.startPage(pageInfo);\n canvas = page.getCanvas();\n paint = new Paint();\n paint.setColor(Color.BLUE);\n canvas.drawCircle(100, 100, 100, paint);\n document.finishPage(page);\n\n // write the document content\n String directory_path = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS) + \"/mypdf/\";\n File file = new File(directory_path);\n if (!file.exists()) {\n file.mkdirs();\n }\n double random_double = Math.random() * (999999 - 999 + 1) + 999;\n String targetPdf = directory_path + String.valueOf(random_double) + \".pdf\";\n File filePath = new File(targetPdf);\n try {\n document.writeTo(new FileOutputStream(filePath));\n Toast.makeText(this, \"Done\", Toast.LENGTH_LONG).show();\n } catch (IOException e) {\n Log.e(\"main\", \"error \" + e.toString());\n Toast.makeText(this, \"Something wrong: \" + e.toString(), Toast.LENGTH_LONG).show();\n }\n // close the document\n document.close();\n }", "protected SourceViewer createViewer(Composite parent) {\n \t\tSourceViewer viewer= new SourceViewer(parent, null, null, false, SWT.BORDER | SWT.V_SCROLL | SWT.H_SCROLL);\n \t\tSourceViewerConfiguration configuration= new SourceViewerConfiguration();\n \t\tviewer.configure(configuration);\n \t\tIDocument document= new Document();\n \t\tviewer.setDocument(document);\n \t\treturn viewer;\n \t}", "@Override\r\n\tpublic void createPartControl(Composite parent) {\n\t\ttoolkit = new FormToolkit(parent.getDisplay());\r\n\t\t\r\n\t\t/*\r\n\t\t * Create a scrolled form widget, \r\n\t\t */\r\n\t\tscrolledForm = toolkit.createScrolledForm(parent);\r\n\t\tscrolledForm.setFont(new Font(null,\"Times\",18,SWT.BOLD|SWT.ITALIC));\r\n\t\tscrolledForm.setText(\"Simulation Results\");\r\n\t\tscrolledForm.setImage(JQuantPlugin.getImageDescriptor(\"money.png\").createImage());\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t/*\r\n\t\t * Make a nice gradient\r\n\t\t */\r\n\t\ttoolkit.decorateFormHeading(scrolledForm.getForm());\r\n\t\t\r\n\t\treadSimulationResults();\r\n\t\tbuildStatSection();\r\n\t\tif(results != null)\r\n\t\t\trefreshSimulationStatistics();\r\n\r\n\t\t\r\n\t}", "private void init() {\n\t\tClassLoader loader = LegalDialog.class.getClassLoader();\n\t\tthisURL = loader.getResource(\"disclaimer.htm\");\n\t\ttry {\n\t\t\tthisEditor = new JEditorPane( thisURL );\n\t\t\tthisEditor.setEditable( false );\n\t\t\t// needed to open browser via clicking on a link\n\t\t\tthisEditor.addHyperlinkListener(new HyperlinkListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void hyperlinkUpdate(HyperlinkEvent e) {\n\t\t\t\t\tURL url = e.getURL();\n\t\t\t\t\tif (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tif (url.sameFile(thisURL))\n\t\t\t\t\t\t\t\tthisEditor.setPage(url);\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tDesktop.getDesktop().browse(url.toURI());\n\t\t\t\t\t\t} catch (IOException ex) {\n\t\t\t\t\t\t} catch (URISyntaxException ex) {\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (e.getEventType() == HyperlinkEvent.EventType.ENTERED) {\n\t\t\t\t\t\tif (url.sameFile(thisURL))\n\t\t\t\t\t\t\tthisEditor.setToolTipText(url.getRef());\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tthisEditor.setToolTipText(url.toExternalForm());\n\t\t\t\t\t} else if (e.getEventType() == HyperlinkEvent.EventType.EXITED) {\n\t\t\t\t\t\tthisEditor.setToolTipText(null);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t\tjScrollPane.setViewportView(thisEditor); // Generated\n\t\t} catch (IOException ex) {ex.printStackTrace();};\n\t}", "public void createPdf(String dest) throws IOException, DocumentException, XMPException {\n Document document = new Document(PageSize.A4.rotate());\n //PDF/A-3b\n //Create PdfAWriter with the required conformance level\n PdfAWriter writer = PdfAWriter.getInstance(document, new FileOutputStream(dest), PdfAConformanceLevel.ZUGFeRD);\n writer.setPdfVersion(PdfWriter.VERSION_1_7);\n //Create XMP metadata\n writer.createXmpMetadata();\n writer.getXmpWriter().setProperty(PdfAXmpWriter.zugferdSchemaNS, PdfAXmpWriter.zugferdDocumentFileName, \"invoice.xml\");\n //====================\n document.open();\n //PDF/A-3b\n //Set output intents\n ICC_Profile icc = ICC_Profile.getInstance(new FileInputStream(ICC));\n writer.setOutputIntents(\"Custom\", \"\", \"http://www.color.org\", \"sRGB IEC61966-2.1\", icc);\n //===================\n\n Paragraph p = new Paragraph();\n //PDF/A-3b\n //Embed font\n p.setFont(FontFactory.getFont(FONT, BaseFont.WINANSI, BaseFont.EMBEDDED, 20));\n //=============\n Chunk c = new Chunk(\"The quick brown \");\n p.add(c);\n Image i = Image.getInstance(FOX);\n c = new Chunk(i, 0, -24);\n p.add(c);\n c = new Chunk(\" jumps over the lazy \");\n p.add(c);\n i = Image.getInstance(DOG);\n c = new Chunk(i, 0, -24);\n p.add(c);\n document.add(p);\n\n PdfDictionary parameters = new PdfDictionary();\n parameters.put(PdfName.MODDATE, new PdfDate());\n PdfFileSpecification fileSpec = writer.addFileAttachment(\n \"ZUGFeRD invoice\", null, XML,\n \"invoice.xml\", \"application/xml\",\n AFRelationshipValue.Alternative, parameters);\n PdfArray array = new PdfArray();\n array.add(fileSpec.getReference());\n writer.getExtraCatalog().put(PdfName.AF, array);\n\n document.close();\n }", "public TbPdfInfoExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "public void doPresentation(final ITextViewer viewer) {\r\n \t\ttry{\r\n \t\t\t_lastpresentation = getPresentationManager().createTextPresentation();\r\n \t\t\tDisplay.getDefault().asyncExec(new Runnable() {\r\n \t\t\t\tpublic void run() {\r\n \t\t\t\t\t// CHANGE in Tim's last version, the following line is absent.\r\n //\t\t\t\t\tviewer.changeTextPresentation(_lastpresentation, false);\r\n \t\t\t\t\ttry {\r\n \t\t\t\t\t\tif(_lastpresentation != null) {\r\n \t\t\t\t\t viewer.changeTextPresentation(_lastpresentation, true);\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t}\r\n \t\t\t\t\tcatch(NullPointerException exc) {\r\n \t\t\t\t\t}\r\n \t\t\t\t}\r\n \t\t\t});\t\r\n \t\t}catch (NullPointerException npe){\r\n \t\t\tnpe.printStackTrace();\r\n \t\t}\r\n \t}", "public void run() {\n \t\t\t\t\tCaesarJContentOutlinePage.updateAll(projectProperties);\n \t\t\t\t\tCaesarHierarchyView.updateAll(projectProperties);\n \t\t\t\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jScrollPane1 = new javax.swing.JScrollPane();\n tblFuncionarioCargo = new javax.swing.JTable();\n btnGerarRelatorio = new javax.swing.JButton();\n\n tblFuncionarioCargo.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null}\n },\n new String [] {\n \"Nome\", \"CPF\", \"Departamento\", \"Cargo\"\n }\n ) {\n Class[] types = new Class [] {\n java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class\n };\n\n public Class getColumnClass(int columnIndex) {\n return types [columnIndex];\n }\n });\n jScrollPane1.setViewportView(tblFuncionarioCargo);\n\n btnGerarRelatorio.setText(\"Gerar Relátorio PDF\");\n btnGerarRelatorio.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnGerarRelatorioActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 400, Short.MAX_VALUE)\n .addGroup(layout.createSequentialGroup()\n .addComponent(btnGerarRelatorio)\n .addGap(0, 0, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 271, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btnGerarRelatorio)\n .addContainerGap())\n );\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n panelContenedor = new javax.swing.JPanel();\n boton_enviar = new javax.swing.JButton();\n panelCentro = new javax.swing.JPanel();\n boton_archivo = new javax.swing.JButton();\n combo_tipo_documento = new javax.swing.JComboBox<>();\n jLabel2 = new javax.swing.JLabel();\n jPanel1 = new javax.swing.JPanel();\n label_detalles = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n\n panelContenedor.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n panelContenedor.setLayout(new java.awt.BorderLayout());\n\n boton_enviar.setText(\"Enviar\");\n panelContenedor.add(boton_enviar, java.awt.BorderLayout.PAGE_END);\n\n boton_archivo.setText(\"Archivo (PDF)\");\n\n combo_tipo_documento.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n combo_tipo_documento.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Seleccionar\", \"Cover\", \"Desarme\", \"Diagrama de Bloque\", \"Diagrama Eléctrico\", \"Especificaciones\", \"Información de Board\", \"Informacion del Diseño\", \"Impedancias\", \"Manual de Servicio en Hardware\", \"Manual de Servicio en Software\", \"Manual de Usuario\", \"Layout\", \"Parte de Elementos\", \"Partes Eléctricas\", \"Planos Esquemáticos\" }));\n\n jLabel2.setText(\"Seleccione el Tipo de Documento\");\n\n jPanel1.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n\n label_detalles.setFont(new java.awt.Font(\"Times New Roman\", 3, 14)); // NOI18N\n label_detalles.setForeground(new java.awt.Color(51, 51, 255));\n label_detalles.setText(\"Marca>Linea de Produccion>Modelo>Version\");\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 527, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addComponent(label_detalles, javax.swing.GroupLayout.PREFERRED_SIZE, 491, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(18, Short.MAX_VALUE)))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 43, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(label_detalles)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\n );\n\n javax.swing.GroupLayout panelCentroLayout = new javax.swing.GroupLayout(panelCentro);\n panelCentro.setLayout(panelCentroLayout);\n panelCentroLayout.setHorizontalGroup(\n panelCentroLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panelCentroLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(panelCentroLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(boton_archivo)\n .addComponent(combo_tipo_documento, javax.swing.GroupLayout.PREFERRED_SIZE, 369, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel2)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(15, Short.MAX_VALUE))\n );\n panelCentroLayout.setVerticalGroup(\n panelCentroLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panelCentroLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 18, Short.MAX_VALUE)\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(combo_tipo_documento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(boton_archivo)\n .addGap(27, 27, 27))\n );\n\n panelContenedor.add(panelCentro, java.awt.BorderLayout.CENTER);\n\n getContentPane().add(panelContenedor, java.awt.BorderLayout.CENTER);\n\n pack();\n }", "@Override\n public void run() {\n for (int pg = PreviewPanel.this.firstPage; pg < PreviewPanel.this.firstPage\n + PreviewPanel.this.pageRange; pg++) {\n PreviewPanel.this.pagePanels[pg - PreviewPanel.this.firstPage]\n .setPage(pg);\n }\n revalidate();\n }", "public byte[] runPdfExport() throws DocumentException, IOException, JRException, TalentStudioException {\n\n ByteArrayOutputStream outputStream = new ByteArrayOutputStream();\n\n if (isResultSetEmpty(jasperPrint.getPages())) {\n document = new Document(PageSize.A4);\n writer = PdfWriter.getInstance(document, outputStream);\n document.open();\n final Paragraph noResult = new Paragraph(getHeading(getMessage(\"no.results\")));\n noResult.setAlignment(Rectangle.ALIGN_CENTER);\n document.add(noResult);\n document.add(new Paragraph(\"\\n\"));\n\n } else {\n createDocument(jasperPrint.getPages());\n writer = PdfWriter.getInstance(document, outputStream);\n document.open();\n //below three lines force to be zoom at 100 and focus page 1\n document.newPage();\n PdfDestination destination = new PdfDestination(PdfDestination.XYZ, 0, -1, 1);\n writer.setOpenAction(PdfAction.gotoLocalPage(1, destination, writer));\n\n\n List<JRPrintPage> pages = jasperPrint.getPages();\n\n\n addPageHeader(document);\n\n for (JRPrintPage page : pages) {\n\n JRExporterGridCell[][] grid = getGrid(page);\n\n PdfPTable table = getTable(1);\n table.getDefaultCell().setBorder(Rectangle.BOX);\n int emptyRowCount = 0;\n for (int i = 0; i < grid.length; i++) {\n JRExporterGridCell[] jrExporterGridCells = grid[i];\n if (!isNullRow(jrExporterGridCells)) {\n\n\n int oddEvenNo = i - emptyRowCount;\n Color rowColor = null;\n if (oddEvenNo > 0) {\n\n if (oddEvenNo % 2 == 0) {\n rowColor = getDataBackgroundEvenColor();\n } else {\n rowColor = getDataBackgroundOddColor();\n }\n\n }\n\n PdfPTable subTable = getTable(jrExporterGridCells.length);\n subTable.getDefaultCell().setBorder(Rectangle.NO_BORDER);\n subTable.getDefaultCell().setPadding(0);\n\n for (int j = 0; j < jrExporterGridCells.length; j++) {\n JRExporterGridCell jrExporterGridCell = jrExporterGridCells[j];\n\n final JRPrintElement jrPrintElement = jrExporterGridCell.getElement();\n\n\n if (jrPrintElement instanceof JRPrintText) {\n final JRPrintText element = (JRPrintText) jrExporterGridCell.getElement();\n\n String style = element.getStyle() != null ? element.getStyle().getName() : \"\";\n\n final String text = element.getText();\n\n if (TEMPLATE_HEADER.equalsIgnoreCase(style)) {\n final Paragraph paragraph = getHeading(text);\n final PdfPCell pCell = new PdfPCell(paragraph);\n pCell.setBackgroundColor(getHeaderBackgroundColor());\n subTable.addCell(pCell);\n } else if (TEMPLATE_GROUP.equalsIgnoreCase(style)) {\n if (StringUtils.hasText(text)) {\n Paragraph paragraph = getGroupHeading(text);\n PdfPCell groupHeader = new PdfPCell(paragraph);\n groupHeader.setColspan(jrExporterGridCells.length);\n groupHeader.setBackgroundColor(getHeaderGroupBackgroundColor());\n\n subTable.addCell(groupHeader);\n } else {\n //empty header\n final PdfPCell pCell = new PdfPCell();\n pCell.setBackgroundColor(rowColor);\n subTable.addCell(pCell);\n }\n\n } else {\n\n if (!isAddImageColumn(j, text, subTable, rowColor)) {\n final Paragraph paragraph = getText(text);\n final PdfPCell pdfPCell = new PdfPCell(paragraph);\n pdfPCell.setBackgroundColor(rowColor);\n subTable.addCell(pdfPCell);\n }\n }\n\n\n } else if (jrPrintElement instanceof JRTemplatePrintRectangle) {\n final PdfPCell pCell = new PdfPCell();\n pCell.setBackgroundColor(rowColor);\n subTable.addCell(pCell);\n\n } else if (jrPrintElement instanceof JRBasePrintElement) {\n\n } else {\n\n\n final PdfPCell pCell = new PdfPCell();\n pCell.setBackgroundColor(rowColor);\n subTable.addCell(pCell);\n }\n }\n\n table.getDefaultCell().setPadding(0);\n subTable.completeRow();\n\n clearEmptyRows(subTable);\n\n table.addCell(subTable);\n\n synchronizeTableMemory(table, i);\n\n } else {\n emptyRowCount++;\n }\n }\n document.add(table);\n }\n }\n document.close();\n\n return outputStream.toByteArray();\n }", "private void fetchingData() {\n loadingDialog.startLoadingDialog();\n\n FirebaseStorage.getInstance().getReference().child(\"course-details\").child(\"course-details.pdf\")\n .getBytes(1024 * 1024).addOnSuccessListener(bytes -> {\n loadingDialog.dismissDialog();\n Toast.makeText(getApplicationContext(), \"Zoom out !!\", Toast.LENGTH_LONG).show();\n pdfView.fromBytes(bytes).load();\n }).addOnFailureListener(e ->\n Toast.makeText(getApplicationContext(), \"download unsuccessful\", Toast.LENGTH_LONG).show());\n }", "public void buildSectionOne(Document document) throws DocumentException, IOException, JSONException {\n PdfPTable titleTable = new PdfPTable ( 1 );\n titleTable.setWidthPercentage ( 100 );\n\n // Strategy\n titleTable.addCell ( ReportTemplate.getSectionHeaderCell ( \"Featured Strategy: \" + selectedStrategy ) );\n\n /**\n * @changed - Abhishek\n * @date - 11-02-2016\n * @desc - Applied format of $xxx,xxx\n */\n // Estimate Income\n titleTable.addCell ( ReportTemplate.getSectionSubHeaderCellWithBoxBorder ( \"Estimated Income: $\" + estimatedIncome ) );\n\n document.add ( titleTable );\n\n // Add Charts Now\n PdfPTable contentTable = new PdfPTable ( 2 );\n contentTable.setWidthPercentage ( 100 );\n\n // Create 3d Pie Chart Section\n PdfPCell pieChartSectionCell = ReportTemplate.getBoxBorderCell ();\n pieChartSectionCell.addElement ( getPieChartSection () );\n contentTable.addCell ( pieChartSectionCell );\n\n // Create Bar Chart Section\n PdfPCell barChartSectionCell = ReportTemplate.getBoxBorderCell ();\n barChartSectionCell.addElement ( getResourceManagementTable () );\n contentTable.addCell ( barChartSectionCell );\n document.add ( contentTable );\n //document.newPage();\n\n PdfPTable contentTable2 = new PdfPTable ( 2 );\n contentTable2.setWidthPercentage ( 100 );\n\n // Add Risk Management Section\n PdfPCell riskManagementSectionCell = ReportTemplate.getBoxBorderWithoutLeftPaddingCell ();\n riskManagementSectionCell.addElement ( getRiskManagementTable () );\n contentTable2.addCell ( riskManagementSectionCell );\n\n // Add Conservation Management Section\n\n Paragraph conservationParagraph = new Paragraph ();\n\n conservationParagraph.add ( new Chunk ( \"Conservation Management\\n\\n\", ReportTemplate.TIMESROMAN_12_BOLD ) );\n conservationParagraph.add ( new Chunk ( \"Conservation Goals\\n\", ReportTemplate.TIMESROMAN_10_NORMAL) );\n /**\n * @changed - Abhishek\n * @date - 12-12-2015\n * @updated - 11-01-2016\n */\n ReportDataPage1.ConservationPracticeBean conservationBean = reportDataPage1.getLandUnderConservationPractice ();\n\n /**\n * @changed - Abhishek\n * @updated - 11-01-2016\n */\n conservationParagraph.add ( new Chunk ( AgricultureStandardUtils.doubleWithOneDecimal( Double.parseDouble (conservationBean.getProfitFromConservation () ) ) + \" % Est. Income under conservation practices\\n\" +\n AgricultureStandardUtils.doubleWithOneDecimal( Double.parseDouble (conservationBean.getLandUnderConservation () ) ) + \" % Acreage under conservation practices\", ReportTemplate.TIMESROMAN_10_NORMAL ) );\n\n PdfPCell conservationManagementSectionCell = ReportTemplate.getBoxBorderWithoutLeftPaddingCell ();\n conservationManagementSectionCell.addElement ( conservationParagraph );\n contentTable2.addCell ( conservationManagementSectionCell );\n\n contentTable2.setKeepTogether(true);\n document.add ( contentTable2 );\n\n\n /*getIncomeUnderConservationPractice(farmInfoView);*/\n\n }", "@RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)\n @Override\n public void onBindViewHolder(@NonNull StudyMaterialHolder studyMaterialHolder, int i) {\n String title = components.get(i).getTitle();\n String update = components.get(i).getUploadDate();\n String extension = components.get(i).getTitle().substring(components.get(i).getTitle().lastIndexOf(\".\") + 1);\n studyMaterialHolder.textView.setVisibility(View.GONE);\n studyMaterialHolder.textView1.setText(title);\n studyMaterialHolder.textView3.setText(update);\n String path = \"StudyMaterials/\" + subject;\n String name = \"/\" + title + \".pdf\";\n final boolean[] check = {false};\n File file = new File(Objects.requireNonNull(context.getExternalFilesDir(path)).getAbsolutePath() + name);\n\n if (file.exists()) {\n check[0] = true;\n ParcelFileDescriptor parcelFileDescriptor = null;\n try {\n parcelFileDescriptor = ParcelFileDescriptor.open(file, ParcelFileDescriptor.MODE_READ_ONLY);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n PdfRenderer renderer = null;\n try {\n renderer = new PdfRenderer(parcelFileDescriptor);\n } catch (IOException e) {\n e.printStackTrace();\n }\n Bitmap bitmap = Bitmap.createBitmap(100, 100, Bitmap.Config.ARGB_4444);\n PdfRenderer.Page page = renderer.openPage(0);\n page.render(bitmap, null, null, PdfRenderer.Page.RENDER_MODE_FOR_DISPLAY);\n studyMaterialHolder.imgpdf.setImageBitmap(bitmap);\n\n /* AppCompatActivity appCompatActivity = (AppCompatActivity) context;\n appCompatActivity.getSupportFragmentManager().beginTransaction().replace(R.id.fragment_container, new PDFViewfrag(file)).addToBackStack(null).commit();*/\n\n } else {\n if (extension.equals(\"\") || extension.equals(\"pdf\") || extension.equals(title)) {\n\n } else {\n if (extension.equals(\"pptx\") || extension.equals(\"ppt\")) {\n studyMaterialHolder.imgpdf.setImageResource(R.drawable.ic_icons8_microsoft_powerpoint_2019);\n } else if (extension.equals(\"doc\")) {\n studyMaterialHolder.imgpdf.setImageResource(R.drawable.ic_icons8_microsoft_word_2019);\n } else if (extension.equals(\"jpg\") || extension.equals(\"png\") || extension.equalsIgnoreCase(\"jpeg\")) {\n studyMaterialHolder.imgpdf.setImageResource(R.drawable.ic_iconfinder_image_272704);\n } else {\n studyMaterialHolder.imgpdf.setImageResource(R.drawable.ic_noun_file_);\n }\n }\n\n }\n studyMaterialHolder.cardView.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n studyMaterialHolder.progressBar.setVisibility(View.VISIBLE);\n studyMaterialHolder.progressBar.setMax(100);\n // progressBar=studyMaterialHolder.progressBar;\n animation(0, 50, 10000, studyMaterialHolder.progressBar);\n try {\n if (extension.equals(\"\") || extension.equals(\"pdf\") || extension.equals(title)) {\n downloadstudymaterial(title, section, subject, studyMaterialHolder.imgpdf, \"pdf\", studyMaterialHolder.progressBar);\n } else {\n downloadstudymaterial(title, section, subject, studyMaterialHolder.imgpdf, extension, studyMaterialHolder.progressBar);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n });\n\n }", "public ACustomViewer(Composite parent, JasperReportsConfiguration jContext) {\n\t\tsuper(parent, jContext);\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n Save = new javax.swing.JButton();\n pane = new javax.swing.JPanel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n jLabel9 = new javax.swing.JLabel();\n name = new javax.swing.JLabel();\n password = new javax.swing.JLabel();\n dob = new javax.swing.JLabel();\n contact = new javax.swing.JLabel();\n email = new javax.swing.JLabel();\n id1 = new javax.swing.JLabel();\n course = new javax.swing.JComboBox<>();\n jLabel10 = new javax.swing.JLabel();\n gendr = new javax.swing.JComboBox<>();\n close = new javax.swing.JButton();\n jLabel11 = new javax.swing.JLabel();\n\n setFrameIcon(new javax.swing.ImageIcon(getClass().getResource(\"/NIIT/Admin/NIIT.png\"))); // NOI18N\n setRequestFocusEnabled(false);\n\n Save.setText(\"Save to PDF\");\n Save.setToolTipText(\"Save Information in PDF Format\");\n Save.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n SaveActionPerformed(evt);\n }\n });\n\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel3.setText(\"Name\");\n\n jLabel4.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel4.setText(\"Course\");\n\n jLabel5.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel5.setText(\"Contact\");\n\n jLabel6.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel6.setText(\"D.O.B.\");\n\n jLabel7.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel7.setText(\"E-Mail ID\");\n\n jLabel8.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel8.setText(\"ID\");\n\n jLabel9.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel9.setText(\"Password\");\n\n name.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n name.setForeground(new java.awt.Color(153, 153, 153));\n name.setText(\"Name\");\n name.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));\n\n password.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n password.setForeground(new java.awt.Color(153, 153, 153));\n password.setText(\"password\");\n password.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));\n\n dob.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n dob.setForeground(new java.awt.Color(153, 153, 153));\n dob.setText(\"D.O.B.\");\n dob.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));\n\n contact.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n contact.setForeground(new java.awt.Color(153, 153, 153));\n contact.setText(\"Contact\");\n contact.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));\n\n email.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n email.setForeground(new java.awt.Color(153, 153, 153));\n email.setText(\"E-Mail\");\n email.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));\n\n id1.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n id1.setForeground(new java.awt.Color(153, 153, 153));\n id1.setText(\"ID\");\n id1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));\n\n course.setMaximumRowCount(5);\n course.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Select\", \"JAVA\", \"C\", \"C++\", \"DotNet\", \"Php\" }));\n course.setBorder(null);\n\n jLabel10.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel10.setText(\"Gender\");\n\n gendr.setMaximumRowCount(3);\n gendr.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Select\", \"Male\", \"Female\" }));\n gendr.setBorder(null);\n\n javax.swing.GroupLayout paneLayout = new javax.swing.GroupLayout(pane);\n pane.setLayout(paneLayout);\n paneLayout.setHorizontalGroup(\n paneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(paneLayout.createSequentialGroup()\n .addContainerGap(150, Short.MAX_VALUE)\n .addGroup(paneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(paneLayout.createSequentialGroup()\n .addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 74, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(28, 28, 28)\n .addComponent(gendr, javax.swing.GroupLayout.PREFERRED_SIZE, 98, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(paneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(paneLayout.createSequentialGroup()\n .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 74, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(password, javax.swing.GroupLayout.PREFERRED_SIZE, 149, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(paneLayout.createSequentialGroup()\n .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 74, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(id1, javax.swing.GroupLayout.PREFERRED_SIZE, 149, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(paneLayout.createSequentialGroup()\n .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 74, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(email, javax.swing.GroupLayout.PREFERRED_SIZE, 149, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(paneLayout.createSequentialGroup()\n .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 74, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(contact, javax.swing.GroupLayout.PREFERRED_SIZE, 149, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, paneLayout.createSequentialGroup()\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 74, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(name, javax.swing.GroupLayout.PREFERRED_SIZE, 149, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, paneLayout.createSequentialGroup()\n .addGroup(paneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(paneLayout.createSequentialGroup()\n .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 74, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, paneLayout.createSequentialGroup()\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 74, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(28, 28, 28)))\n .addGroup(paneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(course, javax.swing.GroupLayout.PREFERRED_SIZE, 98, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(dob, javax.swing.GroupLayout.PREFERRED_SIZE, 149, javax.swing.GroupLayout.PREFERRED_SIZE)))))\n .addContainerGap(372, Short.MAX_VALUE))\n );\n paneLayout.setVerticalGroup(\n paneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(paneLayout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(paneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(name, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 30, Short.MAX_VALUE)\n .addGroup(paneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(course, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 30, Short.MAX_VALUE)\n .addGroup(paneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(dob, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 30, Short.MAX_VALUE)\n .addGroup(paneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(gendr, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 30, Short.MAX_VALUE)\n .addGroup(paneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(contact, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 30, Short.MAX_VALUE)\n .addGroup(paneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(email, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 30, Short.MAX_VALUE)\n .addGroup(paneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(id1, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 30, Short.MAX_VALUE)\n .addGroup(paneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(password, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(0, 20, Short.MAX_VALUE))\n );\n\n close.setText(\"Close\");\n close.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n closeActionPerformed(evt);\n }\n });\n\n jLabel11.setFont(new java.awt.Font(\"Trajan Pro\", 1, 18)); // NOI18N\n jLabel11.setText(\" STUDENT DATA\");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(Save, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(close, javax.swing.GroupLayout.PREFERRED_SIZE, 87, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(288, 288, 288))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel1)\n .addGap(104, 104, 104)\n .addComponent(jLabel11, javax.swing.GroupLayout.PREFERRED_SIZE, 328, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(pane, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jLabel11, javax.swing.GroupLayout.PREFERRED_SIZE, 57, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(pane, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(Save, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(close, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(10, 10, 10))\n );\n\n pack();\n }", "private WebView createWebView() {\n WebView webView = new WebView();\n webView.setContextMenuEnabled(false);\n\n WebEngine engine = webView.getEngine();\n // The files below must exist! Or pdf viewer no more!\n String url = new File(\"src/Resources/pdfjs_2.7.570/web/viewer.html\").toURI().toString();\n\n engine.setJavaScriptEnabled(true);\n engine.load(url);\n\n\n engine.getLoadWorker()\n .stateProperty()\n .addListener(\n new ChangeListener<>() {\n @Override\n public void changed(ObservableValue<? extends Worker.State> observable, Worker.State oldValue, Worker.State newValue) {\n JSObject window = (JSObject) engine.executeScript(\"window\");\n window.setMember(\"java\", null);\n engine.executeScript(\"console.log = function(message){ try {java.log(message);} catch(e) {} };\");\n\n if (newValue == Worker.State.SUCCEEDED) {\n try {\n PDFDisplayer.this.pdfJsLoaded = true;\n\n if (PDFDisplayer.this.loadScript != null) {\n engine.executeScript(PDFDisplayer.this.loadScript);\n }\n\n engine.executeScript(PDFDisplayer.this.toExecuteWhenPDFJSLoaded);\n PDFDisplayer.this.toExecuteWhenPDFJSLoaded = null;\n observable.removeListener(this);\n } catch (RuntimeException e) {\n e.printStackTrace();\n throw new RuntimeException(e);\n }\n }\n }\n });\n return webView;\n }", "public void actionPerformed(ActionEvent arg0) {\n\t\t \t \ttry {\n\t\t\t\t\t\tDesktop.getDesktop().open(new File(new File(\"\").getAbsolutePath() + \n\t\t\t\t\t\t\t\t\"\\\\src\\\\pdf\\\\DocumentationUtilisateur.pdf\"));\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t }", "@Override\n public void onClick(View view) {\n\n //Check if a paper was actually saved to the device\n if (view.findViewById(R.id.md_title) != null) {\n String paperTitle = (String) view.findViewById(R.id.md_title).getTag();\n PDFViewer viewer = new PDFViewer();\n viewer.openPDF(\"\", paperTitle, view);\n\n }\n else\n {\n CharSequence paperMissingText = \"File not found.\";\n Toast toast = Toast.makeText(mContext, paperMissingText, Toast.LENGTH_SHORT);\n toast.show();\n }\n }", "public void onEndPage(PdfWriter writer, Document document) {\r\n\r\n\t\tImage image;\r\n\t\tFont fontStyle = new Font();\r\n\t\tfontStyle.setColor(255, 255, 255);\r\n\t\tfontStyle.setSize(10);\r\n\t\ttry {\r\n\t\t\timage = Image.getInstance(ResourceUtils.getFile(\"classpath:images\"+File.separator+\"cpmis-submission-pdf-footer.png\").getAbsolutePath());\r\n\t\t\tint indentation = 0;\r\n\t\t\tfloat scaler = ((document.getPageSize().getWidth() - indentation) / image.getWidth()) * 100;\r\n\t\t\timage.scalePercent(scaler);\r\n\t\t\timage.setAbsolutePosition(0, 0);\r\n\t\t\tdocument.add(image);\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tString date = new SimpleDateFormat(\"dd-MM-yyyy\").format(new Date());\r\n\t\tColumnText.showTextAligned(writer.getDirectContent(), Element.ALIGN_CENTER,\r\n\t\t\t\tnew Phrase(String.format(\"Page - %d, Printed on : %s %s\", pagenumber, date, domainName), fontStyle),\r\n\t\t\t\t(document.getPageSize().getWidth()) / 2, document.bottomMargin() - 25, 0);\r\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n fileChooser = new javax.swing.JFileChooser();\n helpBox = new javax.swing.JDialog();\n exitDiaBut = new javax.swing.JButton();\n jScrollPane2 = new javax.swing.JScrollPane();\n helpContent = new javax.swing.JTextArea();\n helpHeading = new javax.swing.JLabel();\n noFile = new javax.swing.JDialog();\n exitNoFileBut = new javax.swing.JButton();\n noFileLabel = new javax.swing.JLabel();\n options = new javax.swing.JDialog();\n outputLabel = new javax.swing.JLabel();\n outputDirText = new javax.swing.JTextField();\n confirmOptions = new javax.swing.JButton();\n cancelOptions = new javax.swing.JButton();\n typeLabel = new javax.swing.JLabel();\n txtRadio = new javax.swing.JRadioButton();\n pdfRadio = new javax.swing.JRadioButton();\n outputBrowseButton = new javax.swing.JButton();\n outputMergeLabel = new javax.swing.JLabel();\n outputMergeCheck = new javax.swing.JCheckBox();\n jSeparator1 = new javax.swing.JSeparator();\n jSeparator2 = new javax.swing.JSeparator();\n jSeparator3 = new javax.swing.JSeparator();\n outputTypeGroup = new javax.swing.ButtonGroup();\n fileChooser1 = new javax.swing.JFileChooser();\n jScrollPane1 = new javax.swing.JScrollPane();\n textArea = new javax.swing.JTextArea();\n startButton = new javax.swing.JButton();\n progressBar = new javax.swing.JProgressBar();\n jMenuBar1 = new javax.swing.JMenuBar();\n fileBar = new javax.swing.JMenu();\n openItem = new javax.swing.JMenuItem();\n exitItem = new javax.swing.JMenuItem();\n editBar = new javax.swing.JMenu();\n optionsItem = new javax.swing.JMenuItem();\n helpBar = new javax.swing.JMenu();\n helpDocItem = new javax.swing.JMenuItem();\n\n fileChooser.setAcceptAllFileFilterUsed(false);\n fileChooser.setDialogTitle(\"\");\n fileChooser.setFileFilter(new FileNameExtensionFilter(\"Files\", \"jpg\", \"png\", \"pdf\"));\n fileChooser.setFileSelectionMode(javax.swing.JFileChooser.FILES_AND_DIRECTORIES);\n\n helpBox.setTitle(\"Help Document\");\n helpBox.setIconImage(new ImageIcon(\"td.jpg\").getImage());\n helpBox.setMinimumSize(new java.awt.Dimension(400, 380));\n\n exitDiaBut.setText(\"Ok\");\n exitDiaBut.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n exitDiaButActionPerformed(evt);\n }\n });\n\n jScrollPane2.setMinimumSize(new java.awt.Dimension(253, 113));\n\n helpContent.setEditable(false);\n helpContent.setColumns(20);\n helpContent.setRows(5);\n helpContent.setText(\"Open:\\n-Supported images file types are JPEG and PNG.\\n-Will read a single PDF file at a time.\\n-Selecting a directory will only select images and PDF's inside \\n the directory.\\n-Only multiple image files (no PDF's) at the same time.\\n\\nOptions:\\n-The ouput location can be changed by selecting \\\"Browse\\\".\\n-The output can be converted to a plain text file or PDF.\\n-The output of multiple files can be merged into a single file.\\n\\nStart:\\n-Click the Start button to start the conversions.\\n-\\\"Done!\\\" will appear in the text area when the procees is done.\");\n jScrollPane2.setViewportView(helpContent);\n\n helpHeading.setFont(new java.awt.Font(\"sansserif\", 1, 18)); // NOI18N\n helpHeading.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n helpHeading.setText(\"Help\");\n\n javax.swing.GroupLayout helpBoxLayout = new javax.swing.GroupLayout(helpBox.getContentPane());\n helpBox.getContentPane().setLayout(helpBoxLayout);\n helpBoxLayout.setHorizontalGroup(\n helpBoxLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(helpBoxLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(helpBoxLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(helpHeading, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, helpBoxLayout.createSequentialGroup()\n .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 388, Short.MAX_VALUE)\n .addContainerGap())))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, helpBoxLayout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(exitDiaBut)\n .addContainerGap())\n );\n helpBoxLayout.setVerticalGroup(\n helpBoxLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, helpBoxLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(helpHeading, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 265, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(exitDiaBut)\n .addContainerGap())\n );\n\n noFile.setTitle(\"No Filles Selected\");\n noFile.setIconImage(new ImageIcon(\"td.jpg\").getImage());\n noFile.setMinimumSize(new java.awt.Dimension(400, 180));\n\n exitNoFileBut.setText(\"ok\");\n exitNoFileBut.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n exitNoFileButActionPerformed(evt);\n }\n });\n\n noFileLabel.setFont(new java.awt.Font(\"sansserif\", 1, 36)); // NOI18N\n noFileLabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n noFileLabel.setText(\"No Files Selected\");\n\n javax.swing.GroupLayout noFileLayout = new javax.swing.GroupLayout(noFile.getContentPane());\n noFile.getContentPane().setLayout(noFileLayout);\n noFileLayout.setHorizontalGroup(\n noFileLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(noFileLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(noFileLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(noFileLayout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(exitNoFileBut))\n .addComponent(noFileLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addContainerGap())\n );\n noFileLayout.setVerticalGroup(\n noFileLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(noFileLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(noFileLabel, javax.swing.GroupLayout.DEFAULT_SIZE, 49, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(exitNoFileBut)\n .addContainerGap())\n );\n\n options.setTitle(\"Options\");\n options.setIconImage(new ImageIcon(\"td.jpg\").getImage());\n options.setMinimumSize(new java.awt.Dimension(400, 200));\n options.setPreferredSize(new java.awt.Dimension(400, 200));\n\n outputLabel.setFont(new java.awt.Font(\"sansserif\", 1, 12)); // NOI18N\n outputLabel.setText(\"Output Directory: \");\n\n confirmOptions.setText(\"Confirm\");\n confirmOptions.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n confirmOptionsActionPerformed(evt);\n }\n });\n\n cancelOptions.setText(\"Cancel\");\n cancelOptions.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cancelOptionsActionPerformed(evt);\n }\n });\n\n typeLabel.setFont(new java.awt.Font(\"sansserif\", 1, 12)); // NOI18N\n typeLabel.setText(\"Output Type: \");\n\n outputTypeGroup.add(txtRadio);\n txtRadio.setSelected(true);\n txtRadio.setText(\"Text\");\n txtRadio.setActionCommand(\"Text\");\n\n outputTypeGroup.add(pdfRadio);\n pdfRadio.setText(\"PDF\");\n pdfRadio.setActionCommand(\"PDF\");\n\n outputBrowseButton.setText(\"Browse\");\n outputBrowseButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n outputBrowseButtonActionPerformed(evt);\n }\n });\n\n outputMergeLabel.setFont(new java.awt.Font(\"sansserif\", 1, 12)); // NOI18N\n outputMergeLabel.setText(\"Merge Output:\");\n\n outputMergeCheck.setText(\"On\");\n\n javax.swing.GroupLayout optionsLayout = new javax.swing.GroupLayout(options.getContentPane());\n options.getContentPane().setLayout(optionsLayout);\n optionsLayout.setHorizontalGroup(\n optionsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(optionsLayout.createSequentialGroup()\n .addGroup(optionsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(optionsLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(optionsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(optionsLayout.createSequentialGroup()\n .addComponent(typeLabel)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtRadio)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(pdfRadio))\n .addGroup(optionsLayout.createSequentialGroup()\n .addComponent(outputMergeLabel)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(outputMergeCheck)))\n .addGap(0, 0, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, optionsLayout.createSequentialGroup()\n .addGroup(optionsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(optionsLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(outputLabel)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(outputDirText, javax.swing.GroupLayout.DEFAULT_SIZE, 207, Short.MAX_VALUE))\n .addGroup(optionsLayout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(confirmOptions)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(optionsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(cancelOptions)\n .addComponent(outputBrowseButton, javax.swing.GroupLayout.Alignment.TRAILING))))\n .addContainerGap())\n .addComponent(jSeparator1)\n .addComponent(jSeparator2)\n .addComponent(jSeparator3)\n );\n optionsLayout.setVerticalGroup(\n optionsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(optionsLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(optionsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(outputLabel)\n .addComponent(outputDirText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(outputBrowseButton))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(2, 2, 2)\n .addGroup(optionsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(typeLabel)\n .addComponent(txtRadio)\n .addComponent(pdfRadio))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(2, 2, 2)\n .addGroup(optionsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(outputMergeLabel)\n .addComponent(outputMergeCheck))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator3, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 7, Short.MAX_VALUE)\n .addGroup(optionsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(cancelOptions)\n .addComponent(confirmOptions))\n .addContainerGap())\n );\n\n fileChooser1.setFileSelectionMode(javax.swing.JFileChooser.DIRECTORIES_ONLY);\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"Text Digitizer\");\n setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n setIconImage(new ImageIcon(\"td.jpg\").getImage());\n\n textArea.setEditable(false);\n textArea.setColumns(20);\n textArea.setRows(5);\n jScrollPane1.setViewportView(textArea);\n\n startButton.setText(\"Start\");\n startButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n startButtonActionPerformed(evt);\n }\n });\n\n fileBar.setText(\"File\");\n\n openItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_O, java.awt.event.InputEvent.CTRL_MASK));\n openItem.setText(\"Open\");\n openItem.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n openItemActionPerformed(evt);\n }\n });\n fileBar.add(openItem);\n\n exitItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_ESCAPE, java.awt.event.InputEvent.CTRL_MASK));\n exitItem.setText(\"Exit\");\n exitItem.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n exitItemActionPerformed(evt);\n }\n });\n fileBar.add(exitItem);\n\n jMenuBar1.add(fileBar);\n\n editBar.setText(\"Edit\");\n\n optionsItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_O, java.awt.event.InputEvent.ALT_MASK | java.awt.event.InputEvent.CTRL_MASK));\n optionsItem.setText(\"Options\");\n optionsItem.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n optionsItemActionPerformed(evt);\n }\n });\n editBar.add(optionsItem);\n\n jMenuBar1.add(editBar);\n\n helpBar.setText(\"Help\");\n\n helpDocItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_H, java.awt.event.InputEvent.ALT_MASK | java.awt.event.InputEvent.CTRL_MASK));\n helpDocItem.setText(\"Help Doc\");\n helpDocItem.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n helpDocItemActionPerformed(evt);\n }\n });\n helpBar.add(helpDocItem);\n\n jMenuBar1.add(helpBar);\n\n setJMenuBar(jMenuBar1);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 388, Short.MAX_VALUE)\n .addGroup(layout.createSequentialGroup()\n .addComponent(progressBar, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(startButton)))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 231, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(startButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(progressBar, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addContainerGap())\n );\n\n pack();\n }", "public void designerAdded(DesignerEvent e);", "private void createViewer(Composite parent)\r\n {\n\t\r\n\tviewer = new TableViewer(parent, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL | SWT.FULL_SELECTION | SWT.BORDER);\r\n\tfinal Table table = viewer.getTable();\r\n\ttable.setHeaderVisible(true);\r\n\ttable.setLinesVisible(true);\r\n\r\n\tviewer.setContentProvider(new ArrayContentProvider());\r\n\r\n\tviewer.setInput(manager.getServerContacts());\r\n\r\n\tgetSite().setSelectionProvider(viewer);\r\n\r\n\tviewerLayout();\r\n }" ]
[ "0.6688746", "0.63019055", "0.60245824", "0.6016898", "0.5899649", "0.58986115", "0.5798539", "0.57766587", "0.5766612", "0.5731059", "0.5715264", "0.5664184", "0.56434584", "0.5623889", "0.56130534", "0.558398", "0.55792105", "0.5577515", "0.55766743", "0.553359", "0.55319726", "0.55186844", "0.5507909", "0.55053324", "0.55044353", "0.5486534", "0.54840165", "0.54683197", "0.546276", "0.54383063", "0.5436833", "0.542562", "0.5418594", "0.5414872", "0.541409", "0.53878915", "0.5376439", "0.536802", "0.53634924", "0.53622746", "0.5362243", "0.53555983", "0.53492105", "0.5336411", "0.53337884", "0.53300285", "0.5321641", "0.5319172", "0.5305358", "0.5293776", "0.52901334", "0.52880865", "0.5277446", "0.52702487", "0.5259863", "0.525306", "0.5251564", "0.5247808", "0.5243253", "0.52170604", "0.52167344", "0.52146965", "0.5206944", "0.52032304", "0.5200631", "0.5197636", "0.519485", "0.5189268", "0.5182076", "0.51736003", "0.5158933", "0.5137812", "0.5130496", "0.5125256", "0.511721", "0.5102644", "0.5083635", "0.5081259", "0.5078605", "0.5075463", "0.50718236", "0.506474", "0.5063953", "0.50628483", "0.5060288", "0.5057468", "0.5052897", "0.50500655", "0.5048395", "0.5047028", "0.5045309", "0.50404704", "0.5040228", "0.50362694", "0.5033943", "0.50335324", "0.50297993", "0.5028997", "0.5019667", "0.50182724", "0.5012254" ]
0.0
-1
BufferedWriter bufferedWriter = new BufferedWriter(new FileWriter(System.getenv("OUTPUT_PATH")));
public static void main(String[] args) throws IOException { int[] h = new int[26]; String[] hItems = scanner.nextLine().split(" "); scanner.skip("(\r\n|[\n\r\u2028\u2029\u0085])?"); for (int i = 0; i < 26; i++) { int hItem = Integer.parseInt(hItems[i]); h[i] = hItem; } String word = scanner.nextLine(); int result = designerPdfViewer(h, word); System.out.println(result); //bufferedWriter.write(String.valueOf(result)); //bufferedWriter.newLine(); //bufferedWriter.close(); scanner.close(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) throws IOException {\n\t\tBufferedWriter bufferedWriter = new BufferedWriter(new FileWriter(System.getenv(\"OUTPUT_PATH\")));\n\t\t\n\t\tbufferedWriter.write(\"Hello\");\n\n\t}", "private static void prepareOutputFile() {\n try {\n outputFileBuffer = new BufferedWriter(new FileWriter(PATH+OUTPUT_FILE_NAME));\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private static BufferedWriter createFileWriter(String filePath) {\n String[] pathComponents = filePath.split(\"/data/\");\n //to avoid heavy nesting in output, replace nested directory with filenames\n\n String output = pathComponents[0] + \"/out/rule_comparisons/\" + pathComponents[1].replace(\"/\",\"-\");\n\n File file = new File(output);\n try {\n //create file in this location if one does not exist\n if (!file.exists()) {\n file.createNewFile();\n }\n return new BufferedWriter(new FileWriter(file));\n } catch (IOException e) {\n e.printStackTrace();\n }\n return null;\n }", "public void open(){\n try {\n output = new BufferedWriter(new FileWriter(training_path, true));\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private BufferedWriter getWriter(int secretPos) throws IOException {\n\t\tFile file = new File(\"reportingTool_tmp\" + sep + this.uniqueName + \"-\" + \"histogram_\" + this.dataset.getSecrets().get(secretPos).getFileName() + \".txt\");\n\t\tFileWriter writer = new FileWriter(file);\n\t\tBufferedWriter bw = new BufferedWriter(writer);\n\t\treturn bw;\n\t}", "public static BufferedWriter Writer(String path) throws IOException\n\t{\n\t\treturn new BufferedWriter(new OutputStreamWriter(new FileOutputStream(path),\"UTF-8\"));\n\t}", "private void createWriter() throws IOException {\n if (outputFile.exists()) {\n outputFile.delete();\n }\n FileWriter outFw = null;\n try {\n outFw = new FileWriter(outputFile.getAbsolutePath());\n } catch (IOException e) {\n LOG.error(\"Can not create writer for {} {}\", outputFile.getAbsolutePath(), e);\n throw e;\n }\n this.bufferedWriter = new BufferedWriter(outFw);\n writeOutputLine(\"User Agent - started\");\n }", "private static void createTestFile(String path) throws IOException {\n\t\tFile file = new File(path);\n\t\tFileWriter writer = new FileWriter(file);\n\t\twriter.write(\"Jenkins Test : \"+new Date() + \" ==> Writing : \" + Math.random());\n\t\twriter.flush();\n\t\twriter.close();\n\t}", "private static void writeOutput(String text) {\n try {\n FileWriter outputWriter = new FileWriter(\"output.txt\", true);\n outputWriter.write(text);\n outputWriter.close();\n } catch (Exception e) {\n System.out.println(\"Could not write to file output.txt\");\n }\n }", "public static void WriteToFile(){\r\n try {\r\n File file = new File(\"output.txt\");\r\n file.createNewFile();\r\n \r\n FileWriter fw = new FileWriter(file.getAbsoluteFile());\r\n BufferedWriter bw = new BufferedWriter(fw);\r\n String[] FinalBoard = new String[Board.ReportBoardValues().length];\r\n FinalBoard = Board.ReportBoardValues();\r\n for(int i = 0; i < Board.ReportBoardValues().length; i++){\r\n bw.write(FinalBoard[i]);\r\n bw.newLine();\r\n }\r\n bw.close();\r\n fw.close();\r\n \r\n }\r\n catch (IOException e) {\r\n System.out.println (\"Output error\");\r\n }\r\n }", "private static void writeToOutput() {\r\n FileWriter salida = null;\r\n String archivo;\r\n JFileChooser jFC = new JFileChooser();\r\n jFC.setDialogTitle(\"KWIC - Seleccione el archivo de salida\");\r\n jFC.setCurrentDirectory(new File(\"src\"));\r\n int res = jFC.showSaveDialog(null);\r\n if (res == JFileChooser.APPROVE_OPTION) {\r\n archivo = jFC.getSelectedFile().getPath();\r\n } else {\r\n archivo = \"src/output.txt\";\r\n }\r\n try {\r\n salida = new FileWriter(archivo);\r\n PrintWriter bfw = new PrintWriter(salida);\r\n System.out.println(\"Índice-KWIC:\");\r\n for (String sentence : kwicIndex) {\r\n bfw.println(sentence);\r\n System.out.println(sentence);\r\n }\r\n bfw.close();\r\n System.out.println(\"Se ha creado satisfactoriamente el archivo de texto\");\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }", "private static void env (final String outFileName) throws IOException {\r\n\t\tstdout.print (\"Recoding: set\\t\");\r\n\t\tvar env = System.getenv ();\r\n\t\tvar out = new StringBuilder ();\r\n\t\tvar path = Paths.get (DIR.toString (), outFileName);\r\n\t\tenv.forEach ((key, value) -> out.append (String.format (\"%s=%s%n\", key, value)));\r\n\t\tFiles.writeString (path, out.toString ());\r\n\t\tstdout.println (\"(Done)\");\r\n\t}", "private void writeFile(String path)\n {\n FileIO fileIO = new FileIO();\n StringBuffer stringBuf = new StringBuffer();\n for(int i = 0; i< getDrivers().getSize(); i++) // go through each driver in the collection\n {\n stringBuf.append(getDrivers().getDriver(i).getName() + \",\" + getDrivers().getDriver(i).getRanking() \n + \",\" + getDrivers().getDriver(i).getSpecialSkill() + ((i == (getDrivers().getSize() - 1)) ? \"\" :\"\\n\")); // append details to buffer\n }\n fileIO.setFileName(path);\n fileIO.writeFile(stringBuf.toString());\n }", "public void FilesBufferWrite2Append() throws IOException {\n \ttry { \t\n \t\t\n \t \t/* This logic will check whether the file\n \t \t \t * exists or not. If the file is not found\n \t \t \t * at the specified location it would create\n \t \t \t * a new file*/\n \t \t \tif (!file.exists()) {\n \t \t\t file.createNewFile();\n \t \t \t}\n \t\t\n \t \t \t//KP : java.nio.file.Files.write - NIO is buffer oriented & IO is stream oriented!]\n \t\tString str2Write = \"\\n\" + LocalDateTime.now().toString() + \"\\t\" + outPrintLn + \"\\n\";\n \t\tFiles.write(Paths.get(outFilePath), str2Write.getBytes(), StandardOpenOption.APPEND);\n \t\t\n \t}catch (IOException e) {\n\t \t// TODO Auto-generated catch block\n\t \te.printStackTrace();\t\t\n\t\t\tSystem.out.print(outPrintLn);\n\t\t\tSystem.out.println(outPrintLn);\t\n \t}\n }", "private static void writeToFile(String[] writeStringArr, String outputFileName){\n BufferedWriter outputBuffer = null;\n try{\n File outputFile = new File(outputFileName);\n if(!outputFile.exists()){\n outputFile.createNewFile();\n }\n\n outputBuffer = new BufferedWriter(new FileWriter(outputFile)); //create buffered reader\n// outputBuffer.write(writeString);\n\n for(int i=0; i< writeStringArr.length; i++){\n outputBuffer.write(writeStringArr[i]);\n outputBuffer.newLine();\n }\n } catch (IOException e){System.err.println(\"Error Writing File\");}\n finally {\n try {\n outputBuffer.close();\n }catch (IOException e){System.err.println(\"Error Closing File\");}\n }\n }", "private void saveLocalFile(ByteArrayOutputStream out) {\n //sava in local files\n FileWriter fw;\n File file = new File(\"/home/shaowen2/testdata/\" + \"vm\" +servers.getServerAddress().substring(15, 17) +\"-ouput.log\");\n\n try {\n if (!file.exists()) {\n file.createNewFile();\n }\n fw = new FileWriter(file);\n BufferedWriter bw = new BufferedWriter(fw);\n bw.write(out.toString());\n //bw.write(\"\\n\" + \"Query Count:\" + count + \"|| Time:\" + new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\").format(new Date()) + \"\\n\");\n bw.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public static BufferedWriter getWriter(Path path) throws IOException {\n return Files.newBufferedWriter(path);\n }", "public void outputToFile(String filemame)\n {\n }", "@Override\n public void write(String str) {\n BufferedWriter writer;\n try {\n String path = FileManager.getInstance().getPath();\n writer = new BufferedWriter(new FileWriter(path, true));\n writer.write(str);\n writer.newLine();\n writer.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private void createSaveData(){\n try {\n File f = new File(filePath, highScores);\n FileWriter output = new FileWriter(f);\n BufferedWriter writer = new BufferedWriter(output);\n\n writer.write(\"0-0-0-0-0\");\n writer.newLine();\n writer.write(\".....-.....-.....-.....-.....\");\n writer.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "private PrintWriter createOutputFile(String outputFile) throws IOException {\n return new PrintWriter(new BufferedWriter(new FileWriter(outputFile)));\n }", "private static void writeToOutput(String path, Apriori apriori){\n try{\n BufferedWriter output = new BufferedWriter(new FileWriter(path, false));\n for (String s : apriori.mItemSet){\n output.write(s);\n }\n output.close();\n } catch (IOException e){\n e.printStackTrace();\n }\n }", "private void outputFile() {\n // Define output file name\n Scanner sc = new Scanner(System.in);\n System.out.println(\"What do you want to call this file?\");\n String name = sc.nextLine();\n\n // Output to file\n Path outputFile = Paths.get(\"submissions/\" + name + \".java\");\n try {\n Files.write(outputFile, imports);\n if (imports.size() > 0)\n Files.write(outputFile, Collections.singletonList(\"\"), StandardOpenOption.APPEND);\n Files.write(outputFile, lines, StandardOpenOption.APPEND);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "@Override\r\n\tpublic int saveProgramToFile(Robot robot, String path)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tBufferedWriter out = new BufferedWriter(new java.io.FileWriter(new java.io.File(path)));\r\n\t\t\tout.write(robot.getProgram().toString());\r\n\t\t\tout.close();\r\n\t\t} \r\n\t\tcatch (IOException e) \r\n\t\t{\r\n\t\t\tSystem.out.println(\"The operation failed.\");\r\n\t\t\treturn -1;\r\n\t\t}\r\n\t\t\r\n\t\treturn 0;\r\n\t}", "public ThingToWriteFile(String filename) { \n\t\ttry { \t\n\t\t\tout = new BufferedWriter(new FileWriter(filename));\n\t\t}\n\t\tcatch (FileNotFoundException ee){\n\t\t\tSystem.out.println(\"File \" + filename + \" not found.\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t\tcatch (IOException e){\n\t\t\tSystem.out.println(\"File \" + filename + \" cannot be read.\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t}", "private void writeTo(String logEntry, File logFile) throws IOException {\n try (FileWriter logFileWriter = new FileWriter(logFile, true);) {\n logFileWriter.write(logEntry);\n logFileWriter.write(System.lineSeparator());\n logFileWriter.flush();\n logFileWriter.close();\n }\n}", "private void writeToFile(){\n try(BufferedWriter br = new BufferedWriter(new FileWriter(filename))){\n for(Teme x:getAll())\n br.write(x.toString()+\"\\n\");\n br.close();\n }catch (IOException e){\n e.printStackTrace();\n }\n }", "public static void main(String[] args) throws IOException {\nFileInputStream fin=new FileInputStream(\"C:\\\\\\\\Users\\\\\\\\Dell\\\\\\\\Desktop\\\\\\\\input.txt\");\nFileOutputStream fout=new FileOutputStream(\"C:\\\\\\\\\\\\\\\\Users\\\\\\\\\\\\\\\\Dell\\\\\\\\\\\\\\\\Desktop\\\\\\\\\\\\\\\\output.txt\");\nint c=0;\nwhile((c=fin.read())!=-1)\n{\n\tfout.write(c);\n}\nSystem.out.println(\"written completed\");\n\t}", "public void write(File output) throws IOException {\n }", "void save(String output);", "protected void fileSet() throws IOException {\n//\t\tfos = new FileOutputStream(outFile, false);\n//\t\tdos = new DataOutputStream(fos);\n\t\trealWriter = new BufferedWriter(new FileWriter(outFile.getAbsolutePath()));\n\t}", "private static void writeOutputFile(BufferedWriter brWr, OutputBean outBean) throws IOException, Exception {\n\t\tif(outBean != null) {\n\t\t\tif(outBean.isNoPathAvailable()) {\n\t\t\t\tbrWr.write(outBean.getExpansion());\n\t\t\t\tbrWr.newLine();\n\t\t\t\tbrWr.write(\"NoPathAvailable\");\n\t\t\t\t//System.out.println(\"NoPathAvailable\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbrWr.write(outBean.getExpansion());\n\t\t\t\tbrWr.newLine();\n\t\t\t\tbrWr.write(outBean.getOutput());\n\t\t\t\tbrWr.newLine();\n\t\t\t\tbrWr.write(String.valueOf(outBean.getPathCost()));\n\t\t\t\t//System.out.println(outBean.getExpansion());\n\t\t\t\t//System.out.println(outBean.getOutput());\n\t\t\t\t//System.out.println(outBean.getPathCost());\n\t\t\t\t}\n\t\t\t}\n\t\telse {\n\t\t\t\tSystem.out.println(\"null outbean object...Check file for validity\");\n\t\t}\n\t}", "public static void main(String[] args) throws IOException {\n\t\tFileWriter fw = new FileWriter(\"C:\\\\Users\\\\shami\\\\OneDrive\\\\Desktop\\\\WriteData.txt\");\n\t\tBufferedWriter bw = new BufferedWriter(fw);\n\t\tbw.write(\"Hello I am Working\");\n\t\tbw.write(\"Hello I am Sleeping\");\n\t\tSystem.out.println(\"Hey Done\");\n\t\tbw.close();\n\t\t\n\n\t}", "private static void writeDataLog(String string, String result) throws IOException {\n\t\tBufferedWriter bw = new BufferedWriter(new FileWriter(new File(string), true));\n\t\tbw.write(result);\n\t\tbw.newLine();\n\t\tbw.flush();\n\t\tbw.close();\n\t}", "public static void main(String args[])\n {\n String FILENAME = \"myfile.txt\";\n\n // When used, the FileWriter object will immediately put it's output\n // to the file. So FileWriter output attempts to write to the file as\n // fast as possible. Maybe this is a good thing in some\n // circumstances, but I think it would be better to write data in\n // chunks. We employ a BufferedWriter object to capture the\n // FileWriter output into a collection of bytes that can be written\n // to the file.\n FileWriter fWriter = null;\n BufferedWriter bWriter = null;\n\n // Wrapping our attempt to write to the file inside a try / catch\n // statement allows us to trap some errors if they happen\n try\n {\n // Here is the content that we will write to the file.\n String fileContent = \"Dude, I'm totally writing to a file!!\";\n\n // These lines instantiate FileWriter and BufferedWriter objects.\n // When instantiating the FileWriter object we pass in the file\n // name that we are writing to. If no path is given in our\n // filename, the file will be created and written in the root\n // directory.\n fWriter = new FileWriter(FILENAME);\n\n // The BufferedWriter object is instantiated on this line and the\n // FileWriter object is passed in as an argument.\n bWriter = new BufferedWriter(fWriter);\n\n // Now that we have our buffer and writer objects created, we can\n // attempt to write content to the file. Here is what\n // (I think) this is doing. The BufferedWriter object will receive\n // the content to be written, and then pass that content as a\n // whole to the FileWriter so it can be written to the file as a\n // chunk. If we did not do it this way, the content would be read\n // passed into the FileWriter object, converted to bytes on the\n // fly, and immediately written, byte by byte as it is converted,\n // to the file. By buffering we are increasing the performance of\n // this action.\n bWriter.write(fileContent);\n }\n\n // The catch statement will trap and display any exception that is\n // created when we are attempting to create our writer objects, open\n // or create the file, or write content.\n catch(Exception e)\n {\n System.out.println(\"Unable to write to file : \" + e.getMessage());\n }\n\n // This 'finally' statement will always happen, regardless of what\n // happens in our try/catch statement. If we put this code into the\n // try statement and we received an error, it would never be\n // processed. Additionally, if we put this code at the bottom of our\n // program and ran into an error half way through, it would never be\n // processed. Placing the code into a finally statement allows us to\n // ensure that it is run every time.\n finally\n {\n // Another try and catch statement to trap any error that happens\n // when closing the files.\n try\n {\n // The last thing we want to do is close out our writer\n // objects. This is a best practice since if you leave the\n // writer open you are at best wasting system resources, and\n // at worst you could lock this file for editing while other\n // resources are trying to use it. We check to make sure it\n // is not already disposed of, and then we call the close()\n // method.\n if (bWriter != null) {\n bWriter.close();\n }\n\n if (fWriter != null) {\n fWriter.close();\n }\n }\n // Our final catch reveals any errors that popped up when we were\n // attempting to close the writer and buffer objects.\n catch (Exception e)\n {\n System.out.println(\"Unable to close writer objects :\"\n + e.getMessage());\n }\n }\n }", "public void saveFile() {\n\t\tPrintWriter output = null;\n\t\ttry {\n\t\t\toutput = new PrintWriter(\"/Users/katejeon/Documents/Spring_2020/CPSC_35339/avengers_project/game_result.txt\");\n\t\t\toutput.println(textArea.getText());\n\t\t\toutput.flush();\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.out.println(\"File doesn't exist.\");\n\t\t} finally {\n\t\t\toutput.close();\n\t\t}\n\t}", "public static void main(String[] args) {\ntry\r\n{\r\n\tFileWriter fw= new FileWriter(\"D:/abc.txt\");\r\n\tString s=\"india \\t is my country\";\r\n\tfw.write(s);\r\n\tfw.flush();\r\n\tfw.close();\r\n}\r\ncatch(IOException e)\r\n{\r\n\tSystem.out.println(e);\r\n}\r\n\t}", "private void cmdWrite(String filename) throws NoSystemException {\n MSystem system = system();\n PrintWriter out = null;\n try {\n if (filename == null)\n out = new PrintWriter(System.out);\n else {\n out = new PrintWriter(new BufferedWriter(new FileWriter(\n filename)));\n }\n out\n .println(\"-- Script generated by USE \"\n + Options.RELEASE_VERSION);\n out.println();\n system.writeSoilStatements(out);\n } catch (IOException ex) {\n Log.error(ex.getMessage());\n } finally {\n if (out != null) {\n out.flush();\n if (filename != null)\n out.close();\n }\n }\n }", "protected void writeCompareOutputFile(String outputText) {\n try {\n BufferedWriter writer = new BufferedWriter(new FileWriter(getFile(), true));\n String lineSeparator = System.getProperty(\"line.separator\");\n writer.write(outputText + lineSeparator);\n writer.flush();\n writer.close();\n } catch (IOException e) {\n System.out.println(e.toString());\n }\n }", "public static void main(String[] args) throws IOException {\n PrintWriter outputFile = new PrintWriter(\"ResultFile.txt\");\n\n outputFile.println(\"Line 1\");\n outputFile.println(\"Line 2\");\n outputFile.println(\"Line 3\");\n outputFile.println(\"Line 4\");\n\n\n outputFile.close();\n\n }", "private void createFile(String outputData, File file) {\n try {\n FileWriter writer = new FileWriter(file);\n writer.write(outputData);\n writer.close();\n } catch (IOException e) {\n e.getSuppressed();\n }\n }", "private void saveOutputFile() {\n FileChooser fileChooser = new FileChooser();\n if (textMergeScript.hasCurrentDirectory()) {\n fileChooser.setInitialDirectory (textMergeScript.getCurrentDirectory());\n }\n chosenOutputFile = fileChooser.showSaveDialog (ownerWindow);\n if (fileChooser != null) {\n writeOutput();\n openOutputDataName.setText (tabNameOutput);\n }\n }", "private BufferedWriter abrirArquivoEscrita() {\n\t\ttry{\n\t\t\tBufferedWriter file = null;\n\t\t\tfile = new BufferedWriter(new FileWriter(caminho));\n\t\t\treturn file;\n\t\t}catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "@Test\n public void testWriteToPrintWriter() throws Exception {\n System.out.println(\"writeToPrintWriter\");\n PrintWriter output = new PrintWriter(\"tmp.log\");\n String data = \"abc\";\n boolean expResult = true;\n boolean result = IOUtil.writeToPrintWriter(output, data);\n assertEquals(expResult, result);\n result = IOUtil.writeToPrintWriter(output, null);\n assertEquals(false, result);\n\n }", "public abstract void saveToFile(PrintWriter out);", "private PrintWriter getStorageFile() throws IOException {\n Path path = Paths.get(filePath);\n\n // Create directories if necessary\n if (path.getParent() != null) {\n Files.createDirectories(path.getParent().getFileName());\n }\n\n return new PrintWriter(new BufferedWriter(new FileWriter(filePath)));\n }", "private static void writeStringToFile(String string) {\n\t\ttry (BufferedWriter writer = new BufferedWriter(new FileWriter(OUTPUT_FILE_TEMP))) {\n\t\t\twriter.write(string);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void writeProc() throws Exception {\n\t\tWriter writer = new Writer(this.procPath,this.procDataList);\n\t\twriter.running();\n\t}", "public static void writeFile(String outFile, String text) {\n try{\n FileWriter fileWriter = new FileWriter(outFile,false);\n PrintWriter pw = new PrintWriter(fileWriter,true);\n \n if (text==null) {\n pw.println();\n }\n else\n {\n pw.println(text);\n }\n \n pw.close();\n fileWriter.close();\n }\n catch(Exception e) {\n e.printStackTrace();\n }\n }", "static void write (String filename, String graph_str) throws IOException {\n \ttry (FileWriter writer = new FileWriter(filename);\n BufferedWriter bw = new BufferedWriter(writer)) {\n bw.write(graph_str);\n } catch (IOException e) {\n System.err.format(\"IOException: %s%n\", e);\n }\n\t}", "public void writeCSVtable(String outBuffer) throws IOException\n {\n String csvFile;\n // Create a file chooser\n File currentDir = new File(\"\").getAbsoluteFile();\n final JFileChooser fc = new JFileChooser(currentDir);\n // In response to a button click:\n int returnVal = fc.showSaveDialog(null);\n // open file\n File file = fc.getSelectedFile();\n // obtain filename\n csvFile = file.getName();\n\n // open the file\n fWriter = new FileWriter(csvFile); \n // write ALL the to the file in 1 burst\n fWriter.write(outBuffer); \n // close the file\n fWriter.close();\n }", "public void createLogFile() {\n\t\tBufferedWriter out = null;\n\t\ttry {\n\t\t\tFile root = Environment.getExternalStorageDirectory();\n\t\t\tLog.e(\"SD CARD WRITE ERROR : \", \"SD CARD mounted and writable? \"\n\t\t\t\t\t+ root.canWrite());\n\t\t\tif (root.canWrite()) {\n\t\t\t\tFile gpxfile = new File(root, \"ReadConfigLog.txt\");\n\t\t\t\tFileWriter gpxwriter = new FileWriter(gpxfile);\n\t\t\t\tout = new BufferedWriter(gpxwriter);\n\t\t\t\tout.write(\"Hello world\");\n\t\t\t\t// out.close();\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tLog.e(\"SD CARD READ ERROR : \", \"Problem reading SD CARD\");\n\t\t\tLog.e(\"SD CARD LOG ERROR : \", \"Please take logs using Logcat\");\n\t\t\tLog.e(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\",\n\t\t\t\t\t\"Could not write file \" + e.getMessage());\n\t\t}\n\t}", "private void saveInFile() {\n try {\n FileOutputStream fos = openFileOutput(FILENAME,\n Context.MODE_PRIVATE);//goes stream based on filename\n BufferedWriter out = new BufferedWriter(new OutputStreamWriter(fos)); //create buffer writer\n Gson gson = new Gson();\n gson.toJson(countbookList, out);//convert java object to json string & save in output\n out.flush();\n fos.close();\n } catch (FileNotFoundException e) {\n throw new RuntimeException();\n } catch (IOException e) {\n throw new RuntimeException();\n }\n }", "private void writeFile(String string) {\n\t\ttry {\n\t\t\tFormatter fileWriter = new Formatter(new File( System.getProperty(\"user.dir\") + \"\\\\highscores.txt\"));\n\t\t\t\n\t\t\tfileWriter.format(string);\n\t\t\t\n\t\t\tfileWriter.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.print(\"ERROR: Line 132: Unable to write file\");\n\t\t\t//e.printStackTrace();\n\t\t}\n\t}", "public static void createSaveFile( )\n {\n try\n {\n new File( \"data\" ).mkdirs( );\n PrintWriter writer = new PrintWriter( \"data/\" + Game.instance.getCurrentSaveFile( ).SAVEFILENAME + \".txt\", \"UTF-8\" );\n writer.println( \"dkeys: \" + Game.START_DIAMOND_KEY_COUNT );\n writer.close( );\n }\n catch ( IOException e )\n {\n e.printStackTrace( );\n System.exit( 1 );\n }\n }", "String getFileOutput();", "public static void RedirectOutput() {\t\n\t\ttry {\n\t\t\tPrintStream out = new PrintStream(new FileOutputStream(\"ybus.txt\"));\n\t\t\tSystem.setOut(out); //Re-assign the standard output stream to a file.\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void writeFile() {\n try {\n FileWriter writer = new FileWriter(writeFile, true);\n writer.write(user + \" \" + password);\n writer.write(\"\\r\\n\"); // write new line\n writer.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n \n }", "static void writeFile(String path , String data) throws IOException{\n\t\tFileOutputStream fo = new FileOutputStream(path,true);\n\t\tfo.write(data.getBytes());\n\t\tfo.close();\n\t\tSystem.out.println(\"Done...\");\n\t}", "private static void dosyaYazici(String text)\n {\n File log = new File(\"log.txt\");\n try\n {\n if (!log.exists())\n {\n log.createNewFile();\n }\n FileWriter fileWriter = new FileWriter(log,true);\n BufferedWriter bufferedWriter = new BufferedWriter(fileWriter);\n bufferedWriter.append(text+\"\\n\");\n bufferedWriter.close();\n //System.out.print(\"TEST\");\n }\n catch (IOException e)\n {\n System.out.print(\"DOSYA HATASI!\");\n e.printStackTrace();\n }\n\n }", "void createFile()\n {\n //Check if file already exists\n try {\n File myObj = new File(\"src/main/java/ex45/exercise45_output.txt\");\n if (myObj.createNewFile()) {\n System.out.println(\"File created: \" + myObj.getName());// created\n } else {\n System.out.println(\"File already exists.\"); //exists\n }\n //Error check\n } catch (IOException e) {\n System.out.println(\"An error occurred.\");\n e.printStackTrace();\n }\n }", "private void writeToFile(SVGGraphics2D generator, String path) throws IOException {\n\t\tFile file = new File(path);\n\t\tif (!file.exists())\n\t\t\tfile.createNewFile();\n\t\tFileWriter fw = new FileWriter(file);\n\t\tPrintWriter writer = new PrintWriter(fw);\n\t\tgenerator.stream(writer);\n\t\twriter.close();\n\t}", "public void saveFile(TaskList tasklist) {\n try {\n String cwd = System.getProperty(\"user.dir\");\n FileWriter fw = new FileWriter(cwd + filePath);\n for (Task task : tasklist.getTasks()) {\n String data = task.getData();\n fw.write(data + System.lineSeparator());\n }\n fw.close();\n } catch (IOException e) {\n System.out.println(\"Something went wrong: \" + e.getMessage());\n }\n\n }", "void setOutputPath(String outputPath);", "void writeToFile() throws IOException{\n\t\tString fileName = f.getTitle() + \".txt\";\n\t\tfileWrite = new BufferedWriter( new FileWriter(fileName));\n\t\tfileWrite.write(history);\n\t\tSystem.out.println(fileName + \" File Writing Successful!!\");\n\t\tSystem.out.println(\"Data in file :\\n\" + history);\n\t\tfileWrite.flush();\n\t\tFile file = new File(fileName);\n\t\tjava.awt.Desktop.getDesktop().open(file);\n\n\t}", "public static void WriteFile()throws java.io.FileNotFoundException,java.io.IOException\n {\n FileOutputStream out1= new FileOutputStream(\"Sample.bin\") ; \n String ab=\"Welcome to sample file\";\n out1.write(ab.getBytes());\n out1.flush();\n out1.close();\n }", "public void writeFile(String data){\n\t\t\n\t\tcurrentLine = data;\n\t\t\n\t\t\ttry{ \n\t\t\t\tFile file = new File(\"/Users/bpfruin/Documents/CSPP51036/hw3-bpfruin/src/phfmm/output.txt\");\n \n\t\t\t\t//if file doesnt exists, then create it\n\t\t\t\tif(!file.exists()){\n\t\t\t\t\tfile.createNewFile();\n\t\t\t\t}\n \n\t\t\t\t//true = append file\n\t\t\t\tFileWriter fileWriter = new FileWriter(file,true);\n \t \tBufferedWriter bufferWriter = new BufferedWriter(fileWriter);\n \t \tbufferWriter.write(data);\n \t \tbufferWriter.close();\n \n \n\t\t\t}catch(IOException e){\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\n\t\t\n\t}", "public abstract void writeToFile( );", "private BufferedWriter openCacheFile() throws IOException {\n boolean hasLock = false;\n while (!hasLock) {\n synchronized (this) {\n if (!lock) {\n lock = true;\n hasLock = true;\n }\n }\n if (!hasLock) try {\n Thread.sleep(1000);\n } catch (Exception e) {\n }\n }\n tmpFile = new File(cacheDir, \"changeLog.tmp\");\n if (tmpFile.exists()) tmpFile.delete();\n tmpFile.createNewFile();\n BufferedWriter out = new BufferedWriter(new FileWriter(tmpFile));\n if (cacheFile.exists()) {\n BufferedReader in = new BufferedReader(new FileReader(cacheFile));\n String nextLine = in.readLine();\n while (nextLine != null) {\n out.write(nextLine);\n out.newLine();\n nextLine = in.readLine();\n }\n in.close();\n }\n return out;\n }", "private void writeFile(String line, BufferedWriter theOutFile) throws Exception {\n\t\ttheOutFile.append(line);\t\t\t// write the line out\n\t\ttheOutFile.newLine();\t\t\t\t// skip to the next line\t\t\n\t}", "private void setupWriter() {\n output = new StringWriter();\n writer = new PrintWriter(output);\n }", "public static void writeToFile(String path, String text) throws IOException {\n Charset charSet = Charset.forName(\"US-ASCII\");\n BufferedWriter writer = new BufferedWriter(new FileWriter(path));\n writer.write(text,0,text.length());\n writer.close();\n }", "private void writeToFile(){\n Calendar c = Calendar.getInstance();\n String dateMedTaken = DateFormat.getDateInstance(DateFormat.FULL).format(c);\n FileOutputStream fos = null;\n\n try {\n fos = openFileOutput(FILE_NAME, MODE_APPEND);\n fos.write(dateMedTaken.getBytes());\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n if(fos != null){\n try {\n fos.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n\n }", "public void writeToFile(String s,String outFile) \n\t{\n\t\ttry \n\t\t{\n\t\t\tbw = new BufferedWriter(new FileWriter(outFile));\n\t\t\tbw.write(s);\n\t\t\tMyLogger.writeMessage(\"Results written to file\", MyLogger.DebugLevel.RESULTS);\n\t\t\tbw.close();\n\t\t}\n\t\tcatch(IOException e) {\n\t\t\tSystem.err.println(\"Exception: writing to output.txt\");\n\t\t\tSystem.err.println(\"Exiting\");\n\t\t\tSystem.err.println(e.getMessage());\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(1);\n\t\t}\n\t\t\n\t}", "private BufferedWriter createWriter(String filePath, String fileName)\r\n\t\t\tthrows IOException {\r\n\t\tString fullPath = filePath + \"/\" + fileName;\r\n\t\tFile file = new File(fullPath);\r\n\t\tboolean exists = new File(filePath).exists();\r\n\t\tif (!exists) {\r\n\t\t\tfile.mkdir();\r\n\t\t}\r\n\t\tFileWriter writer = new FileWriter(file);\r\n\t\tBufferedWriter bufferWriter = new BufferedWriter(writer);\r\n\r\n\t\treturn bufferWriter;\r\n\t}", "private static void writeToFile(String string){\n try {\n buffer.write(string);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public static void writeToFile(String context, String outputFileName) throws IOException {\n KubernetesDataHolder dataHolder = KubernetesContext.getInstance().getDataHolder();\n outputFileName = dataHolder.getOutputDir() + File\n .separator + extractBalxName(dataHolder.getBalxFilePath()) + outputFileName;\n DeploymentModel deploymentModel = dataHolder.getDeploymentModel();\n JobModel jobModel = dataHolder.getJobModel();\n // Priority given for job, then deployment.\n if (jobModel != null && jobModel.isSingleYAML()) {\n outputFileName =\n dataHolder.getOutputDir() + File.separator + extractBalxName(dataHolder.getBalxFilePath()) + YAML;\n } else if (jobModel == null && deploymentModel != null && deploymentModel.isSingleYAML()) {\n outputFileName =\n dataHolder.getOutputDir() + File.separator + extractBalxName(dataHolder.getBalxFilePath()) + YAML;\n \n }\n File newFile = new File(outputFileName);\n // append if file exists\n if (newFile.exists()) {\n Files.write(Paths.get(outputFileName), context.getBytes(StandardCharsets.UTF_8), StandardOpenOption.APPEND);\n return;\n }\n //create required directories\n if (newFile.getParentFile().mkdirs()) {\n Files.write(Paths.get(outputFileName), context.getBytes(StandardCharsets.UTF_8));\n return;\n }\n Files.write(Paths.get(outputFileName), context.getBytes(StandardCharsets.UTF_8));\n }", "public void writeOut(PrintWriter pw){}", "public static void saveAs(String line,String path)\n {\n \ttry (BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(path), \"utf-8\"))) {//goes to the directory\n \t\n \t\twriter.write(line,0,line.length());//saves the lines starting from 0 till the length of the lines\n \t} catch (Exception x) {\n \t\tx.printStackTrace();\n \t}\n }", "Path getWritePath()\n {\n return writePath;\n }", "private void writeToFiles(Context resultContext) throws IOException {\n\t\tMap<String, Map<Object, ArrayList<Object>>> keyValMappingByBaseOutputPath = resultContext.getKeyValMappingsByBaseOutputPath(); \n\t\t//Write key & value to each baseOutputPath's \n\t\tPath targetOutputDir = null;\n\t\tMap<Object, ArrayList<Object>> keyValMapping = null;\n\t\tPath finalOutputBaseDir = this.config.getFinalOutputDir();\n\t\tfor (String baseOutputPath: keyValMappingByBaseOutputPath.keySet()) {\n\t\t\tif (baseOutputPath.equals(\"\")) {\n\t\t\t\t//Regular output goes into the mapper output buffer directory.\n\t\t\t\ttargetOutputDir = this.config.getMapOutputBufferDir();\n\t\t\t}else {\n\t\t\t\t//Multiple output to a particular outputPath which was \n\t\t\t\t//specified by user goes into the final output directory. \n\t\t\t\ttargetOutputDir = Paths.get(finalOutputBaseDir.toString(), baseOutputPath);\n\t\t\t}\n\t\t\tkeyValMapping = keyValMappingByBaseOutputPath.get(baseOutputPath);\n\t\t\tthis.writeEachMapping(targetOutputDir, keyValMapping);\n\t\t};\n\t}", "public void writer(Vector<String> toWrite, String path) throws IOException {\n file = new File(path);\n fw = new FileWriter(file);\n\n for (int i = 0; i < toWrite.size(); i++) {\n fw.write(toWrite.get(i));\n fw.write('\\n');\n fw.flush();\n }\n }", "protected abstract void writeFile();", "public static void writeToCSV() {\n final String CSV_SEPARATOR = \",\";\n final String QUOTE = \"\\\"\";\n if (!Crawler.getKeyWordsHits().isEmpty()) {\n try (BufferedWriter bufferedWriter =\n new BufferedWriter(\n new OutputStreamWriter(\n new FileOutputStream(\"results.csv\", true), StandardCharsets.UTF_8))) {\n\n Crawler.getKeyWordsHits().forEach((keyWord, hitsNumber) -> {\n String oneLine = QUOTE + keyWord + QUOTE +\n CSV_SEPARATOR +\n hitsNumber;\n try {\n bufferedWriter.write(oneLine);\n bufferedWriter.newLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n });\n String lastLine = QUOTE + Crawler.getUrl() + QUOTE + CSV_SEPARATOR + Crawler.getTotalHits();\n bufferedWriter.write(lastLine);\n bufferedWriter.newLine();\n bufferedWriter.flush();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n Crawler.setKeyWordsHits(new HashMap<>());\n Crawler.setTotalHits(0);\n }", "public static void save(String line)\n {\n \ttry (BufferedWriter writer = Files.newBufferedWriter(path, StandardCharsets.UTF_8)) {\n \t\twriter.write(line,0,line.length());//takes the lines stars from the index 0 and saves till the end\n \t} catch (Exception x) {\n \t\tx.printStackTrace();//prints stack if something is worng\n \t}\n }", "public static void createJsonFile(JsonObject json) throws IOException {\n\r\n FileWriter file = new FileWriter(\"outputfile\", false);\r\n try {\r\n file.write(Jsoner.prettyPrint(json.toJson(),2));\r\n file.flush();\r\n } catch (IOException e) {\r\n out.println(\"Error \" + e);\r\n }\r\n }", "private void writeToFile() throws IOException {\n\t\tFileWriter write = new FileWriter(path);\n\t\tPrintWriter print_line = new PrintWriter(write);\n\t\t\n\t\tEnumeration<String> fd_key_Enum = fileData.keys();\n\t\tEnumeration<String> fd_value_Enum = fileData.elements();\n\t\twhile (fd_key_Enum.hasMoreElements() && fd_value_Enum.hasMoreElements()) {\n\t\t\tprint_line.printf(\"%s\" + \"%n\", fd_key_Enum.nextElement() + \":\" + fd_value_Enum.nextElement());\n\t\t}\n\t\t\n\t\tprint_line.close();\n\t\twrite.close();\n\t}", "private void CreateNewFile() {\n\tcheckState();\n\t\n\tif (CanR=CanW=true)\n\t{\n\t\t\n\t\ttry {\n\t\t root = Environment.getExternalStorageDirectory();\n\t\t \n\t\t if (root.canWrite()){\n\t\t gpxfile = new File(root, \"Speed_SD.csv\");\n\t\t gpxwriter = new FileWriter(gpxfile,true);\n\t\t out = new BufferedWriter(gpxwriter);\nout.append(\"\"+\",\"+\"\"+\",\"+\"\");\n\t\t out.newLine();\n\t\t }\n\t\t} catch (IOException e) {\n\t\t //Log.e(, \"Could not write file \" + e.getMessage());\ne.printStackTrace();\n\t\t\n\t}\n\t\t\n}\n\t\t}", "public void generateOutputFile(String inputFile) {\n\n String outputFile = properties.getProperty(\"output.directory\")\n + properties.getProperty(\"output.file.distinct\");\n\n\n try (PrintWriter out = new PrintWriter(new BufferedWriter(\n new FileWriter(outputFile)))){\n\n loopThroughTokens(out);\n\n\n } catch (FileNotFoundException fileNotFound) {\n fileNotFound.printStackTrace();\n } catch (IOException inputOutputException) {\n inputOutputException.printStackTrace();\n } catch (Exception exception) {\n exception.printStackTrace();\n }\n }", "public static BufferedOutputStream getOutput(Path path) throws IOException {\n return get(Files.newOutputStream(path));\n }", "public static void main(String[] args) throws IOException {\n\r\n\t\t\r\n\t\tString file = \"data/example.txt\";\r\n\t\t\r\n\t\t\r\n\t\t//2. Create object of FileWrite\r\n\t\t\r\n\t\tFileWriter fw = new FileWriter (file);\r\n\t\t\r\n\t\tfw.write(\"This is my example file\");\r\n\t\t\r\n\t\t//3. you have to close the file.\r\n\t\t\r\n\t\tfw.close();\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "private boolean writeToFile(String message) \n\t{\n\t BufferedWriter writer = null;\n\t boolean status = false;\n\t\ttry {\n\t\t\twriter = new BufferedWriter(new FileWriter(outputFile, true));\n\t\t\twriter.write(\"\\n\"+message);\n\t\t writer.close();\n\t\t status = true;\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"Error occured in writing output to file: \"+e.getLocalizedMessage());\n\t\t\ttry {\n\t\t\t\tif(writer!=null) {\n\t\t\t\t\twriter.close();\n\t\t\t\t}\n\t\t\t} catch (IOException e1) {\n\t\t\t\tSystem.err.println(\"Error occured in closing filewriter: \"+e1.getLocalizedMessage());\n\t\t\t}\n\t\t\treturn status;\n\t\t}\n\t\treturn status; \n\t \n\t}", "private void saveResourceFile()\r\n\t{\t\r\n\t\tFile file = null;\r\n\t\tFileWriter fw = null;\r\n\t\t//File complete = null;//New file for the completed list\r\n\t\t//FileWriter fw2 = null;//Can't use the same filewriter to do both the end task and the complted products.\r\n\t\ttry{\r\n\t\t\tfile = new File(outFileName);\r\n\t\t\tfile.createNewFile();\r\n\t\t\tfw = new FileWriter(outFileName,true);\r\n\t\t\tfor(FactoryObject object : mFObjects)\r\n\t\t\t{\r\n\t\t\t\tif(object instanceof FactoryReporter) {\r\n\t\t\t\t\t((FactoryReporter)object).report(fw);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (IOException ioe) {\r\n\t\t\tSystem.out.println(ioe.getMessage());\r\n\t\t\tif(file != null) {\r\n\t\t\t\tfile.delete();\r\n\t\t\t}\r\n\t\t} finally {\r\n\t\t\tif(fw != null) {\r\n\t\t\t\ttry{\r\n\t\t\t\t\tfw.close();\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\tSystem.out.println(\"Failed to close the filewriter!\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void writeFile(String text, String writePath)\r\n\t{\r\n\t\t//Use a filewriter but change it to a buffered writer. Open writing on the file provided by writePath\r\n\t\ttry (BufferedWriter writer = new BufferedWriter(new FileWriter(writePath)))\r\n\t\t{\r\n\t\t\t// Write given text to file\r\n\t\t\twriter.write(text);\t\r\n\t\t} \r\n\t\tcatch (IOException except)\r\n\t\t{\r\n\t\t\texcept.printStackTrace();\r\n\t\t}\r\n\r\n\t}", "public void writeFile(String content){\n\t\tFile file = new File(filePath);\n\t\t\n\t\tBufferedWriter bw = null;\n\t\t\n\t\ttry{\n\t\t\tif (!file.exists())\n\t\t\t\tfile.createNewFile();\n\t\t\t\n\t\t\tbw = new BufferedWriter(new FileWriter(file));\n\t\t\tbw.write(content);\n\t\t}\n\t\tcatch (Exception oops){\n\t\t\tSystem.err.print(\"There was an error writing the file \"+oops.getStackTrace());\n\t\t}\n\t\tfinally{\n\t\t\ttry{\n\t\t\t\tbw.close();\n\t\t\t}\t\n\t\t\tcatch(IOException oops){\n\t\t\t\tSystem.err.print(\"There was an error closing the write buffer \"+oops.getStackTrace());\n\t\t\t}\n\t\t}\n\t}", "public void writeToFile(String outputName) throws Exception{\n if (trials == null || data == null) throw new Exception(\"Must read marker and data file before writing it out\");\n BufferedWriter bw = new BufferedWriter(new FileWriter(outputName));\n \n //.. write out the headers\n for (int i= FIRSTPROBEINDEX; i < header.length; i++) {\n bw.write(header[i]);\n bw.write(\",\");\n }\n \n //.. write out condition\n bw.write(\"condition\");\n \n bw.write(\"\\n\");\n int rowNum =0;\n \n //.. write out actual data\n for (String [] row : data) {\n if (row.length!= header.length) System.out.println(\"Row has \" + row.length + \" whereas header has \" + header.length);\n String label =null;\n for (int i = FIRSTPROBEINDEX; i < row.length; i++) {\n label = getLabel(rowNum); //.. will be null if it doesn't exist\n \n if (label != null ) {\n bw.write(row[i]);\n bw.write(\",\");\n }\n }\n if (label!=null) {\n //System.out.println(\"Writing \" + getLabel(rowNum));\n String condition = getLabel(rowNum);\n bw.write(condition);\n bw.write(\"\\n\");\n \n //.. this is a hack since my program gives an error if a conditon jsut has one line\n if (condition.equals(\"passed\")) duplicateLastLine(bw, row, condition,20 );\n \n }\n rowNum++;\n }\n \n bw.close();\n }", "public void writeFile(String filename, ArrayList<String> output)\n {\n try\n {\n PrintWriter write = new PrintWriter(filename);\n for(String out : output)\n {\n write.println(out);\n }\n write.close();\n }\n catch(FileNotFoundException exception) \n {\n String error = filename + \" not found\";\n System.out.println(error);\n }\n \n catch(IOException exception) \n {\n String error = \"Unexpected I/O error occured\";\n System.out.println(error); \n } \n }", "public void printDataToFile(){\n\ttry {\n\t File file = new File(\"media/gameOutput.txt\");\n \n\t // if file doesnt exists, then create it\n\t if (!file.exists()) {\n\t\tfile.createNewFile();\n\t }\n \n\t FileWriter fw = new FileWriter(file.getAbsoluteFile());\n\t BufferedWriter bw = new BufferedWriter(fw);\n\t bw.write(printString);\n\t bw.close();\n\t} catch (IOException e) {\n\t e.printStackTrace();\n\t}\n }", "public void writeOutputFile(String inputFilePath) {\n\n String outputFile = properties.getProperty(\"output.dir\") +\n properties.getProperty(\"output.file.token.size\");\n\n PrintWriter writer = null;\n try {\n writer = createOutputFile(outputFile);\n writeTotalsToFile(writer);\n writer.println();\n writer.println();\n writeHistograms(writer);\n } catch (IOException iOE) {\n System.out.println(\"Error Writing to \" + outputFile);\n iOE.printStackTrace();\n } catch (Exception exception) {\n System.out.println(\"General Error\");\n exception.printStackTrace();\n } finally {\n try {\n if (writer != null) {\n writer.close();\n }\n } catch (Exception exception) {\n\n exception.printStackTrace();\n }\n }\n }", "public void writeFile(String OUTPUT_PATH, boolean header) throws IOException {\r\n\t\t\r\n\t\tif(System.getProperty(\"os.name\").contains(\"indows\")) {\r\n\t\t\t// do nothing, hopefully\r\n\t\t} else {\r\n\t\t\tOUTPUT_PATH = OUTPUT_PATH.replace(\"\\\\\", \"/\");\r\n\t\t}\r\n\t\t\r\n\t\tBufferedWriter output = null;\r\n\t\tFile file = new File(OUTPUT_PATH);\r\n\t\toutput = new BufferedWriter(new FileWriter(file));\r\n\t\t\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\tif(header == true) {\r\n\t\t\tfor(int i = 0; i < this.fieldNames.length; i++) {\r\n\t\t\t\tsb.append(this.fieldNames[i]);\r\n\t\t\t\tif(i != this.fieldNames.length-1) {\r\n\t\t\t\t\tsb.append(\"\\t\");\r\n\t\t\t\t}\r\n\t\t\t} sb.append(\"\\n\");\r\n\t\t\toutput.write(sb.toString());\r\n\t\t\tsb = new StringBuilder();\r\n\t\t}\r\n\t\t\r\n\t\tfor(int i = 0; i < this.nrow(); i++) {\r\n\t\t\toutput.write(String.join(\"\\t\", this.get(i)) + \"\\n\");\r\n\t\t}\r\n\t\tSystem.out.println(this.nrow());\r\n\t\toutput.close();\r\n\t}", "void writeToFile () throws IOException{\n FileWriter deleteFile = new FileWriter(\"Resolved Ticket of \" + this.resovedDate + \".txt\");\n BufferedWriter FileDeleted = new BufferedWriter(deleteFile);\n\n FileDeleted.write(\"Resolution: \" + this.Resolution + \" ; Date: \" + this.resovedDate);\n FileDeleted.close();\n }" ]
[ "0.7209582", "0.6817599", "0.6046835", "0.60262144", "0.6007037", "0.5917299", "0.5893141", "0.58166444", "0.57778126", "0.5759957", "0.5615087", "0.56052816", "0.55831736", "0.557736", "0.5569164", "0.55371886", "0.5534559", "0.5509321", "0.54986763", "0.5494936", "0.5481345", "0.54490453", "0.5433753", "0.5432741", "0.54263055", "0.5419204", "0.5402746", "0.540055", "0.5400222", "0.5382765", "0.5378555", "0.5373941", "0.53380954", "0.53374475", "0.53316003", "0.5325708", "0.5308338", "0.5301613", "0.52981925", "0.5294312", "0.52890325", "0.5288314", "0.52794313", "0.5270553", "0.5264462", "0.5260678", "0.52492875", "0.5235449", "0.5225506", "0.5223884", "0.5219123", "0.5216157", "0.521348", "0.52102345", "0.51757306", "0.5174456", "0.5167008", "0.5161599", "0.51544785", "0.5151356", "0.5150755", "0.5141775", "0.5132618", "0.51287395", "0.5125607", "0.51238894", "0.512027", "0.51190335", "0.51176596", "0.5117194", "0.51152515", "0.5114475", "0.5104835", "0.50997907", "0.50959134", "0.5091379", "0.50833625", "0.507838", "0.50726736", "0.5071926", "0.5068525", "0.5062025", "0.50548434", "0.50475", "0.5043947", "0.5040971", "0.5037857", "0.5026401", "0.5021704", "0.50010675", "0.50000054", "0.499467", "0.49839434", "0.49773666", "0.49770078", "0.49743855", "0.4968901", "0.49647176", "0.49593887", "0.49532562", "0.49529433" ]
0.0
-1
Creates the track display
protected void displayTrack() { // Clear display first displayBox.getChildren().clear(); legendBox.getChildren().clear(); for (int i = 0; i < CTC.numTracks; i++) { for (final Block block: CTC.tracks[i]) { double startX = block.startX/10+10; double startY = block.startY/10+10; double endX = block.endX/10+10; double endY = block.endY/10+10; //*/ For crisp looking lines startX = Math.floor(startX) + .5; startY = Math.floor(startY) + .5; endX = Math.floor(endX) + .5; endY = Math.floor(endY) + .5; //*/ Line line = new Line(startX, startY, endX, endY); String strokeStyle; if (block.hasStation()) { strokeStyle = "-fx-stroke: #FFFFFF; -fx-stroke-width: 1px;"; line.setStrokeType(StrokeType.OUTSIDE); line.setTranslateX(-.5); line.setTranslateY(-.5); final Popup stationPopup = new Popup(); // Add a mouseover for the line line.setOnMouseEntered(new EventHandler<MouseEvent>() { public void handle (MouseEvent event) { Label stationName = new Label(" " + block.stationName + " "); stationPopup.getContent().add(stationName); stationName.setStyle("-fx-background-color: #FFFFFF"); stationPopup.show(CTC.ctcStage, event.getScreenX(), event.getScreenY() - 20); } }); line.setOnMouseExited(new EventHandler<MouseEvent>() { public void handle (MouseEvent event) { stationPopup.hide(); } }); } else strokeStyle = "-fx-stroke: " + CTC.tracks[i].color + ";"; line.setStyle(strokeStyle); line.setVisible(true); displayBox.getChildren().add(line); } // Display legend at the right of the track HBox trackLegend = new HBox(); Rectangle trackSymbol = new Rectangle(20, 3); Label trackLabel = new Label(CTC.tracks[i].toString(), trackSymbol); String symbolStyle = "-fx-fill: " + CTC.tracks[i].color + ";"; trackSymbol.setStyle(symbolStyle); trackLegend.getChildren().addAll(trackLabel); legendBox.getChildren().add(trackLegend); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initTracks() {\n ((javax.swing.plaf.basic.BasicInternalFrameUI)jInternalFrame1.getUI()).setNorthPane(null);\n jInternalFrame1.setVisible(false);\n ((javax.swing.plaf.basic.BasicInternalFrameUI)jInternalFrame2.getUI()).setNorthPane(null);\n jInternalFrame2.setVisible(false);\n ((javax.swing.plaf.basic.BasicInternalFrameUI)jInternalFrame3.getUI()).setNorthPane(null);\n jInternalFrame3.setVisible(false);\n ((javax.swing.plaf.basic.BasicInternalFrameUI)jInternalFrame4.getUI()).setNorthPane(null);\n jInternalFrame4.setVisible(false);\n \n //Creates the track array\n trackArray = new javax.swing.JInternalFrame[4];\n trackArray[0] = jInternalFrame1;\n trackArray[1] = jInternalFrame2;\n trackArray[2] = jInternalFrame3;\n trackArray[3] = jInternalFrame4;\n \n //Creates the waveforme array\n waveArray = new javax.swing.JPanel[4];\n waveArray[0] = track1Wave;\n waveArray[1] = track2Wave;\n waveArray[2] = track3Wave;\n waveArray[3] = track4Wave;\n \n //Creates tracklabel array\n labelArray = new javax.swing.JLabel[4];\n labelArray[0] = jLabel18;\n labelArray[1] = jLabel19;\n labelArray[2] = jLabel17;\n labelArray[3] = jLabel20;\n }", "public Track(){\n\t\tthis.trk = trackGenerator();\n\n\t}", "public StreamRecorderDisplay() {\n initialize();\n }", "public static Track generateTrack() {\n List<Position> positions = new ArrayList<>();\n DirectionsRoute dr = DirectionsRoute.fromJson(getJsonFromAssets(GlobalContext.getContext(),\"testDirections.json\"));\n positions.add(new Position(48.408880, 9.997507,1587652587));\n positions.add(new Position(48.408980, 9.997807,1587652597));\n Track track = new Track(\"nullacht15\", new Rating(), \"Heimweg\", \"Das ist meine super tolle Strecke\", 1585773516, 25,\n dr, new ArrayList<>(), positions.get(0),positions.get(1),true);\n return track;\n }", "public void createPlayer() {\n mainHandler = new Handler();\n videoTrackSelectionFactory = new AdaptiveTrackSelection.Factory(bandwidthMeter);\n trackSelector = new DefaultTrackSelector(videoTrackSelectionFactory);\n player = ExoPlayerFactory.newSimpleInstance(this, trackSelector);\n }", "public void create() {\n connect();\n batch = new SpriteBatch();\n font = new BitmapFont();\n\n audioManager.preloadTracks(\"midlevelmusic.wav\", \"firstlevelmusic.wav\", \"finallevelmusic.wav\", \"mainmenumusic.wav\");\n\n mainMenuScreen = new MainMenuScreen(this);\n pauseMenuScreen = new PauseMenuScreen(this);\n settingsScreen = new SettingsScreen(this);\n completeLevelScreen = new CompleteLevelScreen(this);\n completeGameScreen = new CompleteGameScreen(this);\n\n setScreen(mainMenuScreen);\n }", "void addMidiControls() { \r\n // Add a slider to control the tempo \r\n final JSlider tempo = new JSlider(50, 200); \r\n tempo.setValue((int) (sequencer.getTempoFactor() * 100)); \r\n tempo.setBorder(new TitledBorder(\"Tempo Adjustment (%)\")); \r\n java.util.Hashtable labels = new java.util.Hashtable(); \r\n labels.put(new Integer(50), new JLabel(\"50%\")); \r\n labels.put(new Integer(100), new JLabel(\"100%\")); \r\n labels.put(new Integer(200), new JLabel(\"200%\")); \r\n tempo.setLabelTable(labels); \r\n tempo.setPaintLabels(true); \r\n // The event listener actually changes the tempo \r\n tempo.addChangeListener(new ChangeListener() { \r\n public void stateChanged(ChangeEvent e) { \r\n sequencer.setTempoFactor(tempo.getValue() / 100.0f); \r\n } \r\n }); \r\n \r\n this.add(tempo); \r\n \r\n // Create rows of solo and checkboxes for each track \r\n Track[] tracks = sequence.getTracks(); \r\n for (int i = 0; i < tracks.length; i++) { \r\n final int tracknum = i; \r\n // Two checkboxes per track \r\n final JCheckBox solo = new JCheckBox(\"solo\"); \r\n final JCheckBox mute = new JCheckBox(\"mute\"); \r\n // The listeners solo or mute the track \r\n solo.addActionListener(new ActionListener() { \r\n public void actionPerformed(ActionEvent e) { \r\n sequencer.setTrackSolo(tracknum, solo.isSelected()); \r\n } \r\n }); \r\n mute.addActionListener(new ActionListener() { \r\n public void actionPerformed(ActionEvent e) { \r\n sequencer.setTrackMute(tracknum, mute.isSelected()); \r\n } \r\n }); \r\n \r\n // Build up a row \r\n Box box = Box.createHorizontalBox(); \r\n box.add(new JLabel(\"Track \" + tracknum)); \r\n box.add(Box.createHorizontalStrut(10)); \r\n box.add(solo); \r\n box.add(Box.createHorizontalStrut(10)); \r\n box.add(mute); \r\n box.add(Box.createHorizontalGlue()); \r\n // And add it to this component \r\n this.add(box); \r\n } \r\n }", "private void makeDisplay() {\n\n\t\t// setLayout to be a BoxLayout\n\t\tsetLayout(new BoxLayout(this, BoxLayout.Y_AXIS));\n\t\t// call these methods ???? to be defined later\n\n\t\taddOscServerAddressPanel();\n\t\taddGlobalControlPanel();\n\t\taddFirstSynthPanel();\n\t\taddSecondSynthPanel();\n\t\taddThirdSynthPanel();\n\t}", "private void createDisplay()\n {\n // Creates frame based off of the parameters passed in Display constructor\n frame = new JFrame(title); \n frame.setSize(width, height);\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.setResizable(false); \n frame.setLocationRelativeTo(null);\n frame.setVisible(true);\n // Creates the canvas that is drawn on\n canvas = new Canvas();\n canvas.setPreferredSize(new Dimension(width,height));\n canvas.setMaximumSize(new Dimension(width,height));\n canvas.setMinimumSize(new Dimension(width,height));\n canvas.setFocusable(false);\n //add the canvas to the window\n frame.add(canvas);\n //pack the window (kinda like sealing it off)\n frame.pack();\n }", "public void setPlaybackInfo(Track track) {\n RelativeLayout playbackInfoTop = (RelativeLayout) findViewById(R.id.playback_info_top);\n LinearLayout playbackInfoBottom = (LinearLayout) findViewById(R.id.playback_info_bottom);\n if (playbackInfoTop != null)\n playbackInfoTop.setClickable(false);\n if (playbackInfoBottom != null)\n playbackInfoBottom.setClickable(false);\n\n if (track != null) {\n ImageView playbackInfoAlbumArtTop = (ImageView) findViewById(R.id.playback_info_album_art_top);\n TextView playbackInfoArtistTop = (TextView) findViewById(R.id.playback_info_artist_top);\n TextView playbackInfoTitleTop = (TextView) findViewById(R.id.playback_info_title_top);\n ImageView playbackInfoAlbumArtBottom = (ImageView) findViewById(R.id.playback_info_album_art_bottom);\n TextView playbackInfoArtistBottom = (TextView) findViewById(R.id.playback_info_artist_bottom);\n TextView playbackInfoTitleBottom = (TextView) findViewById(R.id.playback_info_title_bottom);\n Bitmap albumArt = null;\n if (track.getAlbum() != null)\n albumArt = track.getAlbum().getAlbumArt();\n if (playbackInfoAlbumArtTop != null && playbackInfoArtistTop != null && playbackInfoTitleTop != null) {\n if (albumArt != null)\n playbackInfoAlbumArtTop.setImageBitmap(albumArt);\n else\n playbackInfoAlbumArtTop.setImageDrawable(getResources().getDrawable(\n R.drawable.no_album_art_placeholder));\n playbackInfoArtistTop.setText(track.getArtist().toString());\n playbackInfoTitleTop.setText(track.getTitle());\n playbackInfoTop.setClickable(true);\n }\n if (playbackInfoAlbumArtBottom != null && playbackInfoArtistBottom != null && playbackInfoTitleBottom != null) {\n if (albumArt != null)\n playbackInfoAlbumArtBottom.setImageBitmap(albumArt);\n else\n playbackInfoAlbumArtBottom.setImageDrawable(getResources().getDrawable(\n R.drawable.no_album_art_placeholder));\n playbackInfoArtistBottom.setText(track.getArtist().toString());\n playbackInfoTitleBottom.setText(track.getTitle());\n playbackInfoBottom.setClickable(true);\n }\n } else\n return;\n }", "public TrackPlayer()\n\t{\n\t\tindex = 0;\n\n\t\ttmr = new AnimationTimer() {\n\t\t\t@Override\n\t\t\tpublic void handle(long xxx) {\n\t\t\t\tdouble now = System.currentTimeMillis() * .001;\n\t\t\t\tif (lastUpdate != -1) {\n\t\t\t\t\telapsed += now - lastUpdate;\n\t\t\t\t\tif (elapsed >= 60.0 / ClearComposer.cc.getTempo())\n\t\t\t\t\t{\n\t\t\t\t\t\telapsed = 0;\n\t\t\t\t\t\tplayNotes();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\telapsed = 0;\n\t\t\t\t\tplayNotes();\n\t\t\t\t}\n\t\t\t\tlastUpdate = now;\n\t\t\t}\n\t\t};\n\n\t\ttracks = new ArrayList<>();\n\t}", "private void createView() {\n\t\tif (txtButtonCaption == null) {\n\t\t\tView v = LayoutInflater.from(getContext()).inflate(R.layout.ijoomer_voice_button, null);\n\n\t\t\tlnrPlayVoice = (LinearLayout) v.findViewById(R.id.lnrPlayVoice);\n\t\t\tlnrReportVoice = (LinearLayout) v.findViewById(R.id.lnrReportVoice);\n\n\t\t\ttxtButtonCaption = (IjoomerTextView) v.findViewById(R.id.txtButtonCaption);\n\t\t\timgPlay = (ImageView) v.findViewById(R.id.imgPlay);\n\t\t\tgifVoiceLoader = (IjoomerGifView) v.findViewById(R.id.gifVoiceLoader);\n\n\t\t\timgReport = (ImageView) v.findViewById(R.id.imgReport);\n\t\t\ttxtReportCaption = (IjoomerTextView) v.findViewById(R.id.txtReportCaption);\n\n\t\t\tpbrLoading = (ProgressBar) v.findViewById(R.id.pbrLoading);\n\n\t\t\taddView(v, new LinearLayout.LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT));\n\t\t\tupdateView();\n\t\t\tsetActionListener();\n\t\t}\n\t}", "@Override\n\tpublic void create() {\n\t\tthis.playScreen = new PlayScreen<EntityUnknownGame>(this);\n\t\tsetScreen(this.playScreen);\n\t\t\n\t\t//this.shadowMapTest = new ShadowMappingTest<EntityUnknownGame>(this);\n\t\t//setScreen(this.shadowMapTest);\n\t\t\n\t\t//this.StillModelTest = new StillModelTest<EntityUnknownGame>(this);\n\t\t//setScreen(this.StillModelTest);\n\t\t\n//\t\tthis.keyframedModelTest = new KeyframedModelTest<EntityUnknownGame>(this);\n//\t\tsetScreen(this.keyframedModelTest);\n\t}", "Track(){\n\t}", "public Track() {\r\n }", "public static void createDisplay() {\n ContextAttribs attribs = new ContextAttribs(3, 2).withForwardCompatible(true)\n .withProfileCore(true);\n\n try {\n if (!goFullscreen) {\n Display.setDisplayMode(new DisplayMode(WIDTH, HEIGHT));\n } else {\n Display.setFullscreen(true);\n }\n Display.create(new PixelFormat(), attribs);\n Display.setVSyncEnabled(true);\n Display.setTitle(\"Our First Display!\");\n GL11.glEnable(GL13.GL_MULTISAMPLE);\n } catch (LWJGLException e) {\n e.printStackTrace();\n }\n\n GL11.glViewport(0, 0, Display.getWidth(), Display.getHeight());\n lastFrameTime = getCurrentTime();\n }", "protected JComponent createRecordDisplay() {\n \trecordPanel = new JPanel(new BorderLayout());\n \trecordDisplay = new JLabel();\n \trecordDisplay.setHorizontalAlignment(JLabel.CENTER);\n \t\n \tupdateDisplays();\n \t\n \trecordPanel.setOpaque(false);\n \trecordPanel.setBackground(Color.YELLOW);\n \trecordPanel.setForeground(Color.WHITE);\n \trecordPanel.add(recordDisplay,BorderLayout.NORTH);\n \trecordPanel.setPreferredSize(new Dimension(400,268));\n \t\n \treturn recordPanel; \t \t\n }", "private void createYourMusicTitle() {\n\t\tjpYourMusic = new JPanel(new GridLayout(1,1));\n\t\tjpYourMusic.setOpaque(false);\n\t\tJLabel jlYourMusic = new JLabel(\"YOUR MUSIC\");\t\t\n\t\tjlYourMusic.setFont(new java.awt.Font(\"Century Gothic\",0, 17));\n\t\tjlYourMusic.setForeground(new Color(250,250,250));\n\t\tjpYourMusic.add(jlYourMusic);\n\t}", "public JPanelUpload() {\n initComponents();\n JPanelTrack.setBase(tracksStart);\n updateTrackList();\n }", "private Dialog buildTracksDialog() {\n final ContentResolver resolver = getContentResolver();\n final ContentValues values = new ContentValues();\n \n final Cursor cursor = managedQuery(Tracks.CONTENT_URI, null, null, null, null);\n cursor.setNotificationUri(resolver, Tracks.CONTENT_URI);\n \n final int COL_ID = cursor.getColumnIndex(Tracks._ID);\n \n // Wrap this dialog in a specific theme so that list items have correct\n // text color, otherwise they inherit from our white theme.\n final Context dialogContext = new ContextThemeWrapper(this, android.R.style.Theme_Black);\n \n AlertDialog.Builder builder = new AlertDialog.Builder(dialogContext);\n builder.setInverseBackgroundForced(true);\n builder.setTitle(R.string.menu_tracks);\n builder.setPositiveButton(getString(android.R.string.ok), null);\n builder.setNegativeButton(getString(android.R.string.cancel), null);\n \n builder.setMultiChoiceItems(cursor, TracksColumns.VISIBLE, TracksColumns.TRACK,\n new OnMultiChoiceClickListener() {\n public void onClick(DialogInterface dialog, int which, boolean isChecked) {\n // Build Uri for this specific track\n cursor.moveToPosition(which);\n long trackId = cursor.getLong(COL_ID);\n Uri trackUri = ContentUris.withAppendedId(Tracks.CONTENT_URI, trackId);\n \n // Update visible state of this track\n values.clear();\n values.put(TracksColumns.VISIBLE, isChecked ? 1 : 0);\n resolver.update(trackUri, values, null, null);\n \n cursor.requery();\n \n }\n });\n \n return builder.create();\n }", "private static void createAndShowGUI() {\n\t\t//creating the GUI\n\t\tPhotoViewer myViewer = new PhotoViewer();\n\n\t\t//setting the title\n\t\tmyViewer.setTitle(\"Cameron Chiaramonte (ccc7sej)\");\n\n\t\t//making sure it will close when the x is clicked\n\t\tmyViewer.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\t//calling the method to add the components to the pane and then making it visible\n\t\tmyViewer.addComponentsToPane(myViewer.getContentPane());\n\t\tmyViewer.pack();\n\t\tmyViewer.setVisible(true);\n\t}", "private void initPlayModeView() {\n playMode = new Label(\"PLAY\");\n playMode.setPrefSize(200,100);\n playMode.setFont(Font.font(null, FontWeight.BOLD, 30));\n playMode.setTextFill(Color.BLUE);\n playMode.setEffect(getDropShadow());\n }", "public MyTrackContainer(){\n\t}", "private void createGUI() {\n\t\tframe = new JFrame();\n\t\tframe.setTitle(\"My first player\");\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\tframe.getContentPane().setBackground(Color.PINK);\n\t\tbtnPlay.setFont(new Font(\"FreeSerif\", Font.BOLD, 16));\n\t\tbtnPlay.setBounds(27, 80, 107, 22);\n\t\tbtnPlay.setEnabled(false);\n\t\tbtnStop.setFont(new Font(\"FreeSerif\", Font.BOLD, 16));\n\t\tbtnStop.setBounds(321, 79, 117, 25);\n\t\tbtnStop.setEnabled(false);\n\t\tbtnPause.setFont(new Font(\"FreeSerif\", Font.BOLD, 16));\n\t\tbtnPause.setBounds(170, 79, 117, 25);\n\t\tbtnPause.setEnabled(false);\n\t\tbtnOpen.setFont(new Font(\"FreeSerif\", Font.BOLD, 16));\n\t\tbtnOpen.setBounds(113, 43, 249, 25);\n\t\tlblMyMusic.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblMyMusic.setForeground(new Color(51, 51, 51));\n\t\tlblMyMusic.setFont(new Font(\"FreeSerif\", Font.BOLD, 20));\n\t\tlblMyMusic.setBounds(101, 174, 261, 57);\n\n\t}", "@Override\n\tpublic void surfaceCreated(SurfaceHolder arg0) {\n\t\tsd = new SpectrogramDrawer(dac, this.getWidth(), this.getHeight(), this.getHolder());\n\t\t// disable the resume button (as the user has not paused the spectrogram yet):\n\t\tspectroFragment.disableResumeButton();\n\t\t// set the initial values for the axis text views:\n\t\tspectroFragment.setLeftTimeText(-sd.getScreenFillTime());\n\t\tspectroFragment.setRightTimeText(sd.getTimeFromStopAtPixel(getWidth()));\n\t\tspectroFragment.setTopFreqText(sd.getMaxFrequency() / 1000);\n\t}", "private void setupView() {\n //TODO Enter animation\n\n //setup button\n recordButtonToggle(true);\n resetButtonToggle(false);\n playButtonToggle(false);\n submitButtonToggle(false);\n\n tvChronometer.setText(getString(R.string.dummy_00_00));\n\n tvEmptyHistory.setVisibility(View.VISIBLE);\n item_one.setVisibility(View.INVISIBLE);\n item_two.setVisibility(View.INVISIBLE);\n\n pbCircle.setSmoothPercent(0.0f);\n\n //setup TextView\n Bundle bundle = this.getArguments();\n if (bundle != null) {\n\n String surahName = bundle.getString(Constants.AYAT_SURAHNAME);\n String subAyat = bundle.getString(Constants.AYAT_SUBAYAT);\n String ayatId = bundle.getString(Constants.AYAT_ID);\n\n if (!TextUtils.isEmpty(surahName) && !TextUtils.isEmpty(subAyat) &&!TextUtils.isEmpty(ayatId)) {\n //Set surah name\n tvSurahName.setText(surahName);\n\n //Set surah ayat\n tvVerse.setText(subAyat);\n\n //Save id in model\n presenter.setSurahId(ayatId);\n\n //Save sub ayat in model\n presenter.setAyat(subAyat);\n } else {\n activity.onBackPressed();\n }\n\n //Save surahName for output recording location\n String outputFileName = utils.trimSurahNameToFileName(tvSurahName.getText().toString());\n presenter.setAudioFileName(outputFileName);\n presenter.setSurahName(tvSurahName.getText().toString());\n\n presenter.initializedRecorder();\n\n //Get recite time from server\n presenter.processGetReciteTime(ayatId);\n } else {\n activity.onBackPressed();\n }\n\n //Setup folder for recording\n //TODO Ask for permission!\n boolean folder = new FileManager().createdReciteFolder();\n if (!folder) {\n //Unsuccessful create folder\n utils.getToast(activity, getString(R.string.error_create_folder));\n //disable record button\n recordButtonToggle(false);\n }\n }", "public BubbleDisplay createBubbleDisplay()\n\t{\t\n\t\tbubbleDisplay = new BubbleDisplay();\n\t\treturn bubbleDisplay;\n\t}", "public void updateTrackDetails() {\n if (mTracks != null && !mTracks.isEmpty()) {\n Track track = mTracks.get(mPlayingIndex);\n if (track != null) {\n mArtistName.setText(track.getArtistName());\n mAlbumName.setText(track.getAlbumName());\n Picasso.with(getActivity()).load(track.getThumbnailImageUrl())\n .into(mAlbumArtWork);\n mTrackName.setText(track.getTrackName());\n mTrackDuration.setText(Utilities.getFormatedTime(30000));\n mNowPlaying = \"#NowPlaying \" + track.getTrackUrl();\n if (mShareActionProvider != null) {\n mShareActionProvider.setShareIntent(createShareNowPlayingIntent());\n }\n }\n }\n }", "private void setupDisplay() {\n sizeFirstField_.setText(Double.toString(af_.SIZE_FIRST));\n numFirstField_.setText(Double.toString(af_.NUM_FIRST));\n sizeSecondField_.setText(Double.toString(af_.SIZE_SECOND));\n numSecondField_.setText(Double.toString(af_.NUM_SECOND));\n cropSizeField_.setText(Double.toString(af_.CROP_SIZE));\n thresField_.setText(Double.toString(af_.THRES));\n channelField1_.setText(af_.CHANNEL1);\n channelField2_.setText(af_.CHANNEL2);\n }", "public void createAndShowGUI() {\n\t\tcontroller = new ControllerClass(); \r\n\r\n\t\t// Create and set up the window\r\n\t\twindowLookAndFeel();\r\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tsetTitle(\"Media Works - Add Screen\");\r\n\t\tsetResizable(false);\r\n\t\tadd(componentSetup());\r\n\t\tpack();\r\n\t\tsetSize(720,540);\r\n\t\tsetLocationRelativeTo(null);\r\n\t\tsetVisible(true);\r\n\t}", "protected void createContents() {\r\n\t\tsetText(Messages.getString(\"HMS.PatientManagementShell.title\"));\r\n\t\tsetSize(900, 700);\r\n\r\n\t}", "protected void createContents() {\n\t\tMonitor primary = this.getDisplay().getPrimaryMonitor();\n\t\tRectangle bounds = primary.getBounds();\n\t\tRectangle rect = getBounds();\n\t\tint x = bounds.x + (bounds.width - rect.width) / 2;\n\t\tint y = bounds.y + (bounds.height - rect.height) / 2;\n\t\tsetLocation(x, y);\n\t}", "private void setupVisualizerFxAndUI() {\n\n mLinearLayout = (LinearLayout) findViewById(R.id.linearLayoutVisual);\n // Create a VisualizerView to display the audio waveform for the current settings\n mVisualizerView = new VisualizerView(this);\n mVisualizerView.setLayoutParams(new ViewGroup.LayoutParams(\n ViewGroup.LayoutParams.MATCH_PARENT,\n (int) (VISUALIZER_HEIGHT_DIP * getResources().getDisplayMetrics().density)));\n mLinearLayout.addView(mVisualizerView);\n\n // Create the Visualizer object and attach it to our media player.\n\n\n\n\n\n\n mVisualizer = new Visualizer(mMediaPlayer.getAudioSessionId());\n //mVisualizer = new Visualizer(0);\n mVisualizer.setCaptureSize(Visualizer.getCaptureSizeRange()[1]);\n\n mVisualizer.setDataCaptureListener(new Visualizer.OnDataCaptureListener() {\n public void onWaveFormDataCapture(Visualizer visualizer, byte[] bytes,\n int samplingRate) {\n mVisualizerView.updateVisualizer(bytes);\n }\n\n public void onFftDataCapture(Visualizer visualizer, byte[] bytes, int samplingRate) {\n }\n }, Visualizer.getMaxCaptureRate() / 2, true, false);\n }", "public Track create(Track track) {\n \n // membuat sebuah ContentValues, yang berfungsi\n // untuk memasangkan data dengan nama-nama\n // kolom pada database\n ContentValues values = new ContentValues();\n values.put(HelperTrack.COLUMN_CONNECTION_ID, track.getConnection_id());\n values.put(HelperTrack.COLUMN_ANGKOT_ID, track.getAngkot_id());\n values.put(HelperTrack.COLUMN_PATH, track.getPath());\n \n // mengeksekusi perintah SQL insert data\n // yang akan mengembalikan sebuah insert ID \n long insertId = database.insert(HelperTrack.TABLE_NAME, null,\n values);\n \n // setelah data dimasukkan, memanggil perintah SQL Select \n // menggunakan Cursor untuk melihat apakah data tadi benar2 sudah masuk\n // dengan menyesuaikan ID = insertID \n Cursor cursor = database.query(HelperTrack.TABLE_NAME,\n allColumns, HelperTrack.COLUMN_ID + \" = \" + insertId, null,\n null, null, null);\n \n // pindah ke data paling pertama \n cursor.moveToFirst();\n \n // mengubah objek pada kursor pertama tadi\n // ke dalam objek barang\n Track newTrack = cursorToObject(cursor);\n \n // close cursor\n cursor.close();\n \n // mengembalikan object baru\n return newTrack;\n }", "@Override\r\n public void create() {\r\n super.create();\r\n setTitle(title);\r\n }", "public ClockDisplay()\r\n\t{\t\t\r\n\t\t\r\n\t\tthis.numberDisplay1 = new NumberDisplay();\r\n\t}", "@Override\n public void create() {\n setScreen(new ServerScreen(\n new RemoteGame(),\n new SocketIoGameServer(HOST, PORT)\n ));\n }", "private void drawTrack(GL2 gl, GLU glu) {\r\n // Rectangle storing the offsets of the track\r\n double offset[] = new double[4];\r\n\r\n // Prepare the rectangle\r\n if (alignment.equals(Alignment.horizontal)) {\r\n offset[0] = x1;\r\n offset[1] = y1 - (trackWidth / 2);\r\n offset[2] = x2;\r\n offset[3] = y2 + (trackWidth / 2);\r\n } else {\r\n offset[0] = x1 - (trackWidth / 2);\r\n offset[1] = y1;\r\n offset[2] = x2 + (trackWidth / 2);\r\n offset[3] = y2;\r\n }\r\n\r\n // Apply track color\r\n gl.glColor4dv(trackColor.getColor(), 0);\r\n\r\n // Draw the track as a rectangle\r\n gl.glRectd(offset[0], offset[1], offset[2], offset[3]);\r\n }", "protected void createComponents() {\n sampleText = new JTextField(20);\n displayArea = new JLabel(\"\");\n displayArea.setPreferredSize(new Dimension(200, 75));\n displayArea.setMinimumSize(new Dimension(200, 75));\n }", "private void createCompositeGoodsShow() {\r\n\t\tGridData gridData4 = new GridData();\r\n\t\tgridData4.grabExcessHorizontalSpace = true;\r\n\t\tgridData4.horizontalSpan = 3;\r\n\t\tgridData4.heightHint = 380;\r\n\t\tgridData4.widthHint = 560;\r\n\t\tgridData4.grabExcessVerticalSpace = true;\r\n\t\tGridLayout gridLayout3 = new GridLayout();\r\n\t\tgridLayout3.numColumns = 3;\r\n\t\tcompositeGoodsShow = new Composite(compositeGoodsMange, SWT.NONE);\r\n\t\tcompositeGoodsShow.setLayout(gridLayout3);\r\n\t\tcompositeGoodsShow.setLayoutData(gridData4);\r\n\t\tdisplayRoom(compositeGoodsShow);\r\n\t}", "public HTSViewInfo() {\n super(\"HTS View\", new AppVersion(15),\n \"Copyright (C) 2014-${year} Antony Holmes\",\n new HTSViewIcon(),\n \"View read track data at multiple resolutions.\");\n }", "void setTrack(String track) {\r\n this.track = track;\r\n }", "public void createDashboard() {\n\t\tscoreText = new TextObject(\" \", 0, 0);\n\t\tthis.addGameObject(scoreText);\n\n\t}", "private void addTracksTab() {\n Intent intent = new Intent(this, SessionsExpandableListActivity.class);\n intent.setData(Blocks.CONTENT_URI);\n //intent.putExtra(SessionsExpandableListActivity.EXTRA_CHILD_MODE,\n // SessionsExpandableListActivity.CHILD_MODE_STARRED);\n \n TabSpec spec = mTabHost.newTabSpec(TAG_TWITTER);\n spec.setIndicator(mResources.getString(R.string.tracks), mResources\n .getDrawable(R.drawable.ic_menu_archive));\n spec.setContent(intent);\n \n mTabHost.addTab(spec);\n }", "public void createFrame() {\r\n System.out.println(\"Framing: Adding the log walls.\");\r\n }", "private void createTopPanel(){\n computerPaquetView = new ViewDeckVisible(true);\n this.getContentPane().add(computerPaquetView);\n }", "public void makeGraphic() {\n\t\tStdDraw.clear();\n\n\t\tfor (int i = 0; i < p.showArray.size(); i++) {\n\t\t\tStdDraw.setPenColor(0, 255, 255);\n\n\t\t\tStdDraw.circle(p.showArray.get(i).acquirePosition().x, p.showArray.get(i).acquirePosition().y,\n\t\t\t\t\tp.showArray.get(i).acquireSizeOfBody());\n\t\t\tStdDraw.setPenColor(StdDraw.GRAY);\n\n\t\t\tStdDraw.filledCircle(p.showArray.get(i).acquirePosition().x, p.showArray.get(i).acquirePosition().y,\n\t\t\t\t\tp.showArray.get(i).acquireSizeOfBody());\n\n\t\t}\n\t\tStdDraw.show();\n\t}", "public Track() {\n locations = new ArrayList<>();\n cars = new ArrayList<>();\n }", "private VirtualDisplay createVirtualDisplay() {\n // 建立virtualDisplay\n return mediaProjection.createVirtualDisplay(\"MainActivity\", screenWidth, screenHeight, screenDensity,\n DisplayManager.VIRTUAL_DISPLAY_FLAG_AUTO_MIRROR, mediaRecorder.getSurface(), null, null);\n }", "private void createDisplayEditOverlay() {\n\t}", "public Display() {\n initComponents();\n }", "public void render(Activity activity, Display display, ViewGroup rootView) {\n rootView.removeAllViews();\n rootView.setBackgroundColor(getColor());\n vibrator = (Vibrator) rootView.getContext().getSystemService(Context.VIBRATOR_SERVICE);\n\n SharedPreferences preferences = activity.getSharedPreferences(AudioSenseConstants.sharedPrefName, 0);\n int surveysTakenToday = preferences.getInt(\"dailyTakenSurveys\",0) + 1;\n int surveysGivenToday = preferences.getInt(\"dailyGivenSurveys\",0) + 1;\n int surveysTakenTotal = preferences.getInt(\"totalTakenSurveys\",0) + 1;\n int surveysGivenTotal = preferences.getInt(\"totalGivenSurveys\",0) + 1;\n\n LinearLayout.LayoutParams paramTitle = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT,display.getHeight() / 10);\n paramTitle.gravity = Gravity.CENTER_HORIZONTAL;\n LinearLayout.LayoutParams paramText = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT,display.getHeight() / 20);\n LinearLayout.LayoutParams paramTextSpace = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT,display.getHeight() / 40);\n LinearLayout.LayoutParams paramEndSpace = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT,7 * display.getHeight() / 40);\n LinearLayout.LayoutParams paramNavPanel = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT);\n\n TextView titleSpace = new TextView(activity);\n rootView.addView(titleSpace,paramTextSpace);\n\n TextView title = StaticUIComponents.blueInstructionTextView(activity, getContent().getInstructionQuestion(), 36);\n rootView.addView(title,paramTitle);\n\n TextView firstSpace = new TextView(activity);\n rootView.addView(firstSpace,paramTextSpace);\n\n TextView completedToday = new TextView(activity);\n completedToday.setText(\"Surveys Completed Today: \" + Integer.toString(surveysTakenToday));\n rootView.addView(completedToday,paramText);\n completedToday.setTextSize(20);\n\n TextView secondSpace = new TextView(activity);\n rootView.addView(secondSpace,paramTextSpace);\n\n TextView givenToday = new TextView(activity);\n givenToday.setText(\"Surveys Given Today: \" + Integer.toString(surveysGivenToday));\n rootView.addView(givenToday, paramText);\n givenToday.setTextSize(20);\n\n TextView thirdSpace = new TextView(activity);\n rootView.addView(thirdSpace,paramTextSpace);\n\n TextView todayPercent = new TextView(activity);\n todayPercent.setText(\"Today's Completion: \" + Integer.toString((int) Math.floor(\n (((double) surveysTakenToday) / ((double) surveysGivenToday)) * 100)) + \"%\");\n rootView.addView(todayPercent,paramText);\n todayPercent.setTextSize(20);\n\n TextView fourthSpace = new TextView(activity);\n rootView.addView(fourthSpace,paramTextSpace);\n\n TextView completedTotal = new TextView(activity);\n completedTotal .setText(\"Total Surveys Taken: \" + Integer.toString(surveysTakenTotal));\n rootView.addView(completedTotal ,paramText);\n completedTotal.setTextSize(20);\n\n TextView fifthSpace = new TextView(activity);\n rootView.addView(fifthSpace,paramTextSpace);\n\n TextView givenTotal = new TextView(activity);\n givenTotal.setText(\"Total Surveys Given: \" + Integer.toString(surveysGivenTotal));\n rootView.addView(givenTotal, paramText);\n givenTotal.setTextSize(20);\n\n TextView sixthSpace = new TextView(activity);\n rootView.addView(sixthSpace,paramTextSpace);\n\n TextView totalPercent = new TextView(activity);\n totalPercent.setText(\"Total Completion: \" + Integer.toString((int) Math.floor(\n (((double) surveysTakenTotal) / ((double) surveysGivenTotal)) * 100)) + \"%\");\n rootView.addView(totalPercent,paramText);\n totalPercent.setTextSize(20);\n\n TextView endSpace = new TextView(activity);\n rootView.addView(endSpace,paramEndSpace);\n\n // create two direction nav panel\n RelativeLayout navPanel = StaticUIComponents.twoDirectionNavBar(activity,\n new PrevScreenSurveyListener(),\n new NextScreenSurveyListener(activity),\n \"Back\",\"Submit\", true, display);\n rootView.addView(navPanel,paramNavPanel);\n\n\n\n }", "public void display() {\n startPreview();\n }", "public static void create() {\r\n render();\r\n }", "@Override\n\tpublic void create() {\n\t\t// This should come from the platform\n\t\theight = platform.getScreenDimension().getHeight();\n\t\twidth = platform.getScreenDimension().getWidth();\n\n\t\t// create the drawing boards\n\t\tsb = new SpriteBatch();\n\t\tsr = new ShapeRenderer();\n\n\t\t// Push in first state\n\t\tgsm.push(new CountDownState(gsm));\n//\t\tgsm.push(new PlayState(gsm));\n\t}", "@Override\n public void Create() {\n\n initView();\n }", "void infoSetUp() {\r\n\t\tJPanel imageInfo = new JPanel();\r\n\t\timageInfo.setLayout(new GridLayout(2, 0));\r\n\t\tJPanel mButtons = new JPanel();\r\n\r\n\t\tJButton save = new JButton(\"save\");\r\n\t\tJButton upload = new JButton(\"upload\");\r\n\t\tJButton delete = new JButton(\"delete\");\r\n\t\tJButton view = new JButton(\"open\");\r\n\r\n\t\tupload.setActionCommand(\"upload\");\r\n\t\tview.setActionCommand(\"view\");\r\n\t\tActionListener upList = new UpList();\r\n\t\tupload.addActionListener(upList);\r\n\t\tview.addActionListener(upList);\r\n\t\tmButtons.add(save);\r\n\t\tmButtons.add(upload);\r\n\t\tmButtons.add(delete);\r\n\t\tmButtons.add(view);\r\n\r\n\t\tJTextArea info = new JTextArea(\"Path: \");\r\n\t\tinfo.setEditable(false);\r\n\t\timageInfo.add(info);\r\n\t\timageInfo.add(mButtons);\r\n\t\tmainFrame.add(imageInfo);\r\n\t\tinfoText = info;\r\n\t}", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(538, 450);\n\t\tshell.setText(\"SWT Application\");\n\n\t\tfinal DateTime dateTime = new DateTime(shell, SWT.BORDER | SWT.CALENDAR);\n\t\tdateTime.setBounds(10, 10, 514, 290);\n\n\t\tfinal DateTime dateTime_1 = new DateTime(shell, SWT.BORDER | SWT.TIME);\n\t\tdateTime_1.setBounds(10, 306, 135, 29);\n\t\tvideoPath = new Text(shell, SWT.BORDER);\n\t\tvideoPath.setBounds(220, 306, 207, 27);\n\n\t\tButton btnBrowseVideo = new Button(shell, SWT.NONE);\n\t\tbtnBrowseVideo.addListener(SWT.Selection, new Listener() {\n\t\t\t@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\tFileDialog fileDialog = new FileDialog(shell, SWT.MULTI);\n\t\t\t\tString fileFilterPath = \"\";\n\t\t\t\tfileDialog.setFilterPath(fileFilterPath);\n\t\t\t\tfileDialog.setFilterExtensions(new String[] { \"*.*\" });\n\t\t\t\tfileDialog.setFilterNames(new String[] { \"Any\" });\n\t\t\t\tString firstFile = fileDialog.open();\n\t\t\t\tif (firstFile != null) {\n\t\t\t\t\tvideoPath.setText(firstFile);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnBrowseVideo.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\n\t\t\t}\n\t\t});\n\t\tbtnBrowseVideo.setBounds(433, 306, 91, 29);\n\t\tbtnBrowseVideo.setText(\"browse\");\n\t\ttorrentPath = new Text(shell, SWT.BORDER);\n\t\ttorrentPath.setBounds(220, 341, 207, 27);\n\t\tButton btnBrowseTorrent = new Button(shell, SWT.NONE);\n\t\tbtnBrowseTorrent.setText(\"browse\");\n\t\tbtnBrowseTorrent.setBounds(433, 339, 91, 29);\n\t\tbtnBrowseTorrent.addListener(SWT.Selection, new Listener() {\n\t\t\t@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\tFileDialog fileDialog = new FileDialog(shell, SWT.MULTI);\n\t\t\t\tString fileFilterPath = \"\";\n\t\t\t\tfileDialog.setFilterPath(fileFilterPath);\n\t\t\t\tfileDialog.setFilterExtensions(new String[] { \"*.*\" });\n\t\t\t\tfileDialog.setFilterNames(new String[] { \"Any\" });\n\t\t\t\tString firstFile = fileDialog.open();\n\t\t\t\tif (firstFile != null) {\n\t\t\t\t\ttorrentPath.setText(firstFile);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tButton btnGenerateTorrent = new Button(shell, SWT.NONE);\n\t\tbtnGenerateTorrent.setBounds(10, 374, 516, 29);\n\t\tbtnGenerateTorrent.setText(\"Generate Torrent\");\n\n\t\tvideoLength = new Text(shell, SWT.BORDER);\n\t\tvideoLength.setBounds(10, 341, 135, 27);\n\t\t\n\t\tLabel lblNewLabel = new Label(shell, SWT.RIGHT);\n\t\tlblNewLabel.setAlignment(SWT.LEFT);\n\t\tlblNewLabel.setBounds(157, 315, 48, 18);\n\t\tlblNewLabel.setText(\"Video\");\n\t\t\n\t\tLabel lblTorrent = new Label(shell, SWT.RIGHT);\n\t\tlblTorrent.setText(\"Torrent\");\n\t\tlblTorrent.setBounds(157, 341, 48, 18);\n\t\tbtnGenerateTorrent.addListener(SWT.Selection, new Listener() {\n\t\t\t@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\tFile video = new File(videoPath.getText());\n\t\t\t\ttry {\n\t\t\t\t\tif (video.exists() && torrentPath.getText() != \"\") {\n\t\t\t\t\t\tMap parameters = new HashMap();\n\t\t\t\t\t\tparameters.put(\"start\", dateTime.getYear() + \"/\" + (dateTime.getMonth()+1) + \"/\" + dateTime.getDay() + \"-\" + dateTime_1.getHours() + \":\" + dateTime_1.getMinutes() + \":\" + dateTime_1.getSeconds());\n\t\t\t\t\t\tparameters.put(\"target\", torrentPath.getText());\n\t\t\t\t\t\tparameters.put(\"length\", videoLength.getText());\n\t\t\t\t\t\tSystem.out.println(\"start generating \"+parameters.get(\"length\"));\n\t\t\t\t\t\tnew MakeTorrent(videoPath.getText(), new URL(\"https://jomican.csie.org/~jimmy/tracker/announce.php\"), parameters);\n\t\t\t\t\t\tSystem.out.println(\"end generating\");\n\t\t\t\t\t\tFile var = new File(\"var.js\");\n\t\t\t\t\t\tPrintStream stream=new PrintStream(new FileOutputStream(var,false));\n\t\t\t\t\t\tstream.println(\"start_time = \"+(new SimpleDateFormat(\"yyyy/MM/dd-HH:mm:ss\").parse(dateTime.getYear() + \"/\" + (dateTime.getMonth()+1) + \"/\" + dateTime.getDay() + \"-\" + dateTime_1.getHours() + \":\" + dateTime_1.getMinutes() + \":\" + dateTime_1.getSeconds()).getTime() / 1000)+\";\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\"jizz\");\n\t\t\t\t\t}\n\t\t\t\t} catch (MalformedURLException e) {\n\t\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (ParseException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t}", "protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setImage(SWTResourceManager.getImage(mainFrame.class, \"/imgCompand/main/logo.png\"));\r\n\t\tshell.setSize(935, 650);\r\n\t\tshell.setMinimumSize(920, 650);\r\n\t\tcenter(shell);\r\n\t\tshell.setText(\"三合一\");\r\n\t\tshell.setLayout(new GridLayout(8, false));\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tLabel label = new Label(shell, SWT.NONE);\r\n\t\tlabel.setText(\"面单图片:\");\r\n\t\t\r\n\t\ttext_mdtp = new Text(shell, SWT.BORDER);\r\n\t\ttext_mdtp.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tButton btnNewButton = new Button(shell, SWT.NONE);\r\n\t\tbtnNewButton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tDirectoryDialog dd=new DirectoryDialog(shell); \r\n\t\t\t\tdd.setMessage(\"setMessage\"); \r\n\t\t\t\tdd.setText(\"选择保存面单图片的文件夹\"); \r\n\t\t\t\tdd.setFilterPath(\"C://\"); \r\n\t\t\t\tString mdtp=dd.open();\r\n\t\t\t\tif(mdtp!=null){\r\n\t\t\t\t\ttext_mdtp.setText(mdtp);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tGridData gd_btnNewButton = new GridData(SWT.LEFT, SWT.CENTER, false, false, 2, 1);\r\n\t\tgd_btnNewButton.widthHint = 95;\r\n\t\tbtnNewButton.setLayoutData(gd_btnNewButton);\r\n\t\tbtnNewButton.setText(\"浏览\");\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tlblNewLabel = new Label(shell, SWT.NONE);\r\n\t\tGridData gd_lblNewLabel = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_lblNewLabel.widthHint = 87;\r\n\t\tlblNewLabel.setLayoutData(gd_lblNewLabel);\r\n\t\tlblNewLabel.setText(\"身份证图片:\");\r\n\t\t\r\n\t\ttext_sfztp = new Text(shell, SWT.BORDER);\r\n\t\ttext_sfztp.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tbtnNewButton_1 = new Button(shell, SWT.NONE);\r\n\t\tbtnNewButton_1.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tDirectoryDialog dd=new DirectoryDialog(shell); \r\n\t\t\t\tdd.setMessage(\"setMessage\"); \r\n\t\t\t\tdd.setText(\"选择保存身份证图片的文件夹\"); \r\n\t\t\t\tdd.setFilterPath(\"C://\"); \r\n\t\t\t\tString sfztp=dd.open();\r\n\t\t\t\tif(sfztp!=null){\r\n\t\t\t\t\ttext_sfztp.setText(sfztp);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tGridData gd_btnNewButton_1 = new GridData(SWT.LEFT, SWT.CENTER, false, false, 2, 1);\r\n\t\tgd_btnNewButton_1.widthHint = 95;\r\n\t\tbtnNewButton_1.setLayoutData(gd_btnNewButton_1);\r\n\t\tbtnNewButton_1.setText(\"浏览\");\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tlabel_1 = new Label(shell, SWT.NONE);\r\n\t\tlabel_1.setText(\"小票图片:\");\r\n\t\t\r\n\t\ttext_xptp = new Text(shell, SWT.BORDER);\r\n\t\ttext_xptp.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tbutton = new Button(shell, SWT.NONE);\r\n\t\tbutton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tDirectoryDialog dd=new DirectoryDialog(shell); \r\n\t\t\t\tdd.setText(\"选择保存小票图片的文件夹\"); \r\n\t\t\t\tdd.setFilterPath(\"C://\"); \r\n\t\t\t\tString xptp=dd.open();\r\n\t\t\t\tif(xptp!=null){\r\n\t\t\t\t\ttext_xptp.setText(xptp);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tGridData gd_button = new GridData(SWT.LEFT, SWT.CENTER, false, false, 2, 1);\r\n\t\tgd_button.widthHint = 95;\r\n\t\tbutton.setLayoutData(gd_button);\r\n\t\tbutton.setText(\"浏览\");\r\n\t\t\r\n\t\tlabel_2 = new Label(shell, SWT.NONE);\r\n\t\tlabel_2.setText(\" \");\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tlblNewLabel_1 = new Label(shell, SWT.NONE);\r\n\t\tlblNewLabel_1.setText(\" \");\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tlabel_5 = new Label(shell, SWT.NONE);\r\n\t\tlabel_5.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));\r\n\t\tlabel_5.setText(\"三合一导入模板下载,请点击........\");\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tbutton_1 = new Button(shell, SWT.NONE);\r\n\t\tGridData gd_button_1 = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_button_1.widthHint = 95;\r\n\t\tbutton_1.setLayoutData(gd_button_1);\r\n\t\tbutton_1.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\ttry{\r\n\t\t\t\t\tDirectoryDialog dd=new DirectoryDialog(shell); \r\n\t\t\t\t\tdd.setText(\"请选择文件保存的位置\"); \r\n\t\t\t\t\tdd.setFilterPath(\"C://\"); \r\n\t\t\t\t\tString saveFile=dd.open(); \r\n\t\t\t\t\tif(saveFile!=null){\r\n\t\t\t\t\t\tboolean flg = FileUtil.downloadLocal(saveFile, \"/template.xls\", \"三合一导入模板.xls\");\r\n\t\t\t\t\t\tif(flg){\r\n\t\t\t\t\t\t\tMessageDialog.openInformation(shell, \"系统提示\", \"模板下载成功!保存路径为:\"+saveFile+\"/三合一导入模板.xls\");\r\n\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\tMessageDialog.openError(shell, \"系统提示\", \"模板下载失败!\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t }catch(Exception ex){\r\n\t\t\t\t\t System.out.print(\"创建失败\");\r\n\t\t\t\t } \r\n\t\t\t}\r\n\t\t});\r\n\t\tbutton_1.setText(\"导入模板\");\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tlabel_4 = new Label(shell, SWT.NONE);\r\n\t\tlabel_4.setText(\"合成信息:\");\r\n\t\t\r\n\t\ttext = new Text(shell, SWT.BORDER);\r\n\t\ttext.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tbtnexecl = new Button(shell, SWT.NONE);\r\n\t\tbtnexecl.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tFileDialog filedia = new FileDialog(shell, SWT.SINGLE);\r\n\t\t\t\tString filepath = filedia.open()+\"\";\r\n\t\t\t\ttext.setText(filepath.replace(\"null\",\"\"));\r\n\t\t\t}\r\n\t\t});\r\n\t\tGridData gd_btnexecl = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_btnexecl.widthHint = 95;\r\n\t\tbtnexecl.setLayoutData(gd_btnexecl);\r\n\t\tbtnexecl.setText(\"导入execl\");\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tlabel_3 = new Label(shell, SWT.NONE);\r\n\t\tlabel_3.setText(\"合成图片:\");\r\n\t\t\r\n\t\ttext_hctp = new Text(shell, SWT.BORDER);\r\n\t\ttext_hctp.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tbtnNewButton_2 = new Button(shell, SWT.NONE);\r\n\t\tbtnNewButton_2.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tDirectoryDialog dd=new DirectoryDialog(shell); \r\n\t\t\t\tdd.setText(\"选择合成图片将要保存的文件夹\"); \r\n\t\t\t\tdd.setFilterPath(\"C://\"); \r\n\t\t\t\tString hctp=dd.open();\r\n\t\t\t\tif(hctp!=null){\r\n\t\t\t\t\ttext_hctp.setText(hctp);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tGridData gd_btnNewButton_2 = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_btnNewButton_2.widthHint = 95;\r\n\t\tbtnNewButton_2.setLayoutData(gd_btnNewButton_2);\r\n\t\tbtnNewButton_2.setText(\"保存位置\");\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tlabel_6 = new Label(shell, SWT.NONE);\r\n\t\tlabel_6.setText(\"进度:\");\r\n\t\t\r\n\t\tprogressBar = new ProgressBar(shell, SWT.NONE);\r\n\t\tGridData gd_progressBar = new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_progressBar.widthHint = 524;\r\n\t\tprogressBar.setMinimum(0);\r\n\t\tprogressBar.setMaximum(100);\r\n\t\tprogressBar.setLayoutData(gd_progressBar);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tbtn_doCompImg = new Button(shell, SWT.NONE);\r\n\t\tbtn_doCompImg.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\t//导入信息\r\n\t\t\t\tdrxx = text.getText();\r\n\t\t\t\t//保存路径\r\n\t\t\t\thctp = text_hctp.getText();\r\n\t\t\t\t//面单图片路径\r\n\t\t\t\tmdtp = text_mdtp.getText();\r\n\t\t\t\t//身份证图片路径\r\n\t\t\t\tsfztp = text_sfztp.getText();\r\n\t\t\t\t//小票图片路径\r\n\t\t\t\txptp = text_xptp.getText();\r\n\t\t\t\t//清空信息框\r\n\t\t\t\ttext_info.setText(\"\");\r\n\t\t\t\tif(!drxx.equals(\"\")&&!hctp.equals(\"\")&&!mdtp.equals(\"\")&&!sfztp.equals(\"\")&&!xptp.equals(\"\")){\r\n\t\t\t\t\t(new IncresingOperator()).start();\r\n\t\t\t\t}else{\r\n\t\t\t\t\tMessageDialog.openWarning(shell, \"系统提示\",\"各路径选项不能为空!\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tGridData gd_btn_doCompImg = new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_btn_doCompImg.widthHint = 95;\r\n\t\tbtn_doCompImg.setLayoutData(gd_btn_doCompImg);\r\n\t\tbtn_doCompImg.setText(\"立即合成\");\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\ttext_info = new Text(shell, SWT.BORDER | SWT.V_SCROLL | SWT.MULTI);\r\n\t\tGridData gd_text_info = new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1);\r\n\t\tgd_text_info.heightHint = 217;\r\n\t\ttext_info.setLayoutData(gd_text_info);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\r\n\t}", "private void makeLabels() {\n infoPanel = new JPanel();\n\n infoText = new JTextArea(30,25);\n\n infoPanel.add(infoText);\n }", "private void createDefaultPlayLists() {\n try {\n BufferedImage favoriteSongsImage = ImageIO.read(new File(\"Images/FavoriteSong.png\"));\n PlayListPanel favoriteSongs = new PlayListPanel(favoriteSongsImage, \"Favorite Songs\", \"Favorite albumSongs chosen by user\", this, this);\n playListPanels.put(\"Favorite Songs\", favoriteSongs);\n } catch (IOException e) {\n JOptionPane.showMessageDialog(null, \"Error reading favorite albumSongs image\", \"An Error Occurred\", JOptionPane.ERROR_MESSAGE);\n }\n try {\n BufferedImage sharedSongImage = ImageIO.read(new File(\"Images/SharedSongs.jpg\"));\n PlayListPanel sharedSongs = new PlayListPanel(sharedSongImage, \"Shared Songs\", \"Shared albumSongs between users\", this, this);\n playListPanels.put(\"Shared Songs\", sharedSongs);\n } catch (IOException e) {\n JOptionPane.showMessageDialog(null, \"Error reading shared albumSongs image\", \"An Error Occurred\", JOptionPane.ERROR_MESSAGE);\n }\n }", "public void initView() {\n ArrayAdapter<String> arrayAdapter=new ArrayAdapter<String>(getView().getContext(),android.R.layout.simple_list_item_1,tracks);\n list.setAdapter(arrayAdapter);\n }", "protected void createContents() {\n\t\tshell = new Shell(SWT.TITLE | SWT.CLOSE | SWT.BORDER);\n\t\tshell.setSize(713, 226);\n\t\tshell.setText(\"ALT Planner\");\n\t\t\n\t\tCalendarPop calendarComp = new CalendarPop(shell, SWT.NONE);\n\t\tcalendarComp.setBounds(5, 5, 139, 148);\n\t\t\n\t\tComposite composite = new PlannerInterface(shell, SWT.NONE, calendarComp);\n\t\tcomposite.setBounds(0, 0, 713, 200);\n\t\t\n\t\tMenu menu = new Menu(shell, SWT.BAR);\n\t\tshell.setMenuBar(menu);\n\t\t\n\t\tMenuItem mntmFile = new MenuItem(menu, SWT.CASCADE);\n\t\tmntmFile.setText(\"File\");\n\t\t\n\t\tMenu menu_1 = new Menu(mntmFile);\n\t\tmntmFile.setMenu(menu_1);\n\t\t\n\t\tMenuItem mntmSettings = new MenuItem(menu_1, SWT.NONE);\n\t\tmntmSettings.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tSettings settings = new Settings(Display.getDefault());\n\t\t\t\tsettings.open();\n\t\t\t}\n\t\t});\n\t\tmntmSettings.setText(\"Settings\");\n\t}", "private void setCurrentTrack() {\n runOnUiThread(new Runnable() {\n public void run() {\n setText(controller.getCurrentTrack());\n }\n });\n\t}", "public void setTrackNumber (String number){\n trackNumber = number;\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n Log.d(TAG, \"MyTracks.onCreate\");\n super.onCreate(savedInstanceState);\n ApiFeatures apiFeatures = ApiFeatures.getInstance();\n if (!SystemUtils.isRelease(this)) {\n apiFeatures.getApiAdapter().enableStrictMode();\n }\n \n tracker = GoogleAnalyticsTracker.getInstance();\n // Start the tracker in manual dispatch mode...\n tracker.start(getString(R.string.my_tracks_analytics_id), getApplicationContext());\n tracker.setProductVersion(\"android-mytracks\", SystemUtils.getMyTracksVersion(this));\n tracker.trackPageView(\"/appstart\");\n tracker.dispatch();\n \n providerUtils = MyTracksProviderUtils.Factory.get(this);\n preferences = getSharedPreferences(Constants.SETTINGS_NAME, Context.MODE_PRIVATE);\n dataHub = ((MyTracksApplication) getApplication()).getTrackDataHub();\n menuManager = new MenuManager(this);\n serviceConnection = new TrackRecordingServiceConnection(this, serviceBindCallback);\n \n // The volume we want to control is the Text-To-Speech volume\n int volumeStream =\n new StatusAnnouncerFactory(apiFeatures).getVolumeStream();\n setVolumeControlStream(volumeStream);\n \n // We don't need a window title bar:\n requestWindowFeature(Window.FEATURE_NO_TITLE);\n \n final Resources res = getResources();\n final TabHost tabHost = getTabHost();\n tabHost.addTab(tabHost.newTabSpec(\"tab1\")\n .setIndicator(\"Map\", res.getDrawable(\n android.R.drawable.ic_menu_mapmode))\n .setContent(new Intent(this, MapActivity.class)));\n tabHost.addTab(tabHost.newTabSpec(\"tab2\")\n .setIndicator(\"Stats\", res.getDrawable(R.drawable.menu_stats))\n .setContent(new Intent(this, StatsActivity.class)));\n tabHost.addTab(tabHost.newTabSpec(\"tab3\")\n .setIndicator(\"Chart\", res.getDrawable(R.drawable.menu_elevation))\n .setContent(new Intent(this, ChartActivity.class)));\n \n // Hide the tab widget itself. We'll use overlayed prev/next buttons to\n // switch between the tabs:\n tabHost.getTabWidget().setVisibility(View.GONE);\n \n RelativeLayout layout = new RelativeLayout(this);\n LayoutParams params =\n new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT);\n layout.setLayoutParams(params);\n navControls =\n new NavControls(this, layout,\n getResources().obtainTypedArray(R.array.left_icons),\n getResources().obtainTypedArray(R.array.right_icons),\n changeTab);\n navControls.show();\n tabHost.addView(layout);\n layout.setOnTouchListener(this);\n \n if (!EulaUtil.getEulaValue(this)) {\n showDialog(DIALOG_EULA_ID);\n }\n }", "public void setup(){\n\n\t\t/*for(Integer group : this.onBeat.keySet()){\n\t\t\tthis.onBeat.put(group, false);\n\t\t}*/\n\t\tdspW=600;\n\t\t\n\t\t//CREATE TABS\n\t\tTab globalTab=controlP5.getTab(\"global\");\n\t\t\n\t\taddSlider(null,\"layer0bgAlpha.v\" ,0,0,1,5,18,80,h,globalTab,null).setCaptionLabel(\"bgAlpha 1\");\n\t\t\n\t\t//Top Buttons\n\t\tint y=3; \n\t\tint x=300;\n\t\taddButton(null,\"Save\",x,y,30,h,globalTab,null);\n\t\tx+=30+wMargin;\n\t\taddButton(null,\"Save All\",x,y,40,h,globalTab,null);\n\t\tx+=40+wMargin;\n\t\tx+=wMargin;\n\t\tif(Config.OSC){\n\t\t\taddButton(null,\"Send\",x,y,45,h,globalTab,null);\n\t\t\tx+=45+wMargin;\n\t\t\taddButton(null,\"SendAll\",x,y,45,h,globalTab,null);\n\t\t\tx+=45+wMargin;\n\t\t\tx+=wMargin;\n\t\t}\n\t\taddButton(null,\"Frame\",x,y,30,h,globalTab,null);\n\t\tx+=30+wMargin;\n\t\taddLabel(null,\"currentLayer\",\"\",x,y,globalTab,null);\n\t\tx+=12;\n\t\taddTextfield(null,\"layerType\",\"\",x,y-2,80,(int)(h*1.5),globalTab,null).setCaptionLabel(\"\");\n\t\tx+=80+wMargin; \n\t\taddTextfield(null,\"layerName\",\"\",x,y-2,80,(int)(h*1.5),globalTab,null).setCaptionLabel(\"\");\n\t\tx+=80+wMargin; \n\t\taddButton(null,\"relocate\",x,y,45,h,globalTab,null);\n\t\tx+=45+wMargin;\n\t\taddSlider(null,\"frames\" ,0,0,80,x,y,60,h,globalTab,null).setCaptionLabel(\"FPS\");\n\t\tx+=60+30+wMargin;\n\t\taddSlider(null,\"refresh\" ,10,0,500,x,y,60,h,globalTab,null).setCaptionLabel(\"Gui(ms)\");\n\t\tx+=90+wMargin; \n\t\taddToggle(null,\"LP\",true,10,300,h,h,globalTab,null);\n\t\t\n\t\t\n\t\t//Layers\n\t\tx=wMargin;\n\t\ty=hMargin+30;\n\t\taddLabel(null,\"Layers label\",\"Layers\",x,y,globalTab,null);\n\t\ty+=h+hMargin;\n\t\tx=5;\n\t\tfor(int i=0;i<app.layers.length;i++){\n\t\t\taddToggle(null,\"Layer Enabled \"+i,((i==0)?true:false),x,y+i*(h+hMargin),h,h,globalTab,null).setCaptionLabel(\"\");\n\t\t\taddButton(null,\"layer\"+(i)+\"fgDsp\", x+wMargin*4+h+3,y+i*(h+hMargin),h*2,h,globalTab,null).setCaptionLabel((1+i)+\"\");\n\t\t} \n\t\tx=h+2*wMargin+1; \n\t\t//layers\n\t\tString[] layerNames = new String[app.layers.length];\n\t\tint[] layerNumbers = new int[app.layers.length];\n\t\tfor(int i=0;i<app.layers.length;i++){\n\t\t\tlayerNames[i]=\"\";\n\t\t\tlayerNumbers[i]=(i);\n\t\t}\n\t\taddRadio(null,\"Layer Selected\",layerNames,x,y,null,null,globalTab,null).setLabel(\"\");\n\t\ty=34;x=60;\n\t\taddRadio(null,\"ghostLayer.v\",new String[]{\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\"},x,y,null,null,globalTab,null); \n\n\n\t\t//Sound and FPS\n\t\tx=dspW+h+hMargin-5;\n\t\ty=windowH-(app.soundController.getGroups().size())*(h+hMargin)-50;\n\t\taddToggle(null,\"autoBeatSense\",true,x,y,h,h,globalTab,null).setCaptionLabel(\"\");\n\t\tx+=h+wMargin;\n\t\taddLabel(null,\"autoBeatSenseL\",\"Auto Sense\",x,y,globalTab,null);\n\t\taddSlider(null,\"beatSenseSense\" ,1.1f,0.5f,5,x+15,y,120,null,globalTab,null).setCaptionLabel(\"\");\n\n\t\t\n\t\t//SC groups\n\t\tx=dspW+h+hMargin-5;\n\t\ty=windowH-(app.soundController.getGroups().size())*(h+hMargin)-20;\n\t\tfor(int i=0;i<app.soundController.getGroups().size();i++){\n\t\t\taddToggle(null,\"bang-\"+i,false ,x,y+(i)*(h+hMargin),h,h,globalTab,null).setCaptionLabel(\"\");\n\t\t\tcontrolP5.getController(\"bang-\"+i).setColorActive(app.color(255,0,255));\n\t\t\taddSlider(null,\"score-\"+i ,0,0,20,x+50,y+(i)*(h+hMargin),w,null,globalTab,null).setCaptionLabel(\"\"); \n\t\t\taddSlider(null,\"beatsense-\"+i ,0,0,20,x+50+h+w,y+(i)*(h+hMargin),w/3,null,globalTab,null).setCaptionLabel(\"\");\n\n\t\t}\n\t\tx+=h+wMargin;\n\t\taddRadio(null,\"scGroup\",new String[]{\"g\",\"1\",\"2\",\"3\",\"4\",\"5\"},x,y,null,null,globalTab,null);\n\t\tx+=h+wMargin;\n\t\tx=dspW+h+hMargin-5;\n\t\ty=windowH-(app.soundController.getGroups().size()+1)*(h+hMargin);\n\t\taddLabel(null,\"SC Group : \",\"current : \",x,y-20,globalTab,null);\n\t\tx+=38+wMargin;\n\t\taddLabel(null,\"currentController\",\"\",x,y-20,globalTab,null);\n\t\ty+=h+hMargin;\n\n\t\t\n\t\t//global Buttons\n\t\tx=dspW+h+hMargin-5;\n\t\ty=windowH-(app.soundController.getGroups().size())*(h+hMargin)-80;\n\t\taddButton(null,\"bump+\",x,y+h+hMargin,35,null,globalTab,null) ; \n\t\tx+=40;\n\t\taddButton(null,\"bump-\",x,y+h+hMargin,35,null,globalTab,null) ;\n\t\tx+=40+wMargin;\n\t\taddButton(null,\"speed+\",x,y+h+hMargin,35,null,globalTab,null) ;\n\t\tx+=40;\n\t\taddButton(null,\"speed-\",x,y+h+hMargin,35,null,globalTab,null) ;\n\t\ty+=h+hMargin;\n\n\n\t\t//DSP Band Buttons\n\t\tif(app.soundController!=null && Config.DSP){\n\t\t\tif(bandWidth==0){\n\t\t\t\tcomputeBanWidth();\n\t\t\t}\n\t\t\tfor(int i=0;i<app.soundController.zoneEnabled().length;i++){\n\t\t\t\taddToggle(null,\"band\"+i,true,10+1+(bandWidth+1)*i,windowH-13-20,bandWidth,7,globalTab,null).setCaptionLabel(\"\");\n\t\t\t}\n\t\t}\n\n\n\t\t//LAYER TABS\n\t\tint tabX=80;\n\t\tint tabY=30;\n\t\tboolean first=false;\n\t\tfor(String layerType : Config.LAYER_TYPES.split(\"[, ]+\")){\n\t\t\tString tabName = first?\"default\":layerType;\n\t\t\tfirst=false;\n\t\t\tTab tab = controlP5.getTab(tabName);\n\t\t\ttab.setTitle(layerType.replace(\"Layer\", \"\").replace(\"NineBlockPattern\",\"Pattern\"));\n\t\t\tLayer layer;\n\t\t\ttry {\n\t\t\t\tlayer = Layer.newLayer(app, layerType);\n\t\t\t\tlayer.buildUI(this, tabX, tabY,tab,null);\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} \n\t\t}\n\n\t}", "public Tracklist(Activity context, List<Track> track) {\n super(context, R.layout.layout_track,track);\n\n this.context = context;\n this.track = track;\n }", "public TrackStat() {\r\n }", "private void setupUI() {\r\n\t\tWindow.setTitle(\"Battle\");\r\n\r\n\t\tVerticalPanel panel = new VerticalPanel();\r\n\t\tpanel.addStyleName(NAME);\r\n\t\tinitWidget(panel);\r\n\t\t\r\n\t\tlabelTitle = new Label(\"Battle\");\r\n\t\tlabelTitle.addStyleName(Styles.page_title);\r\n\t\tpanel.add(labelTitle);\r\n\t\t\r\n\t\tLabel instructions = new Label(\"Click to go!\");\r\n\t\tpanel.add(instructions);\r\n\r\n\t\tHorizontalPanel hPanel = new HorizontalPanel();\r\n\t\tpanel.add(hPanel);\r\n\t\t\r\n\t\tCanvas canvas = Canvas.createIfSupported();\r\n\t\thPanel.add(canvas);\r\n\r\n\t\tVerticalPanel vPanelInfo = new VerticalPanel();\r\n\t\thPanel.add(vPanelInfo);\r\n\t\t\r\n\t\tlabelInfo = new Label();\r\n\t\tlabelInfo.addStyleName(Styles.battle_info);\r\n\t\tvPanelInfo.add(labelInfo);\r\n\t\t\r\n\t\tvPanelInfoHistory = new VerticalPanel();\r\n\t\tvPanelInfoHistory.addStyleName(Styles.battle_info_history);\r\n\t\tvPanelInfo.add(vPanelInfoHistory);\r\n\r\n\t\t\r\n\t\tcanvas.setWidth(width + \"px\");\r\n\t\tcanvas.setHeight(height + \"px\");\r\n\t\tcanvas.setCoordinateSpaceWidth(width);\r\n\t\tcanvas.setCoordinateSpaceHeight(height);\r\n\r\n\t\t//Adding handlers seems to create a performance issue in Java\r\n\t\t//mode, but likely not in javascript\r\n\t\tcanvas.addMouseDownHandler(this);\r\n//\t\tcanvas.addMouseUpHandler(this);\r\n//\t\tcanvas.addMouseMoveHandler(this);\r\n\r\n\t\tcontext2d = canvas.getContext2d();\r\n\r\n\t\tlastUpdate = System.currentTimeMillis();\r\n\t\ttimer = new Timer() {\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\tlong now = System.currentTimeMillis();\r\n\t\t\t\tupdate(now - lastUpdate);\r\n\t\t\t\tlastUpdate = now;\r\n\r\n\t\t\t\tdraw();\r\n\t\t\t}\r\n\t\t};\r\n\t\ttimer.scheduleRepeating(1000 / 60);\r\n\t}", "public void display_title_screen() {\n parent.textAlign(CENTER);\n parent.textFont(myFont);\n parent.textSize(displayH/10);\n parent.fill(255, 255, 0);\n parent.text(\"PACMAN\", 0.5f*displayW, 0.3f*displayH);\n\n parent.image(maxusLogoImage, 0.5f*displayW, 0.4f*displayH);\n\n parent.textFont(myFont);\n parent.textSize(tileSize);\n parent.fill(180);\n parent.text(\"2013\", 0.5f*displayW, 0.45f*displayH);\n\n display_chase_animation();\n\n display_insert_coin_text();\n }", "@Override\n public void init()\n {\n\n \tfinal int imCount = 0;\n \tthis.setLayout(null);\n \toffScreenImg = createImage(getSize().width, getSize().height);\n offScreenG = offScreenImg.getGraphics();\n \tfinal Graphics2D g2 = (Graphics2D)offScreenG;\n final FontRenderContext frc = g2.getFontRenderContext();\n associations = new Vector<Association>();\n final Font font = g2.getFont();\n \tfinal MediaTracker m = new MediaTracker( this );\n\n \ttry\n \t{\n\t \t//fetch parameters\n\t \tthis.om = getParameter(\"operation_mode\");\n\t \tfinal String bgImg = getParameter(\"background_image\");\n\t \tfinal String hspotStr = getParameter(\"hotspot_count\");\n\t \tfinal String movableElementStr = getParameter(\"movable_element_count\");\n\t \tfinal String number_of_responses = getParameter(\"number_of_responses\");\n\t \tfinal boolean needsExtraSpace = Boolean.valueOf(getParameter(\"extraSpace\"));\n\n\t \tretType = getParameter(\"baseType\");\n\t \tidentifier = getParameter(\"identifier\");\n\n\t \t//load all non-null objects\n\t \tif(bgImg != null)\n\t \t{\n\t \t\tbackGround = getImage(getCodeBase(), bgImg);\n\t \t}\n\n\t \t//load hotspots if there are any\n\t \tif(hspotStr != null)\n\t \t{\n\n\t \t\tfinal int hotSpotCount = Integer.parseInt(hspotStr);\n\n\t \t\tint dispLength = 0;\n\n\t \t\tfor(int i=0; i<hotSpotCount; i++)\n\t \t\t{\n\t \t\t\tfinal String checkLength = getParameter(\"hotspot\"+i);\n\t \t\t\tfinal String[] tokens = checkLength.split(\"::\");\n\t \t\t\tif(tokens.length >= 2)\n\t \t\t\t{\n\t \t\t\t\tif(!tokens[1].equals(\"\"))\n\t \t\t\t\t{\n\t \t\t\t\t\tfinal Rectangle2D bounds = (new TextLayout(tokens[1],font,frc)).getBounds();\n\t \t\t\t\t\tif(dispLength < bounds.getWidth())\n\t \t\t\t\t\t\tdispLength = (int)bounds.getWidth();\n\t \t\t\t\t}\n\t \t\t\t}\n\t \t\t}\n\n\n\t \t\tfinal double radSeg = 2*Math.PI / hotSpotCount;\n\t \t\tfinal int cenX = this.getWidth() / 2;\n\t final int cenY = this.getHeight() / 2;\n\t System.out.println(\"dispLength : \"+dispLength);\n\t final double radius = (((this.getWidth() < this.getHeight())?this.getWidth():this.getHeight()) - (dispLength+10)) / 2.0;\n\n\t \t\tif(hotSpotCount > 0)\n\t \t\t{\n\t \t\t\thotspots = new Vector<BoundObject>();\n\t\t \t\tfor(int i=0; i<hotSpotCount; i++)\n\t\t \t\t{\n\t\t \t\t\t//generate the default point\n\t\t \t\t\tfinal double rOfset = radSeg * i;\n\n\t\t \tfinal int xPos = cenX+(int)(radius*Math.cos(rOfset));\n\t\t \tfinal int yPos = cenY+(int)(radius*Math.sin(rOfset));\n\t\t \t\t\tfinal Point defP = new Point(xPos,yPos);\n\t\t \t\t\tfinal BoundObject tmp = getBoundObjFromStr(getParameter(\"hotspot\"+i), false, imCount, m,font,frc,defP);\n\n\t\t \t\t\thotspots.add(tmp);\n\t\t \t\t}\n\t \t\t}\n\n\t \t}\n\t \t//load movable elements if there are any\n\t \tif(movableElementStr != null)\n\t \t{\n\t \t\tfinal int movCount = Integer.parseInt(movableElementStr);\n\n\t \t\tmovObjCount = new HashMap<String,Integer>();\n\t \t movObjMaxCount = new HashMap<String,Integer>();\n\n\t \t\t//work out horizontal spacing\n\n\t \t\tint space = this.getWidth() / movCount+1;\n\n\t \t\tif(movCount > 0)\n\t \t\t{\n\t \t\t // pre-process movable objects' widths and heights\n\t \t\t int maxHeight = 0;\n\t \t\t int totalWidth = 0;\n\t \t\t boolean twoRows = false;\n\t \t\t for(int h=0; h<movCount; h++)\n {\n\t \t\t final MovableObject mov = (MovableObject)getBoundObjFromStr(getParameter(\"movable_object\"+h), true, imCount, m,font,frc, new Point(0,0));\n\t \t\t System.out.println(\"The width of this object is: \"+mov.obj.getBounds().width);\n\t \t\t totalWidth += mov.obj.getBounds().width;\n\n\t \t\t System.out.println(\"IS \"+mov.obj.getBounds().height+\" GREATER THAN \"+maxHeight);\n\t \t\t if (maxHeight < mov.obj.getBounds().height) {\n\t \t\t maxHeight = mov.obj.getBounds().height;\n\t \t\t System.out.println(\"MAX HEIGHT IS NOW: \"+maxHeight);\n\t \t\t }\n }\n\n\t \t\t if (totalWidth > this.getWidth()) {\n\t \t\t System.out.println(\"Using two rows because \"+totalWidth+\" is greater than \"+this.getWidth());\n\t \t\t twoRows = true;\n\t \t\t space = this.getWidth() / (movCount/2)+1;\n\t \t\t }\n\n\t \t\t if (twoRows) {\n\t \t\t bottom = this.getHeight() - (maxHeight*2);\n\t \t\t } else {\n\t \t\t bottom = this.getHeight() - (maxHeight + 50);\n\t \t\t }\n\t \t\t\tmovableObjects = new Vector<MovableObject>();\n\t\t \t\tfor(int i=0; i<movCount; i++)\n\t\t \t\t{\n\t\t \t\t int j = i;\n\t\t \t\t int heightOffset = 0;\n\t\t \t\t int extraSpace = 0;\n\t\t \t\t\tfinal MovableObject mo = (MovableObject)getBoundObjFromStr(getParameter(\"movable_object\"+i), true, imCount, m,font,frc, new Point(0,0));\n\n\t\t \t\t\t// TODO: Fix the y-values, veer away from hard-coded values.\n\t\t \t\t\tif (twoRows && i >= movCount/2) {\n\t\t \t\t\t j = j - (movCount/2);\n\t\t \t\t\t heightOffset = maxHeight;\n\t\t \t\t\t} else if (twoRows && i < movCount/2) {\n\t\t \t\t\t heightOffset = maxHeight * 2;\n\t\t \t\t\t} else {\n\t\t \t\t\t heightOffset = 50;\n\t\t \t\t\t //heightOffset = maxHeight + 10;\n\t\t \t\t\t //heightOffset = maxHeight;\n\t\t \t\t\t}\n\t\t \t\t\tif (om.equals(\"gap_match_interaction\")) {\n\t\t \t\t\t if (needsExtraSpace) {\n\t\t \t\t\t extraSpace = 25;\n\t\t \t\t\t } else {\n\t\t \t\t\t extraSpace = 0;\n\t\t \t\t\t }\n\t\t \t\t\t System.out.println(\"Setting extraSpace of: \"+extraSpace);\n\t\t \t\t\t}\n\t\t \t\t\tfinal Point p = new Point((space/2)+(space*j),this.getHeight()-heightOffset-extraSpace);\n\t\t \t\t\tSystem.out.println(\"This point at x: \"+p.x+\", y: \"+p.y);\n\t\t \t\t\tmo.setStartPos(p);\n\t\t \t\t\tmovableObjects.add(mo);\n\t\t \t\t}\n\t \t\t}\n\t \t}\n\n\t \t//set configuration settings, if they are present\n\t \tif(number_of_responses != null)\n\t \t{\n\t \t\tthis.number_of_responses = Integer.parseInt(number_of_responses);\n\t \t}\n\n\n\t \t//now check to see if there is any feedback, and using it appropriately if there is\n\t \tfeedback = getParameter(\"feedback\");\n\t \tsetFeedback();\n \t}catch(final Exception e)\n \t{\n \t\te.printStackTrace();\n \t}\n\n setBackground(Color.white);\n this.addMouseMotionListener(this);\n this.addMouseListener(this);\n }", "public Display()\n {\n setSize(W, H);\n setBackground(Color.BLACK);\n }", "@Override\n public void create() {\n\n batch = new SpriteBatch();\n manager = new AssetManager();\n\n manager.load(\"audio/main_theme.mp3\", Music.class);\n // manager.load(\"String sonido\", Sound.class);\n manager.load(\"sprites/dragon.pack\", TextureAtlas.class);\n manager.load(\"sprites/vanyr.pack\", TextureAtlas.class);\n manager.finishLoading();\n\n setScreen(new PlayScreen(this));\n\n }", "private void setTrackDescriptionsAndID() {\n\t\t// Compute new definitions for all tracks\n\t\tllahTrackingOps.clearDocuments();\n\t\ttrackId_to_globalId.clear();\n\t\tglobalId_to_track.forEachEntry(( globalID, track ) -> {\n\t\t\ttrack.trackDoc = llahTrackingOps.createDocument(track.predicted.toList());\n\t\t\t// copy global landmarks into track so that in the next iteration the homography will be correct\n\t\t\ttrack.trackDoc.landmarks.reset();\n\t\t\ttrack.trackDoc.landmarks.copyAll(track.globalDoc.landmarks.toList(), ( src, dst ) -> dst.setTo(src));\n\t\t\ttrackId_to_globalId.put(track.trackDoc.documentID, globalID);\n\t\t\treturn true;\n\t\t});\n\t}", "private void initView() {\n\t\t//buttonPlayPause = (ImageButton)getView().findViewById(R.id.ButtonTestPlayPause);\n\t\t//buttonPlayPause.setOnClickListener(this);\n\t\t\n\t\t//seekBarProgress = (SeekBar)getView().findViewById(R.id.SeekBarTestPlay);\t\n\t\t//seekBarProgress.setMax(99); // It means 100% .0-99\n\t\t//seekBarProgress.setOnTouchListener(this);\n\t\t//editTextSongURL = (EditText)findViewById(R.id.EditTextSongURL);\n\t\t//editTextSongURL.setText(R.string.testsong_20_sec);\n\t\t\n\t\t//mediaPlayer = new MediaPlayer();\n\t\t//mediaPlayer.setOnBufferingUpdateListener(this);\n\t\t//mediaPlayer.setOnCompletionListener(this);\n\t}", "public MediaLibraryGUI() {\r\n initializeFields();\r\n\r\n makeMenu();\r\n\r\n makeCenter();\r\n\r\n makeSouth();\r\n\r\n startGUI();\r\n }", "private void onCreate_sub(String artistName, String songTitle) {\n getViewReferences();\n\n // Retrieve the songs database\n ArrayList<Song> songs = getSongsDatabase(this);\n\n // Find the song passed via Intent\n // (Assumes that artist name + song title can uniquely identify a song)\n thisSong = songs.stream()\n .filter(s -> s.getArtistName().equals(artistName) && s.getSongTitle().equals(songTitle))\n .collect(Collectors.toList()).get(0);\n\n // Find all songs on the same album\n // (simulating queue-like functionality to demonstrate previous/next buttons)\n thisAlbum = songs.stream()\n .filter(a -> a.getAlbumTitle().equals(thisSong.getAlbumTitle()))\n .collect(Collectors.toList());\n\n // Sort the album by track number\n thisAlbum.sort(Comparator.comparing(Song::getTrackNumber));\n\n // Set the user interface based on thisSong's properties\n setViewsForCurrentSong();\n\n // Add onClickListeners to the buttons\n setOnClickListeners();\n\n setStyle_ofTransportControls();\n }", "private static void createWindow(){\n try{\n\n displayMode = new DisplayMode(1600 ,900);\n Display.setDisplayMode(displayMode);\n\n /*\n Display.setDisplayMode(getDisplayMode(1920 ,1080,false));\n if(displayMode.isFullscreenCapable()){\n Display.setFullscreen(true);\n }else{\n Display.setFullscreen(false);\n }\n */\n Display.setTitle(\"CubeKraft\");\n Display.create();\n }catch (Exception e){\n for(StackTraceElement s: e.getStackTrace()){\n System.out.println(s.toString());\n }\n }\n }", "protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setSize(450, 300);\r\n\t\tshell.setText(\"SWT Application\");\r\n\r\n\t}", "public LoadingScreen2()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(1280, 720, 1); \n tracker = new Tracker();\n }", "private void init(Activity context, Track track){\r\n\t\tmActivity = context;\r\n\t\tsetContentView(R.layout.lyrics);\r\n\t\tsetTitle(R.string.lyrics);\r\n\t\t\r\n\t\tmViewFlipper = (ViewFlipper)findViewById(R.id.LyricsViewFlipper);\r\n\t\tmTextView = (TextView)findViewById(R.id.LyricsTextView);\r\n\t\t\r\n\t\tif(track != mTrack){\r\n\t\t\tnew LyricsTask().execute(track);\r\n\t\t} else {\r\n\t\t\tshowLyrics();\r\n\t\t}\r\n\t}", "public void prepareBroadcast() {\r\n\t\ttheDialog.show();\r\n\t\ttry {\r\n\t\t\tthePres= new SimplePres( new QTFile( theDialog.getDirectory() + theDialog.getFile()), theCanvas );\r\n\t\t\tsetTitle(theDialog.getFile());\r\n\t\t\ttheCanvas.setClient( thePres.pDrawer, true );\r\n\r\n\t\t\tif (drawer == null)\r\n\t\t\t{\r\n\t\t\t\tdrawer = new StatDrawer(thePres);\t// draws the rate and time information\r\n\t\t\t\tdrawer.timeLabel = currTimeLabel;\r\n\t\t\t\tdrawer.rateLabel = currRateLabel;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\tdrawer.setPres(thePres);\r\n\t\t}\r\n\t\tcatch (QTException qte) {\r\n\t\t\tqte.printStackTrace();\r\n\t\t} \r\n\t}", "@Override\n\tpublic void show() {\n\t\tcontainer = new Table();\n//\t\tcontainer.background(skin.getDrawable(\"darkenWorld\"));\n\t\tcontainer.setSize(width, height);\n\t\t\n\t\tdarken = new Image(skin.getDrawable(\"darkenWorld\"));\n\t\tdarken.setSize(width, height);\n\t\t\n\t\ttimer.start();\n\t\t\n\t\ttrainingBag = new TrainingBag(width, height);\n\t\t\n\t\tBitmapFont font = new BitmapFont(Gdx.files.internal(\"fontSmall-export.fnt\"),\n\t\t Gdx.files.internal(\"fontSmall-export.png\"), false);\n\t\t\n\t\t\n\t\tLabelStyle labelStyle = new LabelStyle();\n\t\tlabelStyle.font = font;\n\t\t\n\t\ttimeLeft = new Label(timeString + \" 20\", labelStyle);\n\t\ttimeLeft.setPosition(width - timeLeft.getWidth(), height - timeLeft.getHeight());\n\t\t\n\t\thits = new Label(hitsString + \"0\" + amountString, labelStyle);\n\t\thits.setPosition(0, height - timeLeft.getHeight());\n\t\t\n\t\t\n\t\tcontainer.row();\n\t\tcontainer.add(trainingBag);\n\t\t\n\t\tgroup.addActor(darken);\n\t\tgroup.addActor(container);\n\t\tgroup.addActor(timeLeft);\n\t\tgroup.addActor(hits);\n\t}", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(550, 400);\n\t\tshell.setText(\"Source A Antenna 1 Data\");\n\t\t\n\t\tButton btnNewButton_1 = new Button(shell, SWT.NONE);\n\t\tbtnNewButton_1.setFont(SWTResourceManager.getFont(\"Ubuntu\", 11, SWT.BOLD));\n\t\tbtnNewButton_1.setBounds(116, 10, 98, 30);\n\t\tbtnNewButton_1.setText(\"pol 1\");\n\t\t\n\t\tButton btnPol = new Button(shell, SWT.NONE);\n\t\tbtnPol.setText(\"pol 2\");\n\t\tbtnPol.setFont(SWTResourceManager.getFont(\"Ubuntu\", 11, SWT.BOLD));\n\t\tbtnPol.setBounds(220, 10, 98, 30);\n\t\t\n\t\tButton btnPol_1 = new Button(shell, SWT.NONE);\n\t\tbtnPol_1.setText(\"pol 3\");\n\t\tbtnPol_1.setFont(SWTResourceManager.getFont(\"Ubuntu\", 11, SWT.BOLD));\n\t\tbtnPol_1.setBounds(324, 10, 98, 30);\n\t\t\n\t\tButton btnPol_2 = new Button(shell, SWT.NONE);\n\t\tbtnPol_2.setText(\"pol 4\");\n\t\tbtnPol_2.setFont(SWTResourceManager.getFont(\"Ubuntu\", 11, SWT.BOLD));\n\t\tbtnPol_2.setBounds(428, 10, 98, 30);\n\t\t\n\t\tButton button_3 = new Button(shell, SWT.NONE);\n\t\tbutton_3.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\n\t\t\t\tPlot_graph nw = new Plot_graph();\n\t\t\t\tnw.GraphScreen();\n\t\t\t}\n\t\t});\n\t\tbutton_3.setBounds(116, 46, 98, 30);\n\t\t\n\t\tButton button_4 = new Button(shell, SWT.NONE);\n\t\tbutton_4.setBounds(116, 83, 98, 30);\n\t\t\n\t\tButton button_5 = new Button(shell, SWT.NONE);\n\t\tbutton_5.setBounds(116, 119, 98, 30);\n\t\t\n\t\tButton button_6 = new Button(shell, SWT.NONE);\n\t\tbutton_6.setBounds(116, 155, 98, 30);\n\t\t\n\t\tButton button_7 = new Button(shell, SWT.NONE);\n\t\tbutton_7.setBounds(220, 155, 98, 30);\n\t\t\n\t\tButton button_8 = new Button(shell, SWT.NONE);\n\t\tbutton_8.setBounds(220, 119, 98, 30);\n\t\t\n\t\tButton button_9 = new Button(shell, SWT.NONE);\n\t\tbutton_9.setBounds(220, 83, 98, 30);\n\t\t\n\t\tButton button_10 = new Button(shell, SWT.NONE);\n\t\tbutton_10.setBounds(220, 46, 98, 30);\n\t\t\n\t\tButton button_11 = new Button(shell, SWT.NONE);\n\t\tbutton_11.setBounds(428, 155, 98, 30);\n\t\t\n\t\tButton button_12 = new Button(shell, SWT.NONE);\n\t\tbutton_12.setBounds(428, 119, 98, 30);\n\t\t\n\t\tButton button_13 = new Button(shell, SWT.NONE);\n\t\tbutton_13.setBounds(428, 83, 98, 30);\n\t\t\n\t\tButton button_14 = new Button(shell, SWT.NONE);\n\t\tbutton_14.setBounds(428, 46, 98, 30);\n\t\t\n\t\tButton button_15 = new Button(shell, SWT.NONE);\n\t\tbutton_15.setBounds(324, 46, 98, 30);\n\t\t\n\t\tButton button_16 = new Button(shell, SWT.NONE);\n\t\tbutton_16.setBounds(324, 83, 98, 30);\n\t\t\n\t\tButton button_17 = new Button(shell, SWT.NONE);\n\t\tbutton_17.setBounds(324, 119, 98, 30);\n\t\t\n\t\tButton button_18 = new Button(shell, SWT.NONE);\n\t\tbutton_18.setBounds(324, 155, 98, 30);\n\n\t}", "protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setLayout(new GridLayout(1, false));\r\n\t\tshell.setSize(450, 300);\r\n\t\tshell.setText(\"SWT Application\");\r\n\t\t{\r\n\t\t\tfinal Button btnShowTheFake = new Button(shell, SWT.TOGGLE);\r\n\t\t\tbtnShowTheFake.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\r\n\t\t\t\t\tif (btnShowTheFake.getSelection()) {\r\n\t\t\t\t\t\tRectangle bounds = btnShowTheFake.getBounds();\r\n\t\t\t\t\t\tPoint pos = shell.toDisplay(bounds.x + 5, bounds.y + bounds.height);\r\n\t\t\t\t\t\ttooltip = showTooltip(shell, pos.x, pos.y);\r\n\t\t\t\t\t\tbtnShowTheFake.setText(\"Hide it\");\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tif (tooltip != null && !tooltip.isDisposed())\r\n\t\t\t\t\t\t\ttooltip.dispose();\r\n\t\t\t\t\t\tbtnShowTheFake.setText(\"Show The Fake Tooltip\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\tbtnShowTheFake.setText(\"Show The Fake Tooltip\");\r\n\t\t}\r\n\t}", "@Override\n\tpublic void Init(JPanel panel) {\n\n\t\tfor (int i = 0; i < tracks.size(); i++) {\n\t\t\tfor (Track track : tracks) {\n\t\t\t\tif (track.GetLevel() == i+ 1) {\n\t\t\t\t\ttrack.AtomInit(200 + 50 * i, panel);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private void createBottomPanel() {\n humanPaquetView = new ViewDeckVisible(false);\n this.getContentPane().add(humanPaquetView);\n }", "private void createContents() {\r\n\t\tshlEventBlocker = new Shell(getParent(), getStyle());\r\n\t\tshlEventBlocker.setSize(167, 135);\r\n\t\tshlEventBlocker.setText(\"Event Blocker\");\r\n\t\t\r\n\t\tLabel lblRunningEvent = new Label(shlEventBlocker, SWT.NONE);\r\n\t\tlblRunningEvent.setBounds(10, 10, 100, 15);\r\n\t\tlblRunningEvent.setText(\"Running Event:\");\r\n\t\t\r\n\t\tLabel lblevent = new Label(shlEventBlocker, SWT.NONE);\r\n\t\tlblevent.setFont(SWTResourceManager.getFont(\"Segoe UI\", 15, SWT.BOLD));\r\n\t\tlblevent.setBounds(20, 31, 129, 35);\r\n\t\tlblevent.setText(eventName);\r\n\t\t\r\n\t\tButton btnFinish = new Button(shlEventBlocker, SWT.NONE);\r\n\t\tbtnFinish.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseUp(MouseEvent e) {\r\n\t\t\t\tshlEventBlocker.dispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnFinish.setBounds(10, 72, 75, 25);\r\n\t\tbtnFinish.setText(\"Finish\");\r\n\r\n\t}", "private void createSchedulePanel()\n\t{\n\t\t//newWeek=new Week(selectedId);\n\t\t//contentPane.add(newWeek,BorderLayout.SOUTH);\n\t\t//System.out.println(\"first time load:\"+selectedId);\n\t\tschedule=new Schedule(selectedId, isSprinklerSelected);\n\t\tschedulePane=new JPanel();\n\t\tschedulePane.setLayout(new FlowLayout(FlowLayout.CENTER));\n\t\tschedulePane.add(schedule);\n\t\tcontentPane.add(schedulePane,BorderLayout.CENTER);//add to content pane\n\t}", "private List<Turtle> createActiveDisplay() {\n\t\tactiveListDisplay = new FlowPane();\n\t\tactiveListDisplay.setPrefWrapLength(turtleView.getWidth());\n\t\tif (tManager != null) {\n\t\t\tactiveTurtles = tManager.getActiveTurtles();\n\t\t\tfor(Turtle turtle: activeTurtles) {\n\t\t\t\tLabel currentTurtle = new Label(Double.toString(turtle.getID()));\n\t\t\t\tturtleView.getChildren().add(currentTurtle);\n\t\t\t\tlabels.add(currentTurtle);\n\t\t\t\ttoggleTurtle(currentTurtle, turtle);\n\t\t\t}\n\t\t\treturn activeTurtles;\n\t\t}\n\t\treturn null;\n\t}", "private void demoSimple(){\r\n\t\t\r\n\t\tint s = 0;\t// screen id\r\n\t\tint l = 0; // line\r\n\t\tint p = 0; // position\r\n\r\n\t\t//---------------------\r\n\t\t// Screen Controller \r\n\t\t//---------------------\r\n\t\t// Instantiate ScreenController\r\n\t\tsc = ScreenControllerImpl.getNewInstance(demoTfStack.getTfLcd());\r\n\t\t\r\n\t\t//---------------------\r\n\t\t// Source Definitions \r\n\t\t//---------------------\r\n\r\n\t\t// This counter counts up (one per second) and push its value by itself\r\n\t\t// See SourceCounter for more details how to implement a push item\r\n\t\tItemSourceToPush counterSource = new SourceCounter();\r\n\r\n\t\t// The lateron used Screen Clock needs not source definition\r\n\t\t// It can be directly created as a screen item\r\n\t\t\r\n\t\t\r\n\t\t//---------------------\r\n\t\t// Screens\r\n\t\t//---------------------\r\n\t\t\r\n\t\t// Push Demo Clock\r\n\t\t++s; l=0; p=0;\r\n\t\tsc.addNewScreenToSequence(s);\r\n\t\tsc.addMaskLine(1, 0, \" Push Demo-Clock\");\r\n\t\t// A screen clock is a push item, depending on the selected format it pushes the new value in different time periods\r\n\t\tScreenClock item1 = new ScreenClockImpl(\r\n\t\t\t\tnull\t\t\t// null: the screen controller writes to LCD. Not the item directly \r\n\t\t\t\t, ScreenClock.FORMAT_DATE_TIME_M\r\n\t\t\t\t, s\t\t\t\t// screen id\r\n\t\t\t\t, ++l\t\t\t\t// row\r\n\t\t\t\t, p);\t\t\t// position\r\n\t\tsc.addItem(item1);\r\n\t\t\r\n\t\t\r\n\t\t// Push Demo Counter\r\n\t\t++s; l=0; p=0;\r\n\t\tsc.addNewScreenToSequence(s);\r\n\t\tsc.addMaskLine(s, l, \" Push Demo-Counter\");\r\n\t\t// The counter source is to put into a screen item container\r\n\t\t// For Push or Pull Items the same container (ScreenItemImpl) is used\r\n\t\tScreenItem item2 = new ScreenItemImpl(\r\n\t\t\t\tnull\t\t\t// null: the screen controller writes to LCD. Not the item directly\r\n\t\t\t\t, counterSource\t// counter object (has to implement specific methods)\r\n\t\t\t\t, 0\t\t\t\t// pull refresh period: 0: no pull, the item pushes by itself \r\n\t\t\t\t, s\t\t\t\t// screen id\r\n\t\t\t\t, ++l\t\t\t// line\r\n\t\t\t\t, p);\t\t\t// position\r\n\t\tsc.addItem(item2);\r\n\r\n\t\t\r\n\t\t// Push Demo Clock + Counter\r\n\t\t++s; l=0; p=0;\r\n\t\tsc.addNewScreenToSequence(s);\r\n\t\tsc.addMaskLine(s, l, \" Clock + Counter\");\r\n\t\t// A screen clock is a push item, depending on the selected format it pushes the new value in different time periods\r\n\t\tScreenClock item3 = new ScreenClockImpl(\r\n\t\t\t\tnull\t\t\t// null: the screen controller writes to LCD. Not the item directly \r\n\t\t\t\t, ScreenClock.FORMAT_DATE_TIME_M\r\n\t\t\t\t, s\t\t\t\t// screen id\r\n\t\t\t\t, ++l\t\t\t// line\r\n\t\t\t\t, p);\t\t\t// position\r\n\t\tsc.addItem(item3);\r\n\t\t// The same counter source is used twice\r\n\t\tScreenItem item4 = new ScreenItemImpl(\r\n\t\t\t\tnull\t\t\t// null: the screen controller writes to LCD. Not the item directly\r\n\t\t\t\t, counterSource\t// counter object (has to implement specific methods)\r\n\t\t\t\t, 0\t\t\t\t// pull refresh period: 0: no pull, the item pushes by itself \r\n\t\t\t\t, s\t\t\t\t// screen id\r\n\t\t\t\t, ++l\t\t\t// line\r\n\t\t\t\t, p);\t\t\t// position\r\n\t\tsc.addItem(item4);\r\n\r\n\r\n\t\t// Activate the first screen to show (makes the screenController active too)\r\n\t\tsc.activateScreen(1);\r\n\r\n\t\t// Create and connect the Clone LCD\r\n\t\tclone = new DemoScreenControllerClientApp(this, cloneId, cloneHost, clonePort);\r\n\t\t\r\n\t\t// See methods \"tfCloneReConnect(..)\" and \"tfCloneDisconnect(..)\" in this class\r\n\t\t// for further handling of the Clone LCD\r\n\r\n\t}", "public void initUI(){\n\n playerSprite = new PlayerSprite(context, 150 * MainView.SCALE_WIDTH, background.getBottom(), 0.3f * MainView.SCALE_WIDTH, 0.30f * MainView.SCALE_WIDTH);\n enemySprite = new EnemySprite(context, (MainView.WIDTH - 150) * MainView.SCALE_WIDTH, background.getBottom(), 0.3f * MainView.SCALE_WIDTH, 0.30f * MainView.SCALE_WIDTH);\n if(encountered)\n enemySprite.setEnemySprite(enemy.getId());\n\n /*\n create header here\n */\n playerStatus = new PlayerStatus(context,player, 0, background.getBottom());\n }", "protected void createContents() {\n\t\tsetText(\"SWT Application\");\n\t\tsetSize(656, 296);\n\n\t}", "public void createSensors() {\n\t\t// calculates the height and width of the screen\n\t\tDimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\n\t\tint width = (int) screenSize.getWidth();\n\t\tint height = (int) screenSize.getHeight();\n\n\t\t// color for border\n\t\tint red = 33;\n\t\tint green = 65;\n\t\tint blue = 114;\n\t\tColor myBlue = new Color(red, green, blue);\n\n\t\t// title label\n\t\ttitleLabel = new JLabel(\"CONFIGURATION PANEL\");\n\t\ttitleLabel.setFont(font);\n\t\ttitleLabel.setBounds(600, 7, 417, 50);\n\t\ttitleLabel.setForeground(myBlue);\n\t\tthis.add(titleLabel, BorderLayout.NORTH);\n\n\t\tthis.setBorder(BorderFactory.createStrokeBorder(new BasicStroke(20.0f),\n\t\t\t\tmyBlue));\n\n\t\t// label the displays the selected area\n\t\tsectionLabel = new JLabel(\"\");\n\t\tsectionLabel.setFont(font3);\n\t\tsectionLabel.setBounds(40, 145, 200, 50);\n\t\tsectionLabel.setForeground(Color.RED);\n\t\tthis.add(sectionLabel);\n\n\t\t// fire sensor check box\n\t\tfireSensor = new JCheckBox(\"Fire Sensor\");\n\t\tfireSensor.setFont(font);\n\t\tfireSensor.setBounds(35, 195, 115, 50);\n\t\tfireSensor.setForeground(Color.BLACK);\n\t\tfireSensor.setBackground(Color.WHITE);\n\t\tthis.add(fireSensor);\n\n\t\t// fire bell icon is displayed using the following label\n\t\tfetchfireBell();\n\t\tfireBellLabel = new JLabel(new ImageIcon(fireBellScaledImg));\n\t\tfireBellLabel.setBounds(150, 205, 25, 25);\n\t\tthis.add(fireBellLabel);\n\n\t\t// burglary sensor check box\n\t\tburglarySensor = new JCheckBox(\"Burglary Sensor\");\n\t\tburglarySensor.setFont(font);\n\t\tburglarySensor.setBounds(35, 245, 150, 50);\n\t\tburglarySensor.setForeground(Color.BLACK);\n\t\tburglarySensor.setBackground(Color.WHITE);\n\t\tthis.add(burglarySensor);\n\n\t\t// burglary bell icon is displayed using the following label\n\t\tfetchBurglaryBell();\n\t\tburglaryBellLabel = new JLabel(new ImageIcon(burglaryBellScaledImg));\n\t\tburglaryBellLabel.setBounds(189, 254, 25, 25);\n\t\tthis.add(burglaryBellLabel);\n\n\t\t// date label\n\t\tdateLabel = new JLabel(\"Date: \");\n\t\tdateLabel.setFont(font);\n\t\tdateLabel.setBounds(1106, 153, 150, 50);\n\t\tdateLabel.setForeground(Color.BLACK);\n\t\tdateLabel.setBackground(Color.WHITE);\n\t\tthis.add(dateLabel);\n\n\t\t// from date text field\n\t\tdateFromTf = new JTextField();\n\t\tdateFromTf.setFont(font1);\n\t\tdateFromTf.setBounds(1106, 193, 75, 30);\n\t\tdateFromTf.setForeground(Color.BLACK);\n\t\tdateFromTf.setBackground(Color.WHITE);\n\t\tthis.add(dateFromTf);\n\n\t\t// to date text field\n\t\tdateToTf = new JTextField();\n\t\tdateToTf.setFont(font1);\n\t\tdateToTf.setBounds(1186, 193, 75, 30);\n\t\tdateToTf.setForeground(Color.BLACK);\n\t\tdateToTf.setBackground(Color.WHITE);\n\t\tthis.add(dateToTf);\n\n\t\t// Weekdays label\n\t\tWDaysLbl = new JLabel(\"Time: Weekdays \");\n\t\tWDaysLbl.setFont(font);\n\t\tWDaysLbl.setBounds(1106, 243, 150, 50);\n\t\tWDaysLbl.setForeground(Color.BLACK);\n\t\tWDaysLbl.setBackground(Color.WHITE);\n\t\tthis.add(WDaysLbl);\n\n\t\t// util.date is converted to sql.date for compatibility with database\n\t\tjava.util.Date date = new java.util.Date();\n\t\tlong t = date.getTime();\n\t\tjava.sql.Time endTime = new java.sql.Time(t);\n\n\t\t// From time during week days text field\n\t\tWDFromTf = new JTextField(endTime.toString());\n\t\tWDFromTf.setFont(font1);\n\t\tWDFromTf.setBounds(1106, 293, 70, 30);\n\t\tWDFromTf.setForeground(Color.BLACK);\n\t\tWDFromTf.setBackground(Color.WHITE);\n\t\tthis.add(WDFromTf);\n\n\t\t// To time during week days text field\n\t\tWDToTf = new JTextField(endTime.toString());\n\t\tWDToTf.setFont(font1);\n\t\tWDToTf.setBounds(1186, 293, 70, 30);\n\t\tWDToTf.setForeground(Color.BLACK);\n\t\tWDToTf.setBackground(Color.WHITE);\n\t\tthis.add(WDToTf);\n\n\t\t// from time during week ends text field\n\t\tWEndsLbl = new JLabel(\"Time: Weekends\");\n\t\tWEndsLbl.setFont(font);\n\t\tWEndsLbl.setBounds(1106, 343, 150, 50);\n\t\tWEndsLbl.setForeground(Color.BLACK);\n\t\tWEndsLbl.setBackground(Color.WHITE);\n\t\tthis.add(WEndsLbl);\n\n\t\t// from time during week ends text field\n\t\tWEndsFrom = new JTextField(endTime.toString());\n\t\tWEndsFrom.setFont(font1);\n\t\tWEndsFrom.setBounds(1106, 393, 70, 30);\n\t\tWEndsFrom.setForeground(Color.BLACK);\n\t\tWEndsFrom.setBackground(Color.WHITE);\n\t\tthis.add(WEndsFrom);\n\n\t\t// to time during week ends text field\n\t\tWEndsTo = new JTextField(endTime.toString());\n\t\tWEndsTo.setFont(font1);\n\t\tWEndsTo.setBounds(1186, 393, 70, 30);\n\t\tWEndsTo.setForeground(Color.BLACK);\n\t\tWEndsTo.setBackground(Color.WHITE);\n\t\tthis.add(WEndsTo);\n\n\t\t// save sensors selection button\n\t\tsaveSensorsButton = new JButton(\"Save\");\n\t\tsaveSensorsButton.setFocusPainted(false);\n\t\tsaveSensorsButton.setFont(font1);\n\t\tsaveSensorsButton.setBounds(35, 295, 100, 30);\n\t\tsaveSensorsButton.setForeground(Color.BLACK);\n\t\tthis.add(saveSensorsButton);\n\n\t\t// activate sensors button to activate the schedule of the sensors\n\t\t// configured\n\t\tactivateSensorsButton = new JButton(\"Activate\");\n\t\tactivateSensorsButton.setFocusPainted(false);\n\t\tactivateSensorsButton.setFont(font1);\n\t\tactivateSensorsButton.setBounds(1105, 443, 100, 30);\n\t\tactivateSensorsButton.setForeground(Color.BLACK);\n\t\tthis.add(activateSensorsButton);\n\n\t}", "@Override\n\t\tpublic Track build() {\n\t\t\treturn of(\n\t\t\t\t_name,\n\t\t\t\t_comment,\n\t\t\t\t_description,\n\t\t\t\t_source,\n\t\t\t\t_links,\n\t\t\t\t_number,\n\t\t\t\t_type,\n\t\t\t\t_extensions,\n\t\t\t\t_segments\n\t\t\t);\n\t\t}", "@Override protected void startup() {\n show(new FFTView(this));\n }", "private void writeTrackStyle() {\n printWriter.println(\"<Style id=\\\"\" + TRACK_STYLE + \"\\\">\");\n printWriter.println(\"<LineStyle><color>7f0000ff</color><width>4</width></LineStyle>\");\n printWriter.println(\"<IconStyle>\");\n printWriter.println(\"<scale>1.3</scale>\");\n printWriter.println(\"<Icon><href>\" + TRACK_ICON + \"</href></Icon>\");\n printWriter.println(\"</IconStyle>\");\n printWriter.println(\"</Style>\");\n }", "@Test\n\tpublic void addTrack_Test() throws Exception {\n\t\t\n\t\tif (Configuration.featureamp &&\n\t\t\t\tConfiguration.playengine &&\n\t\t\t\tConfiguration.choosefile &&\n\t\t\t\tConfiguration.mp3 &&\n\t\t\t\tConfiguration.gui &&\n\t\t\t\tConfiguration.skins &&\n\t\t\t\tConfiguration.light &&\n\t\t\t\tConfiguration.filesupport &&\n\t\t\t\tConfiguration.showtime &&\n\t\t\t\tConfiguration.playlist \n\t\t\t\t) {\n\t\t\tstart();\n\t\t\tFile file = new File(\"media/note.mp3\");\n\t\t\tgui.addTrack(\"note\",file);\t\n\t\t}\n\t}", "public void createAndShowGUI() {\n\t\tJFrame frame = new JFrame(\"Pong\");\n\t\tframe.setResizable(false);\n\t\tframe.setVisible(true);\n\n\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\tframe.add(board, BorderLayout.CENTER);\n\t\tframe.add(topPanel, BorderLayout.NORTH);\n\n\t\tframe.pack();\n\t}" ]
[ "0.64957255", "0.627537", "0.6233153", "0.60340494", "0.60018593", "0.59833914", "0.5979079", "0.59789366", "0.59260005", "0.5917051", "0.59106785", "0.58810556", "0.58798915", "0.5873224", "0.585614", "0.58005303", "0.5772202", "0.5758838", "0.5749322", "0.57203585", "0.5695662", "0.5691378", "0.5688584", "0.5684865", "0.5671254", "0.5634413", "0.5629746", "0.5629228", "0.5626975", "0.56132317", "0.5605528", "0.5587237", "0.5584977", "0.5575849", "0.55648756", "0.5555701", "0.55482143", "0.5548164", "0.55469143", "0.553794", "0.55336267", "0.55264163", "0.5480679", "0.5455396", "0.54495376", "0.544487", "0.5444511", "0.54299194", "0.542623", "0.54202884", "0.54156", "0.5412606", "0.5412491", "0.5401135", "0.5397927", "0.53951246", "0.53918976", "0.5390039", "0.5385476", "0.5370809", "0.53699744", "0.53554714", "0.53535545", "0.53435206", "0.5340873", "0.53231424", "0.5314634", "0.53088146", "0.53027797", "0.5302697", "0.53026223", "0.5302115", "0.52903515", "0.5288835", "0.52857405", "0.5274848", "0.5274141", "0.5273243", "0.52663696", "0.52621394", "0.5259628", "0.5259575", "0.5257216", "0.52501935", "0.52461475", "0.5245966", "0.52438414", "0.5241374", "0.5241352", "0.5237362", "0.5236723", "0.5235288", "0.5226041", "0.52234524", "0.5220815", "0.5216157", "0.5214723", "0.52145875", "0.5213879", "0.52106994" ]
0.62306464
3
Creates new form musteriEkle
public MusteriEkle() { initComponents(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Result newForm() {\n return ok(newForm.render(palletForm, setOfArticleForm));\n }", "public void CrearNew(ActionEvent e) {\n List<Pensum> R = ejbFacade.existePensumID(super.getSelected().getIdpensum());\n if(R.isEmpty()){\n super.saveNew(e);\n }else{\n new Auxiliares().setMsj(3,\"PENSUM ID YA EXISTE\");\n }\n }", "FORM createFORM();", "public creacionempresa() {\n initComponents();\n mostrardatos();\n }", "@GetMapping(value = \"/create\") // https://localhost:8080/etiquetasTipoDisenio/create\n\tpublic String create(Model model) {\n\t\tetiquetasTipoDisenio etiquetasTipoDisenio = new etiquetasTipoDisenio();\n\t\tmodel.addAttribute(\"title\", \"Registro de una nuev entrega\");\n\t\tmodel.addAttribute(\"etiquetasTipoDisenio\", etiquetasTipoDisenio); // similar al ViewBag\n\t\treturn \"etiquetasTipoDisenio/form\"; // la ubicacion de la vista\n\t}", "public FormInserir() {\n initComponents();\n }", "@Override\r\n\tpublic void crearVehiculo() {\n\t\t\r\n\t}", "public static void create(Formulario form){\n daoFormulario.create(form);\n }", "@Override\n\tpublic void create(CreateCoinForm form) throws Exception {\n\t}", "public static Result startNewForm() {\r\n\t\tString formName = ChangeOrderForm.NAME;\r\n\t\tDecision firstDecision = CMSGuidedFormFill.startNewForm(formName,\r\n\t\t\t\tCMSSession.getEmployeeName(), CMSSession.getEmployeeId());\r\n\t\treturn ok(backdrop.render(firstDecision));\r\n\t}", "@PostMapping(\"/addFormation/{eid}\")\n\t\tpublic Formation createFormation(@PathVariable(value = \"eid\") Long Id, @Valid @RequestBody Formation formationDetails) {\n\n\t\t \n\t\t Formation me=new Formation();\n\t\t\t Domaine domaine = Domainev.findById(Id).orElseThrow(null);\n\t\t\t \n\t\t\t \n\t\t\t\t me.setDom(domaine);\n\t\t\t me.setTitre(formationDetails.getTitre());\n\t\t\t me.setAnnee(formationDetails.getAnnee());\n\t\t\t me.setNb_session(formationDetails.getNb_session());\n\t\t\t me.setDuree(formationDetails.getDuree());\n\t\t\t me.setBudget(formationDetails.getBudget());\n\t\t\t me.setTypeF(formationDetails.getTypeF());\n\t\t\t \n\t\t\t \n\n\t\t\t //User affecterUser= \n\t\t\t return Formationv.save(me);\n\t\t\t//return affecterUser;\n\t\t\n\n\t\t}", "@Override\n\tpublic void createForm(ERForm form) {\n\t\t\tString sql = \"insert into project1.reimbursementInfo (userName, fullName, thedate, eventstartdate, thelocation, description, thecost, gradingformat, passingpercentage, eventtype, filename,status,reason) values (?,?,?,?,?,?,?,?,?,?,?,?,?);\";\n\t\t\ttry {PreparedStatement stmt = conn.prepareCall(sql);\n\t\t\t//RID should auto increment, so this isnt necessary\n\t\t\t\n\t\t\tstmt.setString(1, form.getUserName());\n\t\t\tstmt.setString(2, form.getFullName());\n\t\t\tstmt.setDate(3, Date.valueOf(form.getTheDate()));\n\t\t\tstmt.setDate(4, Date.valueOf(form.getEventStartDate()));\n\t\t\tstmt.setString(5, form.getTheLocation());\n\t\t\tstmt.setString(6, form.getDescription());\n\t\t\tstmt.setDouble(7, form.getTheCost());\n\t\t\tstmt.setString(8, form.getGradingFormat());\n\t\t\tstmt.setString(9, form.getPassingPercentage());\n\t\t\tstmt.setString(10, form.getEventType());\n\t\t\tstmt.setString(11, form.getFileName());\n\t\t\tstmt.setString(12, \"pending\");\n\t\t\tstmt.setString(13, \"\");\n\t\t\tstmt.executeUpdate();\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@GetMapping(\"/createRegistro\")\n\tpublic String crearValidacion(Model model) {\n\t\tList<Barrio> localidades = barrioService.obtenerBarrios();\n\t\tmodel.addAttribute(\"localidades\",localidades);\n\t\tmodel.addAttribute(\"persona\",persona);\n\t\tmodel.addAttribute(\"validacion\",validacion);\n\t\tmodel.addAttribute(\"registro\",registro);\n\t\tmodel.addAttribute(\"barrio\",barrio);\n\t\treturn \"RegistroForm\";\n\t}", "private FenetreCreation() {\n\t\tsuper(\"Machine de Turing - Creation\");\n\t\tsetSize(1000, 450);\n\t\tsetLocation(100, 100);\n\t\tsetResizable(false);\n\t\t//Pas possible de fermer par le bouton fermer de fenetre\n\t\tsetDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);\n\t\t\n\t\t//Initialisation de toutes les composantes\n\t\tlabelEtat = new JLabel(\"Etats :\");\n\t\tlabelSym = new JLabel(\"Symboles :\");\n\t\tlabelConsigne = new JLabel(\"<html>Le premier etat ajoute sera l'etat initial.<br>\"\n\t\t\t\t+ \"# signifie des cases vides.<br>\"\n\t\t\t\t+ \"Pas d'espace pour des symboles et etats.</html>\");\n\n\t\tok = new JButton(\"OK\");\n\t\tannuler = new JButton(\"Annuler\");\n\t\tajoutEtat = new JButton(\"+\");\n\t\tsuppEtat = new JButton(\"-\");\n\t\tajoutSym = new JButton(\"+\");\n\t\tsuppSym = new JButton(\"-\");\n\n\t\ttextEtat = new JTextField();\n\t\ttextSym = new JTextField();\n\n\t\tmodelEtat = new DefaultListModel<String>();\n\t\tetats = new JList<String>(modelEtat);\n\t\tetats.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n\t\tetats.setVisibleRowCount(10);\n\t\tscrollEtat = new JScrollPane(etats);\n\n\t\tmodelSym = new DefaultListModel<String>();\n\t\tsymboles = new JList<String>(modelSym);\n\t\tsymboles.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n\t\tsymboles.setVisibleRowCount(10);\n\t\tscrollSym = new JScrollPane(symboles);\n\n\t\tselSym = new JComboBox<String>();\n\t\tselEtat = new JComboBox<String>();\n\t\tselDeplace = new JComboBox<String>();\n\t\t//ajouter l'etat finale et symbole speciale pour simuler ruban infini\n\t\tselEtat.addItem(\"eFinale\");\n\t\tselSym.addItem(\"#\");\n\t\t//etiquettes de deplacement\n\t\tselDeplace.addItem(\"Gauche\");\n\t\tselDeplace.addItem(\"Droite\");\n\t\tselDeplace.addItem(\"Statique\");\n\n\t\ttabModel = new HashMap<String, DefaultTableModel>();\n\t\tString[] colId = {\"Etat\", \"Vue\", \"Changer à\", \"Prochain Etat\", \"Deplacement\"};\n\t\temptyMod = new DefaultTableModel(0, 5);\n\t\temptyMod.setColumnIdentifiers(colId);\n\t\ttab = new JTable(emptyMod);\n\t\tscrollTab = new JScrollPane(tab);\n\n\t\ttabSym = new ArrayList<String>();\n\t\ttabEtat = new ArrayList<String>();\n\t\t\n\t\t//rendre visible symbole speciale a l'initialisation\n\t\ttabSym.add(\"#\");\n\t\tmodelSym.addElement(\"#\");\n\t\t\n\t\t//ajout de fonctionnement des boutons\n\t\tajoutEtat.addActionListener(e -> {\n\t\t\tString data = textEtat.getText();\n\t\t\tif (!modelEtat.contains(data) && !data.isEmpty() && !data.contains(\" \") && !data.equals(\"eFinale\")) {\n\t\t\t\tmodelEtat.addElement(data);\n\t\t\t\ttabEtat.add(data);\n\t\t\t\ttabModel.put(data, new DefaultTableModel(0, 4) {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic boolean isCellEditable(int row, int column) {\n\t\t\t\t\t\treturn !(column == 0 || column == 1);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\ttabModel.get(data).setColumnIdentifiers(colId);\n\t\t\t\ttabModel.get(data).addRow(new Object[]{data, \"\", \"\", \"\", \"\"});\n\t\t\t\tfor (int i = 0; i < modelSym.size(); i++) {\n\t\t\t\t\tif (i == 0) {\n\t\t\t\t\t\ttabModel.get(data).setValueAt(modelSym.get(i), i, 1);\n\t\t\t\t\t} else {\n\t\t\t\t\t\ttabModel.get(data).addRow(new Object[]{\"\", modelSym.get(i), \"\", \"\", \"\"});\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tselEtat.addItem(data);\n\t\t\t}\n\t\t\ttextEtat.setText(null);\n\t\t});\n\n\t\tsuppEtat.addActionListener(e -> {\n\t\t\tint index = etats.getSelectedIndex();\n\t\t\tif (index != -1) {\n\t\t\t\tString data = etats.getSelectedValue();\n\t\t\t\tmodelEtat.remove(index);\n\t\t\t\ttabEtat.remove(index);\n\t\t\t\ttabModel.remove(data);\n\t\t\t\tselEtat.removeItem(data);\n\t\t\t}\n\t\t});\n\n\t\tajoutSym.addActionListener(e -> {\n\t\t\tString data = textSym.getText();\n\t\t\tif (!modelSym.contains(data) && !data.isEmpty() && !data.contains(\" \") && !data.equals(\"#\")) {\n\t\t\t\tmodelSym.addElement(data);\n\t\t\t\ttabSym.add(data);\n\t\t\t\tif (modelSym.size() == 1) {\n\t\t\t\t\tfor (String s : tabModel.keySet()) {\n\t\t\t\t\t\ttabModel.get(s).setValueAt(data, 0, 1);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tfor (String s : tabModel.keySet()) {\n\t\t\t\t\t\ttabModel.get(s).addRow(new Object[]{\"\", data, \"\", \"\", \"\"});\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tselSym.addItem(data);\n\t\t\t}\n\t\t\ttextSym.setText(null);\n\t\t});\n\n\t\tsuppSym.addActionListener(e -> {\n\t\t\tint index = symboles.getSelectedIndex();\n\t\t\tif (index != -1 && !modelSym.getElementAt(index).equals(\"#\")) {\n\t\t\t\tselSym.removeItem(modelSym.getElementAt(index));\n\t\t\t\ttabSym.remove(index);\n\t\t\t\tmodelSym.remove(index);\n\t\t\t\tfor (DefaultTableModel d : tabModel.values()) {\n\t\t\t\t\td.removeRow(index);\n\t\t\t\t\tif (index == 0 && d.getRowCount() == 0) {\n\t\t\t\t\t\td.addRow(new Object[]{etats.getSelectedValue(), \"\", \"\", \"\", \"\"});\n\t\t\t\t\t} else if (index == 0) {\n\t\t\t\t\t\td.setValueAt(etats.getSelectedValue(), 0, 0);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\t//seul moyen de fermer la fenetre\n\t\tannuler.addActionListener(e -> {\n\t\t\ttry {\n\t\t\t\tbarrier.await();\n\t\t\t} catch (Exception ex) {\n\t\t\t}\n\t\t\tthis.dispose();\n\t\t});\n\t\t\n\t\t//finaliser les parametres d'entree pour la creation\n\t\t//verification qu'aucun champ n'est null, sinon erreur\n\t\tok.addActionListener(e -> {\n\t\t\ttry {\n\t\t\t\tif (tabEtat.isEmpty() || tabSym.isEmpty()) {\n\t\t\t\t\tthrow new Exception();\n\t\t\t\t} else {\n\t\t\t\t\ttabAct = new int[tabEtat.size()][tabSym.size()][3];\n\t\t\t\t\tfor (int i = 0; i < tabAct.length; i++) {\n\t\t\t\t\t\tString etat = tabEtat.get(i);\n\t\t\t\t\t\tfor (int j = 0; j < tabAct[i].length; j++) {\n\t\t\t\t\t\t\tString newSym = (String) tabModel.get(etat).getValueAt(j, 2);\n\t\t\t\t\t\t\tString newEtat = (String) tabModel.get(etat).getValueAt(j, 3);\n\t\t\t\t\t\t\tString dep = (String) tabModel.get(etat).getValueAt(j, 4);\n\n\t\t\t\t\t\t\tif (newSym == \"\" || newEtat == \"\" || dep == \"\") {\n\t\t\t\t\t\t\t\tthrow new Exception();\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\ttabAct[i][j][0] = tabSym.indexOf(newSym);\n\n\t\t\t\t\t\t\tif (newEtat.equals(\"eFinale\")) {\n\t\t\t\t\t\t\t\ttabAct[i][j][1] = -1;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\ttabAct[i][j][1] = tabEtat.indexOf(newEtat);\n\t\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\t\tif (dep.equals(\"Gauche\")) {\n\t\t\t\t\t\t\t\ttabAct[i][j][2] = Ruban.GAUCHE;\n\t\t\t\t\t\t\t} else if (dep.equals(\"Droite\")) {\n\t\t\t\t\t\t\t\ttabAct[i][j][2] = Ruban.DROITE;\n\t\t\t\t\t\t\t} else if (dep.equals(\"Statique\")) {\n\t\t\t\t\t\t\t\ttabAct[i][j][2] = Ruban.RESTER;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tthis.dispose();\n\t\t\t\t\tmachine = new Turing_Machine(tabAct, tabEtat, tabSym);\n\t\t\t\t\tbarrier.await();\n\t\t\t\t}\n\t\t\t} catch (Exception n) {\n\t\t\t\tJOptionPane.showMessageDialog(this, \"Veuillez remplir tous les champs de saisie!\", \"\", JOptionPane.WARNING_MESSAGE);\n\t\t\t}\n\t\t});\n\t\t\n\t\t//changement de tableau par selection d'etat\n\t\tetats.addListSelectionListener(new ListSelectionListener() {\n\t\t\tpublic void valueChanged(ListSelectionEvent evt) {\n\t\t\t\tif (!evt.getValueIsAdjusting()) {\n\t\t\t\t\tif (!modelEtat.isEmpty() && etats.getSelectedIndex() != -1) {\n\t\t\t\t\t\ttab.setModel(tabModel.get(etats.getSelectedValue()));\n\t\t\t\t\t} else {\n\t\t\t\t\t\ttab.setModel(emptyMod);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttab.getColumnModel().getColumn(2).setCellEditor(new DefaultCellEditor(selSym));\n\t\t\t\ttab.getColumnModel().getColumn(3).setCellEditor(new DefaultCellEditor(selEtat));\n\t\t\t\ttab.getColumnModel().getColumn(4).setCellEditor(new DefaultCellEditor(selDeplace));\n\t\t\t}\n\t\t});\n\t\t\n\t\t//positionnement des composantes\n\t\tentryPanel = new JPanel(new GridBagLayout());\n\t\tmainPanel = new JPanel(new BorderLayout());\n\t\tboutonVal = new JPanel(new GridLayout(1, 2, 0, 0));\n\t\tboutonEtat = new JPanel(new GridLayout(1, 2, 10, 0));\n\t\tboutonSym = new JPanel(new GridLayout(1, 2, 10, 0));\n\n\t\tboutonEtat.add(ajoutEtat);\n\t\tboutonEtat.add(suppEtat);\n\t\tboutonSym.add(ajoutSym);\n\t\tboutonSym.add(suppSym);\n\n\t\tc = new GridBagConstraints();\n\t\tc.gridheight = 1;\n\t\tc.gridwidth = 1;\n\t\tc.insets = new Insets(5, 10, 5, 10);\n\t\tc.fill = GridBagConstraints.BOTH;\n\t\t\n\t\tentryPanel.add(labelConsigne, c);\n\t\t\n\t\tc.gridx = 0;\n\t\tc.gridy = 2;\n\t\tc.gridwidth = 1;\n\t\tentryPanel.add(labelEtat, c);\n\n\t\tc.gridx = 2;\n\t\tentryPanel.add(labelSym, c);\n\n\t\tc.gridy = 3;\n\t\tc.gridx = 0;\n\t\tc.gridwidth = 2;\n\t\tentryPanel.add(boutonEtat, c);\n\n\t\tc.gridx = 2;\n\t\tentryPanel.add(boutonSym, c);\n\n\t\tc.gridy = 4;\n\t\tc.gridx = 0;\n\t\tentryPanel.add(textEtat, c);\n\n\t\tc.gridy = 5;\n\t\tentryPanel.add(scrollEtat, c);\n\n\t\tc.gridx = 2;\n\t\tc.gridy = 4;\n\t\tentryPanel.add(textSym, c);\n\n\t\tc.gridy = 5;\n\t\tentryPanel.add(scrollSym, c);\n\n\t\tboutonVal.add(ok);\n\t\tboutonVal.add(annuler);\n\t\tmainPanel.add(entryPanel, BorderLayout.WEST);\n\t\tmainPanel.add(scrollTab, BorderLayout.EAST);\n\t\tmainPanel.add(boutonVal, BorderLayout.SOUTH);\n\t\tsetContentPane(mainPanel);\n\t\tpack();\n\t\tsetVisible(true);\n\t}", "public form_utama_kasir() {\n initComponents(); \n koneksi DB = new koneksi(); \n con = DB.getConnection();\n aturtext();\n tampilkan();\n nofakturbaru();\n loadData();\n panelEditDataDiri.setVisible(false);\n txtHapusKodeTransaksi.setVisible(false);\n txtHapusQtyTransaksi.setVisible(false);\n txtHapusStokTersedia.setVisible(false);\n }", "public tambahtoko() {\n initComponents();\n tampilkan();\n form_awal();\n }", "@Command\n\tpublic void nuevoAnalista(){\n\t\tMap<String, Object> parametros = new HashMap<String, Object>();\n\n\t\t//parametros.put(\"recordMode\", \"NEW\");\n\t\tllamarFormulario(\"formularioAnalistas.zul\", null);\n\t}", "public FormularioCliente() {\n initComponents();\n }", "public TorneoForm() {\n initComponents();\n }", "public FrmCrearEmpleado() {\n initComponents();\n tFecha.setDate(new Date());\n }", "private void createBtnActionPerformed(java.awt.event.ActionEvent evt) {\n\n staff.setName(regName.getText());\n staff.setID(regID.getText());\n staff.setPassword(regPwd.getText());\n staff.setPosition(regPos.getSelectedItem().toString());\n staff.setGender(regGender.getSelectedItem().toString());\n staff.setEmail(regEmail.getText());\n staff.setPhoneNo(regPhone.getText());\n staff.addStaff();\n if (staff.getPosition().equals(\"Vet\")) {\n Vet vet = new Vet();\n vet.setExpertise(regExp.getSelectedItem().toString());\n vet.setExpertise_2(regExp2.getSelectedItem().toString());\n vet.addExpertise(staff.getID());\n }\n JOptionPane.showMessageDialog(null, \"User added to database\");\n updateJTable();\n }", "public String formCreated()\r\n {\r\n return formError(\"201 Created\",\"Object was created\");\r\n }", "public Result inicioGenerarLibro(){\n ContabilidadDTO dto = new ContabilidadDTO();\n dto.tipoLibro = new Parametro(\"\",\"LVEN\",\"\");\n //dto.tipoLibro.id.codigo =\"LVEN\";\n dto.anio = new Parametro(\"\",\"2018\",\"\");\n //dto.anio.id.codigo =\"2018\";\n dto.mes = new Parametro(\"\",\"3\",\"\");\n //dto.mes.id.codigo =\"3\"; //Simpre debe ser el mes anterior al actual\n\n Form<ContabilidadDTO> contabilidadDTOForm = formFactory.form(ContabilidadDTO.class).fill(dto);\n\n/*\n EbeanServer db = DBConnectionUtil.getDBServerFacturador();\n List<BandejaFactura> lista = db.find(BandejaFactura.class).findList();; //BandejaFactura.find.all();//obtenerTodos();\n for (BandejaFactura x:lista) {\n System.out.println(x);\n }\n*/\n/*\n EbeanServer db = DBConnectionUtil.getDBServerSGV();\n List<ControlVenta> lista = db.find(ControlVenta.class)\n .where().ilike(\"CVNT_NUM_DOCUMENTO\", \"F002-00000213\")\n .findList();\n for (ControlVenta x:lista) {\n System.out.println(\"*********** \"+x);\n }\n*/\n/*\n EbeanServer db = DBConnectionUtil.getDBServerSGV();\n List<ControlVenta> lista = db.find(ControlVenta.class).findList();; //BandejaFactura.find.all();//obtenerTodos();\n for (ControlVenta x:lista) {\n System.out.println(x);\n }\n*/\n\n return ok(generadorLibrosContables.render(contabilidadDTOForm));\n }", "public FormUtama() {\n initComponents();\n }", "@GetMapping(\"/cliente/new\")\n\tpublic String newCliente(Model model) {\n\t\tmodel.addAttribute(\"cliente\", new Cliente());\n\t\tControllerHelper.setEditMode(model, false);\n\t\t\n\t\t\n\t\treturn \"cadastro-cliente\";\n\t\t\n\t}", "public void registrarMateria() {\n materia.setIdDepartamento(departamento);\n ejbFacade.create(materia);\n RequestContext requestContext = RequestContext.getCurrentInstance();\n requestContext.execute(\"PF('MateriaCreateDialog').hide()\");\n items = ejbFacade.findAll();\n departamento = new Departamento();\n materia = new Materia();\n\n FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_INFO, \"Información\", \"La materia se registró con éxito\");\n FacesContext.getCurrentInstance().addMessage(null, msg);\n requestContext.update(\"msg\");//Actualiza la etiqueta growl para que el mensaje pueda ser mostrado\n\n requestContext.update(\"MateriaListForm\");\n requestContext.update(\"MateriaCreateForm\");\n }", "public void crear() {\n con = new Conexion();\n con.setInsertar(\"insert into lenguajes_programacion (nombre, fecha_creacion, estado) values ('\"+this.getNombre()+\"', '\"+this.getFecha_creacion()+\"', 'activo')\");\n }", "@FXML\r\n\tvoid genererForme(ActionEvent event) {\r\n\t\t// TODO\r\n\t\t// Caller la m�thode qui nous fait une forme\r\n\t\t// Cr�er un data avec infos, formesfact avec data, data fait forme, tout\r\n\t\t// remonte\r\n\t\tDataFactory data = null;\r\n\t\tif (getListView().getSelectionModel().getSelectedItem().equals(\"Triangle\")) {\r\n\t\t\tdata = new DataFactory(Integer.parseInt(getTextFdata().getText()),\r\n\t\t\t\t\tInteger.parseInt(getTextF1data().getText()), Integer.parseInt(getTextF2data().getText()),\r\n\t\t\t\t\tgetColorPicker().getValue(), Integer.parseInt(getTextF3data().getText()),\r\n\t\t\t\t\tInteger.parseInt(getTextF4data().getText()), getListView().getSelectionModel().getSelectedItem());\r\n\t\t} else {\r\n\t\t\tdata = new DataFactory(Integer.parseInt(getTextFdata().getText()),\r\n\t\t\t\t\tInteger.parseInt(getTextF1data().getText()), getColorPicker().getValue(),\r\n\t\t\t\t\tInteger.parseInt(getTextF3data().getText()), Integer.parseInt(getTextF4data().getText()),\r\n\t\t\t\t\tgetListView().getSelectionModel().getSelectedItem());\r\n\t\t}\r\n\t\tFormesFactory formesF = new FormesFactory(600, 600);\r\n\t\ttry {\r\n\t\t\tForme formedessin = formesF.getInstance(data);\r\n\t\t\tajouterForme(data);\r\n\t\t} catch (FormeException e) {\r\n\t\t\t// popper fen�tre forme invalide\r\n\t\t\tAlert dialogW = new Alert(AlertType.WARNING);\r\n\t\t\tdialogW.setTitle(\"Error\");\r\n\t\t\tdialogW.setHeaderText(null);\r\n\t\t\tdialogW.setContentText(\"Forme non valide\");\r\n\t\t\tdialogW.showAndWait();\r\n\t\t} catch (ZoneDessinException e) {\r\n\t\t\t// popper fen�tre forme out of bounds\r\n\r\n\t\t\tAlert dialogW = new Alert(AlertType.WARNING);\r\n\t\t\tdialogW.setTitle(\"Error\");\r\n\t\t\tdialogW.setHeaderText(null);\r\n\t\t\tdialogW.setContentText(\"Forme � l'ext�rieur des bordures\");\r\n\t\t\tdialogW.showAndWait();\r\n\t\t}\r\n\t}", "@Test\n public void newTeacher() {\n driver.get(\"http://localhost:3000/teacher\");\n log.info(() -> \"Successfully enter the localhost:3000/teacher for adding a new teacher. time: \" + LocalDateTime.now());\n\n //Button for opening teacher form\n WebElement buttonPlus = driver.findElement(By.xpath(\"/html/body/div/div/main/div[2]/button\"));\n buttonPlus.click();\n driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n\n TeacherForm teacherForm = new TeacherForm(driver);\n Assertions.assertTrue(teacherForm.isInitialized());\n log.info(() -> \"Teacher form is initialized! time: \" + LocalDateTime.now());\n //I found save button with xpath\n teacherForm.setSaveButton(\"/html/body/div/div/main/div[2]/div[2]/form/div[4]/button[1]\");\n teacherForm.newTeacher(\"Mirko\",\"Vukovic\", \"[email protected]\");\n\n ReceiptPage newTeacherForm = teacherForm.submitSave();\n log.info(() -> \"Submit new teacher was successfully! time: \" + LocalDateTime.now());\n Assertions.assertTrue(newTeacherForm.isInitialized());\n }", "public SalidaCajaForm() {\n\t\tinicializarComponentes();\n }", "public Result createRoom() {\n\n DynamicForm dynamicForm = Form.form().bindFromRequest();\n String roomType = dynamicForm.get(\"roomType\");\n Double price = Double.parseDouble(dynamicForm.get(\"price\"));\n int bedCount = Integer.parseInt(dynamicForm.get(\"beds\"));\n String wifi = dynamicForm.get(\"wifi\");\n String smoking = dynamicForm.get(\"smoking\");\n\n RoomType roomTypeObj = new RoomType(roomType, price, bedCount, wifi, smoking);\n\n if (dynamicForm.get(\"AddRoomType\") != null) {\n\n Ebean.save(roomTypeObj);\n String message = \"New Room type is created Successfully\";\n\n return ok(views.html.RoomTypeUpdateSuccess.render(message));\n } else{\n\n String message = \"Failed to create a new Room type\";\n\n return ok(views.html.RoomTypeUpdateSuccess.render(message));\n\n }\n\n\n\n }", "public frm_tutor_subida_prueba() {\n }", "private void azzeraInsertForm() {\n\t\tviewInserimento.getCmbbxTipologia().setSelectedIndex(-1);\n\t\tviewInserimento.getTxtFieldDataI().setText(\"\");\n\t\tviewInserimento.getTxtFieldValore().setText(\"\");\n\t\tviewInserimento.getTxtFieldDataI().setBackground(Color.white);\n\t\tviewInserimento.getTxtFieldValore().setBackground(Color.white);\n\t}", "public KorisnikForma() {\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\tsetBounds(100, 100, 629, 613);\n\t\tcontentPane = new JPanel();\n\t\tcontentPane.setBorder(new EmptyBorder(5, 5, 5, 5));\n\t\tsetContentPane(contentPane);\n\t\tcontentPane.setLayout(null);\n\t\t\n\t\tJLabel lblRegistracija = new JLabel(\"Registracija !!!\");\n\t\tlblRegistracija.setFont(new Font(\"Tahoma\", Font.BOLD, 26));\n\t\tlblRegistracija.setBounds(189, 35, 306, 36);\n\t\tcontentPane.add(lblRegistracija);\n\t\t\n\t\ttfImePrezime = new JTextField();\n\t\ttfImePrezime.setBounds(425, 143, 153, 20);\n\t\tcontentPane.add(tfImePrezime);\n\t\ttfImePrezime.setColumns(10);\n\t\t\n\t\ttfUser = new JTextField();\n\t\ttfUser.setBounds(425, 207, 153, 20);\n\t\tcontentPane.add(tfUser);\n\t\ttfUser.setColumns(10);\n\t\t\n\t\ttfPass = new JTextField();\n\t\ttfPass.setBounds(425, 267, 153, 20);\n\t\tcontentPane.add(tfPass);\n\t\ttfPass.setColumns(10);\n\t\t\n\t\ttfTelefon = new JTextField();\n\t\ttfTelefon.setBounds(425, 382, 153, 20);\n\t\tcontentPane.add(tfTelefon);\n\t\ttfTelefon.setColumns(10);\n\t\tImage img2= new ImageIcon(this.getClass().getResource(\"/download.png\")).getImage();\n\t\t\n\t\tJLabel lblImePrezime = new JLabel(\"Ime i prezime :\");\n\t\tlblImePrezime.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlblImePrezime.setBounds(273, 143, 89, 17);\n\t\tcontentPane.add(lblImePrezime);\n\t\t\n\t\tJLabel lblzvezda = new JLabel(\"*\");\n\t\tlblzvezda.setForeground(Color.RED);\n\t\tlblzvezda.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlblzvezda.setBounds(396, 144, 19, 14);\n\t\tcontentPane.add(lblzvezda);\n\t\t\n\t\tJLabel label = new JLabel(\"*\");\n\t\tlabel.setForeground(Color.RED);\n\t\tlabel.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlabel.setBounds(396, 208, 19, 14);\n\t\tcontentPane.add(label);\n\t\t\n\t\tJLabel label_1 = new JLabel(\"*\");\n\t\tlabel_1.setForeground(Color.RED);\n\t\tlabel_1.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlabel_1.setBounds(396, 268, 19, 14);\n\t\tcontentPane.add(label_1);\n\t\t\n\t\tJLabel label_2 = new JLabel(\"*\");\n\t\tlabel_2.setForeground(Color.RED);\n\t\tlabel_2.setBackground(Color.WHITE);\n\t\tlabel_2.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlabel_2.setBounds(396, 325, 19, 14);\n\t\tcontentPane.add(label_2);\n\t\t\n\t\tJLabel label_3 = new JLabel(\"*\");\n\t\tlabel_3.setForeground(Color.RED);\n\t\tlabel_3.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlabel_3.setBounds(396, 383, 19, 14);\n\t\tcontentPane.add(label_3);\n\t\t\n\t\tJLabel lblUserName = new JLabel(\"Username : \");\n\t\tlblUserName.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlblUserName.setBounds(273, 207, 89, 17);\n\t\tcontentPane.add(lblUserName);\n\t\t\n\t\tJLabel lblNewLabel = new JLabel(\"* Obavezna polja za unos ! \");\n\t\tlblNewLabel.setForeground(Color.RED);\n\t\tlblNewLabel.setFont(new Font(\"Tahoma\", Font.BOLD | Font.ITALIC, 14));\n\t\tlblNewLabel.setBounds(375, 523, 211, 23);\n\t\tcontentPane.add(lblNewLabel);\n\t\t\n\t\tJLabel lblPass = new JLabel(\"Password :\");\n\t\tlblPass.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlblPass.setBounds(273, 267, 89, 17);\n\t\tcontentPane.add(lblPass);\n\t\t\n\t\tJLabel lblDate = new JLabel(\"Datum rodjenja : \");\n\t\tlblDate.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlblDate.setBounds(273, 324, 113, 17);\n\t\tcontentPane.add(lblDate);\n\t\t\n\t\tJLabel lblNewLabel_2 = new JLabel(\"Telefon :\");\n\t\tlblNewLabel_2.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlblNewLabel_2.setBounds(273, 382, 100, 17);\n\t\tcontentPane.add(lblNewLabel_2);\n\t\t\n\t\tJLabel lblImage = new JLabel(\"\");\n\t\tImage img3 = new ImageIcon(this.getClass().getResource(\"/admin.png\")).getImage();\n\t\tlblImage.setIcon(new ImageIcon(img3));\n\t\tlblImage.setBounds(38, 82, 170, 357);\n\t\tcontentPane.add(lblImage);\n\t\t\n\t\tJButton btnSacuvaj = new JButton(\"Sacuvaj\");\n\t\tbtnSacuvaj.setFont(new Font(\"Tahoma\", Font.BOLD, 14));\n\t\tImage img4 = new ImageIcon(this.getClass().getResource(\"/download.png\")).getImage();\n\t\tbtnSacuvaj.setIcon(new ImageIcon(img4));\n\t\tbtnSacuvaj.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t\tDateFormat df= new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\t\t\t\n\t\t\t\t if(tfImePrezime.getText().length()==0) // Checking for empty field\n\t\t\t\t JOptionPane.showMessageDialog(null, \"NEKO POLJE JE OSTALO PRAZNO,POPUNITE GA ZA NASTAVAK !\");\n\t\t\t\t else if(tfUser.getText().length ()==0) // Checking for empty field\n\t\t\t\t JOptionPane.showMessageDialog(null, \"NEKO POLJE JE OSTALO PRAZNO,POPUNITE GA ZA NASTAVAK !\");\n\t\t\t\t else if(tfPass.getText().length()==0) // Checking for empty field\n\t\t\t\t JOptionPane.showMessageDialog(null, \"NEKO POLJE JE OSTALO PRAZNO,POPUNITE GA ZA NASTAVAK !\");\n\t\t\t\t else if(dcDatum.getDate() == null) // Checking for empty field\n\t\t\t\t JOptionPane.showMessageDialog(null, \"NEKO POLJE JE OSTALO PRAZNO,POPUNITE GA ZA NASTAVAK !\");\n\t\t\t\t else if(tfTelefon.getText().length ()==0) // Checking for empty field\n\t\t\t\t\t JOptionPane.showMessageDialog(null, \"NEKO POLJE JE OSTALO PRAZNO,POPUNITE GA ZA NASTAVAK !\");\n\t\t\t\t else{\n\t\t\t\ttry {\n\t\t\t\tString imePrezime = tfImePrezime.getText().toString();\n\t\t\t\tString userName = tfUser.getText().toString();\n\t\t\t\tString password = tfPass.getText().toString();\n\t\t\t\tString date =df.format(dcDatum.getDate());\n\t\t\t\tString telefon = tfTelefon.getText().toString();\n\t\t\t\t\n\t\t\t\tKontroler.getInstanca().upisiKorisnika(imePrezime,userName,password,date,telefon);\n\t\t\t\tJOptionPane.showMessageDialog(null,\"Uspesna registracija\");\n\t\t\t\t\n\t\t\t\t}catch(Exception e1) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnSacuvaj.setBounds(450, 451, 128, 23);\n\t\tcontentPane.add(btnSacuvaj);\n\t\t\n\t\tJButton btnNazad = new JButton(\"Nazad\");\n\t\tImage img5 = new ImageIcon(this.getClass().getResource(\"/nazad1.png\")).getImage();\n\t\tbtnNazad.setIcon(new ImageIcon(img5));\n\t\tbtnNazad.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t\tLogovanje l = new Logovanje();\n\t\t\t\tl.setVisible(true);\n\t\t\t\tdispose();\n\t\t\t}\n\t\t});\n\t\tbtnNazad.setBounds(10, 11, 105, 23);\n\t\tcontentPane.add(btnNazad);\n\t\t\n\t\tdcDatum = new JDateChooser();\n\t\tdcDatum.setBounds(425, 319, 153, 20);\n\t\tcontentPane.add(dcDatum);\n\t\t\n\t\n\t\t\n\t}", "public CrearPedidos() {\n initComponents();\n }", "public String nuevo() {\n\n\t\tLOG.info(\"Submitado formulario, accion nuevo\");\n\t\tString view = \"/alumno/form\";\n\n\t\t// las validaciones son correctas, por lo cual los datos del formulario estan en\n\t\t// el atributo alumno\n\n\t\t// TODO simular index de la bbdd\n\t\tint id = this.alumnos.size();\n\t\tthis.alumno.setId(id);\n\n\t\tLOG.debug(\"alumno: \" + this.alumno);\n\n\t\t// TODO comprobar edad y fecha\n\n\t\talumnos.add(alumno);\n\t\tview = VIEW_LISTADO;\n\t\tmockAlumno();\n\n\t\t// mensaje flash\n\t\tFacesContext facesContext = FacesContext.getCurrentInstance();\n\t\tExternalContext externalContext = facesContext.getExternalContext();\n\t\texternalContext.getFlash().put(\"alertTipo\", \"success\");\n\t\texternalContext.getFlash().put(\"alertMensaje\", \"Alumno \" + this.alumno.getNombre() + \" creado con exito\");\n\n\t\treturn view + \"?faces-redirect=true\";\n\t}", "@_esCocinero\n public Result crearPaso() {\n Form<Paso> frm = frmFactory.form(Paso.class).bindFromRequest();\n\n // Comprobación de errores\n if (frm.hasErrors()) {\n return status(409, frm.errorsAsJson());\n }\n\n Paso nuevoPaso = frm.get();\n\n // Comprobar autor\n String key = request().getQueryString(\"apikey\");\n if (!SeguridadFunctions.esAutorReceta(nuevoPaso.p_receta.getId(), key))\n return Results.badRequest();\n\n // Checkeamos y guardamos\n if (nuevoPaso.checkAndCreate()) {\n Cachefunctions.vaciarCacheListas(\"pasos\", Paso.numPasos(), cache);\n Cachefunctions.vaciarCacheListas(\"recetas\", Receta.numRecetas(), cache);\n return Results.created();\n } else {\n return Results.badRequest();\n }\n\n }", "public MostraVenta(String idtrasp, Object[][] clienteM1, Object[][] vendedorM1, String idmarc, String responsable,ListaTraspaso panel)\n{\n this.padre = panel;\n this.clienteM = clienteM1;\n this.vendedorM = vendedorM1;\n this.idtraspaso= idtrasp;\n this.idmarca=idmarc;\n//this.tipoenvioM = new String[]{\"INGRESO\", \"TRASPASO\"};\n String tituloTabla =\"Detalle Venta\";\n // padre=panel;\n String nombreBoton1 = \"Registrar\";\n String nombreBoton2 = \"Cancelar\";\n // String nombreBoton3 = \"Eliminar Empresa\";\n\n setId(\"win-NuevaEmpresaForm1\");\n setTitle(tituloTabla);\n setWidth(400);\n setMinWidth(ANCHO);\n setHeight(250);\n setLayout(new FitLayout());\n setPaddings(WINDOW_PADDING);\n setButtonAlign(Position.CENTER);\n setCloseAction(Window.CLOSE);\n setPlain(true);\n\n but_aceptar = new Button(nombreBoton1);\n but_cancelar = new Button(nombreBoton2);\n // addButton(but_aceptarv);\n addButton(but_aceptar);\n addButton(but_cancelar);\n\n formPanelCliente = new FormPanel();\n formPanelCliente.setBaseCls(\"x-plain\");\n //formPanelCliente.setLabelWidth(130);\n formPanelCliente.setUrl(\"save-form.php\");\n formPanelCliente.setWidth(ANCHO);\n formPanelCliente.setHeight(ALTO);\n formPanelCliente.setLabelAlign(Position.LEFT);\n\n formPanelCliente.setAutoWidth(true);\n\n\ndat_fecha1 = new DateField(\"Fecha\", \"d-m-Y\");\n fechahoy = new Date();\n dat_fecha1.setValue(fechahoy);\n dat_fecha1.setReadOnly(true);\n\ncom_vendedor = new ComboBox(\"Vendedor al que enviamos\", \"idempleado\");\ncom_cliente = new ComboBox(\"Clientes\", \"idcliente\");\n//com_tipo = new ComboBox(\"Tipo Envio\", \"idtipo\");\n initValues1();\n\n\n\n formPanelCliente.add(dat_fecha1);\n// formPanelCliente.add(com_tipo);\n// formPanelCliente.add(tex_nombreC);\n// formPanelCliente.add(tex_codigoBarra);\n // formPanelCliente.add(tex_codigoC);\nformPanelCliente.add(com_vendedor);\n formPanelCliente.add(com_cliente);\n add(formPanelCliente);\nanadirListenersTexfield();\n addListeners();\n\n }", "public void clickCreate() {\n\t\tbtnCreate.click();\n\t}", "public Form_soal() {\n initComponents();\n tampil_soal();\n }", "private void btntambahActionPerformed(java.awt.event.ActionEvent evt) {\n\tdiaTambahKelas.pack();\n\tdiaTambahKelas.setVisible(true);\n\trefreshTableKelas();\n//\tDate date = jdWaktu.getDate();\n//\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"YYYY-MM-dd\");\n//\tString strDate = dateFormat.format(date);\n//\tif (validateKelas()) {\n//\t int result = fungsi.executeUpdate(\"insert into kelas values ('\" + txtidkls.getText() + \"', '\" + txtkls.getText() + \"', '\" + txtpertemuan.getText() + \"', '\" + strDate + \"', '\" + txtRuang.getText() + \"')\");\n//\t if (result > 0) {\n//\t\trefreshTableKelas();\n//\t }\n//\t}\n\t\n }", "public FrmInsertar() {\n initComponents();\n }", "public Formulario() {\n initComponents();\n }", "public String crea() {\n c.setId(0);\n clienteDAO.crea(c); \n //Post-Redirect-Get\n return \"visualiza?faces-redirect=true&id=\"+c.getId();\n }", "com.soa.SolicitarCreditoDocument.SolicitarCredito addNewSolicitarCredito();", "private void creerMethode() {\n if (estValide()) {\n methode = new Methode();\n methode.setNom(textFieldNom.getText());\n methode.setVisibilite(comboBoxVisibilite.getValue());\n methode.setType(comboBoxType.getValue());\n ArrayList<Parametre> temp = new ArrayList<>();\n for (Parametre parametre : parametreListView.getItems())\n temp.add(parametre);\n methode.setParametres(temp);\n close();\n }\n }", "public FormularioPregunta() {\n initComponents();\n \n setLocationRelativeTo(this);\n }", "public ViewCreatePagamento() {\n initComponents();\n clientesDAO cDAO = DaoFactory.createClientesDao(); \n matriculaDAO mDAO = DaoFactory.createMatriculaDao();\n \n cmbIDClientes.addItem(null);\n cDAO.findAll().forEach((p) -> {\n cmbIDClientes.addItem(p.getNome());\n });\n \n \n txtDataAtual.setText(DateFormat.getDateInstance().format(new Date()));\n }", "public InvoiceCreate() {\n initComponents();\n }", "public void nouveau(){\r\n try {\r\n viewEtudiantInscripEcheance = new ViewEtudiantInscriptionEcheance();\r\n echeance_etudiant = new EcoEcheanceEtudiant(); \r\n \r\n } catch (Exception e) {\r\n System.err.println(\"Erreur capturée : \"+e);\r\n }\r\n }", "public FormCadastroAutomovel() {\n initComponents();\n }", "public void crear(Tarea t) {\n t.saveIt();\n }", "private void btnTambahActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnTambahActionPerformed\n tambahUbah = 1;\n TambahUbahTIK t = new TambahUbahTIK();\n t.setVisible(true);\n this.dispose();\n }", "public void saveAndCreateNew() throws Exception {\n\t\topenPrimaryButtonDropdown();\n\t\tgetControl(\"saveAndCreateNewButton\").click();\n\t}", "protected void nuevo(){\n wp = new frmEspacioTrabajo();\n System.runFinalization();\n inicializar();\n }", "public void crearAutomovil(){\r\n automovil = new Vehiculo();\r\n automovil.setMarca(\"BMW\");\r\n automovil.setModelo(2010);\r\n automovil.setPlaca(\"TWS435\");\r\n }", "public static AddNewScheduleDialog createInstance(int quantity){\n AddNewScheduleDialog frag = new AddNewScheduleDialog();\n frag.quantity = quantity;\n return frag;\n }", "public CrearProductos() {\n initComponents();\n }", "public void crearReaTrans(){\n\t // could have been factorized with the precedent view\n\t\tgetContentPane().setLayout(new BorderLayout());\n\t \n\t\tp1 = new JPanel();\n\t p2 = new JPanel();\n\t \n\t String[] a = {\"Regresar\",\"Continuar\"}, c = {\"Cuenta de origen\",\"Monto\",\"Cuenta de destino\"};\n\t \n\t p1.setLayout(new GridLayout(1,2));\n\t p2.setLayout(new GridLayout(1,3));\n\t \n\t for (int x=0; x<2; x++) {\n\t b = new JButton(a[x]);\n\t botones.add(b);\n\t }\n\t for (JButton x:botones) {\n\t x.setPreferredSize(new Dimension(110,110));\n\t p1.add(x);\n\t }\n // Add buttons panel \n\t add(p1, BorderLayout.SOUTH);\n\t \n\t for (int x=0; x<3; x++){\n\t tf=new JTextField(c[x]);\n\t tf.setPreferredSize(new Dimension(10,100));\n textos.add(tf);\n\t p2.add(tf);\n\t }\n // Add textfields panel\n\t add(p2, BorderLayout.NORTH);\n\t}", "public FrmIntPasienLama() {\n initComponents();\n\n /* Memberi nilai isian pasien dari form penambahan pasien (FormInternal) */\n txtNoRm.setText(FrmIntPasienBaru.ID);\n txtNamaPasien.setText(FrmIntPasienBaru.nama);\n txtAlamat.setText(FrmIntPasienBaru.alamat);\n txtJenkel.setText(FrmIntPasienBaru.jk);\n txtTglLahir.setText(FrmIntPasienBaru.tglLahir);\n\n /* Mengisi comboBox pilihPoliTujuan dari database */\n tms.setData(ss.serviceGetAllSpesialis());\n int a = tms.getRowCount();\n pilihPoliTujuan.setModel(new javax.swing.DefaultComboBoxModel(ss.serviceGetAllNamaSpesialis(a)));\n\n /* Mengisi comboBox pilihJaminan dari database */\n tmj.setData(js.serviceGetAllJaminan());\n int b = tmj.getRowCount();\n pilihJaminan.setModel(new javax.swing.DefaultComboBoxModel(js.serviceGetAllIdJaminan(b)));\n\n tmsf.setData(sfs.serviceGetAllStaf());\n int c = tmsf.getRowCount();\n pilihStaf.setModel(new javax.swing.DefaultComboBoxModel(sfs.serviceGetAllNamaStaf(c)));\n\n Date dt = new Date();\n tglPendaftaran.setDate(dt);\n\n /* Mengisi pilihan dokter berdasarkan pilihan spesialis */\n //isiPilihanDokter();\n\n /* Menampilkan konfirmasi apabila form pendaftaran ini di-close */\n this.addInternalFrameListener(new InternalFrameAdapter() {\n\n @Override\n public void internalFrameClosing(InternalFrameEvent e) {\n if (txtNamaPasien.getText() == null ? \"\" == null : txtNamaPasien.getText().equals(\"\")) {\n dispose();\n } else {\n int pilih = JOptionPane.showConfirmDialog(rootPane,\n \"Yakin ingin membatalkan pendaftaran ke Poliklinik?\",\n \"Konfirmasi\",\n JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE);\n if (pilih == JOptionPane.OK_OPTION) {\n dispose();\n /* Menghilangan nilai dari form penambahan pasien (internal) */\n FrmIntPasienBaru.ID = \"\";\n FrmIntPasienBaru.nama = \"\";\n FrmIntPasienBaru.alamat = \"\";\n FrmIntPasienBaru.jk = \"\";\n FrmIntPasienBaru.tglLahir = \"\";\n }\n }\n }\n });\n\n /* Apabila pilihan poli tujuan berubah, maka pilihan dokter akan ikut berubah */\n pilihPoliTujuan.addItemListener(new ItemListener() {\n\n public void itemStateChanged(ItemEvent e) {\n try {\n isiPilihanDokter();\n } catch (Throwable t) {\n }\n }\n });\n\n\n }", "public void crearPersonaje(ActionEvent event) {\r\n\r\n\t\tthis.personaje.setAspecto(url);\r\n\r\n\t\tDatabaseOperaciones.guardarPersonaje(stats, personaje);\r\n\r\n\t\tvisualizaPersonajes();\r\n\t}", "private void jBtn_AjouterActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBtn_AjouterActionPerformed\n // Si onglet Client\n if(numOnglet() == 0){\n Formulaire_Client creaClient = new Formulaire_Client();\n creaClient.setVisible(true);\n this.setVisible(false);\n \n }\n else{\n Formulaire_Prospect creaProspect = new Formulaire_Prospect();\n creaProspect.setVisible(true);\n this.setVisible(false);\n } \n }", "public CrearQuedadaVista() {\n }", "public void createPersonalInfos(JFrame jFrame, ControllerAdmin controllerAdminPersonalInfos){\n JLabel jLabelAcount = new JLabel(\"Compte\");\n jLabelAcount.setBounds(20, 20, 100, 28);\n\n JLabel jLabelId = new JLabel(\"Identifiant :\");\n jLabelId.setBounds(40, 50, 300, 28);\n JTextField jTextFieldId = new JTextField(controllerAdminPersonalInfos.getUser().getId());\n jTextFieldId.setBounds(40, 80, 300, 28);\n\n JLabel jLabelLastName = new JLabel(\"Nom :\");\n jLabelLastName.setBounds(40, 110, 300, 28);\n JTextField jTextFieldLastName = new JTextField(controllerAdminPersonalInfos.getUser().getLastName());\n jTextFieldLastName.setBounds(40, 140, 300, 28);\n\n JLabel jLabelFirstName = new JLabel(\"Prenom :\");\n jLabelFirstName.setBounds(40, 170, 300, 28);\n JTextField jTextFieldFirstName = new JTextField(controllerAdminPersonalInfos.getUser().getFirstName());\n jTextFieldFirstName.setBounds(40, 200, 300, 28);\n\n JLabel jLabelEmail = new JLabel(\"Email :\");\n jLabelEmail.setBounds(40, 230, 300, 28);\n JTextField jTextFieldEmail = new JTextField(controllerAdminPersonalInfos.getUser().getEmail());\n jTextFieldEmail.setBounds(40, 260, 300, 28);\n\n JLabel jLabelPassword = new JLabel(\"Mot de passe :\");\n jLabelPassword.setBounds(40, 290, 300, 28);\n JPasswordField jPasswordFieldPassword = new JPasswordField(controllerAdminPersonalInfos.getUser().getPassword());\n jPasswordFieldPassword.setBounds(40, 320, 300, 28);\n\n JButton jButtonModifPassword = new JButton(\"Modifier le mot de passe\");\n jButtonModifPassword.setBounds(350, 320, 200, 28);\n\n //set editabilite\n jTextFieldId.setEditable(false);\n jTextFieldLastName.setEditable(false);\n jTextFieldFirstName.setEditable(false);\n jTextFieldEmail.setEditable(false);\n jPasswordFieldPassword.setEditable(false);\n\n // Ajout des element à la JFrame\n jFrame.add(jLabelAcount);\n jFrame.add(jLabelId);\n jFrame.add(jTextFieldId);\n jFrame.add(jLabelLastName);\n jFrame.add(jTextFieldLastName);\n jFrame.add(jLabelFirstName);\n jFrame.add(jTextFieldFirstName);\n jFrame.add(jLabelEmail);\n jFrame.add(jTextFieldEmail);\n jFrame.add(jLabelPassword);\n jFrame.add(jButtonModifPassword);\n jFrame.add(jPasswordFieldPassword);\n\n jButtonModifPassword.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n createModifPassword(jFrame, controllerAdminPersonalInfos);\n jFrame.repaint();\n }\n });\n\n jFrame.setLayout(null);\n jFrame.setVisible(true);\n }", "public NhanVien_Form_PhieuXuat() {\n\t\tinitialize();\n\t}", "@FXML\r\n private void crearSolicitud() {\r\n try {\r\n //Carga la vista de crear solicitud rma\r\n FXMLLoader loader = new FXMLLoader();\r\n loader.setLocation(Principal.class.getResource(\"/vista/CrearSolicitud.fxml\"));\r\n BorderPane vistaCrear = (BorderPane) loader.load();\r\n\r\n //Crea un dialogo para mostrar la vista\r\n Stage dialogo = new Stage();\r\n dialogo.setTitle(\"Solicitud RMA\");\r\n dialogo.initModality(Modality.WINDOW_MODAL);\r\n dialogo.initOwner(primerStage);\r\n Scene escena = new Scene(vistaCrear);\r\n dialogo.setScene(escena);\r\n\r\n //Annadir controlador y datos\r\n ControladorCrearSolicitud controlador = loader.getController();\r\n controlador.setDialog(dialogo, primerStage);\r\n\r\n //Carga el numero de Referencia\r\n int numReferencia = DAORma.crearReferencia();\r\n\r\n //Modifica el dialogo para que no se pueda cambiar el tamaño y lo muestra\r\n dialogo.setResizable(false);\r\n dialogo.showAndWait();\r\n\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }", "public void makeClient() {\n try {\n clienteFacade.create(cliente);\n FacesContext.getCurrentInstance().addMessage(\"messages\", new FacesMessage(FacesMessage.SEVERITY_INFO, \"Cliente creado exitosamente\", null));\n } catch (Exception e) {\n System.err.println(\"Error en la creacion del usuario: \" + e.getMessage());\n FacesContext.getCurrentInstance().addMessage(\"messages\", new FacesMessage(FacesMessage.SEVERITY_FATAL, e.getMessage(), null));\n }\n }", "@GetMapping(\"/add\")\r\n\tpublic String newSave(Model model) {\r\n\t\tmodel.addAttribute(\"trainee\", new Trainee());\r\n\t\treturn \"add-trainee\";\r\n\t}", "private void initFormulario() {\n btnCadastro = findViewById(R.id.btnCadastro);\n editNome = findViewById(R.id.editNome);\n editEmail = findViewById(R.id.editEmail);\n editSenhaA = findViewById(R.id.editSenha);\n editSenhaB = findViewById(R.id.editSenhaB);\n chTermo = findViewById(R.id.chTermos);\n isFormOk = false;\n }", "public CadastroProdutoNew() {\n initComponents();\n }", "@GetMapping(\"/restaurante/new\")\n\tpublic String newRestaurante(Model model) {\n\t\tmodel.addAttribute(\"restaurante\", new Restaurante());\n\t\tControllerHelper.setEditMode(model, false);\n\t\tControllerHelper.addCategoriasToRequest(categoriaRestauranteRepository, model);\n\t\t\n\t\treturn \"restaurante-cadastro\";\n\t\t\n\t}", "public ServerskaForma() {\n initComponents();\n \n \n \n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jTextFieldOro = new javax.swing.JTextField();\n jTextFieldElixir = new javax.swing.JTextField();\n jButtonCrearEdificio = new javax.swing.JButton();\n jButtonCrearTropa = new javax.swing.JButton();\n jButton3 = new javax.swing.JButton();\n jButtonMejorarEdificio = new javax.swing.JButton();\n jButtonRecogerRecursos = new javax.swing.JButton();\n jButton9 = new javax.swing.JButton();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jTextFieldChoza = new javax.swing.JTextField();\n jTextFieldMina = new javax.swing.JTextField();\n jLabel7 = new javax.swing.JLabel();\n jTextFieldRecolector = new javax.swing.JTextField();\n jLabel8 = new javax.swing.JLabel();\n jTextFieldCampamento = new javax.swing.JTextField();\n jLabel9 = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n jLabel11 = new javax.swing.JLabel();\n jLabel12 = new javax.swing.JLabel();\n jTextFieldCañon = new javax.swing.JTextField();\n jTextFieldMortero = new javax.swing.JTextField();\n jTextFieldTorre = new javax.swing.JTextField();\n jTextFieldCuartel = new javax.swing.JTextField();\n jLabel13 = new javax.swing.JLabel();\n jLabel14 = new javax.swing.JLabel();\n jLabel15 = new javax.swing.JLabel();\n jLabel16 = new javax.swing.JLabel();\n jLabel17 = new javax.swing.JLabel();\n jTextFieldBarbaro = new javax.swing.JTextField();\n jTextFieldArquera = new javax.swing.JTextField();\n jTextFieldGigante = new javax.swing.JTextField();\n jTextFieldDuende = new javax.swing.JTextField();\n jSeparator1 = new javax.swing.JSeparator();\n jLabel18 = new javax.swing.JLabel();\n jLabel19 = new javax.swing.JLabel();\n jTextField15 = new javax.swing.JTextField();\n jLabel21 = new javax.swing.JLabel();\n jLabel22 = new javax.swing.JLabel();\n jLabel23 = new javax.swing.JLabel();\n jLabel24 = new javax.swing.JLabel();\n jTextFieldAyuntamiento = new javax.swing.JTextField();\n jTextFieldOroMina = new javax.swing.JTextField();\n jTextFieldElixRec = new javax.swing.JTextField();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jLabel1.setText(\"Oro\");\n\n jLabel2.setText(\"Elixir\");\n\n jTextFieldOro.setEnabled(false);\n\n jTextFieldElixir.setToolTipText(\"\");\n jTextFieldElixir.setEnabled(false);\n\n jButtonCrearEdificio.setText(\"Crear Edificio\");\n jButtonCrearEdificio.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonCrearEdificioActionPerformed(evt);\n }\n });\n\n jButtonCrearTropa.setText(\"Crear Tropa\");\n jButtonCrearTropa.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonCrearTropaActionPerformed(evt);\n }\n });\n\n jButton3.setText(\"Realizar Ataque\");\n jButton3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton3ActionPerformed(evt);\n }\n });\n\n jButtonMejorarEdificio.setText(\"Mejorar Edificio\");\n jButtonMejorarEdificio.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonMejorarEdificioActionPerformed(evt);\n }\n });\n\n jButtonRecogerRecursos.setText(\"Recoger Recursos\");\n jButtonRecogerRecursos.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonRecogerRecursosActionPerformed(evt);\n }\n });\n\n jButton9.setText(\"Recibir Ataque\");\n\n jLabel4.setFont(new java.awt.Font(\"Tahoma\", 1, 18));\n jLabel4.setForeground(new java.awt.Color(0, 0, 102));\n jLabel4.setText(\"Mi Aldea\");\n\n jTextFieldChoza.setEnabled(false);\n\n jTextFieldMina.setEnabled(false);\n\n jTextFieldRecolector.setEnabled(false);\n\n jTextFieldCampamento.setEnabled(false);\n\n jTextFieldCañon.setEnabled(false);\n\n jTextFieldMortero.setEnabled(false);\n\n jTextFieldTorre.setEnabled(false);\n\n jTextFieldCuartel.setEnabled(false);\n\n jLabel13.setFont(new java.awt.Font(\"Tahoma\", 1, 11));\n jLabel13.setText(\"Tropas\");\n\n jTextFieldBarbaro.setEnabled(false);\n\n jTextFieldArquera.setEnabled(false);\n\n jTextFieldGigante.setEnabled(false);\n\n jTextFieldDuende.setEnabled(false);\n\n jLabel18.setFont(new java.awt.Font(\"Tahoma\", 1, 11));\n jLabel18.setText(\"Tropas\");\n\n jLabel19.setFont(new java.awt.Font(\"Tahoma\", 1, 11));\n jLabel19.setText(\"Tiempo\");\n\n jTextField15.setEnabled(false);\n\n jLabel21.setText(\"jLabel21\");\n\n jLabel22.setText(\"jLabel22\");\n\n jLabel23.setText(\"jLabel23\");\n\n jLabel24.setText(\"AYUNTAMIENTO\");\n\n jTextFieldAyuntamiento.setEnabled(false);\n\n jTextFieldOroMina.setEnabled(false);\n jTextFieldOroMina.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextFieldOroMinaActionPerformed(evt);\n }\n });\n\n jTextFieldElixRec.setEnabled(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(69, 69, 69)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel5)\n .addComponent(jLabel6)\n .addComponent(jLabel7)\n .addComponent(jLabel8)))\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(jTextFieldElixRec, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jTextFieldOroMina, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 36, Short.MAX_VALUE))))\n .addGap(33, 33, 33)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(jTextFieldRecolector, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jTextFieldMina, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jTextFieldChoza, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jTextFieldCampamento, javax.swing.GroupLayout.PREFERRED_SIZE, 46, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(65, 65, 65)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel10)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jTextFieldMortero, javax.swing.GroupLayout.PREFERRED_SIZE, 46, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel11)\n .addComponent(jLabel12))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jTextFieldCuartel)\n .addComponent(jTextFieldTorre, javax.swing.GroupLayout.DEFAULT_SIZE, 46, Short.MAX_VALUE)))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jLabel9)\n .addGap(34, 34, 34)\n .addComponent(jTextFieldCañon, javax.swing.GroupLayout.PREFERRED_SIZE, 46, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(73, 73, 73)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel14)\n .addComponent(jLabel15)\n .addComponent(jLabel16)\n .addComponent(jLabel17))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jTextFieldBarbaro)\n .addComponent(jTextFieldGigante)\n .addComponent(jTextFieldDuende)\n .addComponent(jTextFieldArquera, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(0, 251, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 319, Short.MAX_VALUE)\n .addComponent(jLabel4)\n .addGap(44, 44, 44))\n .addGroup(layout.createSequentialGroup()\n .addGap(122, 122, 122)\n .addComponent(jLabel24)\n .addGap(18, 18, 18)\n .addComponent(jTextFieldAyuntamiento, javax.swing.GroupLayout.PREFERRED_SIZE, 47, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 173, Short.MAX_VALUE)))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1)\n .addComponent(jLabel2))\n .addGap(29, 29, 29)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel13)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(jTextFieldOro, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jTextFieldElixir, javax.swing.GroupLayout.PREFERRED_SIZE, 46, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(143, 143, 143)))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jButtonCrearEdificio, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButtonCrearTropa, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButtonMejorarEdificio, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButtonRecogerRecursos, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton9, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 119, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(23, 23, 23))\n .addComponent(jSeparator1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 821, Short.MAX_VALUE)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(80, 80, 80)\n .addComponent(jLabel18)\n .addGap(229, 229, 229)\n .addComponent(jLabel19)\n .addGap(18, 18, 18)\n .addComponent(jTextField15, javax.swing.GroupLayout.PREFERRED_SIZE, 93, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGap(48, 48, 48)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel22)\n .addComponent(jLabel21)\n .addComponent(jLabel23))))\n .addContainerGap(320, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel3)\n .addGap(62, 62, 62)\n .addComponent(jButtonCrearEdificio)\n .addGap(4, 4, 4)\n .addComponent(jButtonCrearTropa)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButtonMejorarEdificio)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButtonRecogerRecursos)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton9))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(21, 21, 21)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(jTextFieldOro, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jTextFieldElixir, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel2))\n .addGap(18, 18, 18)\n .addComponent(jLabel13))\n .addGroup(layout.createSequentialGroup()\n .addGap(33, 33, 33)\n .addComponent(jLabel4)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 31, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel24)\n .addComponent(jTextFieldAyuntamiento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5)\n .addComponent(jTextFieldChoza, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel9)\n .addComponent(jTextFieldCañon, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel14)\n .addComponent(jTextFieldBarbaro, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel6)\n .addComponent(jTextFieldMina, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel10)\n .addComponent(jTextFieldMortero, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel15)\n .addComponent(jTextFieldArquera, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTextFieldOroMina, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel7)\n .addComponent(jTextFieldRecolector, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel11)\n .addComponent(jTextFieldTorre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel16)\n .addComponent(jTextFieldGigante, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTextFieldElixRec, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(29, 29, 29)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel8)\n .addComponent(jTextFieldCampamento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel12)\n .addComponent(jTextFieldCuartel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel17)\n .addComponent(jTextFieldDuende, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGap(18, 18, 18)\n .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel18)\n .addComponent(jLabel19)\n .addComponent(jTextField15, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(43, 43, 43)\n .addComponent(jLabel21)\n .addGap(32, 32, 32)\n .addComponent(jLabel22)\n .addGap(35, 35, 35)\n .addComponent(jLabel23)\n .addContainerGap(224, Short.MAX_VALUE))\n );\n\n pack();\n }", "public Add_E() {\n initComponents();\n this.setTitle(\"Add Engineer\");\n }", "private void submitForm(){\n String toast_message;\n\n int time = getValueOfField(R.id.at_editTextNumberSigned_timeValue);\n int easyNumber = getValueOfField(R.id.at_editTextNumberSigned_levelEasyValue);\n int mediumNumber = getValueOfField(R.id.at_editTextNumberSigned_levelMiddleValue);\n int highNumber = getValueOfField(R.id.at_editTextNumberSigned_levelHighValue);\n int hardcoreNumber = getValueOfField(R.id.at_editTextNumberSigned_levelExpertValue);\n\n // if time is between 0 and 1440 min\n if (time > 0){\n if(time < 24*60){\n // if numbers are positives\n if (easyNumber >= 0 && mediumNumber >= 0 && highNumber >= 0 && hardcoreNumber >= 0){\n\n // save data\n int id = this.controller.getLastIdTraining() + 1;\n\n ArrayList<Level> listLevel = new ArrayList<>();\n listLevel.add(new Level(\"EASY\", easyNumber));\n listLevel.add(new Level(\"MEDIUM\", mediumNumber));\n listLevel.add(new Level(\"HIGHT\", highNumber));\n listLevel.add(new Level(\"HARDCORE\", hardcoreNumber));\n\n Training training = new Training(id, inputCalendar.getTime(), time, listLevel);\n\n this.controller.AddTraining(training);\n\n // init values of Form\n initForm(null);\n\n // redirection to stats page\n Navigation.findNavController(getActivity(),\n R.id.nav_host_fragment).navigate(R.id.navigation_list_training);\n\n toast_message = \"L'entrainement a bien été ajouté !\";\n }else toast_message = \"Erreur:\\nToutes les valeurs de voies ne sont pas positive !\";\n }else toast_message = \"La durée ne doit pas exceder 1440 min.\";\n }else toast_message = \"La durée doit être supérieur à 0 min.\\n\";\n\n // Send alert\n Toast.makeText(getContext(), toast_message, Toast.LENGTH_LONG).show();\n }", "public StavkaFaktureInsert() {\n initComponents();\n CBFakture();\n CBProizvod();\n }", "public void crearAbonar(){\n \t\n getContentPane().setLayout(new BorderLayout());\n \n p1 = new JPanel();\n\t\tp2 = new JPanel();\n \n\t\t// Not used anymore\n\t\t//String[] a={\"Regresar\",\"Continuar\"},c={\"Cuenta\",\"Monto\"};\n \n\t\t// Layout : # row, # columns\n\t\tp1.setLayout(new GridLayout(1,2));\n \n\t\t// Create the JTextField : Cuenta\n\t\t// And add it to the panel\n tf = new JTextField(\"Cuenta\");\n textos.add(tf);\n tf.setPreferredSize(new Dimension(10,100));\n p1.add(tf);\n\n\t\t// Create the JTextField : Monto\n\t\t// And add it to the panel\n tf = new JTextField(\"Monto\");\n textos.add(tf);\n tf.setPreferredSize(new Dimension(10,100));\n p1.add(tf);\n \n // Add the panel to the Frame layout\n add(p1, BorderLayout.NORTH);\n \n // Create the button Regresar\n buttonRegresar = new JButton(\"Regresar\");\n botones.add(buttonRegresar);\n\n // Create the button Continuar\n buttonContinuar = new JButton(\"Continuar\");\n botones.add(buttonContinuar);\n \n // Layout : 1 row, 2 columns\n p2.setLayout(new GridLayout(1,2));\n \n // Add the buttons to the layout\n for(JButton x:botones){\n x.setPreferredSize(new Dimension(110,110));\n p2.add(x);\n }\n \n // Add the panel to the Frame layout\n add(p2, BorderLayout.SOUTH);\n }", "public void create(Joueur joueur) {\n EntityManager em = EntityManagerHolder.getCurrentEntityManager();\n EntityTransaction tx = null;\n\n try {\n// session = HibernateUtil.getSessionFactory().getCurrentSession();\n// tx = session.beginTransaction();\n// session.persist(joueur);\n tx = em.getTransaction();\n em.persist(joueur);\n //declenche l'ajout d'un ou plusieurs elements -> synchronisation de la session et de la BDD\n\n System.out.println(\"Joueur créé avec succès\");\n } catch (Exception e) {\n\n e.printStackTrace();\n } finally {\n if (em != null) {\n em.close();\n }\n }\n }", "public String actionCreateNew() {\r\n \t\tsetBook(new Book());\r\n \t\treturn \"new\";\r\n \t}", "@Override\r\n public Formation ajouterFormation(Stockagedemandeformation demandeformation, int nbParticipants,String statut) {\r\n Formation f = new Formation();\r\n f.setStatut(statut);\r\n Formation formationCree = this.formationFacade.create(f);\r\n ajouterFormationCompose(formationCree, demandeformation, nbParticipants);\r\n return formationCree;\r\n }", "public FRM_Estudiantes() {\n initComponents();\n }", "Klassenstufe createKlassenstufe();", "public StokEkle() {\n initComponents();\n \n }", "protected RespostaFormularioPreenchido() {\n // for ORM\n }", "public FormFuncionario(FormMenu telaPai) {\n initComponents();\n this.telaPai = telaPai;\n\n txtNome.setText(\"Nome\");\n lblNome.setVisible(false);\n txtSobrenome.setText(\"Sobrenome\");\n lblSobrenome.setVisible(false);\n campoMensagem.setVisible(false);\n lblMensagem.setVisible(false);\n\n }", "public TransferOfFundsForm() {\n super();\n }", "public void crearDisco( ){\r\n boolean parameter = true;\r\n String artista = panelDatos.darArtista( );\r\n String titulo = panelDatos.darTitulo( );\r\n String genero = panelDatos.darGenero( );\r\n String imagen = panelDatos.darImagen( );\r\n\r\n if( ( artista.equals( \"\" ) || titulo.equals( \"\" ) ) || ( genero.equals( \"\" ) || imagen.equals( \"\" ) ) ) {\r\n parameter = false;\r\n JOptionPane.showMessageDialog( this, \"Todos los campos deben ser llenados para crear el disco\" );\r\n }\r\n if( parameter){\r\n boolean ok = principal.crearDisco( titulo, artista, genero, imagen );\r\n if( ok )\r\n dispose( );\r\n }\r\n }", "private void newProject()\n\t{\n\t\tnew FenetreCreationProjet();\n\t}", "@Override\r\n protected void createDbContentCreateEdit() {\n DbContentCreateEdit dbContentCreateEdit = new DbContentCreateEdit();\r\n dbContentCreateEdit.init(null);\r\n form.getModelObject().setDbContentCreateEdit(dbContentCreateEdit);\r\n dbContentCreateEdit.setParent(form.getModelObject());\r\n ruServiceHelper.updateDbEntity(form.getModelObject()); \r\n }", "Compuesta createCompuesta();", "public String createQuiz() {\n quiz = quizEJB.createQuiz(quiz);\n quizList = quizEJB.listQuiz();\n FacesContext.getCurrentInstance().addMessage(\"successForm:successInput\", new FacesMessage(FacesMessage.SEVERITY_INFO, \"Success\", \"New record added successfully\"));\n return \"quiz-list.xhtml\";\n }", "@Override\n public ExtensionResult dogetFormcuti(ExtensionRequest extensionRequest) {\n\n Map<String, String> output = new HashMap<>();\n String formId = appProperties.getFormIdCuti();\n FormBuilder formBuilder = new FormBuilder(formId);\n ButtonTemplate button = new ButtonTemplate();\n button.setTitle(\"Form Cuti\");\n button.setSubTitle(\"Form Cuti\");\n button.setPictureLink(Image_cuti);\n button.setPicturePath(Image_cuti);\n List<EasyMap> actions = new ArrayList<>();\n EasyMap bookAction = new EasyMap();\n bookAction.setName(\"Isi Form\");\n bookAction.setValue(formBuilder.build());\n// bookAction.setValue(appProperties.getShortenFormCuti());\n actions.add(bookAction);\n button.setButtonValues(actions);\n ButtonBuilder buttonBuilder = new ButtonBuilder(button);\n\n output.put(OUTPUT, buttonBuilder.build());\n ExtensionResult extensionResult = new ExtensionResult();\n extensionResult.setAgent(false);\n extensionResult.setRepeat(false);\n extensionResult.setSuccess(true);\n extensionResult.setNext(true);\n extensionResult.setValue(output);\n return extensionResult;\n }", "public Form(){\n\t\ttypeOfLicenseApp = new TypeOfLicencsApplication();\n\t\toccupationalTrainingList = new ArrayList<OccupationalTraining>();\n\t\taffiadavit = new Affidavit();\n\t\tapplicationForReciprocity = new ApplicationForReciprocity();\n\t\teducationBackground = new EducationBackground();\n\t\toccupationalLicenses = new OccupationalLicenses();\n\t\tofficeUseOnlyInfo = new OfficeUseOnlyInfo();\n\t}", "public ProductCreate() {\n initComponents();\n }", "@Override\n\tpublic void onFormCreate(AbstractForm arg0, DataMsgBus arg1) {\n\t}", "public FormPemilihan() {\n initComponents();\n }", "private void submitNewUser() {\n\t\tboolean validationFlag = true;\n\t\tArrayList<HashMap<String, String>> signUpFields = new ArrayList<HashMap<String, String>>();\n\t\tint size = lnr_form.getChildCount();\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tLinearLayout v = (LinearLayout) lnr_form.getChildAt(i);\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tHashMap<String, String> field = (HashMap<String, String>) v.getTag();\n\n\t\t\tIjoomerEditText edtValue = null;\n\t\t\tSpinner spnrValue = null;\n\n\t\t\tif (field != null) {\n\t\t\t\tif (field.get(TYPE).equals(TEXT)) {\n\t\t\t\t\tedtValue = (IjoomerEditText) ((LinearLayout) v.findViewById(R.id.lnrEdit)).findViewById(R.id.txtValue);\n\t\t\t\t} else if (field.get(TYPE).equals(TEXTAREA)) {\n\t\t\t\t\tedtValue = (IjoomerEditText) ((LinearLayout) v.findViewById(R.id.lnrEditArea)).findViewById(R.id.txtValue);\n\t\t\t\t} else if (field.get(TYPE).equals(PASSWORD)) {\n\t\t\t\t\tedtValue = (IjoomerEditText) ((LinearLayout) v.findViewById(R.id.lnrPassword)).findViewById(R.id.txtValue);\n\t\t\t\t} else if (field.get(TYPE).equals(MAP)) {\n\t\t\t\t\tedtValue = (IjoomerEditText) ((LinearLayout) v.findViewById(R.id.lnrEditMap)).findViewById(R.id.txtValue);\n\t\t\t\t} else if (field.get(\"type\").equals(LABEL)) {\n\t\t\t\t\tedtValue = (IjoomerEditText) ((LinearLayout) v.findViewById(R.id.lnrLabel)).findViewById(R.id.txtValue);\n\t\t\t\t} else if (field.get(TYPE).equals(DATE)) {\n\t\t\t\t\tedtValue = (IjoomerEditText) ((LinearLayout) v.findViewById(R.id.lnrEditClickable)).findViewById(R.id.txtValue);\n\n\t\t\t\t\tif (edtValue.getText().toString().trim().length() > 0) {\n\t\t\t\t\t\tif (!IjoomerUtilities.birthdateValidator(edtValue.getText().toString().trim())) {\n\t\t\t\t\t\t\tedtValue.setFocusable(true);\n\t\t\t\t\t\t\tedtValue.setError(getString(R.string.validation_invalid_birth_date));\n\t\t\t\t\t\t\tvalidationFlag = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else if (field.get(TYPE).equals(MULTIPLESELECT)) {\n\t\t\t\t\tedtValue = (IjoomerEditText) ((LinearLayout) v.findViewById(R.id.lnrEditClickable)).findViewById(R.id.txtValue);\n\t\t\t\t}\n\t\t\t\tif (field.get(TYPE).equals(TIME)) {\n\t\t\t\t\tedtValue = (IjoomerEditText) ((LinearLayout) v.findViewById(R.id.lnrEditClickable)).findViewById(R.id.txtValue);\n\t\t\t\t}\n\n\t\t\t\tif (field.get(TYPE).equals(SELECT)) {\n\t\t\t\t\tspnrValue = (Spinner) ((LinearLayout) v.findViewById(R.id.lnrSpin)).findViewById(R.id.txtValue);\n\t\t\t\t\tfield.put(VALUE, spnrValue.getSelectedItem().toString());\n\t\t\t\t\tsignUpFields.add(field);\n\t\t\t\t} else if (field.get(TYPE).equals(PASSWORD) && field.get(NAME).equals(\"Retype Password\")) {\n\t\t\t\t\tint len = lnr_form.getChildCount();\n\t\t\t\t\tfor (int j = 0; j < len; j++) {\n\t\t\t\t\t\tLinearLayout view = (LinearLayout) lnr_form.getChildAt(i);\n\t\t\t\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\t\t\t\tHashMap<String, String> row = (HashMap<String, String>) view.getTag();\n\t\t\t\t\t\tif (row.get(TYPE).equals(PASSWORD) && field.get(NAME).equals(\"Password\")) {\n\t\t\t\t\t\t\tString password = ((IjoomerEditText) ((LinearLayout) v.findViewById(R.id.lnrPassword)).findViewById(R.id.txtValue)).getText().toString();\n\t\t\t\t\t\t\tif (password.equals(edtValue.getText().toString())) {\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tedtValue.setError(getString(R.string.validation_password_not_match));\n\t\t\t\t\t\t\t\tvalidationFlag = false;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else if (edtValue != null && edtValue.getText().toString().trim().length() <= 0 && (field.get(REQUIRED).equals(\"1\"))) {\n\t\t\t\t\tedtValue.setError(getString(R.string.validation_value_required));\n\t\t\t\t\tvalidationFlag = false;\n\t\t\t\t} else {\n\t\t\t\t\tfield.put(VALUE, edtValue.getText().toString().trim());\n\t\t\t\t\tsignUpFields.add(field);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (validationFlag) {\n\t\t\tfinal SeekBar proSeekBar = IjoomerUtilities.getLoadingDialog(getString(R.string.dialog_loading_register_newuser));\n\t\t\tnew IjoomerRegistration(this).submitNewUser(signUpFields, new WebCallListener() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onProgressUpdate(int progressCount) {\n\t\t\t\t\tproSeekBar.setProgress(progressCount);\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onCallComplete(final int responseCode, String errorMessage, ArrayList<HashMap<String, String>> data1, Object data2) {\n\t\t\t\t\tif (responseCode == 200) {\n\t\t\t\t\t\tIjoomerUtilities.getCustomOkDialog(getString(R.string.dialog_loading_profile), getString(R.string.registration_successfully), getString(R.string.ok),\n\t\t\t\t\t\t\t\tR.layout.ijoomer_ok_dialog, new CustomAlertNeutral() {\n\n\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\tpublic void NeutralMethod() {\n\n\t\t\t\t\t\t\t\t\t\tIntent intent = new Intent(\"clearStackActivity\");\n\t\t\t\t\t\t\t\t\t\tintent.setType(\"text/plain\");\n\t\t\t\t\t\t\t\t\t\tsendBroadcast(intent);\n\t\t\t\t\t\t\t\t\t\tIjoomerWebService.cookies = null;\n\n\t\t\t\t\t\t\t\t\t\tloadNew(IjoomerLoginActivity.class, IPropertyRegistrationActivity.this, true);\n\t\t\t\t\t\t\t\t\t\tfinish();\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t});\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tIjoomerUtilities.getCustomOkDialog(getString(R.string.dialog_loading_profile),\n\t\t\t\t\t\t\t\tgetString(getResources().getIdentifier(\"code\" + responseCode, \"string\", getPackageName())), getString(R.string.ok), R.layout.ijoomer_ok_dialog,\n\t\t\t\t\t\t\t\tnew CustomAlertNeutral() {\n\n\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\tpublic void NeutralMethod() {\n\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}", "public static Result postAddPaper() {\n Form<PaperFormData> formData = Form.form(PaperFormData.class).bindFromRequest();\n Paper info1 = new Paper(formData.get().title, formData.get().authors, formData.get().pages,\n formData.get().channel);\n info1.save();\n return redirect(routes.PaperController.listProject());\n }", "public void crearProgramaFormacion(String nombre, String descripcion, Date fechaI, Date fechaF, Date fechaA, String url) throws ProgramaFormacionExcepcion;", "public void createAgendamento() {\n\n if (tbagendamento.getTmdataagendamento().after(TimeControl.getDateIni())) {\n if (agendamentoLogic.createTbagendamento(tbagendamento)) {\n AbstractFacesContextUtils.redirectPage(PagesUrl.URL_AGENDAMENTO_LIST);\n AbstractFacesContextUtils.addMessageInfo(\"Agendamento cadastrado com sucesso.\");\n } else {\n AbstractFacesContextUtils.addMessageWarn(\"Falhar ao realizado cadastro do agendamento.\");\n }\n } else {\n AbstractFacesContextUtils.addMessageWarn(\"verifique se a data de agendamento esta correta.\");\n }\n }" ]
[ "0.6648423", "0.64866877", "0.64600986", "0.63095593", "0.6228693", "0.6163675", "0.61050004", "0.6064015", "0.60309124", "0.5959051", "0.59485435", "0.5920494", "0.5917129", "0.5872072", "0.5857797", "0.5846983", "0.5827796", "0.5809563", "0.5799122", "0.57632226", "0.575354", "0.5731976", "0.57318985", "0.57261086", "0.57224876", "0.5711669", "0.56887925", "0.5685564", "0.56764424", "0.5675676", "0.56731755", "0.5670567", "0.566225", "0.5659363", "0.56560606", "0.56551445", "0.56497306", "0.56419575", "0.5638734", "0.563055", "0.56218606", "0.56206954", "0.5617938", "0.5616391", "0.5596975", "0.55898994", "0.55768335", "0.55745363", "0.5572104", "0.5566914", "0.5566527", "0.55538416", "0.5552684", "0.55513525", "0.5549711", "0.5549207", "0.5535834", "0.55343986", "0.55282915", "0.5526849", "0.5524367", "0.5515101", "0.55078286", "0.5499374", "0.549678", "0.54953575", "0.54947364", "0.5488039", "0.54869246", "0.54857236", "0.5485529", "0.548371", "0.5481828", "0.5481166", "0.5479496", "0.54784995", "0.54667425", "0.5465687", "0.54636055", "0.546227", "0.5460652", "0.54604113", "0.54583937", "0.54583687", "0.5458189", "0.54523104", "0.5446612", "0.54408693", "0.5436501", "0.54343593", "0.5431687", "0.5429366", "0.54277", "0.54232305", "0.5422794", "0.54202455", "0.54191583", "0.5414727", "0.5414649", "0.5414208" ]
0.5979862
9
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("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jPanel1 = new javax.swing.JPanel(); jLabel1 = new javax.swing.JLabel(); txtIsim = new javax.swing.JTextField(); jLabel2 = new javax.swing.JLabel(); txtTc = new javax.swing.JTextField(); jLabel3 = new javax.swing.JLabel(); txtTel = new javax.swing.JTextField(); jButton1 = new javax.swing.JButton(); jButton2 = new javax.swing.JButton(); jLabel4 = new javax.swing.JLabel(); txtSifre = new javax.swing.JTextField(); jLabel5 = new javax.swing.JLabel(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); jPanel1.setBackground(new java.awt.Color(51, 0, 102)); jLabel1.setFont(new java.awt.Font("Arial Narrow", 1, 18)); // NOI18N jLabel1.setForeground(new java.awt.Color(255, 255, 255)); jLabel1.setText("İsim ve Soyisim"); jLabel2.setFont(new java.awt.Font("Arial Narrow", 1, 18)); // NOI18N jLabel2.setForeground(new java.awt.Color(255, 255, 255)); jLabel2.setText("Tc No"); jLabel3.setFont(new java.awt.Font("Arial Narrow", 1, 18)); // NOI18N jLabel3.setForeground(new java.awt.Color(255, 255, 255)); jLabel3.setText("Tel No"); jButton1.setBackground(new java.awt.Color(51, 0, 204)); jButton1.setFont(new java.awt.Font("Arial Narrow", 1, 18)); // NOI18N jButton1.setForeground(new java.awt.Color(0, 204, 51)); jButton1.setText("Ekle"); jButton1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton1ActionPerformed(evt); } }); jButton2.setBackground(new java.awt.Color(0, 51, 255)); jButton2.setFont(new java.awt.Font("Arial Narrow", 1, 18)); // NOI18N jButton2.setForeground(new java.awt.Color(255, 255, 255)); jButton2.setText("Vazgeç"); jButton2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton2ActionPerformed(evt); } }); jLabel4.setFont(new java.awt.Font("Arial Narrow", 1, 18)); // NOI18N jLabel4.setForeground(new java.awt.Color(255, 255, 255)); jLabel4.setText("Şifreniz"); jLabel5.setFont(new java.awt.Font("Arial Narrow", 1, 24)); // NOI18N jLabel5.setForeground(new java.awt.Color(51, 255, 255)); jLabel5.setText("Bilgileri Giriniz"); javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout.setHorizontalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addGap(81, 81, 81) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addGap(12, 12, 12) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 154, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 128, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 81, javax.swing.GroupLayout.PREFERRED_SIZE))) .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup() .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(26, 26, 26))) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addComponent(jLabel5) .addGap(0, 0, Short.MAX_VALUE)) .addGroup(jPanel1Layout.createSequentialGroup() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(txtIsim) .addComponent(txtTc) .addComponent(txtTel) .addComponent(txtSifre, javax.swing.GroupLayout.DEFAULT_SIZE, 266, Short.MAX_VALUE)) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup() .addGap(0, 228, Short.MAX_VALUE) .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(75, 75, 75)))) ); jPanel1Layout.setVerticalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addGap(18, 18, 18) .addComponent(jLabel5, javax.swing.GroupLayout.DEFAULT_SIZE, 41, Short.MAX_VALUE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(txtIsim, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(18, 18, 18) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(txtTc, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(18, 18, 18) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel3, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(txtTel, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 48, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(18, 18, 18) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(txtSifre, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(18, 18, 18) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(55, 55, 55)) ); getContentPane().add(jPanel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 690, 440)); pack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n initComponents();\n }", "public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }", "public FormListRemarking() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n \n }", "public FormPemilihan() {\n initComponents();\n }", "public GUIForm() { \n initComponents();\n }", "public FrameForm() {\n initComponents();\n }", "public TorneoForm() {\n initComponents();\n }", "public FormCompra() {\n initComponents();\n }", "public muveletek() {\n initComponents();\n }", "public Interfax_D() {\n initComponents();\n }", "public quanlixe_form() {\n initComponents();\n }", "public SettingsForm() {\n initComponents();\n }", "public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public Soru1() {\n initComponents();\n }", "public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }", "public soal2GUI() {\n initComponents();\n }", "public EindopdrachtGUI() {\n initComponents();\n }", "public MechanicForm() {\n initComponents();\n }", "public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }", "public BloodDonationGUI() {\n initComponents();\n }", "public quotaGUI() {\n initComponents();\n }", "public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }", "public PatientUI() {\n initComponents();\n }", "public myForm() {\n\t\t\tinitComponents();\n\t\t}", "public Oddeven() {\n initComponents();\n }", "public intrebarea() {\n initComponents();\n }", "public Magasin() {\n initComponents();\n }", "public RadioUI()\n {\n initComponents();\n }", "public NewCustomerGUI() {\n initComponents();\n }", "public ZobrazUdalost() {\n initComponents();\n }", "public FormUtama() {\n initComponents();\n }", "public p0() {\n initComponents();\n }", "public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }", "public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }", "public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }", "public form2() {\n initComponents();\n }", "public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }", "public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }", "public kunde() {\n initComponents();\n }", "public MusteriEkle() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public DESHBORDPANAL() {\n initComponents();\n }", "public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }", "public frmVenda() {\n initComponents();\n }", "public FrmMenu() {\n initComponents();\n }", "public Botonera() {\n initComponents();\n }", "public OffertoryGUI() {\n initComponents();\n setTypes();\n }", "public JFFornecedores() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }", "public EnterDetailsGUI() {\n initComponents();\n }", "public vpemesanan1() {\n initComponents();\n }", "public FormHorarioSSE() {\n initComponents();\n }", "public Kost() {\n initComponents();\n }", "public UploadForm() {\n initComponents();\n }", "public frmacceso() {\n initComponents();\n }", "public HW3() {\n initComponents();\n }", "public Managing_Staff_Main_Form() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "public sinavlar2() {\n initComponents();\n }", "public P0405() {\n initComponents();\n }", "public IssueBookForm() {\n initComponents();\n }", "public MiFrame2() {\n initComponents();\n }", "public Choose1() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }", "public GUI_StudentInfo() {\n initComponents();\n }", "public JFrmPrincipal() {\n initComponents();\n }", "public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }", "public bt526() {\n initComponents();\n }", "public Pemilihan_Dokter() {\n initComponents();\n }", "@Override\n\tprotected void initUi() {\n\t\t\n\t}", "public Ablak() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}", "public Pregunta23() {\n initComponents();\n }", "public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }", "public AvtekOkno() {\n initComponents();\n }", "public busdet() {\n initComponents();\n }", "public ViewPrescriptionForm() {\n initComponents();\n }", "public Ventaform() {\n initComponents();\n }", "public Kuis2() {\n initComponents();\n }", "public CreateAccount_GUI() {\n initComponents();\n }", "public POS1() {\n initComponents();\n }", "public Carrera() {\n initComponents();\n }", "public EqGUI() {\n initComponents();\n }", "public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }", "public nokno() {\n initComponents();\n }", "public dokter() {\n initComponents();\n }", "public ConverterGUI() {\n initComponents();\n }", "public hitungan() {\n initComponents();\n }", "public Modify() {\n initComponents();\n }", "public frmAddIncidencias() {\n initComponents();\n }", "public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }" ]
[ "0.73185146", "0.7290127", "0.7290127", "0.7290127", "0.7285798", "0.7247533", "0.7214021", "0.720785", "0.71952385", "0.71891224", "0.7184117", "0.7158779", "0.7147133", "0.70921415", "0.70792264", "0.7055538", "0.6986984", "0.6976409", "0.6955238", "0.69525516", "0.69452786", "0.6942174", "0.69350797", "0.6931285", "0.69274575", "0.69249237", "0.692484", "0.69119686", "0.69100493", "0.6892153", "0.68909484", "0.6889482", "0.6888941", "0.6888229", "0.6882907", "0.68803245", "0.6880302", "0.68765897", "0.68752575", "0.68742317", "0.6870695", "0.6858674", "0.6855753", "0.68551505", "0.6854714", "0.68536323", "0.685189", "0.6851622", "0.6851622", "0.6842649", "0.6836868", "0.6836041", "0.68273747", "0.6827191", "0.6825861", "0.68235105", "0.68233716", "0.6816636", "0.6815192", "0.6808554", "0.68082917", "0.6807161", "0.6807015", "0.6806047", "0.6802219", "0.6794859", "0.67942643", "0.6790891", "0.67889357", "0.6788571", "0.67881185", "0.6787122", "0.6781127", "0.67660034", "0.6764709", "0.67644566", "0.6756192", "0.6754256", "0.6751128", "0.6750562", "0.67440563", "0.6737466", "0.6736424", "0.6734462", "0.67319155", "0.6726047", "0.6725434", "0.6718776", "0.67163", "0.6713416", "0.6712949", "0.67079836", "0.6706704", "0.67045957", "0.66995174", "0.6698836", "0.66984534", "0.669626", "0.6693713", "0.66902465", "0.66899353" ]
0.0
-1
get ready after loading. Called only once after loading
void getReady(int posn) { if (this.name == null) { throw new ApplicationError( "Procedure parameter has an identity crisis. No name is given to it!!"); } this.myPosn = posn; if (this.recordName == null) { if (this.dataType == null) { throw new ApplicationError( "Procedure parameter should be either a struct, in which case recordName is specified, or a primitive of a dataType."); } this.dataTypeObject = ComponentManager.getDataType(this.dataType); if (this.defaultValue != null) { this.defaultValueObjet = this.dataTypeObject .parseValue(this.defaultValue); if (this.defaultValueObjet == null) { throw new ApplicationError("sql parameter " + this.name + " has an invalid default value."); } } } else { if (this.sqlObjectType == null) { throw new ApplicationError("Stored procedure parameter " + this.name + " has a record associated with it, implying that it is a struct/object. Please specify sqlObjectType as the type of this parameter in the stored procedure"); } this.sqlObjectType = this.sqlObjectType.toUpperCase(); } if (this.isArray) { if (this.sqlArrayType == null) { throw new ApplicationError("Stored procedure parameter " + this.name + " is an array, and hence sqlArrayType must be specified as the type with which this parameter is defined in the stored procedure"); } this.sqlArrayType = this.sqlArrayType.toUpperCase(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean isReady() {\n return true;\n }", "@Override\n public boolean isReady() {\n return true;\n }", "public abstract void ready();", "@Override\r\n\t\t\tpublic boolean isReady() {\n\t\t\t\treturn false;\r\n\t\t\t}", "public void setReady() {\n\t\tfadein = fadeout = false;\n\t\tfadeValue = 1;\n\t\tloadingDone();\n\t}", "@Override\n\t\tpublic boolean isReady() {\n\t\t\treturn false;\n\t\t}", "@Override\n\t\tpublic boolean isReady() {\n\t\t\treturn false;\n\t\t}", "public void setReady() {\n this.isReady = true;\n }", "public void setReady() {\n\t\tthis.state = State.READY;\n\t}", "@Override\r\n\t\t\tpublic void onReadyChange(boolean ready) {\n\r\n\t\t\t}", "public boolean ready();", "public void setReady() {\n\t\tstate = State.READY;\n\t}", "@Override\n\tpublic boolean isReady() {\n\t\treturn false;\n\t}", "public void loaded(){\n\t\tloaded=true;\n\t}", "public static void ready() {\r\n\t\tinicialitzarGUI();\r\n\t\tviewtable();\r\n\t}", "public void onLoadComplete() {\n\t\t\r\n\t}", "@Override\n\tpublic boolean ready() {\n\t\treturn this.ok;\n\t}", "@Override\n public boolean isReady() {\n return isFinished();\n }", "void isReady();", "void isReady();", "public void onLoad() {\n\t}", "public boolean isReady() {\n return ready;\n }", "public boolean isReady() {\n return mIsReady;\n }", "public boolean isReady()\r\n {\r\n return _isReady;\r\n }", "@Override\r\n\tpublic boolean isReady() {\n\t\treturn !finish;\r\n\t}", "public void setLoaded();", "@Override\n public void onReady(ReadyEvent event) {\n\n }", "public boolean isReady() {\n\t\treturn state == State.READY;\n\t}", "public void setReady(boolean ready) {\r\n\t\tthis.ready = ready;\r\n\t}", "public void onLoad()\n\t{\n\t\tJLog.info(\" --- INIT --- \");\n\t\t\n\t}", "public boolean isLoaded(){return true;}", "@Override\n public boolean isReady() {\n return !isDone;\n }", "public boolean isReady() {\n return isReady;\n }", "@Override\n\tpublic void onLoad() {\n\t\t\n\t}", "boolean isReady();", "boolean isReady();", "boolean isReady();", "public boolean isReady();", "public boolean isReady();", "public boolean getReady() {\r\n\t\treturn ready;\r\n\t}", "public void thePageIsLoaded() {\r\n this.page.isLoaded();\r\n }", "private void ready(){\n setButtons(false);\n setMsgText(\"You are READY.\");\n }", "@Override\n\tprotected void load() {\n\t\tisPageLoaded = true;\n\t}", "public boolean initialized() {\n return true;\r\n }", "public void markReady() {\n\t\tsetState(State.READY);\n\t\tthis.statusCode = StatusCode.Success.code;\n\t}", "boolean isLoaded();", "@Override\n public void onReady() {\n assertTrue(stream.isReady());\n onReadyCalled = true;\n }", "public void setReady(final boolean isReady)\r\n {\r\n _isReady = isReady;\r\n }", "public void onAfterLoad()\n\t{\n\t\tJLog.info(\" --- POSTINIT --- \");\n\n\t}", "@Override\n public void onLoad() {\n super.onLoad();\n instance = this;\n running = true;\n }", "public boolean ready() {\n diff = eventTime - System.currentTimeMillis(); //Step 4,5\n return System.currentTimeMillis() >= eventTime;\n }", "@Override\n\tpublic void onLoad() {\n\t\tdescription = this.getDescription();\n\t\tpluginConfiguration = this.getConfig();\n\t\tLogHelper.initLogger(\"BukkitWebby\", \"Minecraft\");\n\t}", "protected final void setReady(boolean ready) {\n if (this.ready != ready) {\n this.ready = ready;\n notifyReadyStateChanged();\n }\n }", "public void onLoadComplete(){\n\t\tif (listener != null){\n\t\t\thandler.post(new Runnable() {\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tlistener.onLoadComplete();\t\t\t\t\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}", "protected void initialize() { \tthePrintSystem.printWithTimestamp(getClass().getName()); \n\tthis.isDone = false;\n\t\n\ttheLoader.setSetpoint(1.5);\n\t\n }", "@Override\n\tpublic void afterInit() {\n\t\t\n\t}", "@Override\n\tpublic void afterInit() {\n\t\t\n\t}", "public boolean getIsReady() {\n return localIsReady;\n }", "private void Initialized_Data() {\n\t\t\r\n\t}", "void clientReady();", "@Override public boolean ready() throws IOException {\r\n\t\tif (closed) throw new IOException(\"Reader closed\");\r\n\t\tReader in = getCurrentReader();\r\n\t\tif (in == null) return false;\r\n\t\treturn in.ready();\r\n\t}", "@Override\n\tpublic void connectionReady() {\n\t}", "public void showReady();", "private void waitUntilReady() {\n\t\t\twhile (deque.isEmpty() && loadThread.isAlive()) {\n//\t\t\t\ttry {\n//\t\t\t\t\tThread.sleep(100);\n//\t\t\t\t} catch (InterruptedException e) {\n//\t\t\t\t\tExceptionUtils.throwAsRuntimeException(e);\n//\t\t\t\t}\n\t\t\t}\n\t\t}", "public void onLoad() {\n // store jar path for plugin loader\n thisJar = this.getFile();\n }", "protected static boolean isInitialized(){\n return initialized;\n }", "public void onInitializeComplete() {\n }", "public abstract void loaded();", "@Override public void postInit()\n\t\t{\n\t\t}", "void imReady();", "@Override\n\tpublic void postInit() {\n\t\t\n\t}", "public boolean isLoaded();", "public void setReadyToRun(boolean ready);", "public void setReadyTime() {\r\n\t\t\tthis.readyTime = 0;\r\n\t\t}", "protected boolean isFullyInitialized() {\n return html == null;\n }", "protected void setLoadedForThisRequest() {\r\n\t\tContextUtils.setRequestAttribute(getRequestLoadedMarker(), Boolean.TRUE);\r\n\t}", "boolean initialized();", "public void notifyLoaded();", "public void load() {\n handleLoad(false, false);\n }", "@Override\n public boolean isInitialized(){\n return isInitialized;\n }", "protected final boolean isReady() {\n // check if visible (invisible components are ok to be not ready)\n if (!this.isVisible()) {\n return true;\n }\n if (!this.isDisplayable()) {\n return true;\n }\n // check if this is not ready\n if (!ready) {\n return false;\n }\n // check if any child is not ready\n for (BlankDialogModule module : childModules) {\n if (!module.isReady()) {\n return false;\n }\n }\n // all ready!\n return true;\n }", "private void initialize() {\n\t\t\n\t}", "private boolean isNextReady()\n {\n return __m_NextReady;\n }", "public void IsReady() {\n\t\tSystem.out.println(\"Table now ready for customers.\");\n\t\ttable.setState(table.GetReady());\n\t}", "public void initialize() {\n //TODO: Initialization steps\n\n initialized = true;\n }", "public void postInit() {\n }", "public void initialize() {\n this.loadDownloadList();\n }", "public boolean ready ()\n {\n org.omg.CORBA.portable.InputStream $in = null;\n try {\n org.omg.CORBA.portable.OutputStream $out = _request (\"ready\", true);\n $in = _invoke ($out);\n boolean $result = $in.read_boolean ();\n return $result;\n } catch (org.omg.CORBA.portable.ApplicationException $ex) {\n $in = $ex.getInputStream ();\n String _id = $ex.getId ();\n throw new org.omg.CORBA.MARSHAL (_id);\n } catch (org.omg.CORBA.portable.RemarshalException $rm) {\n return ready ( );\n } finally {\n _releaseReply ($in);\n }\n }", "private void initialize() {\n\t}", "public boolean ready() {\n pos = new Pos(\"200001\", \"0123456789\", \"75621477\");\n //todo card = read CardData;\n saveStatus = \"1\";\n NetworkServer.getInstance().connect();\n return true;\n }", "public boolean isLoaded() {\n\treturn loaded;\n }", "public boolean isLoaded() {\n\t\treturn started;\n\t}", "@Override\r\n\tprotected void initLoad() {\n\r\n\t}", "private boolean checkReady() {\n if (mMap == null) {\n Toast.makeText(this, \"Map not ready!\", Toast.LENGTH_SHORT).show();\n return false;\n }\n return true;\n }", "public boolean init() {\n\t\treturn true;\n\t}", "public void setReady() {\n\t\tlabelReady.setEnabled(true);\n\t\tlabelBusy.setEnabled(false);\n\t\tsetStatusBar(DO_MOVE_MSG);\n\t}", "public Boolean isReady()\n {\n return (sensorModules != null && !sensorModules.isEmpty());\n }", "void postInit();", "void postInit();", "private void initialize() {\n }", "public void initialize() {\r\n }" ]
[ "0.77806205", "0.7762654", "0.76602983", "0.7627439", "0.7526897", "0.7492966", "0.7492966", "0.7439696", "0.7426795", "0.7421551", "0.74112445", "0.7396286", "0.73512995", "0.7296535", "0.72726387", "0.7156201", "0.7127536", "0.71269894", "0.7116573", "0.7116573", "0.70935947", "0.69519544", "0.69072056", "0.68946", "0.6886932", "0.68825233", "0.6881029", "0.6863978", "0.6826088", "0.6821679", "0.6817262", "0.67577815", "0.67468077", "0.67429495", "0.6686841", "0.6686841", "0.6686841", "0.66386336", "0.66386336", "0.6623471", "0.66166157", "0.66083944", "0.6578307", "0.6544153", "0.65241295", "0.65197617", "0.65178746", "0.6511047", "0.6430221", "0.64127165", "0.6379548", "0.6339441", "0.63207513", "0.63202727", "0.63163596", "0.6313329", "0.6313329", "0.63121253", "0.6305675", "0.62995285", "0.62857157", "0.6282229", "0.62810475", "0.62623286", "0.62607837", "0.6244753", "0.62363946", "0.6232634", "0.6228278", "0.62175936", "0.6204449", "0.62022775", "0.6186316", "0.6185627", "0.6180313", "0.6176066", "0.6162314", "0.61617756", "0.61607635", "0.6154609", "0.61489576", "0.6147103", "0.61460346", "0.614547", "0.6138835", "0.6137853", "0.6133415", "0.61109143", "0.61108685", "0.61004585", "0.60816586", "0.6070984", "0.6056962", "0.6053749", "0.6043587", "0.60338134", "0.60291725", "0.6028419", "0.6028419", "0.6023056", "0.6022689" ]
0.0
-1
called before executing the statement. If this has input, we have to set its value. If it is for output, we have to register it
public boolean setParameter(CallableStatement stmt, FieldsInterface inputFields, ServiceContext ctx) throws SQLException { /* * register this param if it is out or in-out */ if (this.inOutType != InOutType.INPUT) { this.registerForOutput(stmt); } if (this.inOutType == InOutType.OUTPUT) { /* * not an input. we are done. */ return true; } if (this.isArray == false && this.recordName == null) { /* * it is a simple primitive value */ Value value = inputFields.getValue(this.name); if (value == null || Value.isNull(value)) { value = this.defaultValueObjet; } if (value == null) { if (this.isRequired) { ctx.addMessage(org.simplity.kernel.Messages.VALUE_REQUIRED, this.name); return false; } stmt.setNull(this.myPosn, this.getValueType().getSqlType()); return true; } value.setToStatement(stmt, this.myPosn); return true; } /* * non-primitive value is generally found in ctx as a data sheet */ DataSheet ds = ctx.getDataSheet(this.name); Connection con = stmt.getConnection(); if (this.recordName == null) { /* * array of primitives */ Value[] vals = null; if (ds == null) { /* * we do not give-up that easily. Is this a field with comma * separated values? */ String txt = ctx.getTextValue(this.name); if (txt != null) { vals = Value.parse(txt.split(","), this.getValueType()); } } else if (ds.length() > 0) { vals = ds.getColumnValues(this.name); if (vals == null && ds.width() == 1) { /* * Told you, we do not give-up that easily. This is a ds * with only one column. Why bother about matching the * column name */ vals = ds.getColumnValues(ds.getColumnNames()[0]); } } if (vals == null) { this.setNullParam(stmt, ctx); return true; } Array data = DbDriver.createArray(con, vals, this.sqlArrayType); stmt.setArray(this.myPosn, data); return true; } /* * this involves a data structure */ Record record = ComponentManager.getRecord(this.recordName); if (record.isComplexStruct()) { return this.setComplexStruct(record, stmt, ctx); } /* * Simple data structure */ if (this.isArray == false) { Value[] values = null; if (ds == null) { values = record.getData(ctx); } else if (ds.length() > 0) { values = ds.getRow(0); } if (values == null) { return this.setNullParam(stmt, ctx); } Struct struct = DbDriver.createStruct(con, values, this.sqlObjectType); stmt.setObject(this.myPosn, struct, Types.STRUCT); return true; } /* * finally, we have reached an array of struct */ if (ds == null || ds.length() == 0) { return this.setNullParam(stmt, ctx); } int nbrRows = ds.length(); Struct[] structs = new Struct[nbrRows]; for (int i = 0; i < nbrRows; i++) { structs[i] = DbDriver.createStruct(con, ds.getRow(i), this.sqlObjectType); } Array array = DbDriver.createStructArray(con, structs, this.sqlArrayType); stmt.setArray(this.myPosn, array); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void setInput(Input arg0) {\n\t\t\n\t}", "public void setInput(Input param) {\r\n localInputTracker = param != null;\r\n\r\n this.localInput = param;\r\n }", "protected abstract void registerInput();", "@Override\n\tpublic void setInput(Input arg0) {\n\n\t}", "public void setInput(Input input) {\n this.input = input;\n }", "@Override\n\tpublic void input() {\n\t\t\n\t}", "public void beforeInput() {\n }", "public void beforeInput() {\n }", "@Override\n public void enterReg_assigment(FSMParser.Reg_assigmentContext ctx) {\n if (ctx.getParent() instanceof FSMParser.Register_assignContext) {\n FSMParser.Register_assignContext regCont = (FSMParser.Register_assignContext) ctx.getParent();\n Register reg = (Register) findComp(regCont.register().NAME().getText());\n //if register, assign register\n if (ctx.expression().register() != null) {\n this.regInputs.get(reg).add(findComp(ctx.expression().register().NAME().getText()));\n } else if (ctx.expression().integer() != null) {\n //if int assign an int\n this.regInputs.get(reg).add(new FixedNumber(Integer.parseInt(\n ctx.expression().integer().getText()), reg.getBitSize()));\n\n// if assigned var, assign var\n } else if (ctx.expression().var() != null) {\n this.regInputs.get(reg).add(findComp(ctx.expression().var().NAME().getText()));\n\n }\n\n }\n }", "public void setInput(InputHandler input) {\r\n\t\tthis.input = input;\r\n\t}", "@Override\n\tprotected void processInput() {\n\t}", "public abstract void setInput(boolean value);", "public void processInput() {\n\n\t}", "public void setInput(String input) { this.input = input; }", "void setInput(com.indosat.eai.catalist.standardInputOutput.DummyInputType input);", "protected abstract void useOutput(float output, float setpoint);", "public void setInput(String input);", "public void setInput(boolean input) {\n this.input = input;\n }", "@Override\n\tvoid input() {\n\t}", "public void setInputValue(int inputValue) {\n\t\tif (inputValue < 0) {\n\t\t\tthis.setError(1);\n\t\t\tthis.setProcessable(false);\n\t\t} else {\n\t\t\tthis.inputValue = inputValue;\n\n\t\t}\n\n\t}", "protected void setSpecificInputOutput() {\n\t\tsetInputOutput(new GeoElement[] { (GeoElement) point, inputOrtho },\n\t\t\t\tnew GeoElement[] { line });\n\t}", "protected void forwardToInput(T value) {\n inputModel.setValue(value);\n }", "public void interpret()\n {\n IdSymbol id = (IdSymbol) symtab.get(name);\n byte[] b = new byte[64];\n int i;\n\n if (id.type == TPLTypes.boolType)\n {\n System.out.print(\"Enter a value for \\'\" + name + \"\\' (boolean) : \");\n System.out.flush();\n try\n {\n i = System.in.read(b);\n id.boolvalue = (new Boolean((new String(b, 0, i - 1)).trim())).booleanValue();\n } catch(Exception e) { System.exit(1); }\n }\n else\n {\n System.out.print(\"Enter a value for \\'\" + name + \"\\' (int) : \");\n System.out.flush();\n try\n {\n i = System.in.read(b);\n id.intvalue = (new Integer((new String(b, 0, i - 1)).trim())).intValue();\n } catch(Exception e) {\n System.out.println(\"Exceptio : \" + e.getClass().getName());\n System.exit(1);\n }\n }\n }", "synchronized void giveInput(int input) {\n this.input = input;\n inputGiven = true;\n notifyAll();\n }", "public void setInput(String input){\n this.input = input;\n }", "protected Object getInitialInput() {\n return this;\n }", "@Override\n\tpublic void inputStarted() {\n\n\t}", "public void set(){\n if (getRhs().isResolved() && getRhs().isSimpleValue()){\n getParameter().setExpression((ArchSimpleExpressionSymbol) getRhs());\n }\n else {\n throw new IllegalStateException(\"The value of the parameter is set to a sequence or the expression is not resolved. This should never happen.\");\n }\n }", "public abstract void useOutput(double output);", "public abstract void useOutput(double output);", "public Object enterTransform(Object value) {\n return value;\n }", "@Override\n\tpublic void inputStarted() {\n\t\t\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void setGivenNum(double input) {\n givenNum = input;\n }", "public abstract void inputChange( int value );", "protected abstract void getInput();", "public abstract void input();", "@Override\n public void start() {\n checkValue();\n super.start();\n }", "public void setInput1(int input1) {\n this.input1 = input1;\n }", "@Override\n\tprotected Output<Param<?>> executeInternal(Input input) {\n\t\tExecutionContext eCtx = handleNewDomainRoot(input.getContext());\n\t\n\t\tParam<Object> actionParam = findParamByCommandOrThrowEx(eCtx);\n\t\t\n\t\tfinal Param<?> outputParam;\n\t\tif(containsFunctionHandler(input)) {\n\t\t\toutputParam = executeFunctionHanlder(input, FunctionHandler.class);\n\t\t} else { \n\t\t\tsetStateNew(eCtx, input.getContext().getCommandMessage(), actionParam);\n\t\t\toutputParam = actionParam;\n\t\t}\n\t\treturn Output.instantiate(input, eCtx, outputParam);\n\t}", "public void resolve (INPUT input)\n {\n this.resultProduced = false;\n execute(input);\n }", "private void assignment() {\n\n\t\t\t}", "ListeningFuture<Boolean> setInput(String input);", "public void setInput(SVIResource in) throws Exception;", "public void apply() { writable.setValue(value); }", "public void input(){\n\t\tboolean[] inputKeyArray = inputHandler.processKeys();\n\t\tint[] inputMouseArray = inputHandler.processMouse();\n\t\tcurrentLevel.userInput(inputKeyArray, inputMouseArray);\n\t}", "@Override\n\tpublic void initValue() {\n\t\t\n\t}", "public void setElseValue(Object pValue);", "public abstract boolean setValue(Value value, boolean asAssignment);", "public void setInput(boolean inputA, boolean inputB) {\n mAndGate.setInput(inputA, inputB);\n mXorGate.setInput(inputA, inputB);\n }", "public void beginOutput() {\n this.currentState = states.OUTPUT;\n this.buildOutStack();\n this.setOutputMode(0);\n }", "public void setInput(String input) {\n\t\t\tthis.input = input;\n\t\t}", "public ValueEvidenceStatement(ArgSpec leftSide, ArgSpec output) {\n this.leftSide = leftSide;\n this.output = output;\n }", "@Override\n\t\t\t\tpublic void execute(Object data) {\n\n\t\t\t\t\tif (toInputProcessor == null) {\n\t\t\t\t\t\tGdx.input.setInputProcessor(preProcessor);\n\t\t\t\t\t\tSystem.out.println(\"quay tro ve man hinh chinh\");\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\tSystem.out.println(\"quay tro ve man hinh khac\");\n\t\t\t\t\t}\n\t\t\t\t}", "private void updateOutputValues()\n {\n // TODO: You may place code here to update outputY and outputZ\n \t// Drawing code belongs in drawOnTheCanvas\n \t\n // example:\n outputY = inputA && inputC;\n }", "public void beginInput() {\n this.currentState = states.INPUT;\n this.currentIndex = 1;\n this.currentUnit = getUnit(this.currentIndex);\n this.currentChName = this.currentUnit.chName;\n }", "public void input_entered() {\n\t\t_last_column = 0;\n\t\t_last_line = 0;\n\t\t_last_printed = '\\n';\n\t}", "@Override\n\tpublic void visit(NextValExpression arg0) {\n\t\t\n\t}", "public void process(Object value) {\n\t\t//empty\n\t}", "public void setValue(Object value) { this.value = value; }", "public abstract Object getInput ();", "public void setProcessed (boolean Processed)\n{\nset_Value (\"Processed\", new Boolean(Processed));\n}", "@Override // kotlin.jvm.functions.Function0\n public Unit invoke() {\n RdsInputItemPresenterImpl.access$setupNewValue(this.a, this.b, \"\", this.c);\n return Unit.INSTANCE;\n }", "public void takeUserInput() {\n\t\t\r\n\t}", "@Override\n\tprotected void usePIDOutput(double output) {\n\t\tarm.set(output);\n\t}", "public Value(String inputValue) {\n this.inputValue = inputValue;\n }", "public void userInput() {\r\n System.out.println(\"You want to convert from:\");\r\n this.fromUnit = in.nextLine();\r\n System.out.print(\"to: \");\r\n this.toUnit = in.nextLine();\r\n System.out.print(\"The value is \");\r\n this.value = in.nextDouble();\r\n }", "public void mutate() {\n \t//POEY comment: for initialise() -> jasmine.gp.nodes.ercs\n //such as CustomRangeIntegerERC.java, PercentageERC.java, BoolERC.java \n \tsetValue(initialise());\n }", "void setRequest(com.indosat.eai.catalist.standardInputOutput.RequestType request);", "public void setInput(String M)\t\n\t{\t//start of setInput method\n\t\tinputMsg = M;\n\t}", "@Override\n\tpublic void setValue(Object value) {\n\t\t\n\t}", "private void takeInUserInput(){\n\t\t// only take in input when it is in the ANSWERING phase\n\t\tif(spellList.status == QuizState.Answering){\n\t\t\tspellList.setAnswer(getAndClrInput());\n\t\t\tspellList.status = QuizState.Answered;\n\t\t\tansChecker=spellList.getAnswerChecker();\n\t\t\tansChecker.execute();\n\t\t}\t\n\n\t}", "com.indosat.eai.catalist.standardInputOutput.DummyInputType addNewInput();", "@Override\n\tprotected void preProcessInputData(JsonNode input) {\n\t\t\n\t}", "public void setResult(int param){\n \n // setting primitive attribute tracker to true\n \n if (param==java.lang.Integer.MIN_VALUE) {\n localResultTracker = false;\n \n } else {\n localResultTracker = true;\n }\n \n this.localResult=param;\n \n\n }", "com.indosat.eai.catalist.standardInputOutput.DummyInputType getInput();", "public void calcOutput()\n\t{\n\t}", "@Override\n\tpublic void visit(SysoutStatement sysoutStatement) {\n\t\tsysoutStatement.arg().accept(this);\n\t\tif(!isOk)\n\t\t\treturn;\n\t\tcheckType(\"int\");\n\t}", "@Override\n\tpublic void beforeVariableChanged(ProcessVariableChangedEvent arg0) {\n\n\t}", "@Override\n\tpublic void setChoice(Input in, Output out) throws IOException {\n\t\t\n\t}", "public void setCurrentInput(String currentInput){\n\t\tthis.currentInput = currentInput;\n\t}", "public void operator() {\n while (keepOperational) {\n Scanner scanner = new Scanner(System.in);\n\n System.out.print(\"\\nInput:\\n\");\n String input = scanner.nextLine();\n\n /** delegate the input - all for enabling unit testing */\n operate(input);\n }\n }", "@Override\n public boolean visit(JsPropertyInitializer x,\n JsContext<JsPropertyInitializer> ctx) {\n x.setValueExpr(accept(x.getValueExpr()));\n return false;\n }", "public void activate() {\n\t\tif (value == null) {\n\t\t\tvalue = Boolean.TRUE;\n\t\t} else if (value == Boolean.TRUE) {\n\t\t\tvalue = Boolean.FALSE;\n\t\t} else if (value == Boolean.FALSE) {\n\t\t\tvalue = null;\n\t\t}\n\t\tfireApplyEditorValue();\n\t}", "protected abstract void execute(INPUT input);", "@Override\n protected void execute() {\n armPID_SetZero.enable();\n }", "@Override\n public void enterInputs(FSMParser.InputsContext ctx) {\n for (int i = 0; i < ctx.getChildCount(); i++) {\n if (ctx.getChild(i) instanceof FSMParser.RegisterContext) {\n\n // if defining a new register\n FSMParser.RegisterContext regcont = (FSMParser.RegisterContext) ctx.getChild(i);\n Register reg = new Register(regcont.NAME().getText(), Integer.parseInt(regcont.getChild(1).getText()),\n true, false); //getChild(i-1) because size is always defined before the register\n\n this.comps.add(reg);\n this.regInputs.put(reg, new ArrayList<>());\n\n //if defining a new Variable\n } else if (ctx.getChild(i) instanceof FSMParser.VarContext) {\n FSMParser.VarContext varCont = (FSMParser.VarContext) ctx.getChild(i);\n\n // if this varaible is a clock (labled with C_)\n if (varCont.Clk() != null) {\n Var var = new Var(varCont.NAME().getText(), Integer.parseInt(varCont.getChild(1).getText()), true,\n false, false);\n VerilogComp.setClkName(var.getName());\n\n\n // if this varible is a reset(labled with R_)\n } else if (varCont.RESET() != null) {\n Var var = new Var(varCont.NAME().getText(), Integer.parseInt(varCont.getChild(1).getText()), true,\n false, false);\n VerilogComp.setResetName(var.getName());\n\n }\n // else just a standard variable\n else {\n Var var = new Var(varCont.NAME().getText(), Integer.parseInt(varCont.getChild(1).getText()), true,\n false, false);\n this.comps.add(var);\n\n }\n }\n\n }\n\n\n }", "public void setInput(Rgroup.SucculentParams succParam) {\n\t\tthis.growth[Globals.Slope] = succParam.gslope;\n\t\tthis.growth[Globals.Intcpt] = succParam.gint;\n\t\tthis.mort[Globals.Slope] = succParam.mslope;\n\t\tthis.mort[Globals.Intcpt] = succParam.mint;\n\t}", "protected abstract void setValue(V value);", "public void setRealCell(String inputVal){\n\t\tuserInput = inputVal;\n\t}", "public T caseInOutput(InOutput object) {\n\t\treturn null;\n\t}", "public static void getInput() {\n\t\tSystem.out.print(\"Expression y=? \");\n\t\tScanner s = new Scanner(System.in);\n\t\texpression = s.nextLine();\n\t\texpression.toLowerCase();\n\t\tSystem.out.print(\"x? \");\n\t\tx = s.nextDouble();\n\t}", "public void setInputType(int inputType) {\n/* 1759 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void setOp ( boolean value ) {\n\t\texecute ( handle -> handle.setOp ( value ) );\n\t}", "@Override\n\tpublic void handleInput() {\n\t\t\n\t}", "public void setInputNum(Integer inputNum) {\r\n this.inputNum = inputNum;\r\n }", "@Override\n\tsynchronized void execute() {\n\t\t_dataOUTPipe.dataIN(op1.getText());\n\t\t_dataOUTPipe.dataIN(op2.getText());\n\t\t_dataOUTPipe.dataIN(op.getText());\n\t}", "@Override\n\tpublic void setup(NluInput nluInput) {\n\t\tthis.user = nluInput.user;\n\t\tthis.language = nluInput.language;\n\t\tthis.nlu_input = nluInput;\n\t}", "@Override\n\tpublic void processingInstruction() {\n\t\t\n\t}", "public void registerOutput( String pinName ) {\n\t//Bug: we do nothing about this here, it'll get more fun later\n }" ]
[ "0.62384653", "0.616985", "0.6130459", "0.61251676", "0.61017895", "0.6031991", "0.5975937", "0.5975937", "0.59415185", "0.5937769", "0.59000885", "0.58226836", "0.5815785", "0.58073705", "0.5787238", "0.57428104", "0.5726106", "0.56992686", "0.5656205", "0.56377345", "0.5622226", "0.55955476", "0.5552583", "0.55098957", "0.54881626", "0.54737383", "0.5457914", "0.5443452", "0.54376686", "0.54376686", "0.5430535", "0.54096395", "0.53714085", "0.5365106", "0.53629607", "0.5361911", "0.5348604", "0.5341664", "0.5337076", "0.5326599", "0.5309615", "0.5297874", "0.52833676", "0.5281864", "0.52532566", "0.5246438", "0.5239735", "0.5224634", "0.52202857", "0.52112246", "0.5210568", "0.52094275", "0.52044976", "0.5185566", "0.5184365", "0.51772577", "0.5160667", "0.5133119", "0.5124708", "0.5124028", "0.51233727", "0.51219034", "0.5115665", "0.5113899", "0.51049536", "0.5094883", "0.5093682", "0.5085346", "0.50815886", "0.50550497", "0.50392056", "0.5037273", "0.50360113", "0.5035327", "0.5031269", "0.5019085", "0.5018996", "0.49988398", "0.49975863", "0.49799326", "0.49779102", "0.49759108", "0.49691224", "0.49679843", "0.49588752", "0.49489623", "0.49454573", "0.49446407", "0.49444646", "0.49436924", "0.49343356", "0.49336976", "0.49296415", "0.4929014", "0.49213493", "0.49164706", "0.4907748", "0.49017656", "0.49004835", "0.48979494" ]
0.50600135
69
register this parameter for output
private void registerForOutput(CallableStatement stmt) throws SQLException { /* * array */ if (this.isArray) { stmt.registerOutParameter(this.myPosn, Types.ARRAY, this.sqlArrayType); return; } /* * struct */ if (this.recordName != null) { stmt.registerOutParameter(this.myPosn, Types.STRUCT, this.sqlObjectType); return; } /* * primitive value */ int scale = this.dataTypeObject.getScale(); if (scale == 0) { stmt.registerOutParameter(this.myPosn, this.getValueType().getSqlType()); return; } stmt.registerOutParameter(this.myPosn, this.getValueType().getSqlType(), scale); return; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void registerOutput( String pinName ) {\n\t//Bug: we do nothing about this here, it'll get more fun later\n }", "public void encode(Map outputParam, String name) {\n\n\t\tHashMap<String, String> globalStatus = new HashMap<String, String>();\n\t\tglobalStatus.put(PNAME_RETURNSTATUS_CODE, this.getStatusCode().getValue());\n\t\tglobalStatus.put(PNAME_RETURNSTATUS_EXPLANATIONS, this.getExplanation());\n\t\toutputParam.put(name, globalStatus);\n\t}", "void registerOutputConnector(String name, OutputConnector out);", "@Override\n\tvoid output() {\n\t\t\n\t}", "@Override()\n public void write(final ParameterCache_mxJPO _paramCache,\n final Appendable _out)\n throws IOException\n {\n super.write(_paramCache, _out);\n\n // methods\n for (final AdminProperty prop : this.getProperties().getSettings()) {\n if (\"%Member\".equals(prop.getName())) {\n _out.append(\" \\\\\\n program \\\"\").append(StringUtil_mxJPO.convertTcl(prop.getRefAdminName())).append(\"\\\"\");\n }\n }\n }", "RegisterParam getRegister();", "Output(Res r){\n this.r = r;\n }", "public interface IOutputParameter extends IIOParameter, Serializable {\n\n /**\n *\n * @return function to convert a byte array to the value; used to\n * convert from stderr\n */\n Optional<IConvertByteArrayToIData> getFunctionToHandleStderr();\n\n /**\n *\n * @return function to convert a integer exit value to a idata\n * value; used for the handling of the exit value of the overall\n * program\n */\n Optional<IConvertExitValueToIData> getFunctionToHandleExitValue();\n\n /**\n *\n * @return function to convert a byte array to the value;\n * used to convert from stdout\n */\n Optional<IConvertByteArrayToIData> getFunctionToHandleStdout();\n\n /**\n *\n * @return function to read the iData from files\n */\n Optional<IReadIDataFromFiles> getFunctionToReadIDataFromFiles();\n}", "public void out(String reg) {\r\n// System.out.println(Arrays.toString(registerName.toArray()));\r\n// System.out.println(Arrays.toString(registerValues.toArray()));\r\n registerRegister.add(reg);\r\n int pos = registerRegister.indexOf(reg);\r\n int element = Integer.parseInt(registerValues.get(pos));\r\n System.out.printf(\"The register values of %s is %d\", reg, element);\r\n System.out.println();\r\n }", "@Override\n public void emitOutput() {\n }", "public void writeParameterToX(String parameterName);", "public void writeParameterToY(String parameterName);", "public TOutputParameterElements getTOutputParameterAccess() {\n\t\treturn pTOutputParameter;\n\t}", "Report addParameter(String parameter, Object value);", "private static void outParameter(final Parameter parameter, final String name) {\n if (StringUtils.isNotBlank(name)) {\n parameter.setName(name);\n }\n }", "Output1(Res1 r){\n this.r = r;\n }", "@Override\r\n\tpublic void register() {\n\t\t\r\n\t}", "public void writeParameterToH(String parameterName);", "public void writeParameterToP(String parameterName);", "public void addParameter(ParmInfoEntry p){\n\t}", "public void setOutputFlag(String flag);", "@Override\r\n\tpublic void declareOutputFields(OutputFieldsDeclarer arg0) {\n\r\n\t}", "@Override\n\tpublic void declareOutputFields(OutputFieldsDeclarer arg0) {\n\t\t\n\t}", "@Override\n\tpublic void declareOutputFields(OutputFieldsDeclarer arg0) {\n\t\t\n\t}", "public final synchronized void registerOutParameter(int parameterIndex, int sqlType, int scale)\n throws SQLException\n {\n getCallableStatement().registerOutParameter(parameterIndex, sqlType, scale);\n }", "@Override\r\n\tpublic void setParameter2Screen(String value) {\n\t\t\r\n\t}", "public void registerOutParameter(String parameterName, int sqlType) throws SQLException\r\n\t{\r\n\t\t((CallableStatement)st).registerOutParameter(parameterName, sqlType);\r\n\t}", "@Override\n\tprotected void customizeRegistration(Dynamic registration) {\n\tsuper.customizeRegistration(registration);\n\t}", "public void setOutput(String output) { this.output = output; }", "@Override\n public void register() {\n }", "private void addParameter(int param) {\r\n command_parameters.addInt(param);\r\n }", "public void pidWrite(double output) {\n set(output);\n }", "private Output() {}", "public LinkedHashMap<String, FunctionParameter> outputParameters(){\n return new LinkedHashMap<String, FunctionParameter>();\n }", "@Override\n\tpublic void GetOut() {\n\t\t\n\t}", "public void setOutput(int output) {\n Output = output;\n }", "@Override\n public String getOutputParameter(String task) {\n try {\n Set<IOutputParameter> outputParameters = dataAccessTosca.getOutputParametersByTask(task);\n JSONArray response = new JSONArray();\n if (outputParameters != null) {\n for (IOutputParameter output : outputParameters) {\n JSONObject i = new JSONObject();\n i.put(\"id\",output.getId());\n i.put(\"label\", output.getLabel());\n i.put(\"value\", output.getValue());\n i.put(\"tiid\", task);\n response.add(i);\n }\n return response.toString();\n }\n } catch (DatabaseException e) {\n e.printStackTrace();\n }\n return null;\n }", "public void setOutput(Output output) {\n\t\tthis.output = output;\n\t}", "public void registerRenderInformation() {\n\t}", "public abstract void useOutput(double output);", "public abstract void useOutput(double output);", "@Override\n public void registerIParameterViewListener(IParameterViewListener listener) {\n _listeners.add(listener);\n }", "public void setOutputParam(String key, String val) throws EInvalidData {\n\t\tif (isDeleted()) {\n\t\t\tthrow new EInvalidData(\"Cannot modify a deleted subscription\");\n\t\t}\n\t\tsuper.setOutputParam(key, val);\n\t}", "@Override\n protected void register(ExtensionContext ctxt) {\n ctxt.appendModifier(prim);\n ctxt.appendModifier(sec);\n }", "public abstract Object getOutput ();", "public void setOutput(String O)\t\n\t{\t//start of setOuput method\n\t\toutputMsg = O;\n\t}", "@Override\n protected String getName() {return _parms.name;}", "public String getOutValue(){\n return null;\n }", "protected void setSpecificInputOutput() {\n\t\tsetInputOutput(new GeoElement[] { (GeoElement) point, inputOrtho },\n\t\t\t\tnew GeoElement[] { line });\n\t}", "public void register(){\n }", "protected abstract void useOutput(float output, float setpoint);", "public interface Outputable {\n void onOutput(String output, int id);\n}", "public void writeParameterToR(String parameterName);", "void setParameter(String name, String value);", "void setOutputFormat(String outputFormat);", "protected void __register()\n {\n }", "protected void __register()\n {\n }", "protected String getOutputFileParameter() {\n if (outputFile == null) {\n return null;\n }\n return \"/output=\" + outputFile.toString();\n }", "protected abstract void registerInput();", "public void setParameterExampleValue(CodegenParameter codegenParameter, Parameter parameter) {\n if (parameter.getExample() != null) {\n codegenParameter.example = parameter.getExample().toString();\n } else if (parameter.getExamples() != null && !parameter.getExamples().isEmpty()) {\n Example example = parameter.getExamples().values().iterator().next();\n if (example.getValue() != null) {\n codegenParameter.example = example.getValue().toString();\n }\n } else {\n Schema schema = parameter.getSchema();\n if (schema != null && schema.getExample() != null) {\n codegenParameter.example = schema.getExample().toString();\n }\n }\n\n setParameterExampleValue(codegenParameter);\n }", "@Override\n public void export(ExpressionPresenter presenter) throws XPathException {\n presenter.startElement(this instanceof GlobalParam ? \"globalParam\" : \"globalVariable\");\n presenter.emitAttribute(\"name\", getVariableQName().getEQName());\n presenter.emitAttribute(\"type\", getRequiredType().toString());\n presenter.emitAttribute(\"line\", getLineNumber() + \"\");\n presenter.emitAttribute(\"module\", getSystemId());\n if (getStackFrameMap() != null) {\n presenter.emitAttribute(\"slots\", getStackFrameMap().getNumberOfVariables() + \"\");\n }\n if (getDeclaringComponent() != null) {\n Visibility vis = getDeclaringComponent().getVisibility();\n if (vis != null) {\n presenter.emitAttribute(\"visibility\", vis.toString());\n }\n }\n String flags = getFlags();\n if (!flags.isEmpty()) {\n presenter.emitAttribute(\"flags\", flags);\n }\n\n if (\"JS\".equals(presenter.getOption(\"target\"))) {\n presenter.emitAttribute(\"jsAcceptor\", getRequiredType().getPrimaryType().generateJavaScriptItemTypeAcceptor(\"XTTE0590\"));\n presenter.emitAttribute(\"jsCardCheck\", Cardinality.generateJavaScriptChecker(getRequiredType().getCardinality()));\n }\n\n if (getSelectExpression() != null) {\n getSelectExpression().export(presenter);\n }\n presenter.endElement();\n }", "@Override\n\tprotected void usePIDOutput(double output) {\n\t\tarm.set(output);\n\t}", "@Override\n public void register(Asciidoctor asciidoctor) {\n }", "private void addParameter( String classname ){\n if(DEBUG) System.out.print(classname+\" \");\n\n // get the class\n Class klass=null;\n try{\n klass=Class.forName(classname);\n }catch(NoClassDefFoundError e){\n if(DEBUG) System.out.println(\"(NoClassDefError) NO\");\n return;\n }catch(ClassNotFoundException e){\n if(DEBUG) System.out.println(\"(ClassNotFoundException) NO\");\n return;\n }catch(ClassFormatError e){\n if(DEBUG) System.out.println(\"(ClassFormatError) NO\");\n return;\n }\n\n // confirm this isn't null\n if(klass==null){\n if(DEBUG) System.out.println(\"(Null Class) NO\");\n return;\n }\n\n // check that this is not an interface or abstract\n int modifier=klass.getModifiers();\n if(Modifier.isInterface(modifier)){\n if(DEBUG) System.out.println(\"(Interface) NO\");\n return;\n }\n if(Modifier.isAbstract(modifier)){\n if(DEBUG) System.out.println(\"(Abstract) NO\");\n return;\n }\n\n // check that this is a parameter\n if(! (IParameter.class.isAssignableFrom(klass)) ){\n if(DEBUG) System.out.println(\"(Not a IParameter) NO\");\n return;\n }\n\n // get the instance\n IParameter param= null;\n try{\n param = getInstance(klass,DEBUG);\n }catch( Exception ss){\n \n }\n\n if( param == null ){\n return;\n }\n\n // get the type which will be the key in the hashtable\n String type=param.getType();\n\n if(type == null) {\n System.err.println(\"Type not defined for \" + param.getClass());\n return;\n }\n if(type.equals(\"UNKNOWN\")){\n if(DEBUG) System.out.println(\"(Type Unknown) NO\");\n return;\n }else{\n if(DEBUG) System.out.print(\"[type=\"+type+\"] \");\n }\n\n // add it to the hashtable\n paramList.put(type,klass);\n \n // final debug print\n if(DEBUG) System.out.println(\"OK\");\n }", "@Override final protected Class<?>[] getOutputTypes() { return this.OutputTypes; }", "@Override\n\tprotected void setParameterValues() {\n\t}", "public interface Register {\n // M E T H O D S -------------------------------------------------------------------------\n\n /**\n * Returns the object to bind to the variable map for this workflow instance.\n *\n * @param context The current workflow context\n * @param entry The workflow entry. Note that this might be null, for example in a pre function\n * before the workflow has been initialised\n * @param args Map of arguments as set in the workflow descriptor\n *\n * @param ps\n * @return the object to bind to the variable map for this workflow instance\n */\n public Object registerVariable(WorkflowContext context, ProcessInstance entry, Map<String,String> args, PersistentVars persistentVars) throws WorkflowException;\n}", "String getOutputConnectorTag();", "public void buildTypeParamInfo() {\n\t\twriter.writeTypeParamInfo();\n\t}", "protected String getChangeParameterLabel() {\n return \"Add Parameter...\";\n }", "@Override\n public StringBuilder appendAttributes(StringBuilder buf) {\n super.appendAttributes(buf);\n appendAttribute(buf, \"param\", param);\n return buf;\n }", "public final void write(final Parameter param, final String value) {\n if (s_log.isDebugEnabled()) {\n s_log.debug(\"Writing \" + param + \" with value \" + value);\n }\n\n if (Assert.isEnabled()) {\n Assert.exists(param, Parameter.class);\n }\n\n // XXX: Properties objects blow up when you try to put null\n // values in them. This null check fixes it for now, but it\n // doesn't let us explicitly write out a null value if that's\n // what we actually want to store. I.e. our property store\n // doesn't know the difference between a parameter being\n // unspecified and a parameter being explicitly set to null.\n if (value != null) {\n m_props.setProperty(param.getName(), value);\n }\n }", "public void addParameter(ParameterExtendedImpl param) {\n \tParameterExtendedImpl paramExt = parameters.getParameter(param.getIndex());\n \tif(paramExt != null)\n \t\tparamExt = new ParameterExtendedImpl(param);\n \t\n \tparamExt = parameters.getParameter(param.getIndex(), param.getDirection());\n \tif(paramExt != null){\n \t\tparamExt = new ParameterExtendedImpl(param);\n \t\treturn;\n \t}\n \t\n \taddToParameters(param);\n }", "@Override\r\n\tpublic void addParamInfo(ParamInfo info) {\n\t\tpm.insert(info);\r\n\t\t\r\n\t}", "@Override\n protected void usePIDOutput(double output) {\n liftmotor.pidWrite(output);\n\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=OUTPUT\n }", "void setParameter(String name, Object value);", "public void setOutputsAttribute(String extensions);", "public JsonFactory setOutputDecorator(OutputDecorator d)\n/* */ {\n/* 682 */ this._outputDecorator = d;\n/* 683 */ return this;\n/* */ }", "public void setOut(boolean out) {\n this.out = out;\n }", "public void createOutput() {\n\t\tsetOutput(new Output());\n\t}", "private void AddMetaRegistrationInformation(Registration reg) {\n }", "public void SetOutboundCall(XMSCall out){\n FunctionLogger logger=new FunctionLogger(\"SetOutboundCall\",this,myLogger);\n logger.args(out);\n myOutboundCall = out;\n myOutboundCall.EnableAllEvents(this);\n }", "public void setOPRegistResult(java.lang.String param) {\r\n localOPRegistResultTracker = param != null;\r\n\r\n this.localOPRegistResult = param;\r\n }", "void requestOutput();", "@Override\n public String toString()\n {\n final StringBuilder sb = new StringBuilder(12);\n sb.append('(');\n sb.append(this.parameter.toString());\n sb.append(\")%\");\n return sb.toString();\n }", "@Override\n public String kind() {\n return \"@param\";\n }", "protected final void addParameter(final ParameterDef parameter) {\n parameters.add(parameter);\n }", "@Override\n public void store(String username, Parameter obj) throws RegistryHandlerException {\n final String parameterName = obj.getName();\n try {\n super.store(username, obj);\n\n statusHandler.info(String.format(SUCCESSFULLY_STORED_PARAMETER,\n parameterName));\n } catch (RegistryHandlerException e) {\n boolean tryAgain = handleUnresolvedReferences(username, obj, e);\n\n if (tryAgain) {\n try {\n super.store(username, obj);\n\n statusHandler.info(String.format(\n SUCCESSFULLY_STORED_PARAMETER, parameterName));\n } catch (RegistryHandlerException e1) {\n statusHandler.error(String.format(FAILED_STORING_PARAMETER,\n parameterName), e1);\n throw e1;\n }\n } else {\n statusHandler.error(\n String.format(FAILED_STORING_PARAMETER, parameterName),\n e);\n }\n }\n }", "public Setparam() {\r\n super();\r\n }", "public void setOutput(TestOut output) {\n\tthis.output = output;\n\tsuper.setOutput(output);\n }", "public void serialize(JoyBuffer out) {\n\t\tout.putInt(getModuleType());\n\t}", "public Register() {\n\t\tsuper();\n\t}", "@Override\n public Format setOutputFormat(Format format)\n {\n Format outputFormat = super.setOutputFormat(format);\n \n if (logger.isDebugEnabled() && (outputFormat != null))\n logger.debug(\"SwScaler set to output in \" + outputFormat);\n return outputFormat;\n }", "ParameterSink createParameterSink();", "public JVar addParameter(JType type, String name) {\n if(intf!=null)\n intfMethod.param(type,name);\n return implMethod.param(type,name);\n }", "@Override\n public void codegen(Emitter output) {\n }", "public String getParam() {\n return param;\n }", "public String getParam() {\n return param;\n }", "public void setParameter(String parName, Object parVal) throws HibException ;", "public PowerMethodParameter() {\r\n\t\t\r\n\t\t//constructor fara parametru, utilizat in cazul in care utilizatorul nu introduce\r\n\t\t//fisierul sursa si nici fiesierul destinatie ca parametrii in linia de comanda\r\n\t\tSystem.out.println(\"****The constructor without parameters PowerMethodParameter has been called****\");\r\n\t\tSystem.out.println(\"You did not specify the input file and the output file\");\r\n\t\t\r\n\t}" ]
[ "0.6419795", "0.62442774", "0.61508733", "0.595408", "0.5925059", "0.58742595", "0.58647794", "0.5862678", "0.58321786", "0.58003664", "0.5786619", "0.57506263", "0.5703437", "0.56713337", "0.56652296", "0.56651384", "0.562247", "0.56137687", "0.5600742", "0.56006485", "0.55975074", "0.55421084", "0.55398667", "0.55398667", "0.55398273", "0.55330646", "0.5529769", "0.5498499", "0.5491655", "0.5461399", "0.5450676", "0.5444558", "0.5436498", "0.5423859", "0.54221463", "0.53988147", "0.5397797", "0.53865767", "0.53599465", "0.53539026", "0.53539026", "0.5347621", "0.5319337", "0.5315301", "0.53095937", "0.5302579", "0.52924764", "0.52906716", "0.52883774", "0.5270498", "0.52646554", "0.5257682", "0.52541333", "0.52325743", "0.52224225", "0.5217271", "0.5217271", "0.5208471", "0.5205033", "0.5192203", "0.5189759", "0.51882887", "0.5187156", "0.5183913", "0.5181703", "0.5170676", "0.51608115", "0.51546586", "0.51493853", "0.5144529", "0.51404685", "0.513736", "0.51357555", "0.51350904", "0.51298934", "0.51293504", "0.5128804", "0.5127971", "0.5103354", "0.509553", "0.5084934", "0.50848997", "0.5084892", "0.50712174", "0.5070849", "0.5070642", "0.50607294", "0.5059198", "0.5057734", "0.5057063", "0.5054214", "0.50537485", "0.505159", "0.5051501", "0.50500184", "0.50489867", "0.50474745", "0.50474745", "0.5042977", "0.50240105" ]
0.65858763
0
extract output, if required, for this parameter
public void extractOutput(CallableStatement stmt, FieldsInterface outputFields, ServiceContext ctx) throws SQLException { if (this.inOutType == InOutType.INPUT) { return; } /* * simple value */ if (this.recordName == null && this.isArray == false) { Value value = this.getValueType().extractFromSp(stmt, this.myPosn); if (Value.isNull(value)) { Tracer.trace( "Null value received for stored procedure parameter " + this.name + ". Data is not added to context."); } else { outputFields.setValue(this.name, value); } return; } /* * struct/array etc.. */ Object object = stmt.getObject(this.myPosn); if (object == null) { Tracer.trace("Got null as value of stored procedure parameter " + this.name + ". Data is not added to context."); return; } Object[] array = null; if (this.isArray) { if (object instanceof Array == false) { throw new ApplicationError("procedure parameter " + this.name + " is probably not set properly. We received an object of type " + object.getClass().getName() + " at run time while we expected an Array"); } array = (Object[]) ((Array) object).getArray(); } /* * array of primitives */ if (this.recordName == null) { ctx.putDataSheet(this.name, this.arrayToDs(array)); return; } Record record = ComponentManager.getRecord(this.recordName); if (this.isArray == false) { if (object instanceof Struct == false) { throw new ApplicationError("procedure parameter " + this.name + " is probably not set properly. We received an object of type " + object.getClass().getName() + " at run time while we expected Struct"); } Struct struct = (Struct) object; if (record.isComplexStruct()) { ctx.setObject(this.name, this.extractToJson(record, struct, stmt)); } else { ctx.putDataSheet(this.name, this.structToDs(struct)); } return; } /* * array of structs. the most complex case. */ if (record.isComplexStruct()) { ctx.setObject(this.name, this.extractToJsonArray(record, array, stmt)); } else { ctx.putDataSheet(this.name, this.structsToDs(record, array)); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getOutput();", "public TestOut getOutput() {\n\treturn(output);\n }", "String getOutput();", "public abstract Object getOutput ();", "Map<String, ?> getOutputData();", "public String getOutputFlag();", "boolean hasOutputParams();", "public void setOutput(String output) { this.output = output; }", "@Override\n public String getOutputParameter(String task) {\n try {\n Set<IOutputParameter> outputParameters = dataAccessTosca.getOutputParametersByTask(task);\n JSONArray response = new JSONArray();\n if (outputParameters != null) {\n for (IOutputParameter output : outputParameters) {\n JSONObject i = new JSONObject();\n i.put(\"id\",output.getId());\n i.put(\"label\", output.getLabel());\n i.put(\"value\", output.getValue());\n i.put(\"tiid\", task);\n response.add(i);\n }\n return response.toString();\n }\n } catch (DatabaseException e) {\n e.printStackTrace();\n }\n return null;\n }", "public String getOutput() {\n\t\treturn results.getOutput() ;\n\t}", "public Output getOutput() {\n\t\treturn output;\n\t}", "public String getOutput() {\n return output;\n }", "public void processOutput() {\n\n\t}", "public String getOutputString()\n\t{\n\t\treturn outputString;\n\t}", "public String getOutValue(){\n return null;\n }", "public void calcOutput()\n\t{\n\t}", "public String getOutput() {\n return output.toString();\n }", "@Override\r\n\tpublic boolean getOutput() {\n\t\treturn false;\r\n\t}", "private Output() {}", "void requestOutput();", "String extractParameters ();", "public String getoutputString() {\r\n\t\treturn outputString;\r\n\t}", "public abstract boolean getOutput();", "public Object getCallOutput() {\n\t\treturn null;\n\t}", "String getOutputName();", "public String getLocalOutput(){\r\n\t\treturn this.localOutput;\r\n\t}", "Output createOutput();", "@Override\n\tpublic void declareOutputFields(OutputFieldsDeclarer arg0) {\n\t\targ0.declare(new Fields(\"deviceid\", \"jsondata\",\"valid\"));\n\t}", "@Override\n public Object getData() {\n return new String(outputData);\n }", "boolean hasOutput();", "public GetFieldsOutput() {\n\t\tsuper();\n\t\tthis.succeed = null;\n\t\tthis.failed = null;\n\t\tthis.invalid = null;\n\t}", "@Override\n\tpublic void declareOutputFields(OutputFieldsDeclarer arg0) {\n\t\t\n\t}", "@Override\n\tpublic void declareOutputFields(OutputFieldsDeclarer arg0) {\n\t\t\n\t}", "@Override\n\tpublic Value[] getOutputValues() {\n\t\treturn null;\n\t}", "@Override\n public Object getData() {\n return outputData;\n }", "public interface IOutputParameter extends IIOParameter, Serializable {\n\n /**\n *\n * @return function to convert a byte array to the value; used to\n * convert from stderr\n */\n Optional<IConvertByteArrayToIData> getFunctionToHandleStderr();\n\n /**\n *\n * @return function to convert a integer exit value to a idata\n * value; used for the handling of the exit value of the overall\n * program\n */\n Optional<IConvertExitValueToIData> getFunctionToHandleExitValue();\n\n /**\n *\n * @return function to convert a byte array to the value;\n * used to convert from stdout\n */\n Optional<IConvertByteArrayToIData> getFunctionToHandleStdout();\n\n /**\n *\n * @return function to read the iData from files\n */\n Optional<IReadIDataFromFiles> getFunctionToReadIDataFromFiles();\n}", "public java.lang.String getOutput() {\n java.lang.Object ref = output_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n output_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getOutput() {\n java.lang.Object ref = output_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n output_ = s;\n return s;\n }\n }", "@Override\r\n\tpublic void declareOutputFields(OutputFieldsDeclarer arg0) {\n\r\n\t}", "private String getOutputDataValue(String inputData) {\n\t\tString outputDataValue = inputData;\n\t\tif (!outputDataValue.isEmpty() && modificationRequired) {\n\t\t\toutputDataValue = modify(outputDataValue);\n\t\t}\n\t\tif (!outputDataValue.isEmpty() && translationRequired) {\n\t\t\toutputDataValue = translate(outputDataValue);\n\t\t}\n\t\tif (outputDataValue.isEmpty() && !defaultValue.isEmpty()) {\n\t\t\toutputDataValue = defaultValue;\n\t\t}\n\t\tif (!outputDataValue.isEmpty() && replaceNonPrintableCharacters) {\n\t\t\toutputDataValue = replaceNonPrintableCharacters(outputDataValue);\n\t\t}\n\t\t//System.out.println(\"Output data value for \" + dataItemName + \" is \" + outputDataValue);\t\n\t\treturn outputDataValue;\n\t}", "SModel getOutputModel();", "@Override final protected Class<?>[] getOutputTypes() { return this.OutputTypes; }", "public void setOutput(String output) {\n this.output = output;\n }", "protected String getOutputFileParameter() {\n if (outputFile == null) {\n return null;\n }\n return \"/output=\" + outputFile.toString();\n }", "OutputPin getResult();", "OutputPin getResult();", "String diagnosticsOutput();", "public String getOutput() {\r\n return innerStream.getString();\r\n }", "@Override\n\tpublic void GetOut() {\n\t\t\n\t}", "public StreamResult getOutput() {\n return output;\n }", "public boolean[] getOutput() {\n // PROGRAM 1: Student must complete this method\n // return value is a placeholder, student should replace with correct return\n boolean[] outputCopy = new boolean[output.length]; //array to hold copy of output.\n for (int i = 0; i < outputCopy.length; i++) {\n outputCopy[i] = output[i]; //place output data into outputCopy\n }\n return outputCopy; //return copy of output\n }", "protected void setSpecificInputOutput() {\n\t\tsetInputOutput(new GeoElement[] { (GeoElement) point, inputOrtho },\n\t\t\t\tnew GeoElement[] { line });\n\t}", "Output getOutputs();", "@Column(name = \"OUTPUT\", length = 1000)\n/* */ @Order(3)\n/* 76 */ public String getOutput() { return this.output; }", "public Object getOutputTarget()\n/* */ {\n/* 101 */ return this._writer;\n/* */ }", "public void setOutput(String output) {\r\n\t\tthis.output = output;\r\n\t}", "@Override\n public Map<String, Serializable> getOutputProperties() {\n Log.w(TAG, \"Output properties is not supported.\");\n return new HashMap<>();\n }", "public String getOutput() {\n myLock.lock();\n try {\n return myOutput.toString();\n }\n finally {\n myLock.unlock();\n }\n }", "public String getOutputValue() {\n// System.out.println(\"geting output value from connection\");\n// System.out.println(\"out:\" + ncOutput.getName() + \" in:\" + ncInput.getName() );\n return _output.getOutputValue();\n }", "public OutputInfo readOutputTableInfo() {\n String value = conf.get(getOutputTableInfoKey());\n OutputInfo oti = null;\n if (value != null) {\n oti = new OutputInfo();\n Writables.readFieldsFromEncodedStr(value, oti);\n }\n return oti;\n }", "public Element getOutput(){\n\t\treturn output;\n\t}", "static void perform_out(String passed){\n\t\tint type = type_of_out(passed);\n\t\tswitch(type){\n\t\tcase 1:\n\t\t\tout_from_acc(passed);\n\t\t\tbreak;\n\t\t}\n\t}", "public Output<T> output() {\n return output;\n }", "public void setOutput(Output output) {\n\t\tthis.output = output;\n\t}", "public com.google.protobuf.ByteString\n getOutputBytes() {\n java.lang.Object ref = output_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n output_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public LinkedHashMap<String, FunctionParameter> outputParameters(){\n return new LinkedHashMap<String, FunctionParameter>();\n }", "public void generateOutputData() {\n\t\tArrayList<String> inputDataArray = new ArrayList<String>();\n\t\tif (removeDuplicates) {\n\t\t\tinputDataArray = removeDuplicates();\n\t\t} else {\n\t\t\tinputDataArray = inputDataValues;\n\t\t}\n\t\t\n\t\toutputDataValues.clear();\n\t\tString outputDataValue = \"\";\n\t\tif (inputDataArray.isEmpty()) {\n\t\t\toutputDataValue = getOutputDataValue(\"\");\n\t\t\toutputDataValues.add(outputDataValue);\n\t\t} else {\n\t\t\tfor (String inputDataValue: inputDataArray) {\n\t\t\t\toutputDataValue = getOutputDataValue(inputDataValue);\n\t\t\t\toutputDataValues.add(outputDataValue);\n\t\t\t}\n\t\t}\n\t}", "public JSONArray getOutput() {\n\t\treturn output;\n\t}", "private void computeOutput(RefactoringStatus status) {\n FlowContext flowContext = new FlowContext(0, fMaxVariableId + 1);\n flowContext.setConsiderAccessMode(true);\n flowContext.setComputeMode(FlowContext.RETURN_VALUES);\n FlowInfo returnInfo = new InOutFlowAnalyzer(flowContext).perform(getSelectedNodes());\n IVariableBinding[] returnValues = returnInfo.get(flowContext, FlowInfo.WRITE | FlowInfo.WRITE_POTENTIAL | FlowInfo.UNKNOWN);\n // Compute a selection that exactly covers the selected nodes\n IRegion region = getSelectedNodeRange();\n Selection selection = Selection.createFromStartLength(region.getOffset(), region.getLength());\n List<IVariableBinding> localReads = new ArrayList();\n flowContext.setComputeMode(FlowContext.ARGUMENTS);\n FlowInfo argInfo = new InputFlowAnalyzer(flowContext, selection, true).perform(fEnclosingBodyDeclaration);\n IVariableBinding[] reads = argInfo.get(flowContext, FlowInfo.READ | FlowInfo.READ_POTENTIAL | FlowInfo.UNKNOWN);\n outer: for (int i = 0; i < returnValues.length && localReads.size() < returnValues.length; i++) {\n IVariableBinding binding = returnValues[i];\n for (int x = 0; x < reads.length; x++) {\n if (reads[x] == binding) {\n localReads.add(binding);\n fReturnValue = binding;\n continue outer;\n }\n }\n }\n switch(localReads.size()) {\n case 0:\n fReturnValue = null;\n break;\n case 1:\n break;\n default:\n fReturnValue = null;\n StringBuffer affectedLocals = new StringBuffer();\n for (int i = 0; i < localReads.size(); i++) {\n IVariableBinding binding = localReads.get(i);\n String bindingName = BindingLabelProvider.getBindingLabel(binding, BindingLabelProvider.DEFAULT_TEXTFLAGS | JavaElementLabels.F_PRE_TYPE_SIGNATURE);\n affectedLocals.append(bindingName);\n if (i != localReads.size() - 1) {\n affectedLocals.append('\\n');\n }\n }\n String message = MessageFormat.format(RefactoringCoreMessages.ExtractMethodAnalyzer_assignments_to_local, new Object[] { affectedLocals.toString() });\n status.addFatalError(message, JavaStatusContext.create(fCUnit, getSelection()));\n return;\n }\n List<IVariableBinding> callerLocals = new ArrayList(5);\n FlowInfo localInfo = new InputFlowAnalyzer(flowContext, selection, false).perform(fEnclosingBodyDeclaration);\n IVariableBinding[] writes = localInfo.get(flowContext, FlowInfo.WRITE | FlowInfo.WRITE_POTENTIAL | FlowInfo.UNKNOWN);\n for (int i = 0; i < writes.length; i++) {\n IVariableBinding write = writes[i];\n if (getSelection().covers(ASTNodes.findDeclaration(write, fEnclosingBodyDeclaration)))\n callerLocals.add(write);\n }\n fCallerLocals = callerLocals.toArray(new IVariableBinding[callerLocals.size()]);\n if (fReturnValue != null && getSelection().covers(ASTNodes.findDeclaration(fReturnValue, fEnclosingBodyDeclaration)))\n fReturnLocal = fReturnValue;\n }", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getInput() != null)\n sb.append(\"Input: \").append(getInput()).append(\",\");\n if (getOutput() != null)\n sb.append(\"Output: \").append(getOutput());\n sb.append(\"}\");\n return sb.toString();\n }", "public boolean processOutput();", "java.lang.String getOutputjar();", "public TOutputParameterElements getTOutputParameterAccess() {\n\t\treturn pTOutputParameter;\n\t}", "public HashMap getOutputHeader() {\n\t\treturn null;\n\t}", "public IInputOutput getConstantOuput();", "TemplateOutputStream getOutput();", "@Override\n\tvoid output() {\n\t\t\n\t}", "public void getRetreivalParameter() {\n \n \tretModelName = prop.getProperty(\"retModel\");\n \t\n \tswitch(retModelName) \n \t{\n \tcase \"lmjm\":\n \t\tretModelParam1 = prop.getProperty(\"param1\");\n \t\tbreak;\n \tcase \"lmdir\":\n \t\tretModelParam1 = prop.getProperty(\"param1\");\n \t\tbreak;\n \tcase \"bm25\":\n \t\tretModelParam1 = prop.getProperty(\"param1\");\n \t\tretModelParam2 = prop.getProperty(\"param2\");\n \t\tbreak;\n \tcase \"dfr\": \n \t\tretModelParam1 = prop.getProperty(\"param1\");\n \t\tretModelParam2 = prop.getProperty(\"param2\");\n \t\tretModelParam3 = prop.getProperty(\"param3\");\n \t\tbreak;\n \tdefault :\n \t\tSystem.err.println(\"Sorry! No such retrieval models found.\");\n \t\treturn;\n \t}\n }", "public String getOutput() {\n return String.format(\"DCode: %-7.0f \\\"%-9s\\\" \\t - %5.3fmm x %5.3fmm - \\t Area: %6.3fmm² \\t Area Ratio: %5.2f \\t Transfer Effeciency: %2.1f \\t Number of apertures: %-5.0f\"\n , (double) dCode\n , shape\n , x\n , y\n , getArea()\n , getAreaRatio()\n , getTransferEffeciency()\n , (double) numbOfApertures);\n }", "com.google.protobuf.ByteString\n getOutputBytes();", "public void setOutputFlag(String flag);", "private static StringBuilder printUtilResultLine(DSEIndividual ind,\r\n\t\t\tStringBuilder output) {\r\n\t\t\r\n\t\tObjectives obs = ind.getObjectives();\r\n\t\tif (obs instanceof DSEObjectives){\r\n\t\t\tDSEObjectives dseObj = ((DSEObjectives)obs);\r\n\t\t\tfor (Entry<Objective, Value<?>> o : dseObj) {\r\n\t\t\t\tif (dseObj.hasResultDecoratorFor(o.getKey())){\r\n\t\t\t\t\tResultDecoratorRepository results = dseObj.getResultDecoratorFor(o.getKey());\r\n\t\t\t\t\tList<UtilisationResult> utilisations = results.getUtilisationResults_ResultDecoratorRepository();\r\n\t\t\t\t\tPCMInstance pcm = Opt4JStarter.getProblem().getInitialInstance();\r\n\t\t\t\t\tList<ResourceContainer> containers = pcm.getResourceEnvironment().getResourceContainer_ResourceEnvironment();\r\n\t\t\t\t\tList<LinkingResource> links = pcm.getResourceEnvironment().getLinkingResources__ResourceEnvironment();\r\n\t\t\t\t\tif (utilisations != null){\r\n\t\t\t\t\t\tfor (ResourceContainer resourceContainer : containers) {\r\n\t\t\t\t\t\t\tfor (ProcessingResourceSpecification processingResourceSpecification : resourceContainer.getActiveResourceSpecifications_ResourceContainer()) {\r\n\t\t\t\t\t\t\t\tfor (UtilisationResult utilisationResult : utilisations) {\r\n\t\t\t\t\t\t\t\t\tif (utilisationResult instanceof ProcessingResourceSpecificationResult){\r\n\t\t\t\t\t\t\t\t\t\tProcessingResourceSpecificationResult procResResult = ((ProcessingResourceSpecificationResult)utilisationResult);\r\n\t\t\t\t\t\t\t\t\t\t// compare container and resource type, because the proc resource may have changed (the printed candidate is not necessarily the current one on the blackboard). \r\n\t\t\t\t\t\t\t\t\t\tif (EMFHelper.checkIdentity((ResourceContainer)procResResult.getProcessingResourceSpecification_ProcessingResourceSpecificationResult().eContainer(),resourceContainer)\r\n\t\t\t\t\t\t\t\t\t\t\t\t&& EMFHelper.checkIdentity(procResResult.getProcessingResourceSpecification_ProcessingResourceSpecificationResult().getActiveResourceType_ActiveResourceSpecification(), processingResourceSpecification.getActiveResourceType_ActiveResourceSpecification())){\r\n\t\t\t\t\t\t\t\t\t\t\toutput.append(procResResult.getResourceUtilisation());\r\n\t\t\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\toutput.append(\";\");\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tfor (LinkingResource linkingResource : links) {\r\n\t\t\t\t\t\t\tfor (UtilisationResult utilisationResult : utilisations) {\r\n\t\t\t\t\t\t\t\tif (utilisationResult instanceof LinkingResourceResults){\r\n\t\t\t\t\t\t\t\t\tLinkingResourceResults linkResult = ((LinkingResourceResults)utilisationResult);\r\n\t\t\t\t\t\t\t\t\tif (EMFHelper.checkIdentity(linkResult.getLinkingResource_LinkingResourceResults(),linkingResource)){\r\n\t\t\t\t\t\t\t\t\t\toutput.append(linkResult.getResourceUtilisation());\r\n\t\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\toutput.append(\";\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t for (int i = 0; i < containers.size()+links.size(); i++){\r\n\t\t\t\t\t\t output.append(\";\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn output;\r\n\t}", "public String getOutput() throws TavernaException, ProcessException{\n if (outputFile == null){\n return saveOutput();\n }\n try {\n return runner.getOutput();\n } catch (InterruptedException ex) {\n throw new TavernaException (\"Workflow was interrupted.\", ex);\n }\n }", "public abstract String FileOutput();", "@Override\n protected List<Object> getOperationArguments(AggregationOperationContext context) {\n return OperationOutput.this.getOperationArguments(context);\n }", "public HiveOutputDescription readOutputDescription() {\n String value = conf.get(getOutputDescriptionKey());\n HiveOutputDescription hod = null;\n if (value != null) {\n hod = new HiveOutputDescription();\n Writables.readFieldsFromEncodedStr(value, hod);\n }\n return hod;\n }", "void createdOutput(TestResult tr, Section section, String outputName);", "public float[] getOutput() {\n\t\t// Put output return code here (and remove \"return null;\")\n \treturn null;\n }", "speech.multilang.Params.OutputControllerParams getOutputParams();", "public boolean hasOutput() {\n return output_ != null;\n }", "public void createOutput() {\n\t\tsetOutput(new Output());\n\t}", "public NMapRun getResult() {\n\t\tOnePassParser parser = new OnePassParser() ;\n\t\tNMapRun nmapRun = parser.parse(outFilePath, OnePassParser.FILE_NAME_INPUT ) ;\n\t\treturn nmapRun ;\n\t}", "java.lang.String getParameterValue();", "public abstract MetaPojosHyperlinkedOutput getHyperlinkedOutput();", "boolean hasOutputConfig();", "public int getOutput() {\n return Output;\n }", "public void demuxOutput(String output, boolean isWarning) {\n Task task = getThreadTask(Thread.currentThread());\n if (task == null) {\n log(output, isWarning ? MSG_WARN : MSG_INFO);\n } else {\n if (isWarning) {\n task.handleErrorOutput(output);\n } else {\n task.handleOutput(output);\n }\n }\n }", "@Override\n\tpublic void getOutput(ICreationCondition condition, ICreationData data, long amountToApply, IUnitCountList output) {\n\t}", "public com.google.protobuf.ByteString\n getOutputBytes() {\n java.lang.Object ref = output_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n output_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public Output getOutput() {\n\t\treturn OutputFactory.of(outputFile.toPath());\n\t}" ]
[ "0.6908498", "0.671106", "0.65291625", "0.6395962", "0.6388175", "0.6338063", "0.618902", "0.6169051", "0.6144466", "0.61243415", "0.6121967", "0.60705495", "0.6016589", "0.6009594", "0.60034895", "0.5954342", "0.59375536", "0.59161156", "0.5890178", "0.5863682", "0.58546036", "0.5851292", "0.58370775", "0.5820513", "0.5805521", "0.5793728", "0.57874525", "0.57482547", "0.5747137", "0.57165706", "0.57024634", "0.56998044", "0.56998044", "0.56851417", "0.5684614", "0.56483316", "0.56394064", "0.56279105", "0.56125367", "0.5611864", "0.5596357", "0.5581677", "0.5572812", "0.5569689", "0.5547598", "0.5547598", "0.5544984", "0.55422556", "0.55371803", "0.55362225", "0.55318683", "0.55249536", "0.5513085", "0.5501523", "0.5495171", "0.5493065", "0.54877967", "0.5487121", "0.547514", "0.54637307", "0.5448142", "0.544028", "0.5430999", "0.54307395", "0.5416394", "0.5404645", "0.5403868", "0.5403054", "0.54009026", "0.539982", "0.53977025", "0.5396815", "0.53916365", "0.5385539", "0.53624403", "0.53608465", "0.53603566", "0.5356128", "0.5351714", "0.5349462", "0.53462476", "0.53459334", "0.5342611", "0.53395754", "0.533082", "0.5326682", "0.53260034", "0.5323616", "0.5319441", "0.53127253", "0.5311811", "0.53101623", "0.53049296", "0.5302681", "0.5301559", "0.52941704", "0.52920574", "0.52878726", "0.52794355", "0.52787256" ]
0.5535743
50
create a data sheet with the given struct as its only row
private DataSheet structToDs(Struct struct) throws SQLException { /* * struct is extracted into a data sheet with just one row */ DataSheet ds = ComponentManager.getRecord(this.recordName) .createSheet(true, false); ValueType[] types = ds.getValueTypes(); Value[] row = this.getRowFromStruct(struct.getAttributes(), types); ds.addRow(row); return ds; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Row createRow();", "private DataSheet structsToDs(Record record, Object[] array)\n\t\t\tthrows SQLException {\n\t\tDataSheet ds = record.createSheet(false, false);\n\t\tValueType[] types = ds.getValueTypes();\n\t\tfor (Object struct : array) {\n\t\t\tif (struct == null || struct instanceof Struct == false) {\n\t\t\t\tTracer.trace(\n\t\t\t\t\t\t\"Found an empty row or a non-struct object for stored procedure parameter \"\n\t\t\t\t\t\t\t\t+ this.name\n\t\t\t\t\t\t\t\t+ \". skipping this row, but not throwing an error.\");\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tObject[] rowData = ((Struct) struct).getAttributes();\n\t\t\tValue[] row = this.getRowFromStruct(rowData, types);\n\t\t\tds.addRow(row);\n\t\t}\n\t\treturn ds;\n\t}", "Rows createRows();", "@Test\n public void testFillInDataToTemplate() throws IOException {\n List<List<Object>> rows = new ArrayList<List<Object>>();\n\n List<String> communeStrs = Arrays.asList(\"Aclens\", \"Allaman\", \"Aubonne\", \"Apples\", \"Bière\", \"Bremblens\",\n \"Bougy-Villars\", \"Berolle\", \"Chevilly\");\n List<String> typeStrs = Arrays.asList(\"Résidence Secondaire\", \"Location\", \"Hotel\", \"Chambre\", \"Camping\",\n \"Institut\");\n\n for (int i = 0; i < 25; i++) {\n List<Object> row = new ArrayList<Object>();\n row.add(new Long(900000L + i));\n row.add(i + 1);\n row.add(communeStrs.get(i % communeStrs.size()));\n row.add(typeStrs.get(i % typeStrs.size()));\n row.add(new Long(25000L * i));\n row.add(BooleanUtils.toBoolean(i % 2));\n row.add(new Date());\n row.add(DateUtils.addDays(new Date(), i + 1));\n row.add(String.format(\"%d piéces ou moins\", i + 1));\n row.add(i + 1);\n row.add((i % 7 == 0 ? i : null));\n row.add((i % 7 == 1 ? i : null));\n row.add((i % 7 == 2 ? i : null));\n row.add((i % 7 == 3 ? i : null));\n row.add((i % 7 == 4 ? i : null));\n row.add((i % 7 == 5 ? i : null));\n row.add((i % 7 == 6 ? i : null));\n row.add(10 * i);\n row.add(200 * i);\n row.add(25 * i);\n row.add(i % 5 + 1);\n row.add(i % 6 + 1);\n row.add(BigDecimal.ZERO);\n row.add(1500 * (i + 1));\n row.add(null);\n\n rows.add(row);\n }\n\n SheetDataDto sheet1 = ExcelExportingUtil.convert2DListToSheetDto(rows, false);\n sheet1.setName(\"Data\");\n sheet1.setOverriden(true);\n // re-assign the index of the rows in the sheet to fill in the template: ignore the first two rows\n for (int i = 2; i < 2 + sheet1.getRows().size(); i++) {\n RowDataDto row = sheet1.getRows().get(i - 2);\n row.setRowNum(i);\n for (int j = 0; j < row.getCells().size(); j++) {\n CellDataDto cell = row.getCells().get(j);\n cell.setCellNum(j);\n }\n }\n\n // specify the format for col 7 and 8 (0-based)\n for (int i = 0; i < sheet1.getRows().size(); i++) {\n switch (i) {\n case 7:\n CellFormatter formatter = new CellFormatter(\"dd-MMM-yyyy\");\n formatter.setAlignment(CellStyle.ALIGN_CENTER);\n sheet1.getFormatters().add(formatter);\n break;\n\n case 8:\n CellFormatter formatter1 = new CellFormatter();\n formatter1.setWrapText(false);\n sheet1.getFormatters().add(formatter1);\n break;\n\n default:\n sheet1.getFormatters().add(null);\n break;\n }\n }\n\n InputStream input = getClass().getResourceAsStream(\"/exportData/Statistics_v0.1.xls\");\n ByteArrayOutputStream out = new ByteArrayOutputStream();\n excelExportingService.exportToExcel(input, out, Arrays.asList(sheet1), ExcelFormatTypeEnum.XLS);\n\n FileUtils.writeByteArrayToFile(new File(\"output-template.xls\"), out.toByteArray());\n }", "public interface DataSheet\n{\n /** @return the names of the columns in this table or an empty list if no columns have been defined, never null */\n List<String> getColumns();\n\n /** @return the names of the columns in this table or an empty array if no columns have been defined, never null */\n String[] getHeaders();\n\n /**\n * Determine the name of a column if the position is known.\n *\n * @param index the position in the header starting with 0\n * @return the column name at the given position, null if unknown\n */\n String getColumn(int index);\n\n /**\n * Determine the index of a column if the name is known.\n *\n * @param column the case insensitive name of the respective column\n * @return the index of the column in the headings, -1 if the column is unknown\n */\n int indexOf(String column);\n\n /**\n * Access the given row.\n *\n * @param index the row number, the first row is 0\n * @return the data of the row or an empty array if the row is out of bounds, never null\n */\n Object[] getDataRow(final int index);\n\n /**\n * Access all rows.\n *\n * @return the data of all rows or an empty array no row exist, never null\n */\n Object[][] getDataRows();\n\n /**\n * Retrieve the value of the given row and column.\n *\n * If the row is out of bounds or the column is unknown will simply return <code>null</code> to indicate that no value\n * has been set.\n *\n * @param column the column name in the table\n * @param row the row number in the table starting with 0\n * @return the associated value of that cell, can be null\n */\n Object getDataValue(String column, int row);\n\n /**\n * Retrieve the value of the given row and column.\n *\n * If row or column are out of bounds will simply return <code>null</code> to indicate that no value has been set.\n *\n * @param row the row number in the table starting with 0\n * @param column the column number in the table starting with 0\n * @return the associated value of that cell, can be null\n */\n Object getDataValue(final int row, final int column);\n\n /** @return the number of current rows of this table */\n int size();\n}", "@Override\n protected Sheet createSheet() {\n Sheet sheet = Sheet.createDefault();\n // Create a set of properties\n Sheet.Set set = Sheet.createPropertiesSet();\n\n set.put(getNameProperty());\n set.put(getMajorProperty());\n set.put(getMinorProperty());\n set.put(getPatchProperty());\n set.put(getDescriptionProperty());\n set.put( getGitProperty());\n set.put( getBranchProperty());\n\n // Add the set of properties to the sheet\n sheet.put(set);\n\n return sheet;\n }", "public static Row createRow() {\n\t\treturn new Row(fsco,criteria,columns);\n\t}", "private DataSheet arrayToDs(Object[] row) throws SQLException {\n\t\tString[] columnNames = { this.name };\n\t\tValueType vt = this.getValueType();\n\t\tif (row.length == 0) {\n\t\t\tValueType[] types = { this.dataTypeObject.getValueType() };\n\t\t\treturn new MultiRowsSheet(columnNames, types);\n\t\t}\n\t\tValue[][] values = { vt.toValues(row) };\n\t\treturn new MultiRowsSheet(columnNames, values);\n\t}", "RowValues createRowValues();", "private void createRowWithData(HSSFSheet sheet, int i, ReconciliationViewVO reconViewVO) {\r\n\r\n\t\tHSSFRow row;\r\n\t\trow = sheet.createRow((short) i);\r\n\t\trow.createCell((short) 0).setCellValue(\"\");\r\n\t\trow.createCell((short) 1).setCellValue(\"\");\r\n\t\trow.createCell((short) 2).setCellValue(\"\");\r\n\t\trow.createCell((short) 3).setCellValue(reconViewVO.getTransactionType());\r\n\t\trow.createCell((short) 4).setCellValue(reconViewVO.getNumOfRecords());\r\n\t\trow.createCell((short) 5).setCellValue(reconViewVO.getAmount());\r\n\t}", "public void testCreateNewFile() {\n List<SheetDataDto> data = new ArrayList<SheetDataDto>();\n RowDataDto headerRow = new RowDataDto();\n headerRow.getCells().add(new CellDataDto(\"Col 1\", CellDataTypeEnum.TEXT));\n headerRow.getCells().add(new CellDataDto(\"Col 2\", CellDataTypeEnum.TEXT));\n headerRow.getCells().add(new CellDataDto(\"Col 3\", CellDataTypeEnum.TEXT));\n headerRow.getCells().add(new CellDataDto(\"Col 4\", CellDataTypeEnum.TEXT));\n\n SheetDataDto sheet1 = new SheetDataDto();\n sheet1.setName(\"First sheet\");\n sheet1.setHeaderRow(headerRow);\n\n RowDataDto row1 = new RowDataDto();\n row1.getCells().add(new CellDataDto(1d, CellDataTypeEnum.NUMBER));\n row1.getCells().add(new CellDataDto(\"IF(A2 > 0, \\\"1\\\", \\\"0\\\")\", CellDataTypeEnum.FORMULAR));\n row1.getCells().add(new CellDataDto(\"123456789\", CellDataTypeEnum.NUMBER));\n row1.getCells().add(new CellDataDto(new Date(), CellDataTypeEnum.DATE));\n\n sheet1.getRows().add(row1);\n data.add(sheet1);\n\n excelExportingService.exportToExcel(\"t1.xls\", data, false, ExcelFormatTypeEnum.XLS);\n excelExportingService.exportToExcel(\"t1.xlsx\", data, false, ExcelFormatTypeEnum.XLSX);\n }", "@Override\n public Object[] createRow() {\n ObjectDescriptor.TypeObject newTypeObjectInstance = ObjectDescriptor.newInstance();\n List<PropertyDescriptor> descriptors = typeObjectDescriptor.getObjectProperties();\n InitValuesFiller.fill(newTypeObjectInstance, descriptors);\n\n return new Object[]{ StringUtils.EMPTY, newTypeObjectInstance };\n }", "private void createRowNoData(HSSFSheet sheet, int i, String rowDesc) {\r\n\r\n\t\tHSSFRow row;\r\n\t\trow = sheet.createRow((short) i);\r\n\t\trow.createCell((short) 0).setCellValue(\"\");\r\n\t\trow.createCell((short) 1).setCellValue(\"\");\r\n\t\trow.createCell((short) 2).setCellValue(\"\");\r\n\t\trow.createCell((short) 3).setCellValue(rowDesc);\r\n\t\trow.createCell((short) 4).setCellValue(0);\r\n\t\trow.createCell((short) 5).setCellValue(0.0);\r\n\t}", "public abstract Cell createDataCell() throws DailyFollowUpException;", "@Test\n public void testWriteRowCells() {\n XSSFWorkbook workbook = new XSSFWorkbook();\n XSSFSheet sheet = workbook.createSheet();\n XSSFRow row = sheet.createRow(0);\n List<Object> cellContents = new ArrayList<Object>();\n cellContents.add(new String(\"abc\"));\n cellContents.add(new Long(\"1\")); \n MaterialRequestHelper.writeRowCells(cellContents, row);\n assertEquals(row.getPhysicalNumberOfCells(), 2);\n assertEquals(row.getCell(0).getCellType(),XSSFCell.CELL_TYPE_STRING);\n assertEquals(row.getCell(1).getCellType(),XSSFCell.CELL_TYPE_NUMERIC);\n assertEquals(row.getCell(0).getStringCellValue(),\"abc\");\n assertEquals(row.getCell(1).getNumericCellValue(),1,0); \n }", "@Override\n\tpublic void createCellStructure() {\n\t\t\n\t}", "private void createNewSheet(SXSSFSheet sheet, int rowNum, int countColumns, ResultSet result, SXSSFWorkbook workbook) throws SQLException {\n ResultSetMetaData metaDataColumns = result.getMetaData();\n sheet.setAutobreaks(true);\n sheet.setAutoFilter(new CellRangeAddress(0, rowNum, 0, countColumns - 1));\n// sheet.autoSizeColumn(0);\n sheet.setFitToPage(true);\n // Creamos un nuevo ROW para el header\n SXSSFRow header = sheet.createRow(rowNum);\n System.out.println(\"Add Header\");\n for (int colHeader = 1; colHeader <= countColumns; colHeader++) {\n // Creamos una nueva celda para cada una de las celdas\n SXSSFCell cellHeader = header.createCell(colHeader - 1);\n // agregamos el valor de la celda\n cellHeader.setCellValue(metaDataColumns.getColumnName(colHeader).toUpperCase());\n }\n rowNum++;\n // Verificamos si hay datos\n System.out.println(\"Add Row Data\");\n while (result.next()) {\n // Creamos un nuevo ROW para los cada nueva fila del resultSet\n SXSSFRow data = sheet.createRow(rowNum);\n // Recorremos los datos de las columnas\n for (int rowdata = 1; rowdata <= countColumns; rowdata++) {\n // Creamos una nueva celda para cada una de las celdas\n SXSSFCell cellData = data.createCell(rowdata - 1);\n // agregamos el valor de la celda\n Object object = result.getObject(rowdata);\n if (object == null) {\n cellData.setCellValue(\"\");\n } else {\n switch (metaDataColumns.getColumnType(rowdata)) {\n case Types.BOOLEAN:\n cellData.setCellValue((boolean) object);\n break;\n case Types.DATE:\n cellData.setCellValue((Date) object);\n case Types.TIMESTAMP_WITH_TIMEZONE:\n cellData.setCellValue((Date) object);\n break;\n case Types.NUMERIC:\n cellData.setCellValue(((BigDecimal) object).doubleValue());\n break;\n case Types.FLOAT:\n cellData.setCellValue(((Float) object).doubleValue());\n break;\n case Types.INTEGER:\n cellData.setCellValue(((Integer) object).doubleValue());\n break;\n case Types.SMALLINT:\n cellData.setCellValue(((Integer) object).doubleValue());\n break;\n case Types.BIGINT:\n cellData.setCellValue(((Long) object).doubleValue());\n break;\n default:\n cellData.setCellValue(object + \"\");\n break;\n }\n }\n }\n // Incrementamos el contador de registros\n rowNum++;\n // Imprimimos cada 10000 registros procesados\n if ((rowNum % 10000) == 0) {\n System.out.println(\"Procesando \" + rowNum);\n }\n // Validamos el maximo de registros que soporta excel 2007\n // Creamos una nueva hoja para los siguinetes registros\n if ((rowNum % 1048570) == 0) {\n // creamos una nueva hoja\n sheet = workbook.createSheet(name + (workbook.getNumberOfSheets() + 1));\n // enviamos a llenar la hoja\n createNewSheet(sheet, 0, countColumns, result, workbook);\n }\n }\n }", "void createWorkSheet() {\n wb = new HSSFWorkbook();\n for (int SheetNumber = 0; SheetNumber < keywords.length - 1; SheetNumber++) {\n sheet[SheetNumber] = wb.createSheet(keywords[SheetNumber]);\n // Create row at index zero ( Top Row)\n HSSFRow row = sheet[SheetNumber].createRow((short) 0);\n String[] headers = {\"Title\", \"Category\", \"Developer\", \"Description\", \"Release Date\", \"currentVersionReleaseDate\", \"Version\", \"Website\", \"Rating Counts\", \"Average User Rating\", \"Average User Rating For Current Version\", \"Market URL\", \"Size\"};\n for (int i = 0; i <= 12; i++) {\n\n HSSFCell cell = row.createCell((short) i);\n cell.setCellType(HSSFCell.CELL_TYPE_STRING);\n cell.setCellValue(headers[i]);\n excelFileCreated = false;\n }\n }\n }", "MemberCell createMemberCell();", "private static DataTable createDataTable() throws Exception {\n DataTable t = new DataTable(\"Items\");\r\n\r\n // Add two columns\r\n DataColumn c;\r\n\r\n // First column\r\n c = t.getColumns().Add(\"id\", TClrType.getType(\"System.Int32\"));\r\n c.setAutoIncrement(true);\r\n\r\n // Second column\r\n t.getColumns().Add(\"item\", TClrType.getType(\"System.String\"));\r\n\r\n // Set primary key\r\n t.setPrimaryKey(new DataColumnArray(new DataColumn[]{t.getColumns().getItem(0)}));\r\n\r\n // Add twelve rows\r\n for (int i = 0; i < 10; i++) {\r\n DataRow row = t.NewRow();\r\n row.setItem(0, i);\r\n row.setItem(1, String.format(\"%s\", i));\r\n t.getRows().Add(row);\r\n }\r\n DataRow row = t.NewRow();\r\n row.setItem(0, 11);\r\n row.setItem(1, \"abc\");\r\n t.getRows().Add(row);\r\n\r\n row = t.NewRow();\r\n row.setItem(0, 15);\r\n row.setItem(1, \"ABC\");\r\n t.getRows().Add(row);\r\n\r\n return t;\r\n }", "DataTable createDataTable();", "public Sheet createSheet() {\n\t\treturn null;\n\t}", "@Test\n public void test(){\n ExcelUtil qa3Sheet = new ExcelUtil(\"src/test/resources/Vytrack testusers.xlsx\", \"QA3-short\");\n // 1 based , not 0 based\n int rowCount = qa3Sheet.rowCount();\n // 1 based, not 0 based\n int colCount = qa3Sheet.columnCount();\n System.out.println(\"rowCount = \" + rowCount);\n System.out.println(\"colCount = \" + colCount);\n\n List<String> columnsNames = qa3Sheet.getColumnsNames();\n System.out.println(\"columnsNames = \" + columnsNames);\n // 0 based, get specific cell value based on index\n String cellData = qa3Sheet.getCellData(2, 3);\n System.out.println(\"cellData = \" + cellData);\n\n // get all table values in a list\n List<Map<String, String>> dataList = qa3Sheet.getDataList();\n\n System.out.println(dataList.get(5).get(\"firstname\"));\n\n String[][] dataArray = qa3Sheet.getDataArray();\n\n System.out.println(dataArray[1][1]);\n\n }", "private static void addHeading(Sheet sheet) throws IOException {\r\n sheet.ensureRowCount(4);\r\n sheet.ensureColumnCount(10);\r\n sheet.getCellAt(\"A1\").setValue(\"income\");\r\n sheet.getCellAt(\"A2\").setValue(\"expense\");\r\n sheet.getCellAt(\"A3\").setValue(\"sum\");\r\n sheet.getCellAt(\"B1\").setValue(0.0);\r\n sheet.getCellAt(\"B2\").setValue(0.0);\r\n sheet.getCellAt(\"B3\").setValue(0.0);\r\n sheet.getCellAt(\"A4\").setValue(\"id\");\r\n sheet.getCellAt(\"B4\").setValue(\"amount\");\r\n sheet.getCellAt(\"C4\").setValue(\"date\");\r\n sheet.getCellAt(\"D4\").setValue(\"info\");\r\n }", "private Object[] buildEmptyRow() {\n Object[] rowData = RowDataUtil.allocateRowData( data.outputRowMeta.size() );\n\n return rowData;\n }", "private void createContent(WritableSheet sheet) throws WriteException,\n RowsExceededException {\n int row = 2;\n for (int i = 0; i < mExcelObject.getmCheckInUserNews().size(); i++) {\n // First column\n Post data = mExcelObject.getmCheckInUserNews().get(i);\n addNumber(sheet, 0, row, i+1 );\n // Second column\n addLabel(sheet, 1, row, data.author());\n addLabel(sheet, 2, row, data.title);\n addLabel(sheet, 3, row, data.body);\n addLabel(sheet, 4, row, data.downloadeUrl);\n row++;\n }\n\n }", "Row<T> createRow(final T element);", "RowValue createRowValue();", "private RowData() {\n initFields();\n }", "@Override\n public Worksheet createWorksheet() {\n return model;\n }", "public void creatTemplate(Sheet sheet, String title) {\n\n String label1 = \"TẬP ĐOÀN VIỄN THÔNG QUÂN ĐỘI\";\n String label2 = \"TỔNG CÔNG TY VIỄN THÔNG VIETTEL\";\n String label3 = \"CỘNG HOÀ XÃ HỘI CHỦ NGHĨA VIỆT NAM\";\n String label4 = \"Độc Lập - Tự Do - Hạnh Phúc\";\n\n createCellObject(sheet, 0, 0, label1, getCsSubTitle());\n createCellObject(sheet, 0, 1, label2, getCsCenterNoboderBoldweight());\n createCellObject(sheet, 5, 0, label3, getCsSubTitle());\n createCellObject(sheet, 5, 1, label4, getCsCenterNoboderBoldweight());\n createCellObject(sheet, 1, 4, title, getCsTitle());\n\n ExcelWriterUtils.mergeCells(sheet, 0, 0, 0, 2);\n ExcelWriterUtils.mergeCells(sheet, 1, 1, 0, 2);\n ExcelWriterUtils.mergeCells(sheet, 0, 0, 5, 8);\n ExcelWriterUtils.mergeCells(sheet, 1, 1, 5, 8);\n ExcelWriterUtils.mergeCells(sheet, 4, 4, 1, 6);\n\n setRowHeight(sheet, 4, 630);\n }", "public Row createRow(Sheet sheet, int r) {\n Row row = sheet.createRow(r);\n return row;\n }", "public static byte[] writeExcel(List<Object[]> objectList) throws IOException {\n\n String sheetName = \"Sheet1\";//name of sheet\n\n XSSFWorkbook wb = new XSSFWorkbook();\n XSSFSheet sheet = wb.createSheet(sheetName);\n Map<String, CellStyle> styles = createStyles(wb);\n int contRow = 0;\n for (Object[] obj : objectList) {\n XSSFRow row = sheet.createRow(contRow);\n int contCell = 0;\n\n for (Object s : obj) {\n\n XSSFCell cell = row.createCell(contCell);\n\n /*if (contCell == 0 && contRow > 0) {\n nomAct = s.toString();\n }*/\n \n /*if (contCell == 1 && contRow > 0) {\n descripAct = s.toString();\n }*/\n\n if (contRow == 0) {\n cell.setCellValue(s.toString());\n cell.setCellStyle(styles.get(\"header\"));\n } else {\n /*if (nomAct.equals(nomAnt) && contCell == 0) {\n cell.setCellValue(\"\");\n cell.setCellStyle(styles.get(\"cell_normal_rol\"));\n }\n if (descripAct.equals(descripAnt) && contCell == 1) {\n cell.setCellValue(\"\");\n cell.setCellStyle(styles.get(\"cell_normal_rol\"));\n } else {*/\n cell.setCellValue(s.toString());\n /* if (contCell == 0 || contCell==1) {\n cell.setCellStyle(styles.get(\"cell_normal_rol\"));\n nomAnt = nomAct;\n descripAnt = descripAct;\n } else {\n cell.setCellStyle(styles.get(\"cell_normal\"));\n }*/\n //}\n }\n\n contCell++;\n }\n contRow++;\n }\n\n/*\n sheet.addMergedRegion(new CellRangeAddress(1, contRow - 1, 0, 0));\n sheet.addMergedRegion(new CellRangeAddress(1, contRow - 1, 1, 1));*/\n\n\n /*//iterating r number of rows\n for (int r = 0; r < 5; r++) {\n XSSFRow row = sheet.createRow(r);\n\n //iterating c number of columns\n for (int c = 0; c < 5; c++) {\n for (int c = 0; c < 5; c++) {\n XSSFCell cell = row.createCell(c);\n\n cell.setCellValue(\"Cell \" + r + \" \" + c);\n }\n }*/\n\n // FileOutputStream fileOut = new FileOutputStream(excelFileName);\n ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n wb.write(byteArrayOutputStream);\n return byteArrayOutputStream.toByteArray();\n\n //write this workbook to an Outputstream.\n/* wb.write(fileOut);\n fileOut.flush();\n fileOut.close();*/\n }", "private int createRowHeader(HSSFSheet sheet, int i) {\r\n\r\n\t\ti++;\r\n\t\tHSSFRow row = sheet.createRow((short) i);\r\n\r\n\t\trow.createCell((short) 0).setCellValue(\"\");\r\n\t\trow.createCell((short) 1).setCellValue(\"Process\");\r\n\t\trow.createCell((short) 2).setCellValue(\"Date last ran\");\r\n\t\trow.createCell((short) 3).setCellValue(\"\");\r\n\t\trow.createCell((short) 4).setCellValue(\"Sent\");\r\n\t\trow.createCell((short) 5).setCellValue(\"Amount\");\r\n\t\ti++;\r\n\r\n\t\trow = sheet.createRow((short) i);\r\n\t\trow.createCell((short) 0).setCellValue(\"\");\r\n\t\ti++;\r\n\t\treturn i;\r\n\t}", "public void buildDeacessionRows(XSSFWorkbook xssfWorkbook,XSSFSheet xssfSheet, XSSFCellStyle dateCellStyle,int rowNum,String barcode){\n List<ItemEntity> itemEntityList = itemDetailsRepository.findByBarcode(barcode);\n CellStyle cellStyle = xssfWorkbook.createCellStyle();\n cellStyle.setAlignment(HorizontalAlignment.LEFT);\n if(itemEntityList != null){\n for (ItemEntity itemEntity : itemEntityList) {\n XSSFRow row = xssfSheet.createRow(rowNum);\n createCell(xssfWorkbook, row,cellStyle, itemEntity.getBarcode(), 1);\n createCell(xssfWorkbook, row,cellStyle, itemEntity.getCustomerCode(), 2);\n createCell(xssfWorkbook, row,cellStyle, itemEntity.getInstitutionEntity().getInstitutionCode(), 8);\n createCell(xssfWorkbook, row,cellStyle, itemEntity.getItemStatusEntity().getStatusCode(),10);\n getCreatedAndLastUpdatedDate(dateCellStyle, itemEntity.getCreatedDate(),itemEntity.getLastUpdatedDate(), row);\n }\n }\n\n }", "UnpivotTable createUnpivotTable();", "AttributeCell createAttributeCell();", "void create(DataTableDef def) throws IOException;", "private void createRow( String name )\n {\n logger.log(Level.FINE, \"Creating Row\");\n\n JLabel label = new JLabel( name, SwingConstants.RIGHT );\n if (!isHeadless)\n label.setFont(new Font(\"Monospaced\", Font.PLAIN, 15));\n label.setHorizontalAlignment(SwingConstants.CENTER);\n label.setBorder(BorderFactory.createMatteBorder(0, 0, 1, 0, Color.DARK_GRAY));\n if (name.equals(PROFIT_LOSS))\n bottomPanel.add(label, BorderLayout.NORTH);\n else\n leftPanel.add(label);\n\n JTextField field = new JTextField( 30 );\n field.setEditable(false);\n if (!isHeadless)\n field.setFont(new Font(\"Serif\", Font.BOLD, 30));\n field.setBorder(BorderFactory.createMatteBorder(0, 0, 1, 0, Color.DARK_GRAY));\n field.setHorizontalAlignment(SwingConstants.CENTER);\n if (name.equals(PROFIT_LOSS)) {\n if (!isHeadless)\n field.setFont(new Font(\"Monospaced\", Font.BOLD, 55));\n bottomPanel.add(field, BorderLayout.CENTER);\n } else\n rightPanel.add(field);\n\n fields.put(name, field);\n\n logger.log(Level.FINE, \"Created Row\");\n\n }", "public void readValuesfromtableWithoutHeadings()\n\t {\n\t\t open();\n\t\t List<Map<Object, String>> tab1= withColumns(\"Last Name \" ,\"First Name\",\"Email\", \"Due\" , \"Web Site\" , \"My Test\") \n\t\t\t\t .readRowsFrom(table);\n\t\t System.out.println(tab1);\n\t }", "public void getTableData() {\n MSApptIDCol.setCellValueFactory(new PropertyValueFactory<Appointment, Integer>(\"appointmentID\"));\n MSCustIDCol.setCellValueFactory(new PropertyValueFactory<Appointment, Integer>(\"customerID\"));\n MSTitleCol.setCellValueFactory(new PropertyValueFactory<Appointment, String>(\"appointmentTitle\"));\n MSDescriptionCol.setCellValueFactory(new PropertyValueFactory<Appointment, String>(\"description\"));\n MSContactCol.setCellValueFactory(new PropertyValueFactory<Appointment, String>(\"contactName\"));\n MSLocationCol.setCellValueFactory(new PropertyValueFactory<Appointment, String>(\"location\"));\n MSTypeCol.setCellValueFactory(new PropertyValueFactory<Appointment, String>(\"appointmentType\"));\n MSStartTimeCol.setCellValueFactory(new PropertyValueFactory<Appointment, LocalDateTime>(\"appointmentStart\"));\n MSEndTimeCol.setCellValueFactory(new PropertyValueFactory<Appointment, LocalDateTime>(\"appointmentEnd\"));\n }", "public synchronized ExcelSimpleWriter<?> addData(ExportFunction<Object[]> query) {\n AbstractExcelGenerateTask<Object[]> generateTask = new AbstractExcelGenerateTask<Object[]>(query) {\n @Override\n public void parse(PageResult<Object[]> pageResult) {\n\n List<Object[]> result = pageResult.getData();\n int index = pageResult.getPage();\n if (log.isDebugEnabled()) {\n log.debug(\"parse data of index:\" + index);\n }\n if (indexParse.get() == index) {\n try {\n lock.lock();\n indexParse.incrementAndGet();\n if (log.isDebugEnabled()) {\n log.debug(\"Write data of index:\" + index);\n }\n write(result);\n } catch (Exception e) {\n throw new RuntimeException(e);\n } finally {\n lock.unlock();\n }\n } else {\n peerDataMap.put(index, result);\n if (peerDataMap.containsKey(indexParse.get() + 1)) {\n try {\n lock.lock();\n if (log.isDebugEnabled()) {\n log.debug(\"Write data of index:\" + indexParse.get()+1);\n }\n write(peerDataMap.remove(indexParse.incrementAndGet()));\n } catch (Exception e) {\n throw new RuntimeException(e);\n } finally {\n lock.unlock();\n }\n }\n }\n }\n };\n generateTask.producers(TaraExcelConfig.CONFIG.getCsvProducerThread());\n generateTask.consumers(2);\n generateTask.start();\n return this;\n }", "private MyTable generateTable()\n\t{\n\t\t//this creates the column headers for the table\n\t\tString[] titles = new String[] {\"Name\"};\n\t\t//fields will store all of the entries in the database for the GUI\n\t\tArrayList<String[]> fields = new ArrayList<String[]>();\n\t\tfor (food foodStuff: items) //for each element in items do the following\n\t\t{\n\t\t\t//creates a single row of the table\n\t\t\tString[] currentRow = new String[1]; //creates an array for this row\n\t\t\tcurrentRow[1] = foodStuff.getName(); //sets this row's name\n\t\t\tfields.add(currentRow); //adds this row to the fields ArrayList\n\t\t}\n\t\t//builds a table with titles and a downgraded fields array\n\t\tMyTable builtTable = new MyTable(fields.toArray(new String[0][1]), titles);\n\t\treturn builtTable; // return\n\t}", "public HashMap<String, String> readTestData() {\n\t\trequiredRow = getRequiredRow();\n\t\tif(requiredRow!=0) {\n\t\t\tfor(int i = 0 ; i < sheet.getRow(requiredRow).getLastCellNum(); i++) {\n\t\t\t\tif(sheet.getRow(requiredRow).getCell(i)==null)\n\t\t\t\t\tsheet.getRow(requiredRow).createCell(i).setCellType(CellType.STRING);\n\t\t\t\ttestData.put(sheet.getRow(0).getCell(i).toString(),sheet.getRow(requiredRow).getCell(i).toString());\n\t\t\t}\n\t\t}\n\t\treturn testData;\n\t}", "DataElement createDataElement();", "public Row(int width) {\n data = new Object[width];\n }", "private void addWorkflowSummary(Workbook workBook, Sheet sheet, Job job, Workflow workflow,\n List<DetailedData> detailedData, IntHolder row) throws Exception\n {\n int col = 0;\n Row curRow = getRow(sheet, row.value);\n\n LinkedHashMap<String, ArrayList<String>> hypsegs = new LinkedHashMap<String, ArrayList<String>>();\n LinkedHashMap<String, ArrayList<String>> refsegs = new LinkedHashMap<String, ArrayList<String>>();\n\n // Company\n Cell cell_A = getCell(curRow, col);\n cell_A.setCellValue(getCompanyName(job.getCompanyId()));\n cell_A.setCellStyle(m_style.getContentStyle());\n col++;\n\n // Job ID\n Cell cell_B = getCell(curRow, col);\n cell_B.setCellValue(job.getJobId());\n cell_B.setCellStyle(m_style.getContentStyle());\n col++;\n\n // Job Name\n Cell cell_C = getCell(curRow, col);\n cell_C.setCellValue(job.getJobName());\n cell_C.setCellStyle(m_style.getContentStyle());\n col++;\n\n // Language\n Cell cell_D = getCell(curRow, col);\n cell_D.setCellValue(workflow.getTargetLocale().toString());\n cell_D.setCellStyle(m_style.getContentStyle());\n col++;\n\n // Workflow State\n Cell cell_E = getCell(curRow, col);\n cell_E.setCellValue(workflow.getState());\n cell_E.setCellStyle(m_style.getContentStyle());\n col++;\n\n // MT Word Count\n Cell cell_F = getCell(curRow, col);\n cell_F.setCellValue(workflow.getMtTotalWordCount());\n cell_F.setCellStyle(m_style.getContentStyle());\n col++;\n\n // Perplexity passed word count\n if (usePerplexity)\n {\n Cell cell = getCell(curRow, col);\n cell.setCellValue(workflow.getPerplexityWordCount());\n cell.setCellStyle(m_style.getContentStyle());\n col++;\n }\n\n // Total Word Count\n Cell cell_G = getCell(curRow, col);\n cell_G.setCellValue(workflow.getTotalWordCount());\n cell_G.setCellStyle(m_style.getContentStyle());\n col++;\n\n // Average Edit Distance/char\n int totalLevDistance = 0;\n int totalTargetLength = 0;\n String mtEngineName = null;\n for (DetailedData data : detailedData)\n {\n totalLevDistance += data.getLevenshteinDistance();\n totalTargetLength += data.getTarget().length();\n if (mtEngineName == null)\n {\n mtEngineName = data.getMtEngineName();\n if (mtEngineName != null && mtEngineName.toLowerCase().endsWith(\"_mt\"))\n {\n mtEngineName = mtEngineName.substring(0, mtEngineName.length() - 3);\n }\n }\n\n ArrayList<String> hyps = new ArrayList<String>();\n hyps.add(data.getMt());\n hypsegs.put(String.valueOf(data.getTuId()), hyps);\n\n ArrayList<String> refs = new ArrayList<String>();\n refs.add(data.getTarget());\n refsegs.put(String.valueOf(data.getTuId()), refs);\n }\n float averageEditDistance = ((float) totalLevDistance / (float) totalTargetLength * 100);\n Cell cell_H = getCell(curRow, col);\n cell_H.setCellValue(Double.valueOf(this.get2DigitFormater().format(averageEditDistance)));\n cell_H.setCellStyle(m_style.getContentStyle());\n col++;\n\n // Translation Error Rate (TER)\n Cell cell_I = getCell(curRow, col);\n cell_I.setCellValue(calculateTER(hypsegs, refsegs));\n cell_I.setCellStyle(m_style.getContentStyle());\n col++;\n\n // Engine Name\n Cell cell_J = getCell(curRow, col);\n cell_J.setCellValue(mtEngineName);\n cell_J.setCellStyle(m_style.getContentStyle());\n col++;\n\n row.inc();\n }", "@Before\n\tpublic void createPOJO() {\n\t\tpojo0 = new Pojo();\n\t\tpojo0.setId(1);\n\t\tpojo0.setName(\"Geddy Lee\");\n\t\tpojo0.setFunction(\"Bass\");\n\t\t\n\t\t// creating others simple objects and an array for the ultimate test\n\t\tpojo1 = new Pojo();\n\t\tpojo1.setId(2);\n\t\tpojo1.setName(\"Alex Lifeson\");\n\t\tpojo1.setFunction(\"Guitar\");\n\n\t\tpojo2 = new Pojo();\n\t\tpojo2.setId(3);\n\t\tpojo2.setName(\"Neal Peart\");\n\t\tpojo2.setFunction(\"Drums\");\n\t\t\n\t\tpojos = new Pojo[3];\n\t\tpojos[0] = pojo0;\n\t\tpojos[1] = pojo1;\n\t\tpojos[2] = pojo2;\n\t\t\n\t\t// tricky list\n\t\ttricky = new Pojo[3];\n\t\ttricky[0] = pojo0;\n\t\ttricky[1] = null;\n\t\ttricky[2] = pojo2;\n\t\t\n\t\t// file name for output\n\t\tfileName = \"c:\\\\test.csv\";\n\n\t}", "public static int create(EcoSystem system){\n \n \n XSSFWorkbook workbook = new XSSFWorkbook();\n XSSFSheet sheet = workbook.createSheet(\"Customer Details\");\n\n //Custom font style for header\n CellStyle cellStyle = sheet.getWorkbook().createCellStyle();\n Font font = sheet.getWorkbook().createFont();\n font.setBold(true);\n cellStyle.setFont(font);\n \n int rowCount = 0;\n int columnCount1 = 0;\n \n //Creating header row\n \n String s[] = {\"CUSTOMER ID\",\"CUSTOMER NAME\",\"CONTACT NO.\",\"EMAIL ID\",\"USAGE(Gallons)\",\"BILLING DATE\",\"TOTAL BILL($)\"};\n Row row1 = sheet.createRow(++rowCount);\n for(String s1 : s){\n Cell header = row1.createCell(++columnCount1);\n header.setCellValue(s1);\n header.setCellStyle(cellStyle);\n }\n \n \n \n for(Network network : system.getNetworkList()){\n for(Enterprise enterprise : network.getEnterpriseDirectory().getEnterpriseList()){\n if(enterprise instanceof WaterEnterprise){\n for(Organization organization : enterprise.getOrganizationDirectory().getOrganizationList()){\n if(organization instanceof CustomerOrganization){\n for(Employee employee : organization.getEmployeeDirectory().getEmployeeList()){\n Customer customer = (Customer) employee;\n Row row = sheet.createRow(++rowCount);\n int columnCount = 0;\n for(int i = 0 ; i<7 ; i++ ){\n Cell cell = row.createCell(++columnCount);\n if(i==0){\n cell.setCellValue(customer.getId());\n }\n else if(i == 1){\n cell.setCellValue(customer.getName());\n }\n else if(i == 2){\n cell.setCellValue(customer.getContactNo());\n }\n else if(i == 3){\n cell.setCellValue(customer.getEmailId());\n }\n else if(i == 4){\n cell.setCellValue(customer.getTotalUsageVolume());\n }\n else if(i == 5){\n if(customer.getBillingDate() != null)\n cell.setCellValue(String.valueOf(customer.getBillingDate()));\n else\n cell.setCellValue(\"Bill Not yet available\");\n }\n else if(i == 6){\n if(customer.getTotalBill() != 0)\n cell.setCellValue(customer.getTotalBill());\n else\n cell.setCellValue(\"Bill Not yet available\");\n }\n }\n }\n }\n }\n }\n }\n }\n \n \n try (FileOutputStream outputStream = new FileOutputStream(\"Customer_details.xlsx\")) {\n workbook.write(outputStream);\n } catch (FileNotFoundException ex) {\n JOptionPane.showMessageDialog(null, \"File not found\");\n return 0;\n } catch (IOException ex) {\n JOptionPane.showMessageDialog(null, \"IOException\");\n return 0;\n }\n return 1;\n }", "public static Row beanToRow(Object bean) throws Exception {\n Row row = new Row();\n BeanInfo beaninfo = Introspector.getBeanInfo(bean.getClass());\n PropertyDescriptor[] descriptors = beaninfo.getPropertyDescriptors();\n if (descriptors != null) {\n for (PropertyDescriptor descriptor : descriptors) {\n Cell cell = new Cell();\n cell.setName(descriptor.getDisplayName());\n // cell.setValue(descriptor.getValue());\n row.getCells().add(cell);\n }\n }\n return row;\n }", "GroupCell createGroupCell();", "public void createXLS(String fileName){\r\n FileOutputStream fo = null;\r\n int totalColumns;\r\n try {\r\n WorkBookHandle h=new WorkBookHandle();\r\n WorkSheetHandle sheet1 = h.getWorkSheet(\"Sheet1\");\r\n \r\n int currentRow=1;\r\n char currentColumn;\r\n int underSessions;\r\n for(StudentResult i:(List<StudentResult>)results){\r\n if(results.indexOf(i)==0){\r\n sheet1.add(\"Register No.\", \"A1\");\r\n sheet1.add(\"Name of Student\", \"B1\");\r\n currentColumn='C';\r\n for(ExamResult j:i.subjectResults){\r\n sheet1.add(j.subCode, String.valueOf(currentColumn)+String.valueOf(currentRow));\r\n currentColumn++;\r\n }\r\n sheet1.add(\"SGPA\", String.valueOf(currentColumn)+String.valueOf(currentRow));\r\n currentColumn++;\r\n sheet1.add(\"No. of Under-sessions\", String.valueOf(currentColumn)+String.valueOf(currentRow));\r\n totalColumns=currentColumn;\r\n }\r\n \r\n currentRow++;\r\n sheet1.add(i.regNo,\"A\"+String.valueOf(currentRow));\r\n sheet1.add(i.studentName,\"B\"+String.valueOf(currentRow));\r\n currentColumn='C';\r\n underSessions=0;\r\n for(ExamResult j:i.subjectResults){\r\n sheet1.add(j.grade, String.valueOf(currentColumn)+String.valueOf(currentRow));\r\n if(MainFrame1.UNDER_SESION_GRADES.contains(j.grade)){\r\n underSessions++;\r\n } \r\n currentColumn++;\r\n }\r\n sheet1.add(i.averageGradePoint, String.valueOf(currentColumn)+String.valueOf(currentRow));\r\n currentColumn++;\r\n sheet1.add(underSessions, String.valueOf(currentColumn)+String.valueOf(currentRow)); \r\n }\r\n fo = new FileOutputStream(\"Result.xls\");\r\n h.writeBytes(fo);\r\n fo.close();\r\n } catch (IOException ex) {\r\n Logger.getLogger(SpreadSheetCreator.class.getName()).log(Level.SEVERE, null, ex);\r\n } catch (WorkSheetNotFoundException ex) {\r\n Logger.getLogger(SpreadSheetCreator.class.getName()).log(Level.SEVERE, null, ex);\r\n } finally {\r\n try {\r\n fo.close();\r\n } catch (IOException ex) {\r\n Logger.getLogger(SpreadSheetCreator.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n }", "public abstract List<V> makeRowData();", "private void initTable() {\n// String col[] = {\"Seq#\",\"PCode\",\"BCode\",\"ProductName\",\"PurPCS\",\"PurCTN\",\"PurQTY\",\"PurDMG\",\"PurRate\",\"GrossAmount\",\"Disc%\",\"DiscRS\",\"Tax%\",\"TaxRS\",\"TOPcs\",\"UCHRS\",\"SCHRS\",\"FMR%\",\"FMRRS\",\"TaxRS\",\"Expiry\",\"Batch\",\"NetAmount\"};\n String col[] = {\"Seq#\",\"PCode\",\"BCode\"};\n int k=0; \n Object row[][] = new Object[][] { { \"1\", new ButtonTextFieldCellTest.ButtonTextFieldCell(), new ButtonTextFieldCellTest.ButtonTextFieldCell() },\n { \"2\", new ButtonTextFieldCellTest.ButtonTextFieldCell(), new ButtonTextFieldCellTest.ButtonTextFieldCell() },\n { \"3\", new ButtonTextFieldCellTest.ButtonTextFieldCell(), new ButtonTextFieldCellTest.ButtonTextFieldCell() },\n { \"4\", new ButtonTextFieldCellTest.ButtonTextFieldCell(), new ButtonTextFieldCellTest.ButtonTextFieldCell() } };\n// String row[][] =new String[3][23];\n /*\n for(int i = 0; i < 3; i++){\n for(int j = 0; j < 23; j++){\n row[i][j]=\"\"+k++;\n }\n }\n \n */\n// row=new String[][]{{\"Seq#\",\"PCode\",\"BCode\",\"ProductName\",\"PurPCS\",\"PurCTN\",\"PurQTY\",\"PurDMG\",\"PurRate\",\"GrossAmount\",\"Disc%\",\"DiscRS\",\"Tax%\",\"TaxRS\",\"TOPcs\",\"UCHRS\",\"SCHRS\",\"FMR%\",\"FMRRS\",\"TaxRS\",\"Expiry\",\"Batch\",\"NetAmount\"},\n// {\"1Seq#\",\"1PCode\",\"1BCode\",\"ProductName\",\"PurPCS\",\"PurCTN\",\"PurQTY\",\"PurDMG\",\"PurRate\",\"GrossAmount\",\"Disc%\",\"DiscRS\",\"Tax%\",\"TaxRS\",\"TOPcs\",\"UCHRS\",\"SCHRS\",\"FMR%\",\"FMRRS\",\"TaxRS\",\"Expiry\",\"Batch\",\"NetAmount\"},\n// {\"2Seq#\",\"2PCode\",\"2BCode\",\"ProductName\",\"PurPCS\",\"PurCTN\",\"PurQTY\",\"PurDMG\",\"PurRate\",\"GrossAmount\",\"Disc%\",\"DiscRS\",\"Tax%\",\"TaxRS\",\"TOPcs\",\"UCHRS\",\"SCHRS\",\"FMR%\",\"FMRRS\",\"TaxRS\",\"Expiry\",\"Batch\",\"NetAmount\"}};\n model = new DefaultTableModel(row,col);\n jTable1=new JTable(model);\n jTable1.setRowHeight(30);\n jTable1.setRowHeight(0,30);\n jTable1.setPreferredSize(new Dimension(purchaseScrollPane.getWidth(), 35));\n purchaseScrollPane.setViewportView(jTable1);\n }", "public void parsingExcel() {\n theresFile = new File(pathTo).exists();\n if (theresFile) {\n try {\n FileInputStream myxls = new FileInputStream(pathTo);\n Workbook workbook = WorkbookFactory.create(myxls);\n //getting the sheet at index zero\n Sheet sheet = workbook.getSheetAt(0);\n int lastRow = sheet.getLastRowNum();\n System.out.println(\"currentID: \" + currentID);\n Row row2 = sheet.createRow(lastRow + 1);\n Data data = new Data(currentID++, jTextField1.getText(), jTextField2.getText(),\n jTextFieldModel.getText(), jTextFieldSerialN.getText(),\n Integer.parseInt(jTextFieldComments.getText()), jTextAreaDescription.getText());\n\n for (int i = 0; i < 7; i++) {\n Cell cell4 = row2.createCell(i);\n switch (i) {\n case 0:\n cell4.setCellValue(data.getID());\n break;\n case 1:\n cell4.setCellValue((String) data.getName());\n break;\n case 2:\n cell4.setCellValue((String) data.getDevice());\n break;\n case 3:\n cell4.setCellValue((String) data.getDeviceModel());\n break;\n case 4:\n cell4.setCellValue((String) data.getSerialNumber());\n break;\n case 5:\n cell4.setCellValue((int) data.getOptional());\n break;\n case 6:\n cell4.setCellValue((String) data.getDecription());\n break;\n }\n\n }\n FileOutputStream outputStream = new FileOutputStream(pathTo);\n workbook.write(outputStream);\n workbook.close();\n } catch (IOException ex) {\n Logger.getLogger(MainWindow.class.getName()).log(Level.SEVERE, null, ex);\n } catch (EncryptedDocumentException ex) {\n Logger.getLogger(MainWindow.class.getName()).log(Level.SEVERE, null, ex);\n }\n } else {\n if (jTextFieldComments.getText().equals(\"\") || jTextFieldComments.getText().equals(null)) {\n JOptionPane.showMessageDialog(null, \"Morate uneti količinu\");\n } else {\n try {\n Data data = new Data(1, jTextField1.getText(), jTextField2.getText(),\n jTextFieldModel.getText(), jTextFieldSerialN.getText(),\n Integer.parseInt(jTextFieldComments.getText()), jTextAreaDescription.getText());\n writtingExcelFile(makingExcelWorkbook(data));\n } catch (FileNotFoundException ex) {\n Logger.getLogger(MainWindow.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n }\n\n// try {\n// FileInputStream myxls = new FileInputStream(pathTo);\n// HSSFWorkbook studentsSheet = new HSSFWorkbook(myxls);\n// HSSFSheet worksheet = studentsSheet.getSheetAt(0);\n// int lastRow = worksheet.getLastRowNum();\n// System.out.println(lastRow);\n// Row row = worksheet.createRow(++lastRow);\n// row.createCell(1).setCellValue(\"Dr.Hola\");\n// myxls.close();\n// FileOutputStream output_file =new FileOutputStream(new File(\"poi-testt.xls\")); \n// //write changes\n// studentsSheet.write(output_file);\n// output_file.close();\n// System.out.println(\" is successfully written\");\n// } catch (Exception e) {\n// }\n }", "public static void main(String args[]) throws WorkSheetNotFoundException, CellNotFoundException, FileNotFoundException, IOException{\r\n /*\r\n //Test 1 - Creating empty XLS\r\n FileOutputStream fo=new FileOutputStream(\"Result.xls\");\r\n WorkBookHandle h=new WorkBookHandle();\r\n WorkSheetHandle y = h.getWorkSheet(\"Sheet1\");\r\n y.add(\"aa\", \"A1\");\r\n h.writeBytes(fo);\r\n fo.close();\r\n */ \r\n \r\n }", "public Object [][] getTableData(int rowNumber, String title, String author, URL hyperLink, int year, String abstracts, String publisher, boolean isMark, boolean duplicate, int idPub){\r\n\t\t\r\n\t\tObject [][] data = {addTableData(rowNumber, title, author, hyperLink, year, abstracts, publisher, isMark, duplicate, idPub)};\r\n\t\t\r\n\t\treturn data;\r\n\t\t\r\n\t}", "public DataCell() {\n super();\n }", "protected abstract D createData();", "public static void main(String[] args) throws FileNotFoundException,IOException, JXLException {\nFileOutputStream fo=new FileOutputStream(\"./testdata/testoutput.xls\");\r\nWritableWorkbook ww=Workbook.createWorkbook(fo);\r\nWritableSheet ws=ww.createSheet(\"testing\",0);\r\n//to move data into specific loationa using labels\r\nLabel a = new Label(0,0,\"Username\");//now the label store in ram loaction\r\n// to move data into specific location\r\nLabel b = new Label(1,0,\"password\");\r\nws.addCell(b);\r\n\r\nws.addCell(a);\r\nww.write();\r\nww.close();\r\n\t}", "private void insertProjectTable() {\n name.setCellValueFactory(new PropertyValueFactory<>(\"nameId\"));\n dateStart.setCellValueFactory(new PropertyValueFactory<>(\"dateStart\"));\n dateFinish.setCellValueFactory(new PropertyValueFactory<>(\"dateFinish\"));\n place.setCellValueFactory(new PropertyValueFactory<>(\"place\"));\n car.setCellValueFactory(new PropertyValueFactory<>(\"cars\"));\n instructors.setCellValueFactory(new PropertyValueFactory<>(\"instructors\"));\n description.setCellValueFactory(new PropertyValueFactory<>(\"description\"));\n author.setCellValueFactory(new PropertyValueFactory<>(\"author\"));\n }", "ISheet addSheet();", "public ByteArrayInputStream ClassificationDataToExcel(ArrayList<MaterialData> material_datas) throws IOException {\n\n\t\tMaterialData currentData = new MaterialData();\n\t\tMaterialData previousData = new MaterialData();\n\t\tboolean firstRow = true;\n\t\tint rowIdx = 0;\n\n\t\ttry (Workbook workbook = new XSSFWorkbook(); ByteArrayOutputStream out = new ByteArrayOutputStream();) {\n\t\t\tSheet sheet = workbook.createSheet(\"Result\");\n\n\t\t\tfor (int i = 0; i < material_datas.size(); i++) {\n\n\t\t\t\tMaterialData materialData = material_datas.get(i);\n\t\t\t\tcurrentData = materialData;\n\n//\t\t\t\tSystem.out.println(\" previous data\" + previousData.getMaterialId());\n//\t\t\t\tSystem.out.println(\" current data\" + currentData.getMaterialId());\n\n\t\t\t\t/**\n\t\t\t\t * 1. Check if currentData is not equal to previousData true -> 1.1.a Check if\n\t\t\t\t * the read row is first ->true --> 1.a.i Build the Header ->false --> 1.a.ii\n\t\t\t\t * Build the Section 3 (previous data)\n\t\t\t\t */\n\n\t\t\t\tif (!(currentData.getMaterialId()).equals(previousData.getMaterialId())) {\n\t\t\t\t\tif (firstRow) {\n\t\t\t\t\t\tfirstRow = false;\n//\t\t\t\t\t\tSystem.out.println(\"Building header\");\n\t\t\t\t\t\tArrayList<String> headerResultRowData = new ArrayList<String>();\n\t\t\t\t\t\theaderResultRowData = buildHeader.header();\n\t\t\t\t\t\tRow row = sheet.createRow(rowIdx++);\n\t\t\t\t\t\tint colIdx = 0;\n\t\t\t\t\t\tfor (String rowData : headerResultRowData) {\n\t\t\t\t\t\t\trow.createCell(colIdx++).setCellValue(rowData);\n\t\t\t\t\t\t}\n\t\t\t\t\t\theaderResultRowData.clear();\n\t\t\t\t\t}\n\n\t\t\t\t\telse {\n//\t\t\t\t\t\tSystem.out.println(\"Building section 3\");\n\t\t\t\t\t\tArrayList<ArrayList<String>> section3Data = new ArrayList<ArrayList<String>>();\n\t\t\t\t\t\tsection3Data = buildSection3.section3(previousData);\n\t\t\t\t\t\tfor (ArrayList<String> resultRowData : section3Data) {\n\t\t\t\t\t\t\tRow row = sheet.createRow(rowIdx++);\n\t\t\t\t\t\t\tint colIdx = 0;\n\t\t\t\t\t\t\tfor (String rowData : resultRowData) {\n\t\t\t\t\t\t\t\trow.createCell(colIdx++).setCellValue(rowData);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tsection3Data.clear();\n\t\t\t\t\t\t\n//\t\t\t\t\t\tSystem.out.println(\"Building header\");\n\t\t\t\t\t\tArrayList<String> headerResultRowData = new ArrayList<String>();\n\t\t\t\t\t\theaderResultRowData = buildHeader.header();\n\t\t\t\t\t\tRow row = sheet.createRow(rowIdx++);\n\t\t\t\t\t\tint colIdx = 0;\n\t\t\t\t\t\tfor (String rowData : headerResultRowData) {\n\t\t\t\t\t\t\trow.createCell(colIdx++).setCellValue(rowData);\n\t\t\t\t\t\t}\n\t\t\t\t\t\theaderResultRowData.clear();\n\t\t\t\t\t}\n\n\t\t\t\t\t/**\n\t\t\t\t\t * 1.1.b Build the Section 1 (current data) \n\t\t\t\t\t * 1.1.c Build the Section 2 (current data)\n\t\t\t\t\t */\n\n//\t\t\t\t\tSystem.out.println(\"Building section 1\");\n\t\t\t\t\tArrayList<ArrayList<String>> section1Data = new ArrayList<ArrayList<String>>();\n\t\t\t\t\tsection1Data = buildSection1.section1(currentData);\n\t\t\t\t\tfor (ArrayList<String> resultRowData : section1Data) {\n\t\t\t\t\t\tRow row = sheet.createRow(rowIdx++);\n\t\t\t\t\t\tint colIdx = 0;\n\n\t\t\t\t\t\tfor (String rowData : resultRowData) {\n\t\t\t\t\t\t\trow.createCell(colIdx++).setCellValue(rowData);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tsection1Data.clear();\n\n//\t\t\t\t\tSystem.out.println(\"Building section 2\");\n\t\t\t\t\tArrayList<ArrayList<String>> section2Data = new ArrayList<ArrayList<String>>();\n\t\t\t\t\tsection2Data = buildSection2.section2(currentData);\n\t\t\t\t\tfor (ArrayList<String> resultRowData : section2Data) {\n\t\t\t\t\t\tRow row = sheet.createRow(rowIdx++);\n\t\t\t\t\t\tint colIdx = 0;\n\t\t\t\t\t\tfor (String rowData : resultRowData) {\n\t\t\t\t\t\t\trow.createCell(colIdx++).setCellValue(rowData);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tsection2Data.clear();\n\n\t\t\t\t}\n\n\t\t\t\t/**\n\t\t\t\t * 1. Check if currentData is not equal to previousData false -> 1.2.a Build\n\t\t\t\t * Section 2(current data)\n\t\t\t\t */\n\n\t\t\t\telse {\n\n//\t\t\t\t\tSystem.out.println(\"Building section 2\");\n\t\t\t\t\tArrayList<ArrayList<String>> section2Data = new ArrayList<ArrayList<String>>();\n\t\t\t\t\tsection2Data = buildSection2.section2(currentData);\n\t\t\t\t\tfor (ArrayList<String> resultRowData : section2Data) {\n\t\t\t\t\t\tRow row = sheet.createRow(rowIdx++);\n\t\t\t\t\t\tint colIdx = 0;\n\t\t\t\t\t\tfor (String rowData : resultRowData) {\n\t\t\t\t\t\t\trow.createCell(colIdx++).setCellValue(rowData);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tsection2Data.clear();\n\t\t\t\t}\n\n\t\t\t\t/**\n\t\t\t\t * 2. Set previous data = current data\n\t\t\t\t */\n\t\t\t\tpreviousData = currentData;\n\n\t\t\t}\n\n\t\t\t/**\n\t\t\t * 3. If EOF -> Build Section 3 (previous data) [last element]\n\t\t\t */\n\n//\t\t\tSystem.out.println(\"Building section 3\");\n\t\t\tArrayList<ArrayList<String>> section3Data = new ArrayList<ArrayList<String>>();\n\t\t\tsection3Data = buildSection3.section3(previousData);\n\t\t\tfor (ArrayList<String> resultRowData : section3Data) {\n\t\t\t\tRow row = sheet.createRow(rowIdx++);\n\t\t\t\tint colIdx = 0;\n\t\t\t\tfor (String rowData : resultRowData) {\n\t\t\t\t\trow.createCell(colIdx++).setCellValue(rowData);\n\t\t\t\t}\n\t\t\t}\n\t\t\tsection3Data.clear();\n\n\t\t\tworkbook.write(out);\n\t\t\treturn new ByteArrayInputStream(out.toByteArray());\n\t\t}\n\t}", "public LazyHBaseRow(LazySimpleStructObjectInspector oi) {\n super(oi);\n }", "private void getExcelData21ZV() throws Exception {\n\t\tlistHeader = new ArrayList<ExcelPromotionHeader>();\n\t\tlistDetail = new ArrayList<ExcelPromotionDetail>();\n\t\tlistUnit = new ArrayList<ExcelPromotionUnit>();\n\t\tmapHeader = new HashMap<String, ExcelPromotionHeader>();\n\t\tmapUnit = new HashMap<String, ExcelPromotionUnit>();\n\t\tmapErrorPromotion = new HashMap<String, String>();\n\t\tmapType = new HashMap<String, String>();\n\t\tmapPromotionMua = new HashMap<String, ListGroupMua>();\n\t\tmapPromotionKM = new HashMap<String, ListGroupKM>();\n\t\tmapMuaKM = new MapMuaKM();\n\t\tmapPromotionTypeCheck = new HashMap<String, String>();\n\t\tlstHeaderError = new ArrayList<CellBean>();\n\t\tlstDetailError = new ArrayList<CellBean>();\n\t\tlistUnitError = new ArrayList<CellBean>();\n\t\tMap<String, Integer> mapCheckHeaderDuplicate = new HashMap<String, Integer>();\n\t\tMap<String, String> mapCheckType = apParamMgr.getMapPromotionType();\n\t\tWorkbook myWorkBook = null;\n\t\tInputStream is = new FileInputStream(excelFile);\n\t\tint MAX_ARRAY = 10000;\n\t\tfinal int NUM_SHEETS = 2;\n\n\t\tif (!is.markSupported()) {\n\t\t\tis = new PushbackInputStream(is, 8);\n\t\t}\n\t\tif (POIFSFileSystem.hasPOIFSHeader(is)) {\n\t\t\tmyWorkBook = new HSSFWorkbook(is);\n\t\t} else if (POIXMLDocument.hasOOXMLHeader(is)) {\n\t\t\tmyWorkBook = new XSSFWorkbook(OPCPackage.open(is));\n\t\t}\n\t\tif (myWorkBook != null) {\n\t\t\tif (myWorkBook.getNumberOfSheets() < NUM_SHEETS) {\n\t\t\t\tthrow new Exception(ERR_NUM_SHEET);\n\t\t\t}\n\t\t\tSheet headerSheet = myWorkBook.getSheetAt(0);\n\t\t\tSheet detailSheet = myWorkBook.getSheetAt(1);\n\t\t\tSheet unitSheet = myWorkBook.getSheetAt(2);\n\t\t\tint iRun = 0;\n\t\t\ttotalItem = 0;\n\t\t\tint maxSizeSheet1 = 12;\n\t\t\tif (headerSheet != null) {\n\t\t\t\tIterator<?> rowIter = headerSheet.rowIterator();\n\t\t\t\twhile (rowIter.hasNext()) {\n\t\t\t\t\tRow myRow = (Row) rowIter.next();\n\t\t\t\t\tif (iRun == 0) {\n\t\t\t\t\t\tiRun++;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tboolean isContinue = true;\n\t\t\t\t\t//Kiem tra su hop le cua Row Import\n\t\t\t\t\tfor (int i = 0; i < maxSizeSheet1; i++) {\n\t\t\t\t\t\tif (myRow.getCell(i) != null && !StringUtil.isNullOrEmpty(getCellValueToString(myRow.getCell(i)))) {\n\t\t\t\t\t\t\tisContinue = false;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (isContinue) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tExcelPromotionHeader header = new ExcelPromotionHeader();\n\t\t\t\t\tCellBean errRow = new CellBean();\n\t\t\t\t\tString messageError = \"\";\n\t\t\t\t\ttotalItem++;\n\t\t\t\t\t//0\tget promotionCode\n\t\t\t\t\tString promotionCode = \"\";\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellPromotionCode = myRow.getCell(0);\n\t\t\t\t\t\tif (cellPromotionCode != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\t//\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t//\t\t\t\t\t\t\tpromotionCode = cellPromotionCode.getStringCellValue();\n\t\t\t\t\t\t\t//\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t//\t\t\t\t\t\t\tpromotionCode = String.valueOf(cellPromotionCode.getNumericCellValue());\n\t\t\t\t\t\t\t//\t\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t\t\t//\t\t\t\t\t\t}\n\t\t\t\t\t\t\tpromotionCode = getCellValueToString(cellPromotionCode);\n\t\t\t\t\t\t\tpromotionCode = promotionCode != null ? promotionCode.toUpperCase().trim() : \"\";\n\t\t\t\t\t\t\theader.promotionCode = promotionCode;\n\t\t\t\t\t\t\terrRow.setContent1(promotionCode);\n\t\t\t\t\t\t\tif (StringUtil.isNullOrEmpty(promotionCode)) {\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.column.null\", \"Mã CTKM\");\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tmessageError += ValidateUtil.validateField(promotionCode, \"catalog.promotion.import.column.progcode\", 50, ConstantManager.ERR_REQUIRE, ConstantManager.ERR_MAX_LENGTH, ConstantManager.ERR_EXIST_SPECIAL_CHAR_IN_CODE);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (mapCheckHeaderDuplicate.get(promotionCode) != null) {\n\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.product.import.duplicate\", mapCheckHeaderDuplicate.get(promotionCode));\n\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tmapCheckHeaderDuplicate.put(promotionCode, myRow.getRowNum());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tPromotionProgram existPromotion = promotionProgramMgr.getPromotionProgramByCode(promotionCode);\n\t\t\t\t\t\t\tif (existPromotion != null && !ActiveType.WAITING.equals(existPromotion.getStatus())) {\n\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.program.exists\");\n\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.get.promotion.error\", promotionCode);\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t\t//\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.string\", iRun, \"ProgCode\");\n\t\t\t\t\t}\n\t\t\t\t\t//1\tget description\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellDescription = myRow.getCell(1);\n\t\t\t\t\t\tif (cellDescription != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tString description = getCellValueToString(cellDescription);\n\t\t\t\t\t\t\theader.description = description;\n\t\t\t\t\t\t\terrRow.setContent2(description);\n\t\t\t\t\t\t\tmessageError += ValidateUtil.validateField(description, \"catalog.promotion.import.column.progpescr\", 100, ConstantManager.ERR_REQUIRE, ConstantManager.ERR_MAX_LENGTH, ConstantManager.ERR_EXIST_SPECIAL_CHAR_IN_NAME);\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.string\", iRun, \"ProgDescr\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t//2\tget release\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (myRow.getCell(2) != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\terrRow.setContent3(getCellValueToString(myRow.getCell(2)));\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.number\", iRun, \"Release\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t//3\tget promotion type\n\t\t\t\t\tString type = null;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellPromotionType = myRow.getCell(3);\n\t\t\t\t\t\tif (cellPromotionType != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\ttype = getCellValueToString(cellPromotionType);\n\t\t\t\t\t\t\ttype = type != null ? type.toUpperCase().trim() : \"\";\n\t\t\t\t\t\t\theader.type = type;\n\t\t\t\t\t\t\terrRow.setContent4(type);\n\t\t\t\t\t\t\tif (StringUtil.isNullOrEmpty(type)) {\n\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"common.required\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.type\"));\n\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (mapCheckType.get(type) == null) {\n\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.exists.before\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.type\"));\n\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tmapType.put(header.promotionCode, type);\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.string\", iRun, \"ConditionTypeCode\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t//4 get format\n\t\t\t\t\t//try {\n\t\t\t\t\t//\tCell cellFormat = myRow.getCell(4);\n\t\t\t\t\t//\tif (cellFormat != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t//\t\tString format = cellFormat.getStringCellValue();\n\t\t\t\t\t//\t\theader.format = format;\n\t\t\t\t\t//\t\terrRow.setContent5(format);\n\t\t\t\t\t//\t}\n\t\t\t\t\t//} catch (Exception e) {\n\t\t\t\t\t//\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.string\", iRun, \"User1\");\n\t\t\t\t\t//}\n\t\t\t\t\t//4 get fromDate\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellFromDate = myRow.getCell(4);\n\t\t\t\t\t\tif (cellFromDate != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tif (cellFromDate.getCellType() == Cell.CELL_TYPE_NUMERIC && cellFromDate.getCellStyle() != null && DateUtil.HSSF_DATE_FORMAT_M_D_YY.equals(cellFromDate.getCellStyle().getDataFormatString())) {\n\t\t\t\t\t\t\t\tif (cellFromDate.getDateCellValue() != null || !StringUtil.isNullOrEmpty(cellFromDate.getStringCellValue())) {\n\t\t\t\t\t\t\t\t\tString __fromDate = DateUtil.toDateString(cellFromDate.getDateCellValue(), DateUtil.DATE_FORMAT_DDMMYYYY);\n\t\t\t\t\t\t\t\t\tDate fromDate = DateUtil.toDate(__fromDate, DateUtil.DATE_FORMAT_DDMMYYYY);\n\t\t\t\t\t\t\t\t\theader.fromDate = fromDate;\n\t\t\t\t\t\t\t\t\terrRow.setContent5(__fromDate);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"common.required\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"imp.epx.tuyen.clmn.tuNgay\"));\n\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else if (cellFromDate.getCellType() == Cell.CELL_TYPE_NUMERIC && cellFromDate.getCellStyle() != null && DateUtil.DATE_FORMAT_VISIT.equals(cellFromDate.getCellStyle().getDataFormatString())) {\n\t\t\t\t\t\t\t\tif (cellFromDate.getDateCellValue() != null || !StringUtil.isNullOrEmpty(cellFromDate.getStringCellValue())) {\n\t\t\t\t\t\t\t\t\tString __fromDate = DateUtil.toDateString(cellFromDate.getDateCellValue(), DateUtil.DATE_FORMAT_VISIT);\n\t\t\t\t\t\t\t\t\tDate fromDate = DateUtil.toDate(__fromDate, DateUtil.DATE_FORMAT_VISIT);\n\t\t\t\t\t\t\t\t\theader.fromDate = fromDate;\n\t\t\t\t\t\t\t\t\terrRow.setContent5(__fromDate);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"common.required\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"imp.epx.tuyen.clmn.tuNgay\"));\n\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tif (!StringUtil.isNullOrEmpty(cellFromDate.getStringCellValue())) {\n\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\tString __fromDate = cellFromDate.getStringCellValue();\n\t\t\t\t\t\t\t\t\t\tif (DateUtil.checkInvalidFormatDate(__fromDate)) {\n\t\t\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"common.invalid.format.date\", R.getResource(\"imp.epx.tuyen.clmn.tuNgay\"));\n\t\t\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t\t\t\terrRow.setContent5(__fromDate);\n\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\tDate fromDate = DateUtil.toDate(__fromDate, DateUtil.DATE_FORMAT_DDMMYYYY);\n\t\t\t\t\t\t\t\t\t\t\theader.fromDate = fromDate;\n\t\t\t\t\t\t\t\t\t\t\terrRow.setContent5(__fromDate);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t} catch (Exception e1) {\n\t\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"common.invalid.format.date\", R.getResource(\"imp.epx.tuyen.clmn.tuNgay\"));\n\t\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t\t\terrRow.setContent5(cellFromDate.getStringCellValue());\n\t\t\t\t\t\t\t\t\t\tLogUtility.logError(e1, e1.getMessage());\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"common.required\", R.getResource(\"imp.epx.tuyen.clmn.tuNgay\"));\n\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.cant.read.cell.date\", iRun, \"FromDate\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t//5 get toDate\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellToDate = myRow.getCell(5);\n\t\t\t\t\t\tif (cellToDate != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tif (cellToDate.getCellType() == Cell.CELL_TYPE_NUMERIC && cellToDate.getCellStyle() != null && DateUtil.HSSF_DATE_FORMAT_M_D_YY.equals(cellToDate.getCellStyle().getDataFormatString())) {\n\t\t\t\t\t\t\t\tif (cellToDate.getDateCellValue() != null || !StringUtil.isNullOrEmpty(cellToDate.getStringCellValue())) {\n\t\t\t\t\t\t\t\t\tString __toDate = DateUtil.toDateString(cellToDate.getDateCellValue(), DateUtil.DATE_FORMAT_DDMMYYYY);\n\t\t\t\t\t\t\t\t\tDate toDate = DateUtil.toDate(__toDate, DateUtil.DATE_FORMAT_DDMMYYYY);\n\t\t\t\t\t\t\t\t\theader.toDate = toDate;\n\t\t\t\t\t\t\t\t\terrRow.setContent6(__toDate);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else if (cellToDate.getCellType() == Cell.CELL_TYPE_NUMERIC && cellToDate.getCellStyle() != null && DateUtil.DATE_FORMAT_VISIT.equals(cellToDate.getCellStyle().getDataFormatString())) {\n\t\t\t\t\t\t\t\tif (cellToDate.getDateCellValue() != null || !StringUtil.isNullOrEmpty(cellToDate.getStringCellValue())) {\n\t\t\t\t\t\t\t\t\tString __toDate = DateUtil.toDateString(cellToDate.getDateCellValue(), DateUtil.DATE_FORMAT_VISIT);\n\t\t\t\t\t\t\t\t\tDate toDate = DateUtil.toDate(__toDate, DateUtil.DATE_FORMAT_VISIT);\n\t\t\t\t\t\t\t\t\theader.toDate = toDate;\n\t\t\t\t\t\t\t\t\terrRow.setContent6(__toDate);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else if (!StringUtil.isNullOrEmpty(cellToDate.getStringCellValue())) {\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tString __toDate = cellToDate.getStringCellValue();\n\t\t\t\t\t\t\t\t\tif (DateUtil.checkInvalidFormatDate(__toDate)) {\n\t\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"common.invalid.format.date\", R.getResource(\"imp.epx.tuyen.clmn.denNgay\"));\n\t\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t\t\terrRow.setContent6(__toDate);\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tDate toDate = DateUtil.toDate(__toDate, DateUtil.DATE_FORMAT_DDMMYYYY);\n\t\t\t\t\t\t\t\t\t\theader.toDate = toDate;\n\t\t\t\t\t\t\t\t\t\terrRow.setContent6(__toDate);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} catch (Exception e1) {\n\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"common.invalid.format.date\", R.getResource(\"imp.epx.tuyen.clmn.denNgay\"));\n\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t\terrRow.setContent6(cellToDate.getStringCellValue());\n\t\t\t\t\t\t\t\t\tLogUtility.logError(e1, e1.getMessage());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (header.fromDate != null && header.toDate != null) {\n\t\t\t\t\t\t\tif (DateUtil.compareDateWithoutTime(header.fromDate, header.toDate) > 0) {\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"common.fromdate.greater.todate\") + \"\\n\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.cant.read.cell.date\", iRun, \"ToDate\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\n\t\t\t\t\t//6 Số thông báo CTKM\n\t\t\t\t\t/*\n\t\t\t\t\t * String description =\n\t\t\t\t\t * getCellValueToString(cellDescription); header.description\n\t\t\t\t\t * = description; errRow.setContent2(description);\n\t\t\t\t\t * messageError += ValidateUtil.validateField(description,\n\t\t\t\t\t * \"catalog.promotion.import.column.progpescr\", 100,\n\t\t\t\t\t * ConstantManager.ERR_REQUIRE,\n\t\t\t\t\t * ConstantManager.ERR_MAX_LENGTH,\n\t\t\t\t\t * ConstantManager.ERR_EXIST_SPECIAL_CHAR_IN_NAME);\n\t\t\t\t\t */\n\t\t\t\t\t\n\t\t\t\t\t/*errMsg = ValidateUtil.validateField(promotionName, \"catalog.promotion.name\", 500, ConstantManager.ERR_REQUIRE, ConstantManager.ERR_EXIST_SPECIAL_CHAR_IN_SPECIAL, ConstantManager.ERR_MAX_LENGTH);\n\t\t\t\t\tif (StringUtil.isNullOrEmpty(errMsg)) {\n\t\t\t\t\t\terrMsg = ValidateUtil.validateField(description, \"common.description\", null, ConstantManager.ERR_EXIST_SPECIAL_CHAR_IN_SPECIAL);\n\t\t\t\t\t}*/\n\t\t\t\t\t\n\t\t\t\t\t// 6 Số thông báo\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellNoticeCode = myRow.getCell(6);\n\t\t\t\t\t\tif (cellNoticeCode != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tString noticeCode = getCellValueToString(cellNoticeCode);\n\t\t\t\t\t\t\tif(noticeCode != null){\n\t\t\t\t\t\t\t\tnoticeCode = noticeCode.trim();\n\t\t\t\t\t\t\t\tnoticeCode = noticeCode.toUpperCase();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tmessageError = ValidateUtil.validateField(noticeCode, \"catalog.promotion.noticecode\", 100, ConstantManager.ERR_EXIST_SPECIAL_CHAR_IN_SPECIAL);\n\t\t\t\t\t\t\t/*if(noticeCode.length() > 100){\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.notice.code.over.length\")+\"\\n\";\n\t\t\t\t\t\t\t}else*/ \n\t\t\t\t\t\t\tif(StringUtil.isNullOrEmpty(noticeCode)) {\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.notice.code.obligate\") + \"\\n\";\n\t\t\t\t\t\t\t}else if(noticeCode != null && noticeCode.trim().length() > 100){\n\t\t\t\t\t\t\t\t//messageError += R.getResource(\"catalog.promotion.import.notice.code.incorrect.format\");\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.over.max.length\") + \"\\n\";\n\t\t\t\t\t\t\t\tmessageError = messageError.replaceAll(\"%max%\", \"100\");\n\t\t\t\t\t\t\t\tmessageError = messageError.replaceAll(\"%colName%\", \"Số thông báo\");\n\t\t\t\t\t\t\t}else if(StringUtil.isNullOrEmpty(messageError)){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\theader.noticeCode = noticeCode;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\terrRow.setContent7(noticeCode);\n\t\t\t\t\t\t}else if (cellNoticeCode == null) {\n\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.notice.code.obligate\") + \"\\n\";\n\t\t\t\t\t\t} \n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.cant.read.cell.string\", iRun, \"NoticeCode\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t// 7 Nhóm/Tên SP hàng bán\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellDesProduct = myRow.getCell(7);\n\t\t\t\t\t\tif (cellDesProduct != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tString descProduct = getCellValueToString(cellDesProduct);\n\t\t\t\t\t\t\tif(descProduct != null){\n\t\t\t\t\t\t\t\tdescProduct = descProduct.trim();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//descProduct = descProduct.trim();\n\t\t\t\t\t\t\tmessageError = ValidateUtil.validateField(descProduct, \"catalog.promotion.descriptionproduct\", 1000, ConstantManager.ERR_EXIST_SPECIAL_CHAR_IN_SPECIAL);\n\t\t\t\t\t\t\t/*if(descProduct.length() > 1000){\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.desc.product.over.length\")+\"\\n\";\n\t\t\t\t\t\t\t}else*/ \n\t\t\t\t\t\t\tif(StringUtil.isNullOrEmpty(descProduct)) {\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.description.product.obligate\") + \"\\n\";\n\t\t\t\t\t\t\t}else if(descProduct.trim().length() > 1000){\n\t\t\t\t\t\t\t\t//messageError += R.getResource(\"catalog.promotion.import.description.product.incorrect.format\") + \"\\n\";\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.over.max.length\") + \"\\n\";\n\t\t\t\t\t\t\t\tmessageError = messageError.replaceAll(\"%max%\", \"1000\");\n\t\t\t\t\t\t\t\tmessageError = messageError.replaceAll(\"%colName%\", \"Nhóm/Tên SP hàng bán\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if(StringUtil.isNullOrEmpty(messageError)){\n\t\t\t\t\t\t\t\tdescProduct = descProduct.trim();\n\t\t\t\t\t\t\t\theader.decriptionProduct = descProduct;\n\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\n\t\t\t\t\t\t\terrRow.setContent8(descProduct);\n\t\t\t\t\t\t}else if(cellDesProduct == null) {\n\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.description.product.obligate\") + \"\\n\";\n\t\t\t\t\t\t} \n\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.cant.read.cell.string\", iRun, \"DescProduct\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\n\t\t\t\t\t// 8 Mô tả chương trình\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellDescription = myRow.getCell(8);\n\t\t\t\t\t\tif (cellDescription != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tString description = getCellValueToString(cellDescription);\n\t\t\t\t\t\t\tif(description != null){\n\t\t\t\t\t\t\t\tdescription = description.trim();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif(description != null && description.trim().length() > 1000){\n\t\t\t\t\t\t\t\t//messageError += R.getResource(\"catalog.promotion.import.description.program.incorrect.format\") + \"\\n\";\n\t\t\t\t\t\t\t\t//messageError += R.getResource(\"\", iRun, \"Description\");\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.over.max.length\") + \"\\n\";\n\t\t\t\t\t\t\t\tmessageError = messageError.replaceAll(\"%max%\", \"1000\");\n\t\t\t\t\t\t\t\tmessageError = messageError.replaceAll(\"%colName%\", \"Mô tả chương trình\");\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tdescription = description.trim();\n\t\t\t\t\t\t\t\theader.descriptionProgram = description;\n\t\t\t\t\t\t\t\terrRow.setContent9(description);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t/*else if(cellDescription != null){\n\t\t\t\t\t\t\tString description = getCellValueToString(cellDescription);\n\t\t\t\t\t\t\terrRow.setContent9(description);\n\t\t\t\t\t\t}*/\n\t\t\t\t\t\t\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.cant.read.cell.string\", iRun, \"Description\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t//9 Bội số\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellMultiple = myRow.getCell(9);\n\t\t\t\t\t\theader.multiple = 0; \n\t\t\t\t\t\tif (cellMultiple != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tString multiple = getCellValueToString(cellMultiple);\n\t\t\t\t\t\t\tApParam apParam = apParamMgr.getApParamByCode(\"LIST_PROMO_ALLOW_MULTIPLE\", ApParamType.LIST_PROMO_ALLOW_MULTIPLE);\n\t\t\t\t\t\t\tString strListPromo = apParam != null?apParam.getValue() : \"ZV02,ZV03,ZV05,ZV06,ZV08,ZV09,ZV11,ZV12,ZV13,ZV14,ZV15,ZV16,ZV17,ZV18,ZV20,ZV21,ZV23,ZV24\";\n\t\t\t\t\t\t\tif ((Constant.IS_MULTIPLE.equals(multiple) || Constant.NON_MULTIPLE.equals(multiple)) \n\t\t\t\t\t\t\t\t\t&& strListPromo != null) {\n\t\t\t\t\t\t\t\tstrListPromo = strListPromo.replace(\" \", \"\");\n\t\t\t\t\t\t\t\tstrListPromo = strListPromo.toUpperCase();\n\t\t\t\t\t\t\t\tString[] ListPromoAllow = strListPromo.split(\",\");\n\t\t\t\t\t\t\t\tif (Constant.IS_MULTIPLE.equals(multiple) \n\t\t\t\t\t\t\t\t\t &&\t!Arrays.asList(ListPromoAllow).contains(header.type.toUpperCase())) {\n\t\t\t\t\t\t\t\t\tSystem.out.println(header.type.toUpperCase());\n\t\t\t\t\t\t\t\t\tSystem.out.println(strListPromo);\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.multiple.not.use\") + \"\\n\";\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\theader.multiple = Integer.parseInt(multiple.trim());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.multiple.incorrect.format\") + \"\\n\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\terrRow.setContent10(multiple);\n\t\t\t\t\t\t}/*else if(cellMultiple != null){\n\t\t\t\t\t\t\tString multiple = getCellValueToString(cellMultiple);\n\t\t\t\t\t\t\terrRow.setContent10(multiple);\n\t\t\t\t\t\t}*/\n\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.number\", iRun, \"Multiple\", \"['','X']\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t// 10 Tối ưu\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellRecursive = myRow.getCell(10);\n\t\t\t\t\t\theader.recursive = 0;\n\t\t\t\t\t\tif (cellRecursive != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tString recursive = getCellValueToString(cellRecursive);\n\t\t\t\t\t\t\tApParam apParam = apParamMgr.getApParamByCode(\"LIST_PROMO_ALLOW_RECURSIVE\", ApParamType.LIST_PROMO_ALLOW_RECURSIVE);\n\t\t\t\t\t\t\tString strListPromo = apParam == null? \"ZV02,ZV03,ZV05,ZV06,ZV08,ZV09,ZV11,ZV12,ZV13,ZV14,ZV15,ZV16,ZV17,ZV18,ZV20,ZV21,ZV23,ZV24\":apParam.getValue();\n\t\t\t\t\t\t\tif ((Constant.IS_RECURSIVE.equals(recursive) || Constant.NON_RECURSIVE.equals(recursive)) \n\t\t\t\t\t\t\t\t\t&& strListPromo != null) {\n\t\t\t\t\t\t\t\tstrListPromo = strListPromo.replace(\" \", \"\");\n\t\t\t\t\t\t\t\tString[] listPromoAllow = strListPromo.split(\",\");\n\t\t\t\t\t\t\t\tif (Constant.IS_RECURSIVE.equals(recursive)\t\t\t\n\t\t\t\t\t\t\t\t\t &&\t!Arrays.asList(listPromoAllow).contains(header.type.toUpperCase())) {\n\t\t\t\t\t\t\t\t/*\tSystem.out.println(header.type.toUpperCase());\n\t\t\t\t\t\t\t\t\tSystem.out.println(strListPromo);*/\n\t\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.recursive.not.use\") + \"\\n\";\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\theader.recursive = Integer.parseInt(recursive.trim());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.recursive.incorrect.format\") + \"\\n\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\terrRow.setContent11(recursive);\n\t\t\t\t\t\t}/*else if(cellRecursive != null){\n\t\t\t\t\t\t\tString recursive = getCellValueToString(cellRecursive);\n\t\t\t\t\t\t\terrRow.setContent11(recursive);\n\t\t\t\t\t\t}*/\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.number\", iRun, \"Recursive\", \"['','X']\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t// 9 Loại trả thưởng\n\t\t\t\t/*\ttry {\n\t\t\t\t\t\tCell cellRewardType = myRow.getCell(9);\n\t\t\t\t\t\tApParam apParam = apParamMgr.getApParamByCode(\"LIST_ALLOW_REWARD_TYPE\", ApParamType.LIST_ALLOW_REWARD_TYPE);\n\t\t\t\t\t\tString strListAllowReward = apParam.getApParamName();\n\t\t\t\t\t\tstrListAllowReward = strListAllowReward.replace(\" \", \"\");\n\t\t\t\t\t\tString[] listAllowReward = strListAllowReward.split(\",\");\n\t\t\t\t\t\tif (cellRewardType != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tString strRewardType = getCellValueToString(cellRewardType);\n\t\t\t\t\t\t\tif (strRewardType != null \n\t\t\t\t\t\t\t\t\t&& (Constant.DISCOUNT_MONEY.equals(strRewardType) || Constant.VOUCHER.equals(strRewardType)) \n\t\t\t\t\t\t\t\t\t&& Arrays.asList(listAllowReward).contains(header.type)) {\n\t\t\t\t\t\t\t\theader.rewardType = Integer.parseInt(strRewardType.trim());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\terrRow.setContent10(strRewardType);\n\t\t\t\t\t\t}else if(cellRewardType != null){\n\t\t\t\t\t\t\tString strRewardType = getCellValueToString(cellRewardType);\n\t\t\t\t\t\t\terrRow.setContent10(strRewardType);\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.cant.read.cell.number\", iRun, \"RewardType\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t// 10 Từ ngày trả thưởng\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellFromDateReward = myRow.getCell(10);\n\t\t\t\t\t\tif (Constant.VOUCHER.equals(header.rewardType+\"\")) {\n\t\t\t\t\t\t\tif (cellFromDateReward != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\t\tif (cellFromDateReward.getCellType() == Cell.CELL_TYPE_NUMERIC && cellFromDateReward.getCellStyle() != null && DateUtil.HSSF_DATE_FORMAT_M_D_YY.equals(cellFromDateReward.getCellStyle().getDataFormatString())) {\n\t\t\t\t\t\t\t\t\tif (cellFromDateReward.getDateCellValue() != null || !StringUtil.isNullOrEmpty(cellFromDateReward.getStringCellValue())) {\n\t\t\t\t\t\t\t\t\t\tString _fromDateReward = DateUtil.toDateString(cellFromDateReward.getDateCellValue(), DateUtil.DATE_FORMAT_DDMMYYYY);\n\t\t\t\t\t\t\t\t\t\tDate fromDateReward = DateUtil.toDate(_fromDateReward, DateUtil.DATE_FORMAT_DDMMYYYY);\n\t\t\t\t\t\t\t\t\t\theader.fromApplyDate = fromDateReward;\n\t\t\t\t\t\t\t\t\t\terrRow.setContent11(_fromDateReward);\n\t\t\t\t\t\t\t\t\t} else if (cellFromDateReward.getCellType() == Cell.CELL_TYPE_NUMERIC && cellFromDateReward.getCellStyle() != null && DateUtil.DATE_FORMAT_VISIT.equals(cellFromDateReward.getCellStyle().getDataFormatString())) {\n\t\t\t\t\t\t\t\t\t\tif (cellFromDateReward.getDateCellValue() != null || StringUtil.isNullOrEmpty(cellFromDateReward.getStringCellValue())) {\n\t\t\t\t\t\t\t\t\t\t\tString _fromDateReward = DateUtil.toDateString(cellFromDateReward.getDateCellValue(), DateUtil.DATE_FORMAT_VISIT);\n\t\t\t\t\t\t\t\t\t\t\tDate fromDateReward = DateUtil.toDate(_fromDateReward, DateUtil.DATE_FORMAT_VISIT);\n\t\t\t\t\t\t\t\t\t\t\theader.fromApplyDate = fromDateReward;\n\t\t\t\t\t\t\t\t\t\t\terrRow.setContent11(_fromDateReward);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t} else if (!StringUtil.isNullOrEmpty(cellFromDateReward.getStringCellValue())) {\n\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\tString _fromDateReward = cellFromDateReward.getStringCellValue();\n\t\t\t\t\t\t\t\t\t\t\tif (DateUtil.checkInvalidFormatDate(_fromDateReward)) {\n\t\t\t\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"common.invalid.format.date\", R.getResource(\"imp.epx.tuyen.clmn.tuNgay.traThuong\"));\n\t\t\t\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t\t\t\t\terrRow.setContent11(_fromDateReward);\n\t\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t\tDate fromDateReward = DateUtil.toDate(_fromDateReward, DateUtil.DATE_FORMAT_DDMMYYYY);\n\t\t\t\t\t\t\t\t\t\t\t\theader.fromApplyDate = fromDateReward;\n\t\t\t\t\t\t\t\t\t\t\t\terrRow.setContent11(_fromDateReward);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t} catch (Exception e1) {\n\t\t\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"common.invalid.format.date\", R.getResource(\"imp.epx.tuyen.clmn.tuNgay.traThuong\"));\n\t\t\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t\t\t\terrRow.setContent11(cellFromDateReward.getStringCellValue());\n\t\t\t\t\t\t\t\t\t\t\tLogUtility.logError(e1, e1.getMessage());\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tif(header.fromApplyDate != null && header.fromDate != null){\n\t\t\t\t\t\t\t\t\t\tint sub = DateUtil.compareDateWithoutTime(header.fromDate,header.fromApplyDate);\n\t\t\t\t\t\t\t\t\t\tif(DateUtil.compareDateWithoutTime(header.fromDate,header.fromApplyDate) > 0){\n\t\t\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"common.fromdate.reward.greater.fromdate\")+\"\\n\";\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}else if(cellFromDateReward != null){\n\t\t\t\t\t\t\tString _fromDateReward = getCellValueToString(cellFromDateReward); \n\t\t\t\t\t\t\terrRow.setContent11(_fromDateReward);\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.cant.read.cell.date\", iRun, \"FromDateReward\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\n\t\t\t\t\t// 11 Đến ngày trả thưởng\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellToDateReward = myRow.getCell(11);\n\t\t\t\t\t\tif (Constant.VOUCHER.equals(header.rewardType+\"\")) {\n\t\t\t\t\t\t\tif (cellToDateReward != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\t\tif (cellToDateReward.getCellType() == Cell.CELL_TYPE_NUMERIC && cellToDateReward.getCellStyle() != null && DateUtil.HSSF_DATE_FORMAT_M_D_YY.equals(cellToDateReward.getCellStyle().getDataFormatString())) {\n\t\t\t\t\t\t\t\t\tif (cellToDateReward.getDateCellValue() != null || !StringUtil.isNullOrEmpty(cellToDateReward.getStringCellValue())) {\n\t\t\t\t\t\t\t\t\t\tString _toDateReward = DateUtil.toDateString(cellToDateReward.getDateCellValue(), DateUtil.DATE_FORMAT_DDMMYYYY);\n\t\t\t\t\t\t\t\t\t\tDate toDateReward = DateUtil.toDate(_toDateReward, DateUtil.DATE_FORMAT_DDMMYYYY);\n\t\t\t\t\t\t\t\t\t\theader.toApplyDate = toDateReward;\n\t\t\t\t\t\t\t\t\t\terrRow.setContent12(_toDateReward);\n\t\t\t\t\t\t\t\t\t} else if (cellToDateReward.getCellType() == Cell.CELL_TYPE_NUMERIC && cellToDateReward.getCellStyle() != null && DateUtil.DATE_FORMAT_VISIT.equals(cellToDateReward.getCellStyle().getDataFormatString())) {\n\t\t\t\t\t\t\t\t\t\tif (cellToDateReward.getDateCellValue() != null || StringUtil.isNullOrEmpty(cellToDateReward.getStringCellValue())) {\n\t\t\t\t\t\t\t\t\t\t\tString _toDateReward = DateUtil.toDateString(cellToDateReward.getDateCellValue(), DateUtil.DATE_FORMAT_VISIT);\n\t\t\t\t\t\t\t\t\t\t\tDate toDateReward = DateUtil.toDate(_toDateReward, DateUtil.DATE_FORMAT_VISIT);\n\t\t\t\t\t\t\t\t\t\t\theader.toApplyDate = toDateReward;\n\t\t\t\t\t\t\t\t\t\t\terrRow.setContent12(_toDateReward);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t} else if (!StringUtil.isNullOrEmpty(cellToDateReward.getStringCellValue())) {\n\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\tString _todateReward = cellToDateReward.getStringCellValue();\n\t\t\t\t\t\t\t\t\t\t\tif (DateUtil.checkInvalidFormatDate(_todateReward)) {\n\t\t\t\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"common.invalid.format.date\", R.getResource(\"imp.epx.tuyen.clmn.denNgay.traThuong \"));\n\t\t\t\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t\t\t\t\terrRow.setContent12(_todateReward);\n\t\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t\tDate toDate = DateUtil.toDate(_todateReward, DateUtil.DATE_FORMAT_DDMMYYYY);\n\t\t\t\t\t\t\t\t\t\t\t\theader.toApplyDate = toDate;\n\t\t\t\t\t\t\t\t\t\t\t\terrRow.setContent12(_todateReward);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t} catch (Exception e1) {\n\t\t\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"common.invalid.format.date\", R.getResource(\"imp.epx.tuyen.clmn.denNgay.traThuong\"));\n\t\t\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t\t\t\terrRow.setContent12(cellToDateReward.getStringCellValue());\n\t\t\t\t\t\t\t\t\t\t\tLogUtility.logError(e1, e1.getMessage());\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif (header.fromApplyDate != null && header.toApplyDate != null) {\n\t\t\t\t\t\t\t\t\t\tif (DateUtil.compareDateWithoutTime(header.fromApplyDate, header.toApplyDate) > 0) {\n\t\t\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"common.fromdate.greater.todate.reward\") + \"\\n\";\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else if(cellToDateReward != null){\n\t\t\t\t\t\t\tString _todateReward = getCellValueToString(cellToDateReward); \n\t\t\t\t\t\t\terrRow.setContent12(_todateReward);\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.cant.read.cell.date\", iRun, \"ToDateReward\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}*/\n\t\t\t\t\t// 11 Loại trả thưởng\n\t\t\t\t\ttry {\n\t\t\t\t\t\t\tCell cellRewardType = myRow.getCell(11);\n\t\t\t\t\t\t\tApParam apParam = apParamMgr.getApParamByCode(\"LIST_ALLOW_REWARD_TYPE\", ApParamType.LIST_ALLOW_REWARD_TYPE);\n\t\t\t\t\t\t\tString strListAllowReward = apParam.getApParamName();\n\t\t\t\t\t\t\tstrListAllowReward = strListAllowReward.replace(\" \", \"\");\n\t\t\t\t\t\t\tString[] listAllowReward = strListAllowReward.split(\",\");\n\t\t\t\t\t\t\tif (cellRewardType != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\t\tString strRewardType = getCellValueToString(cellRewardType);\n\t\t\t\t\t\t\t\tif (strRewardType != null \n\t\t\t\t\t\t\t\t\t&& (Constant.DISCOUNT_MONEY.equals(strRewardType) || Constant.VOUCHER.equals(strRewardType)) \n\t\t\t\t\t\t\t\t\t&& Arrays.asList(listAllowReward).contains(header.type)) \n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tif(Constant.DISCOUNT_MONEY.equals(strRewardType) || Constant.VOUCHER.equals(strRewardType)) \n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\theader.rewardType = Integer.parseInt(strRewardType.trim());\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\terrRow.setContent12(strRewardType);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tString strRewardType = getCellValueToString(cellRewardType);\n\t\t\t\t\t\t\t\terrRow.setContent12(strRewardType);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.cant.read.cell.number\", iRun, \"RewardType\");\n\t\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// 12 Từ ngày trả thưởng\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellFromDateReward = myRow.getCell(12);\n\t\t\t\t\t\tif (Constant.VOUCHER.equals(header.rewardType+\"\")) {\n\t\t\t\t\t\t\tif (cellFromDateReward != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\t\tif (StringUtil.isNullOrEmpty(cellFromDateReward.getStringCellValue()))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.column.null\", R.getResource(\"imp.epx.tuyen.clmn.tuNgay.traThuong\"));\n\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tif (cellFromDateReward.getCellType() == Cell.CELL_TYPE_NUMERIC && cellFromDateReward.getCellStyle() != null && DateUtil.HSSF_DATE_FORMAT_M_D_YY.equals(cellFromDateReward.getCellStyle().getDataFormatString())) {\n\t\t\t\t\t\t\t\t\tif (cellFromDateReward.getDateCellValue() != null || !StringUtil.isNullOrEmpty(cellFromDateReward.getStringCellValue())) {\n\t\t\t\t\t\t\t\t\t\tString _fromDateReward = DateUtil.toDateString(cellFromDateReward.getDateCellValue(), DateUtil.DATE_FORMAT_DDMMYYYY);\n\t\t\t\t\t\t\t\t\t\tDate fromDateReward = DateUtil.toDate(_fromDateReward, DateUtil.DATE_FORMAT_DDMMYYYY);\n\t\t\t\t\t\t\t\t\t\theader.fromApplyDate = fromDateReward;\n\t\t\t\t\t\t\t\t\t\terrRow.setContent13(_fromDateReward);\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse if (cellFromDateReward.getCellType() == Cell.CELL_TYPE_NUMERIC && cellFromDateReward.getCellStyle() != null && DateUtil.DATE_FORMAT_VISIT.equals(cellFromDateReward.getCellStyle().getDataFormatString())) {\n\t\t\t\t\t\t\t\t\t\tif (cellFromDateReward.getDateCellValue() != null || StringUtil.isNullOrEmpty(cellFromDateReward.getStringCellValue())) {\n\t\t\t\t\t\t\t\t\t\t\tString _fromDateReward = DateUtil.toDateString(cellFromDateReward.getDateCellValue(), DateUtil.DATE_FORMAT_VISIT);\n\t\t\t\t\t\t\t\t\t\t\tDate fromDateReward = DateUtil.toDate(_fromDateReward, DateUtil.DATE_FORMAT_VISIT);\n\t\t\t\t\t\t\t\t\t\t\theader.fromApplyDate = fromDateReward;\n\t\t\t\t\t\t\t\t\t\t\terrRow.setContent13(_fromDateReward);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t} else if (!StringUtil.isNullOrEmpty(cellFromDateReward.getStringCellValue())) {\n\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\tString _fromDateReward = cellFromDateReward.getStringCellValue();\n\t\t\t\t\t\t\t\t\t\t\tif (DateUtil.checkInvalidFormatDate(_fromDateReward)) {\n\t\t\t\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"common.invalid.format.date\", R.getResource(\"imp.epx.tuyen.clmn.tuNgay.traThuong\"));\n\t\t\t\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t\t\t\t\terrRow.setContent13(_fromDateReward);\n\t\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t\tDate fromDateReward = DateUtil.toDate(_fromDateReward, DateUtil.DATE_FORMAT_DDMMYYYY);\n\t\t\t\t\t\t\t\t\t\t\t\theader.fromApplyDate = fromDateReward;\n\t\t\t\t\t\t\t\t\t\t\t\terrRow.setContent13(_fromDateReward);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t} catch (Exception e1) {\n\t\t\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"common.invalid.format.date\", R.getResource(\"imp.epx.tuyen.clmn.tuNgay.traThuong\"));\n\t\t\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t\t\t\terrRow.setContent13(cellFromDateReward.getStringCellValue());\n\t\t\t\t\t\t\t\t\t\t\tLogUtility.logError(e1, e1.getMessage());\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tif(header.fromApplyDate != null && header.fromDate != null){\n//\t\t\t\t\t\t\t\t\t\tint sub = DateUtil.compareDateWithoutTime(header.fromDate,header.fromApplyDate);\n\t\t\t\t\t\t\t\t\t\tif(DateUtil.compareDateWithoutTime(header.fromDate,header.fromApplyDate) > 0){\n\t\t\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"common.fromdate.reward.greater.fromdate\")+\"\\n\";\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else if(cellFromDateReward != null){\n\t\t\t\t\t\t\tString _fromDateReward = getCellValueToString(cellFromDateReward); \n\t\t\t\t\t\t\terrRow.setContent13(_fromDateReward);\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.cant.read.cell.date\", iRun, \"FromDateReward\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// 11 Đến ngày trả thưởng\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellToDateReward = myRow.getCell(13);\n\t\t\t\t\t\tif (Constant.VOUCHER.equals(header.rewardType+\"\")) {\n\t\t\t\t\t\t\tif (cellToDateReward != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\t\tif (cellToDateReward.getCellType() == Cell.CELL_TYPE_NUMERIC && cellToDateReward.getCellStyle() != null && DateUtil.HSSF_DATE_FORMAT_M_D_YY.equals(cellToDateReward.getCellStyle().getDataFormatString())) {\n\t\t\t\t\t\t\t\t\tif (cellToDateReward.getDateCellValue() != null || !StringUtil.isNullOrEmpty(cellToDateReward.getStringCellValue())) {\n\t\t\t\t\t\t\t\t\t\tString _toDateReward = DateUtil.toDateString(cellToDateReward.getDateCellValue(), DateUtil.DATE_FORMAT_DDMMYYYY);\n\t\t\t\t\t\t\t\t\t\tDate toDateReward = DateUtil.toDate(_toDateReward, DateUtil.DATE_FORMAT_DDMMYYYY);\n\t\t\t\t\t\t\t\t\t\theader.toApplyDate = toDateReward;\n\t\t\t\t\t\t\t\t\t\terrRow.setContent14(_toDateReward);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t} else if (cellToDateReward.getCellType() == Cell.CELL_TYPE_NUMERIC && cellToDateReward.getCellStyle() != null && DateUtil.DATE_FORMAT_VISIT.equals(cellToDateReward.getCellStyle().getDataFormatString())) {\n\t\t\t\t\t\t\t\t\t\tif (cellToDateReward.getDateCellValue() != null || StringUtil.isNullOrEmpty(cellToDateReward.getStringCellValue())) {\n\t\t\t\t\t\t\t\t\t\t\tString _toDateReward = DateUtil.toDateString(cellToDateReward.getDateCellValue(), DateUtil.DATE_FORMAT_VISIT);\n\t\t\t\t\t\t\t\t\t\t\tDate toDateReward = DateUtil.toDate(_toDateReward, DateUtil.DATE_FORMAT_VISIT);\n\t\t\t\t\t\t\t\t\t\t\theader.toApplyDate = toDateReward;\n\t\t\t\t\t\t\t\t\t\t\terrRow.setContent14(_toDateReward);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t} else if (!StringUtil.isNullOrEmpty(cellToDateReward.getStringCellValue())) {\n\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\tString _todateReward = cellToDateReward.getStringCellValue();\n\t\t\t\t\t\t\t\t\t\t\tif (DateUtil.checkInvalidFormatDate(_todateReward)) {\n\t\t\t\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"common.invalid.format.date\", R.getResource(\"imp.epx.tuyen.clmn.denNgay.traThuong \"));\n\t\t\t\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t\t\t\t\terrRow.setContent14(_todateReward);\n\t\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t\tDate toDate = DateUtil.toDate(_todateReward, DateUtil.DATE_FORMAT_DDMMYYYY);\n\t\t\t\t\t\t\t\t\t\t\t\theader.toApplyDate = toDate;\n\t\t\t\t\t\t\t\t\t\t\t\terrRow.setContent14(_todateReward);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t} catch (Exception e1) {\n\t\t\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"common.invalid.format.date\", R.getResource(\"imp.epx.tuyen.clmn.denNgay.traThuong\"));\n\t\t\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t\t\t\terrRow.setContent14(cellToDateReward.getStringCellValue());\n\t\t\t\t\t\t\t\t\t\t\tLogUtility.logError(e1, e1.getMessage());\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif (header.fromApplyDate != null && header.toApplyDate != null) {\n\t\t\t\t\t\t\t\t\t\tif (DateUtil.compareDateWithoutTime(header.fromApplyDate, header.toApplyDate) > 0) {\n\t\t\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"common.fromdate.greater.todate.reward\") + \"\\n\";\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else if(cellToDateReward != null){\n\t\t\t\t\t\t\tString _todateReward = getCellValueToString(cellToDateReward); \n\t\t\t\t\t\t\terrRow.setContent14(_todateReward);\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.cant.read.cell.date\", iRun, \"ToDateReward\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\tlistHeader.add(header);\n\t\t\t\t\t\tmapHeader.put(header.promotionCode, header);\n\t\t\t\t\t} else {\n\t\t\t\t\t\terrRow.setErrMsg(messageError);\n\t\t\t\t\t\tlstHeaderError.add(errRow);\n\t\t\t\t\t\tif (mapErrorPromotion.get(header.promotionCode) == null) {\n\t\t\t\t\t\t\tmapErrorPromotion.put(header.promotionCode, messageError);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tiRun++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//Sheet Don vi tham gia\n\t\t\tif (unitSheet != null) {\n\t\t\t\tIterator<?> rowIter = unitSheet.rowIterator();\n\t\t\t\tiRun = 0;\n\t\t\t\tint maxSizeSheet3 = 5;\n\t\t\t\tList<Shop> listShopChild;\n\t\t\t\twhile (rowIter.hasNext()) {\n\t\t\t\t\tRow myRow = (Row) rowIter.next();\n\t\t\t\t\tif (iRun == 0) {\n\t\t\t\t\t\tiRun++;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tboolean isContinue = true;\n\t\t\t\t\tfor (int i = 0; i < maxSizeSheet3; i++) {\n\t\t\t\t\t\tif (myRow.getCell(i) != null) {\n\t\t\t\t\t\t\tisContinue = false;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (isContinue) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tExcelPromotionUnit unitPromo = new ExcelPromotionUnit();\n\t\t\t\t\tCellBean errRow = new CellBean();\n\t\t\t\t\tString messageError = \"\";\n\t\t\t\t\tBoolean isHasData = false;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tString promotionCode = getCellValueToString(myRow.getCell(0));\n\t\t\t\t\t\tString shopCode = getCellValueToString(myRow.getCell(1));\n\t\t\t\t\t\tString quality = getCellValueToString(myRow.getCell(2));\n\t\t\t\t\t\tString totalAmount = getCellValueToString(myRow.getCell(3));\n\t\t\t\t\t\tString amount = getCellValueToString(myRow.getCell(4));\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (!StringUtil.isNullOrEmpty(promotionCode) || !StringUtil.isNullOrEmpty(shopCode) || !StringUtil.isNullOrEmpty(quality)\n\t\t\t\t\t\t\t\t|| !StringUtil.isNullOrEmpty(totalAmount) || !StringUtil.isNullOrEmpty(amount)) {\n\t\t\t\t\t\t\tisHasData = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t// 1 Mã CTKM\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellPromotionCode = myRow.getCell(0);\n\t\t\t\t\t\tif (cellPromotionCode != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tif(isHasData){\n\t\t\t\t\t\t\t\tString promoCode = getCellValueToString(cellPromotionCode);\n\t\t\t\t\t\t\t\tPromotionProgram newPromotionProgram;\n\t\t\t\t\t\t\t\tif (StringUtil.isNullOrEmpty(promoCode)) {\n\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.promotion.code.obligate\") + \"\\n\";\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tnewPromotionProgram = promotionProgramMgr.getPromotionProgramByCode(promoCode);\n\t\t\t\t\t\t\t\t\tif(newPromotionProgram == null \n\t\t\t\t\t\t\t\t\t\t\t&& mapHeader.get(promoCode) == null){\n\t\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.not.init\") + \"\\n\";\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tunitPromo.promotionCode = promoCode;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\terrRow.setContent1(promoCode);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.string\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"Mã CTKM\"));\n\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t// 2 Mã đơn vị\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellUnitCode = myRow.getCell(1);\n\t\t\t\t\t\tif (cellUnitCode != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tif(isHasData){\n\t\t\t\t\t\t\t\tString unitCode = getCellValueToString(cellUnitCode);\n\t\t\t\t\t\t\t\t// Kiem tra ma don vi empty\n\t\t\t\t\t\t\t\tif(StringUtil.isNullOrEmpty(unitCode)){\n\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.unit.code.obligate\") + \"\\n\";\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t// Kiem tra don vi ton tai trong he thong\n\t\t\t\t\t\t\t\t\tif(shopMgr.getShopByCode(unitCode) == null){\n\t\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.unit.code.not.permission\") + \"\\n\";\n\t\t\t\t\t\t\t\t\t} else if (currentUser != null && currentUser.getShopRoot() != null){ // kiem tra don vi co thuoc quyen quan ly cua user\n\t\t\t\t\t\t\t\t\t\tlistShopChild = promotionProgramMgr.getListChildByShopId(currentUser.getShopRoot().getShopId());\n\t\t\t\t\t\t\t\t\t\t// Kiem tra shop co thuoc quen quan ly cua user dang nhap\n\t\t\t\t\t\t\t\t\t\tboolean isShopMapWithUser = false;\n\t\t\t\t\t\t\t\t\t\tfor(Shop shop: listShopChild){\n\t\t\t\t\t\t\t\t\t\t\t if(unitCode.toLowerCase().equals(shop.getShopCode().toLowerCase())){\n\t\t\t\t\t\t\t\t\t\t\t\t isShopMapWithUser = true;\n\t\t\t\t\t\t\t\t\t\t\t\t break;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tif(!isShopMapWithUser){\n\t\t\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.unit.code.not.permission.by.current.user\") + \"\\n\";\n\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\tunitPromo.unitCode = unitCode;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\terrRow.setContent2(unitCode);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.string\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"Mã CTKM\"));\n\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t// 3 Số suất \n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellQuantityMax = myRow.getCell(2);\n\t\t\t\t\t\tif (cellQuantityMax != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tString quantityMax = getCellValueToString(cellQuantityMax);\n\t\t\t\t\t\t\tif(quantityMax != null){\n\t\t\t\t\t\t\t\tquantityMax = quantityMax.trim().replace(\",\", \"\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (quantityMax != null && quantityMax.trim().length() <= 9 \n\t\t\t\t\t\t\t\t\t&& StringUtil.isFloat(quantityMax) && Double.parseDouble(quantityMax.trim()) > 0\n\t\t\t\t\t\t\t\t\t&& quantityMax.contains(\".\") == false) {\n\t\t\t\t\t\t\t\tunitPromo.quantityMax = Integer.parseInt(quantityMax.trim().replace(\",\", \"\"));\n\t\t\t\t\t\t\t} else if(quantityMax != null && quantityMax.length() > 9 ){\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.over.max.length\") + \"\\n\";\n\t\t\t\t\t\t\t\tmessageError = messageError.replaceAll(\"%max%\", \"9\");\n\t\t\t\t\t\t\t\tmessageError = messageError.replaceAll(\"%colName%\", \"Số suất\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if (StringUtil.isNullOrEmpty(quantityMax) == false) {\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.quantity.max.incorrect.format\") + \"\\n\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\terrRow.setContent3(quantityMax);\n\t\t\t\t\t\t}else if(cellQuantityMax != null){\n\t\t\t\t\t\t\t// String quantityMax = getCellValueToString(cellQuantityMax);\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.number\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"Số suất\"));\n\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t// 4 Số tiền amountMax\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellAmountMax = myRow.getCell(3);\n\t\t\t\t\t\tif (cellAmountMax != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tString amountMax = getCellValueToString(cellAmountMax);\n\t\t\t\t\t\t\tif(amountMax != null){\n\t\t\t\t\t\t\t\tamountMax = amountMax.trim().replace(\",\", \"\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (amountMax != null && amountMax.length() <= 9 && StringUtil.isFloat(amountMax) \n\t\t\t\t\t\t\t\t\t&& Double.parseDouble(amountMax.trim()) > 0 && amountMax.contains(\".\") == false) {\n\t\t\t\t\t\t\t\tunitPromo.amountMax = new BigDecimal(amountMax.trim().replace(\",\", \"\"));\n\t\t\t\t\t\t\t} else if(amountMax != null && amountMax.length() > 9){\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.over.max.length\") + \"\\n\";\n\t\t\t\t\t\t\t\tmessageError = messageError.replaceAll(\"%max%\", \"9\");\n\t\t\t\t\t\t\t\tmessageError = messageError.replaceAll(\"%colName%\", \"Số tiền\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if (StringUtil.isNullOrEmpty(amountMax) == false) {\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.amount.max.incorrect.format\") + \"\\n\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\terrRow.setContent4(amountMax);\n\t\t\t\t\t\t}else if(cellAmountMax != null){\n\t\t\t\t\t\t\tString amountMax = getCellValueToString(cellAmountMax);\n\t\t\t\t\t\t\terrRow.setContent4(amountMax);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.number\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"Số tiền\"));\n\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t// 5 Số lượng numMax\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellNumMax = myRow.getCell(4);\n\t\t\t\t\t\tif (cellNumMax != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tString numMax = getCellValueToString(cellNumMax);\n\t\t\t\t\t\t\tnumMax = numMax.trim().replace(\",\", \"\");\n\t\t\t\t\t\t\tif (numMax != null && numMax.length() <= 9 \n\t\t\t\t\t\t\t\t\t&& StringUtil.isFloat(numMax) \n\t\t\t\t\t\t\t\t\t&& Double.parseDouble(numMax.trim()) > 0\n\t\t\t\t\t\t\t\t\t&& numMax.contains(\".\") == false) {\n\t\t\t\t\t\t\t\tunitPromo.numMax = new BigDecimal(numMax.trim().replace(\",\", \"\"));\n\t\t\t\t\t\t\t} else if(numMax != null && numMax.length() > 9){\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.over.max.length\") + \"\\n\";\n\t\t\t\t\t\t\t\tmessageError = messageError.replaceAll(\"%max%\", \"9\");\n\t\t\t\t\t\t\t\tmessageError = messageError.replaceAll(\"%colName%\", \"Số lượng\");\n\t\t\t\t\t\t\t}else if (StringUtil.isNullOrEmpty(numMax) == false) {\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.num.max.incorrect.format\") + \"\\n\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\terrRow.setContent5(numMax);\n\t\t\t\t\t\t}else if(cellNumMax != null){\n\t\t\t\t\t\t\tString numMax = getCellValueToString(cellNumMax);\n\t\t\t\t\t\t\terrRow.setContent5(numMax);\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.number\",\n\t\t\t\t\t\t\t\tConfiguration.getResourceString(ConstantManager.VI_LANGUAGE, \"Số lượng\"));\n\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\tif (StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\tlistUnit.add(unitPromo);\n\t\t\t\t\t\tmapUnit.put(unitPromo.promotionCode, unitPromo);\n\t\t\t\t\t}else{\n\t\t\t\t\t\terrRow.setContent6(messageError);\n\t\t\t\t\t\tlistUnitError.add(errRow);\n//\t\t\t\t\t\tif(mapErrorUnit.get(unitPromo.promotionCode) == null){\n//\t\t\t\t\t\t\tmapErrorUnit.put(unitPromo.promotionCode, messageError);\n//\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t/*if (StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\tlistHeader.add(header);\n\t\t\t\t\t\tmapHeader.put(header.promotionCode, header);\n\t\t\t\t\t} else {\n\t\t\t\t\t\terrRow.setContent13(messageError);\n\t\t\t\t\t\tlstHeaderError.add(errRow);\n\t\t\t\t\t\tif (mapErrorPromotion.get(header.promotionCode) == null) {\n\t\t\t\t\t\t\tmapErrorPromotion.put(header.promotionCode, messageError);\n\t\t\t\t\t\t}\n\t\t\t\t\t}*/\n\n\t\t\t\t\tiRun++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//Sheet Co cau KM\n\t\t\t/////\n\t\t\tif (detailSheet != null) {\t\n\t\t\t\tIterator<?> rowIter = detailSheet.rowIterator();\n\t\t\t\tString previousPromotionCode = null;\n\t\t\t\tint typeKM;\n\t\t\t\tMap<String, Integer> mapPromotionType = new HashMap<String, Integer>();\n\t\t\t\tiRun = 0;\n\t\t\t\tMap<String, String[]> mapArrayProduct = new HashMap<String, String[]>();\n\t\t\t\tMap<String, BigDecimal[]> mapArraySaleQuantity = new HashMap<String, BigDecimal[]>();\n\t\t\t\tMap<String, BigDecimal[]> mapArraySaleAmount = new HashMap<String, BigDecimal[]>();\n\t\t\t\tMap<String, BigDecimal[]> mapArrayDiscountAmount = new HashMap<String, BigDecimal[]>();\n\t\t\t\tMap<String, Float[]> mapArrayDiscountPercent = new HashMap<String, Float[]>();\n\t\t\t\tMap<String, Integer[]> mapArrayQuantityUnit = new HashMap<String, Integer[]>();\n\t\t\t\tMap<String, String[]> mapArrayFreeProduct = new HashMap<String, String[]>();\n\t\t\t\tMap<String, BigDecimal[]> mapArrayFreeQuantity = new HashMap<String, BigDecimal[]>();\n\t\t\t\tMap<String, Integer[]> mapArrayFreeQuantityUnit = new HashMap<String, Integer[]>();\n\t\t\t\tMap<String, Boolean[]> mapArrayAndOr = new HashMap<String, Boolean[]>();\n\t\t\t\tMap<String, String[]> mapPromoGroupCode = new HashMap<String, String[]>();\n\t\t\t\tMap<String, String[]> mapPromoGroupName = new HashMap<String, String[]>();\n\t\t\t\tMap<String, String[]> mapPromoLevelCode = new HashMap<String, String[]>();\n//\t\t\t\tMap<String, Integer[]> mapMultiple = new HashMap<String, Integer[]>();\n//\t\t\t\tMap<String, Integer[]> mapRecursive = new HashMap<String, Integer[]>();\n//\t\t\t\tMap<String, Integer[]> mapDkgh = new HashMap<String,Integer[]>();\n\t\t\t\t\n\t\t\t\tLinkedHashMap<String, Integer> lstProductPromo = new LinkedHashMap<String, Integer>();\n\t\t\t\tMap<String, List<Row>> lstRow = new HashMap<String, List<Row>>();\n\t\t\t\tint indexProductPromo = 0;\n\t\t\t\tint maxSizeSheet2 = 12;\n\t\t\t\tPromotionProgram existPromotion = null;\n\t\t\t\twhile (rowIter.hasNext()) {\n\t\t\t\t\tRow myRow = (Row) rowIter.next();\n\t\t\t\t\tif (iRun == 0) {\n\t\t\t\t\t\tiRun++;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tboolean isContinue = true;\n\t\t\t\t\t//Kiem tra su hop le cua Row Import\n\t\t\t\t\tfor (int i = 0; i < maxSizeSheet2; i++) {\n\t\t\t\t\t\tif (myRow.getCell(i) != null) {\n\t\t\t\t\t\t\tisContinue = false;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (isContinue) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tExcelPromotionDetail detail = new ExcelPromotionDetail();\n\t\t\t\t\tCellBean errRow = new CellBean();\n\t\t\t\t\tString messageError = \"\";\n\t\t\t\t\t//0 get promotionCode\n\t\t\t\t\tString promotionCode = null;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellPromotionCode = myRow.getCell(0);\n\t\t\t\t\t\tif (cellPromotionCode != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\t//\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t//\t\t\t\t\t\t\tpromotionCode = cellPromotionCode.getStringCellValue();\n\t\t\t\t\t\t\t//\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t//\t\t\t\t\t\t\tpromotionCode = String.valueOf(cellPromotionCode.getNumericCellValue());\n\t\t\t\t\t\t\t//\t\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t\t\t//\t\t\t\t\t\t}\n\t\t\t\t\t\t\tpromotionCode = getCellValueToString(cellPromotionCode);\n\t\t\t\t\t\t\tpromotionCode = promotionCode != null ? promotionCode.trim().toUpperCase().trim() : \"\";\n\t\t\t\t\t\t\tif (StringUtil.isNullOrEmpty(promotionCode)) {\n\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tmessageError += ValidateUtil.validateField(promotionCode, \"catalog.promotion.import.column.progcode\", 50, ConstantManager.ERR_REQUIRE, ConstantManager.ERR_MAX_LENGTH, ConstantManager.ERR_EXIST_SPECIAL_CHAR_IN_CODE);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\texistPromotion = promotionProgramMgr.getPromotionProgramByCode(promotionCode);\n\t\t\t\t\t\t\tif (existPromotion == null && mapHeader.get(promotionCode) == null) {\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.not.init\") + \"\\n\";\n\t\t\t\t\t\t\t\t//messageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.program.not.exists\");\n\t\t\t\t\t\t\t\t//messageError += \"\\n\";\n\t\t\t\t\t\t\t\t//else if(existPromotion != null && mapHeader.get(promotionCode) == null){\n\t\t\t\t\t\t\t} else if(existPromotion != null && ActiveType.RUNNING.equals(existPromotion.getStatus())){\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.program.exists\") + \"\\n\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tdetail.promotionCode = promotionCode;\n\t\t\t\t\t\t\terrRow.setContent1(promotionCode);\n\t\t\t\t\t\t\tif (StringUtil.isNullOrEmpty(promotionCode)) {\n\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"common.required\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.code\"));\n\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.string\", iRun, \"Mã CTKM\") + \"\\n\";\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t//1 get type\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (myRow.getCell(1) != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\t//\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t//\t\t\t\t\t\t\tdetail.type = myRow.getCell(1).getStringCellValue();\n\t\t\t\t\t\t\t//\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t//\t\t\t\t\t\t\tdetail.type = String.valueOf(myRow.getCell(1).getNumericCellValue());\n\t\t\t\t\t\t\t//\t\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t\t\t//\t\t\t\t\t\t}\n\t\t\t\t\t\t\tdetail.type = getCellValueToString(myRow.getCell(1));\n\t\t\t\t\t\t\tdetail.type = detail.type != null ? detail.type.trim().toUpperCase().trim() : \"\";\n\t\t\t\t\t\t\tif (StringUtil.isNullOrEmpty(detail.type)) {\n\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tif (mapCheckType.get(detail.type) == null) {\n\t\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.exists.before\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.type\"));\n\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t} else if (mapType.get(promotionCode) == null) {\n\t\t\t\t\t\t\t\t\tif (null != existPromotion && existPromotion.getType().equalsIgnoreCase(detail.type)) {\n\t\t\t\t\t\t\t\t\t\tmapType.put(detail.promotionCode, detail.type);\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.type.is.not.same2\") + \"\\n\";\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else if (!mapType.get(promotionCode).equals(detail.type)) {\n\t\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.type.is.not.same2\") + \"\\n\";\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\terrRow.setContent2(getCellValueToString(myRow.getCell(1)));\n\t\t\t\t\t\t}else if(myRow.getCell(1) != null){\n\t\t\t\t\t\t\terrRow.setContent2(getCellValueToString(myRow.getCell(1)));\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.string\", iRun, \"Loại CTKM\") + \"\\n\";\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t//2 Mã nhóm\n\t\t\t\t\t/*try {\n\t\t\t\t\t\tCell cellGroupCode = myRow.getCell(2);\n\t\t\t\t\t\tString groupCode = null;\n\t\t\t\t\t\tif (cellGroupCode != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tgroupCode = getCellValueToString(cellGroupCode);\n\t\t\t\t\t\t\tmessageError = ValidateUtil.validateField(noticeCode, \"catalog.promotion.noticecode\", 100, ConstantManager.ERR_EXIST_SPECIAL_CHAR_IN_SPECIAL);\n\t\t\t\t\t\t\tif (StringUtil.isNullOrEmpty(groupCode)) {\n\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.promotion.group.code.obligate\") + \"\\n\";\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tdetail.promoGroupCode = groupCode;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\terrRow.setContent3(groupCode);\n\t\t\t\t\t\t}else if (cellGroupCode != null) {\n\t\t\t\t\t\t\tgroupCode = getCellValueToString(cellGroupCode);\n\t\t\t\t\t\t\terrRow.setContent3(groupCode);\n\t\t\t\t\t\t}else if (cellGroupCode == null) {\n\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.promotion.group.code.obligate\") + \"\\n\";\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.string\", iRun, \"Mã nhóm\") + \"\\n\";\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t// 3 Tên nhóm\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellGroupName = myRow.getCell(3);\n\t\t\t\t\t\tString groupName = null;\n\t\t\t\t\t\tif (cellGroupName != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tgroupName = getCellValueToString(cellGroupName);\n\t\t\t\t\t\t\tif (StringUtil.isNullOrEmpty(groupName)) {\n\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.promotion.group.name.obligate\") + \"\\n\";\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tdetail.promoGroupName = groupName;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\terrRow.setContent4(groupName);\n\t\t\t\t\t\t}else if (cellGroupName != null) {\n\t\t\t\t\t\t\tgroupName = getCellValueToString(cellGroupName);\n\t\t\t\t\t\t\terrRow.setContent4(groupName);\n\t\t\t\t\t\t}else if (cellGroupName == null) {\n\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.promotion.group.name.obligate\") + \"\\n\";\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.string\", iRun, \"Tên nhóm\") + \"\\n\";\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t// 4 Mã mức\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellLevelCode = myRow.getCell(4);\n\t\t\t\t\t\tString levelCode = null;\n\t\t\t\t\t\tif (cellLevelCode != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tlevelCode = getCellValueToString(cellLevelCode);\n\t\t\t\t\t\t\tif (StringUtil.isNullOrEmpty(levelCode)) {\n\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.promotion.level.code.obligate\") + \"\\n\";\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tdetail.promoLevelCode = levelCode;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\terrRow.setContent5(levelCode);\n\t\t\t\t\t\t} else if (cellLevelCode != null) {\n\t\t\t\t\t\t\tlevelCode = getCellValueToString(cellLevelCode);\n\t\t\t\t\t\t\terrRow.setContent5(levelCode);\n\t\t\t\t\t\t}else if (cellLevelCode == null) {\n\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.promotion.level.code.obligate\") + \"\\n\";\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.string\", iRun, \"Tên nhóm\") + \"\\n\";\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}*/\n\t\t\t\t\t//5 Tên mức\n\t\t\t\t\t/*try {\n\t\t\t\t\t\tCell cellLevelName = myRow.getCell(5);\n\t\t\t\t\t\tString levelName = null;\n\t\t\t\t\t\tif (cellLevelName != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tlevelName = getCellValueToString(cellLevelName);\n\t\t\t\t\t\t\tif (StringUtil.isNullOrEmpty(levelName)) {\n\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.promotion.level.name.obligate \") + \"\\n\";\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tdetail.promoLevelName = levelName;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\terrRow.setContent6(levelName);\n\t\t\t\t\t\t} else if (cellLevelName == null) {\n\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.promotion.level.name.obligate \") + \"\\n\";\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.string\", iRun, \"Tên nhóm\") + \"\\n\";\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}*/\n\t\t\t\t\t//2 get productCode\n\t\t\t\t\tString productCode = \"\";\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (checkColumnNecessary(detail.type, 2) && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tCell cellProductCode = myRow.getCell(2);\n\t\t\t\t\t\t\tif (cellProductCode != null) {\n\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\tproductCode = cellProductCode.getStringCellValue();\n\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\tproductCode = String.valueOf(cellProductCode.getNumericCellValue());\n\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\tLogUtility.logError(ex, ex.getMessage());\n\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tproductCode = getCellValueToString(cellProductCode);\n\t\t\t\t\t\t\t\tif (!StringUtil.isNullOrEmpty(productCode)) {\n\t\t\t\t\t\t\t\t\tProduct product = productMgr.getProductByCode(productCode.trim());\n\t\t\t\t\t\t\t\t\tif (product == null) {\n\t\t\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"common.not.exist.in.db\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.buyproduct.code\"));\n\t\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tdetail.productCode = productCode.toUpperCase().trim();\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.column.null\", \"Mã Sản Phẩm Mua\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.column.null\", \"Mã Sản Phẩm Mua\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (myRow.getCell(2) != null) {\n\t\t\t\t\t\t\terrRow.setContent3(getCellValueToString(myRow.getCell(2)));\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.get.product.error\", productCode);\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t//3 getQuantity\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (checkColumnNecessary(detail.type, 3) && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tCell cellQuantity = myRow.getCell(3);\n\t\t\t\t\t\t\tif (cellQuantity != null && cellQuantity.getCellType() != Cell.CELL_TYPE_BLANK) {\n\t\t\t\t\t\t\t\tif (cellQuantity.getCellType() == Cell.CELL_TYPE_NUMERIC) {\n\t\t\t\t\t\t\t\t\tBigDecimal quantity = new BigDecimal(cellQuantity.getNumericCellValue());\n\t\t\t\t\t\t\t\t\tif (quantity == null || quantity.compareTo(BigDecimal.ZERO) <= 0) {\n\t\t\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"common.not.date\", \"SL Sản Phẩm Mua\");\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tdetail.saleQuantity = quantity;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.column.invalid.format.number\", \"SL Sản Phẩm Mua\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.column.null\", \"SL Sản Phẩm Mua\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (myRow.getCell(3) != null) {\n\t\t\t\t\t\t\terrRow.setContent4(getCellValueToString(myRow.getCell(3)));\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.number\", iRun, \"SL Sản Phẩm Mua\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t//4 get UOM\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (checkColumnNecessary(detail.type, 4) && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tCell cellProductUnit = myRow.getCell(4);\n\t\t\t\t\t\t\tif (cellProductUnit != null && cellProductUnit.getCellType() != Cell.CELL_TYPE_BLANK) {\n\t\t\t\t\t\t\t\tif (cellProductUnit.getCellType() == Cell.CELL_TYPE_STRING) {\n\t\t\t\t\t\t\t\t\tString unit = cellProductUnit.getStringCellValue();\n\t\t\t\t\t\t\t\t\tif (unit == null || StringUtil.isNullOrEmpty(unit)) {\n\t\t\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"common.not.date\", \"Đơn Vị Tính Cho SP Mua\");\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif (unit.trim().toLowerCase().equals(\"LẺ\".toLowerCase())) {\n\t\t\t\t\t\t\t\t\t\tdetail.productUnit = 1;\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tdetail.productUnit = 2;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.column.invalid.format.number\", \"Đơn Vị Tính Cho SP Mua\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.column.null\", \"Đơn Vị Tính Cho SP Mua\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (myRow.getCell(4) != null) {\n\t\t\t\t\t\t\terrRow.setContent5(getCellValueToString(myRow.getCell(4)));\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.string\", iRun, \"Đơn Vị Tính Cho SP Mua\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t//5 getAmount\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (checkColumnNecessary(detail.type, 5) && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tCell cellAmount = myRow.getCell(5);\n\t\t\t\t\t\t\tif (cellAmount != null && cellAmount.getCellType() != Cell.CELL_TYPE_BLANK) {\n\t\t\t\t\t\t\t\tif (cellAmount.getCellType() == Cell.CELL_TYPE_NUMERIC) {\n\t\t\t\t\t\t\t\t\tBigDecimal amount = BigDecimal.valueOf(cellAmount.getNumericCellValue());\n\t\t\t\t\t\t\t\t\tif (amount == null || amount.compareTo(BigDecimal.ZERO) < 0) {\n\t\t\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"common.not.date\", \"Số Tiền SP Mua\");\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tdetail.saleAmount = amount;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.column.invalid.format.number\", \"Số Tiền SP Mua\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.column.null\", \"Số Tiền SP Mua\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (myRow.getCell(5) != null) {\n\t\t\t\t\t\t\terrRow.setContent6(getCellValueToString(myRow.getCell(5)));\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.number\", iRun, \"Số Tiền SP Mua\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t//6 getDiscount Amount\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (checkColumnNecessary(detail.type, 6) && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tCell cellDiscountAmount = myRow.getCell(6);\n\t\t\t\t\t\t\tif (cellDiscountAmount != null && cellDiscountAmount.getCellType() != Cell.CELL_TYPE_BLANK) {\n\t\t\t\t\t\t\t\tif (cellDiscountAmount.getCellType() == Cell.CELL_TYPE_NUMERIC) {\n\t\t\t\t\t\t\t\t\tBigDecimal discountAmount = BigDecimal.valueOf(cellDiscountAmount.getNumericCellValue());\n\t\t\t\t\t\t\t\t\tif (discountAmount == null || discountAmount.compareTo(BigDecimal.ZERO) < 0) {\n\t\t\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"common.not.date\", \"Số Tiền SP KM\");\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tdetail.discountAmount = discountAmount;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.column.invalid.format.number\", \"Số Tiền SP KM\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.column.null\", \"Số Tiền SP KM\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (myRow.getCell(6) != null) {\n\t\t\t\t\t\t\terrRow.setContent7(getCellValueToString(myRow.getCell(6)));\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.number\", iRun, \"Số Tiền SP KM\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t//7 get discount percent\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (checkColumnNecessary(detail.type, 7) && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tCell cellDiscountPercent = myRow.getCell(7);\n\t\t\t\t\t\t\tif (cellDiscountPercent != null && cellDiscountPercent.getCellType() != Cell.CELL_TYPE_BLANK) {\n\t\t\t\t\t\t\t\tif (cellDiscountPercent.getCellType() == Cell.CELL_TYPE_NUMERIC) {\n\t\t\t\t\t\t\t\t\tFloat discountPercent = (float) cellDiscountPercent.getNumericCellValue();\n\t\t\t\t\t\t\t\t\tif (discountPercent == null || discountPercent < 0 || discountPercent > 100) {\n\t\t\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"common.not.date\", \"% KM\");\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tdetail.discountPercent = discountPercent;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.column.invalid.format.float\", \"% KM\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.column.null\", \"% KM\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (myRow.getCell(7) != null) {\n\t\t\t\t\t\t\terrRow.setContent8(getCellValueToString(myRow.getCell(7)));\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.number\", iRun, \"DiscPer\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t//8 get Free product code\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (checkColumnNecessary(detail.type, 8) && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tCell cellFreeProductCode = myRow.getCell(8);\n\t\t\t\t\t\t\tif (cellFreeProductCode != null) {\n\t\t\t\t\t\t\t\tString freeProductCode = getCellValueToString(cellFreeProductCode);\n\t\t\t\t\t\t\t\tif (!StringUtil.isNullOrEmpty(freeProductCode)) {\n\t\t\t\t\t\t\t\t\tProduct freeProduct = productMgr.getProductByCode(freeProductCode.trim());\n\t\t\t\t\t\t\t\t\tif (freeProduct == null) {\n\t\t\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"common.not.exist.in.db\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.disproduct.code\"));\n\t\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tdetail.freeProductCode = freeProductCode.toUpperCase().trim();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.column.null\", \"Mã SP KM\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (myRow.getCell(8) != null) {\n\t\t\t\t\t\t\terrRow.setContent9(getCellValueToString(myRow.getCell(8)));\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.string\", iRun, \"Mã SP KM\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t//9 get free Quantity\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (checkColumnNecessary(detail.type, 9) && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tCell cellFreeQuantity = myRow.getCell(9);\n\t\t\t\t\t\t\tif (cellFreeQuantity != null && cellFreeQuantity.getCellType() != Cell.CELL_TYPE_BLANK) {\n\t\t\t\t\t\t\t\tif (cellFreeQuantity.getCellType() == Cell.CELL_TYPE_NUMERIC) {\n\t\t\t\t\t\t\t\t\tBigDecimal freeQuantity = new BigDecimal(cellFreeQuantity.getNumericCellValue());\n\t\t\t\t\t\t\t\t\tif (freeQuantity == null || freeQuantity.compareTo(BigDecimal.ZERO) < 0) {\n\t\t\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"common.not.date\", \"Số Lượng KM\");\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tdetail.freeQuantity = freeQuantity;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.column.invalid.format.number\", \"Số Lượng KM\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.column.null\", \"Số Lượng KM\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (myRow.getCell(9) != null) {\n\t\t\t\t\t\t\terrRow.setContent10(getCellValueToString(myRow.getCell(9)));\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.number\", iRun, \"Số Lượng KM\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t//10 get Free UOM\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (checkColumnNecessary(detail.type, 10) && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tCell cellProductUnit = myRow.getCell(10);\n\t\t\t\t\t\t\tif (cellProductUnit != null && cellProductUnit.getCellType() != Cell.CELL_TYPE_BLANK) {\n\t\t\t\t\t\t\t\tif (cellProductUnit.getCellType() == Cell.CELL_TYPE_STRING) {\n\t\t\t\t\t\t\t\t\tString unit = cellProductUnit.getStringCellValue();\n\t\t\t\t\t\t\t\t\tif (unit == null || StringUtil.isNullOrEmpty(unit)) {\n\t\t\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"common.not.date\", \"Đơn Vị Tính cho SP KM\");\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif (unit.trim().toLowerCase().equals(\"LẺ\".toLowerCase())) {\n\t\t\t\t\t\t\t\t\t\tdetail.freeProductUnit = 1;\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tdetail.freeProductUnit = 2;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.column.invalid.format.number\", \"Đơn Vị Tính cho SP KM\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (myRow.getCell(10) != null) {\n\t\t\t\t\t\t\terrRow.setContent11(getCellValueToString(myRow.getCell(10)));\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.string\", iRun, \"Đơn Vị Tính cho SP KM\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t//11 get And Or\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (checkColumnNecessary(detail.type, 11) && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tCell cellAndOrCell = myRow.getCell(11);\n\t\t\t\t\t\t\tif (cellAndOrCell != null) {\n\t\t\t\t\t\t\t\tString value;\n\t\t\t\t\t\t\t\tif (cellAndOrCell.getCellType() != Cell.CELL_TYPE_NUMERIC) {\n\t\t\t\t\t\t\t\t\tvalue = cellAndOrCell.getStringCellValue();\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tvalue = String.valueOf((float) cellAndOrCell.getNumericCellValue());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (\"X\".equals(value.trim().toUpperCase())) {\n\t\t\t\t\t\t\t\t\tdetail.andOr = true;\n\t\t\t\t\t\t\t\t\terrRow.setContent12(value);\n\t\t\t\t\t\t\t\t} else if (\"\".equals(value.trim().toUpperCase())) {\n\t\t\t\t\t\t\t\t\tdetail.andOr = false;\n\t\t\t\t\t\t\t\t\terrRow.setContent12(value);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\terrRow.setContent13(value);\n\t\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.read.cell.format.invalid\", iRun, \"AllFreeItemcode\", \"['','X']\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tdetail.andOr = false;\n\t\t\t\t\t\t\t\terrRow.setContent12(\"\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.read.cell.format.invalid\", iRun, \"AllFreeItemcode\", \"['','X']\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// 12 ĐKGH\n\t\t\t\t\t/*try{\n\t\t\t\t\t\tApParam apParam = apParamMgr.getApParamByCode(\"LIST_ALLOW_DKGH\", ApParamType.LIST_ALLOW_DKGH);\n\t\t\t\t\t\tString strListPromo = apParam.getApParamName();\n\t\t\t\t\t\tCell cellDKGH = myRow.getCell(17);\n\t\t\t\t\t\tString[] ListAllow = strListPromo.split(\",\");\n\t\t\t\t\t\tif(Arrays.asList(ListAllow).contains(detail.type)){\n\t\t\t\t\t\t\tif(cellDKGH != null && StringUtil.isNullOrEmpty(messageError)){\n\t\t\t\t\t\t\t\tString dkgh = getCellValueToString(cellDKGH);\n\t\t\t\t\t\t\t\tif(dkgh != null \n\t\t\t\t\t\t\t\t\t\t&& (Constant.HAVE_CONDITION.equals(dkgh) || (Constant.NON_CONDITION.equals(dkgh)))){\n\t\t\t\t\t\t\t\t\tdetail.dkgh = Integer.parseInt(dkgh.trim());\n\t\t\t\t\t\t\t\t}else if(dkgh != null){\n\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.dkgh.incorrect.format\")+\"\\n\";\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\terrRow.setContent18(dkgh);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else if(cellDKGH != null){\n\t\t\t\t\t\t\tString dkgh = getCellValueToString(cellDKGH);\n\t\t\t\t\t\t\terrRow.setContent18(dkgh);\n\t\t\t\t\t\t}\n\t\t\t\t\t}catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.number\", iRun, \"DKGH\", \"['','X']\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}*/\n\t\t\t\t\tif (mapPromotionTypeCheck.get(detail.promotionCode) == null) {\n\t\t\t\t\t\tmapPromotionTypeCheck.put(detail.promotionCode, detail.type);\n\t\t\t\t\t}\n\t\t\t\t\tif (!promotionCode.equals(previousPromotionCode)) {\n\t\t\t\t\t\tif (mapPromotionType.get(detail.promotionCode) != null) {//da ton tai ctkm nay truoc do roi\n\t\t\t\t\t\t\t//typeKM = mapPromotionType.get(detail.promotionCode);//=> lay ra loai cua no thoi\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif (!StringUtil.isNullOrEmpty(detail.productCode) && detail.saleQuantity != null && detail.saleQuantity.compareTo(BigDecimal.ZERO) > 0 && !StringUtil.isNullOrEmpty(detail.freeProductCode) && detail.freeQuantity != null\n\t\t\t\t\t\t\t\t\t&& detail.freeQuantity.compareTo(BigDecimal.ZERO) > 0) {\n\t\t\t\t\t\t\t\ttypeKM = 1;//ZV03\n\t\t\t\t\t\t\t} else if (!StringUtil.isNullOrEmpty(detail.productCode) && detail.saleQuantity != null && detail.saleQuantity.compareTo(BigDecimal.ZERO) > 0 && detail.discountAmount != null && detail.discountAmount.compareTo(\n\t\t\t\t\t\t\t\t\tBigDecimal.ZERO) > 0) {\n\t\t\t\t\t\t\t\ttypeKM = 2;//ZV02\n\t\t\t\t\t\t\t} else if (!StringUtil.isNullOrEmpty(detail.productCode) && detail.saleQuantity != null && detail.saleQuantity.compareTo(BigDecimal.ZERO) > 0 && detail.discountPercent != null && detail.discountPercent > 0) {\n\t\t\t\t\t\t\t\ttypeKM = 3;//ZV01\n\t\t\t\t\t\t\t} else if (!StringUtil.isNullOrEmpty(detail.productCode) && detail.saleAmount != null && detail.saleAmount.compareTo(BigDecimal.ZERO) > 0 && !StringUtil.isNullOrEmpty(detail.freeProductCode) && detail.freeQuantity != null\n\t\t\t\t\t\t\t\t\t&& detail.freeQuantity.compareTo(BigDecimal.ZERO) > 0) {\n\t\t\t\t\t\t\t\ttypeKM = 4;\n\t\t\t\t\t\t\t} else if (!StringUtil.isNullOrEmpty(detail.productCode) && detail.saleAmount != null && detail.saleAmount.compareTo(BigDecimal.ZERO) > 0 && detail.discountAmount != null && detail.discountAmount.compareTo(\n\t\t\t\t\t\t\t\t\tBigDecimal.ZERO) > 0) {\n\t\t\t\t\t\t\t\ttypeKM = 5;\n\t\t\t\t\t\t\t} else if (!StringUtil.isNullOrEmpty(detail.productCode) && detail.saleAmount != null && detail.saleAmount.compareTo(BigDecimal.ZERO) > 0 && detail.discountPercent != null && detail.discountPercent > 0) {\n\t\t\t\t\t\t\t\ttypeKM = 6;\n\t\t\t\t\t\t\t} else if (detail.saleAmount != null && detail.saleAmount.compareTo(BigDecimal.ZERO) > 0 && !StringUtil.isNullOrEmpty(detail.freeProductCode) && detail.freeQuantity != null && detail.freeQuantity.compareTo(\n\t\t\t\t\t\t\t\t\tBigDecimal.ZERO) > 0) {\n\t\t\t\t\t\t\t\ttypeKM = 7;\n\t\t\t\t\t\t\t} else if (detail.saleAmount != null && detail.saleAmount.compareTo(BigDecimal.ZERO) > 0 && detail.discountAmount != null && detail.discountAmount.compareTo(BigDecimal.ZERO) > 0) {\n\t\t\t\t\t\t\t\ttypeKM = 8;\n\t\t\t\t\t\t\t} else if (detail.saleAmount != null && detail.saleAmount.compareTo(BigDecimal.ZERO) > 0 && detail.discountPercent != null && detail.discountPercent > 0) {\n\t\t\t\t\t\t\t\ttypeKM = 9;\n\t\t\t\t\t\t\t} else if (detail.saleQuantity != null && detail.saleQuantity.compareTo(BigDecimal.ZERO) > 0 && !StringUtil.isNullOrEmpty(detail.freeProductCode) && detail.freeQuantity != null && detail.freeQuantity.compareTo(\n\t\t\t\t\t\t\t\t\tBigDecimal.ZERO) > 0) {\n\t\t\t\t\t\t\t\ttypeKM = 10;//ZV24\n\t\t\t\t\t\t\t} else if (detail.saleQuantity != null && detail.saleQuantity.compareTo(BigDecimal.ZERO) > 0 && detail.discountAmount != null && detail.discountAmount.compareTo(BigDecimal.ZERO) > 0) {\n\t\t\t\t\t\t\t\ttypeKM = 11;//ZV23\n\t\t\t\t\t\t\t} else if (detail.saleQuantity != null && detail.saleQuantity.compareTo(BigDecimal.ZERO) > 0 && detail.discountPercent != null && detail.discountPercent > 0) {\n\t\t\t\t\t\t\t\ttypeKM = 12;//ZV22\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\ttypeKM = -1;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tmapPromotionType.put(detail.promotionCode, typeKM);\n\t\t\t\t\t\t\tpreviousPromotionCode = detail.promotionCode;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\t//typeKM = mapPromotionType.get(detail.promotionCode);\n\t\t\t\t\t}\n\n\t\t\t\t\tif (StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\tList<Row> lstR = lstRow.get(detail.promotionCode);\n\t\t\t\t\t\tif (lstR == null) {\n\t\t\t\t\t\t\tlstR = new ArrayList<Row>();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tmessageError = checkDuplicate(mapType.get(detail.promotionCode), lstR, myRow);\n\t\t\t\t\t\tif(StringUtil.isNullOrEmpty(messageError)){\n\t\t\t\t\t\t\tlistDetail.add(detail);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tlstR.add(myRow);\n\t\t\t\t\t\tlstRow.put(detail.promotionCode, lstR);\n\t\t\t\t\t}\n\t\t\t\t\tif (StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\tif (mapArrayProduct.get(detail.promotionCode) == null) {\n\t\t\t\t\t\t\tString[] arrProduct = new String[MAX_ARRAY];\n\t\t\t\t\t\t\tarrProduct[iRun] = detail.productCode;\n\t\t\t\t\t\t\tmapArrayProduct.put(detail.promotionCode, arrProduct);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tString[] arrProduct = mapArrayProduct.get(detail.promotionCode);\n\t\t\t\t\t\t\tarrProduct[iRun] = detail.productCode;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (mapArraySaleQuantity.get(detail.promotionCode) == null) {\n\t\t\t\t\t\t\tBigDecimal[] arrSaleQuantity = new BigDecimal[MAX_ARRAY];\n\t\t\t\t\t\t\tarrSaleQuantity[iRun] = detail.saleQuantity;\n\t\t\t\t\t\t\tmapArraySaleQuantity.put(detail.promotionCode, arrSaleQuantity);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tBigDecimal[] arrSaleQuantity = mapArraySaleQuantity.get(detail.promotionCode);\n\t\t\t\t\t\t\tarrSaleQuantity[iRun] = detail.saleQuantity;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (mapArrayQuantityUnit.get(detail.promotionCode) == null) {\n\t\t\t\t\t\t\tInteger[] arrUnit = new Integer[MAX_ARRAY];\n\t\t\t\t\t\t\tarrUnit[iRun] = detail.productUnit;\n\t\t\t\t\t\t\tmapArrayQuantityUnit.put(detail.promotionCode, arrUnit);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tInteger[] arrUnit = mapArrayQuantityUnit.get(detail.promotionCode);\n\t\t\t\t\t\t\tarrUnit[iRun] = detail.productUnit;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (mapArraySaleAmount.get(detail.promotionCode) == null) {\n\t\t\t\t\t\t\tBigDecimal[] arrSaleAmount = new BigDecimal[MAX_ARRAY];\n\t\t\t\t\t\t\tarrSaleAmount[iRun] = detail.saleAmount;\n\t\t\t\t\t\t\tmapArraySaleAmount.put(detail.promotionCode, arrSaleAmount);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tBigDecimal[] arrSaleAmount = mapArraySaleAmount.get(detail.promotionCode);\n\t\t\t\t\t\t\tarrSaleAmount[iRun] = detail.saleAmount;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (mapArrayFreeProduct.get(detail.promotionCode) == null) {\n\t\t\t\t\t\t\tString[] arrFreeProduct = new String[MAX_ARRAY];\n\t\t\t\t\t\t\tarrFreeProduct[iRun] = detail.freeProductCode;\n\t\t\t\t\t\t\tmapArrayFreeProduct.put(detail.promotionCode, arrFreeProduct);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tString[] arrFreeProduct = mapArrayFreeProduct.get(detail.promotionCode);\n\t\t\t\t\t\t\tarrFreeProduct[iRun] = detail.freeProductCode;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (mapArrayFreeQuantityUnit.get(detail.promotionCode) == null) {\n\t\t\t\t\t\t\tInteger[] arrUnit = new Integer[MAX_ARRAY];\n\t\t\t\t\t\t\tarrUnit[iRun] = detail.freeProductUnit;\n\t\t\t\t\t\t\tmapArrayFreeQuantityUnit.put(detail.promotionCode, arrUnit);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tInteger[] arrUnit = mapArrayFreeQuantityUnit.get(detail.promotionCode);\n\t\t\t\t\t\t\tarrUnit[iRun] = detail.freeProductUnit;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (mapArrayFreeQuantity.get(detail.promotionCode) == null) {\n\t\t\t\t\t\t\tBigDecimal[] arrFreeQuantity = new BigDecimal[MAX_ARRAY];\n\t\t\t\t\t\t\tarrFreeQuantity[iRun] = detail.freeQuantity;\n\t\t\t\t\t\t\tmapArrayFreeQuantity.put(detail.promotionCode, arrFreeQuantity);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tBigDecimal[] arrFreeProduct = mapArrayFreeQuantity.get(detail.promotionCode);\n\t\t\t\t\t\t\tarrFreeProduct[iRun] = detail.freeQuantity;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (mapArrayDiscountAmount.get(detail.promotionCode) == null) {\n\t\t\t\t\t\t\tBigDecimal[] arrDiscountAmount = new BigDecimal[MAX_ARRAY];\n\t\t\t\t\t\t\tarrDiscountAmount[iRun] = detail.discountAmount;\n\t\t\t\t\t\t\tmapArrayDiscountAmount.put(detail.promotionCode, arrDiscountAmount);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tBigDecimal[] arrDiscountAmount = mapArrayDiscountAmount.get(detail.promotionCode);\n\t\t\t\t\t\t\tarrDiscountAmount[iRun] = detail.discountAmount;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (mapArrayDiscountPercent.get(detail.promotionCode) == null) {\n\t\t\t\t\t\t\tFloat[] arrDiscountPercent = new Float[MAX_ARRAY];\n\t\t\t\t\t\t\tarrDiscountPercent[iRun] = detail.discountPercent;\n\t\t\t\t\t\t\tmapArrayDiscountPercent.put(detail.promotionCode, arrDiscountPercent);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tFloat[] arrDiscountPercent = mapArrayDiscountPercent.get(detail.promotionCode);\n\t\t\t\t\t\t\tarrDiscountPercent[iRun] = detail.discountPercent;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (mapArrayAndOr.get(detail.promotionCode) == null) {\n\t\t\t\t\t\t\tBoolean[] arrAndOr = new Boolean[MAX_ARRAY];\n\t\t\t\t\t\t\tarrAndOr[iRun] = detail.andOr;\n\t\t\t\t\t\t\tmapArrayAndOr.put(detail.promotionCode, arrAndOr);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tBoolean[] arrAndOr = mapArrayAndOr.get(detail.promotionCode);\n\t\t\t\t\t\t\tarrAndOr[iRun] = detail.andOr;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// map Ma nhom\n\t\t\t\t\t\tif(mapPromoGroupCode.get(detail.promotionCode) == null){\n\t\t\t\t\t\t\tString[] arrPromoGroupCode = new String[MAX_ARRAY];\n\t\t\t\t\t\t\tarrPromoGroupCode[iRun] = detail.promoGroupCode;\n\t\t\t\t\t\t\tmapPromoGroupCode.put(detail.promotionCode, arrPromoGroupCode);\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tString[] arrPromoGroupCode = mapPromoGroupCode.get(detail.promotionCode);\n\t\t\t\t\t\t\tarrPromoGroupCode[iRun] = detail.promoGroupCode;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// map Ten nhom\n\t\t\t\t\t\tif(mapPromoGroupName.get(detail.promotionCode) == null){\n\t\t\t\t\t\t\tString[] arrPromoGroupName = new String[MAX_ARRAY];\n\t\t\t\t\t\t\tarrPromoGroupName[iRun] = detail.promoGroupName;\n\t\t\t\t\t\t\tmapPromoGroupName.put(detail.promotionCode, arrPromoGroupName);\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tString[] arrPromoGroupName = mapPromoGroupName.get(detail.promotionCode);\n\t\t\t\t\t\t\tarrPromoGroupName[iRun] = detail.promoGroupName;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// map Ma muc\n\t\t\t\t\t\tif(mapPromoLevelCode.get(detail.promotionCode) == null){\n\t\t\t\t\t\t\tString[] arrayPromoLevelCode = new String[MAX_ARRAY];\n\t\t\t\t\t\t\tarrayPromoLevelCode[iRun] = detail.promoLevelCode;\n\t\t\t\t\t\t\tmapPromoLevelCode.put(detail.promotionCode, arrayPromoLevelCode);\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tString[] arrayPromoLevelCode = mapPromoLevelCode.get(detail.promotionCode);\n\t\t\t\t\t\t\tarrayPromoLevelCode[iRun] = detail.promoLevelCode;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// map Bội số\n\t\t\t\t\t\t/*if(mapMultiple.get(detail.promotionCode) == null){\n\t\t\t\t\t\t\tInteger[] arrMultiple = new Integer[MAX_ARRAY];\n\t\t\t\t\t\t\tarrMultiple[iRun] = detail.multiple;\n\t\t\t\t\t\t\tmapMultiple.put(detail.promotionCode, arrMultiple);\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tInteger[] arrMultiple = mapMultiple.get(detail.promotionCode);\n\t\t\t\t\t\t\tarrMultiple[iRun] = detail.multiple;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// map Tối ưu\n\t\t\t\t\t\tif(mapRecursive.get(detail.promotionCode) == null){\n\t\t\t\t\t\t\tInteger[] arrRecursive = new Integer[MAX_ARRAY];\n\t\t\t\t\t\t\tarrRecursive[iRun] = detail.recursive;\n\t\t\t\t\t\t\tmapRecursive.put(detail.promotionCode, arrRecursive);\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tInteger[] arrRecursive = mapRecursive.get(detail.promotionCode);\n\t\t\t\t\t\t\tarrRecursive[iRun] = detail.recursive;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// map ĐKGH\n\t\t\t\t\t\tif(mapDkgh.get(detail.promotionCode) == null){\n\t\t\t\t\t\t\tInteger[] arrDkgh = new Integer[MAX_ARRAY];\n\t\t\t\t\t\t\tarrDkgh[iRun] = detail.dkgh;\n\t\t\t\t\t\t\tmapDkgh.put(detail.promotionCode, arrDkgh);\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tInteger[] arrDkgh = mapDkgh.get(detail.promotionCode);\n\t\t\t\t\t\t\tarrDkgh[iRun] = detail.dkgh;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t*/\n\t\t\t\t\t\tif (!StringUtil.isNullOrEmpty(detail.productCode) && lstProductPromo.get(detail.promotionCode + \"-\" + detail.productCode) == null) {\n\t\t\t\t\t\t\tlstProductPromo.put(detail.promotionCode + \"-\" + detail.productCode, indexProductPromo++);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\t//error\n\t\t\t\t\t\terrRow.setContent13(messageError);\n\t\t\t\t\t\tlstDetailError.add(errRow);\n\t\t\t\t\t\tif (mapErrorPromotion.get(detail.promotionCode) == null) {\n\t\t\t\t\t\t\tmapErrorPromotion.put(detail.promotionCode, messageError);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t// totalItem++;\n\t\t\t\t\tiRun++;\n\t\t\t\t}\n\t\t\t\t/**\n\t\t\t\t * put vao group level\n\t\t\t\t */\n\t\t\t\tString messageError = \"\";\n\t\t\t\tCellBean errRow = new CellBean();\n\t\t\t\t\n\t\t\t\tfor (String promotionProgramCode : mapPromotionType.keySet()) {\n\t\t\t\t\tInteger unit = -1;\n\t\t\t\t\tString[] arrPromoGroupCode = mapPromoGroupCode.get(promotionProgramCode);\n\t\t\t\t\tString[] arrPromoGroupName = mapPromoGroupName.get(promotionProgramCode);\n\t\t\t\t/*\tString[] arrPromoLevelCode = mapPromoLevelCode.get(promotionProgramCode);\n\t\t\t\t\tInteger[] arrMultiple = mapMultiple.get(promotionProgramCode);\n\t\t\t\t\tInteger[] arrRecursive = mapRecursive.get(promotionProgramCode);\t\t*/\t\t\t\n//\t\t\t\t\tInteger[] arrDkgh = mapDkgh.get(promotionProgramCode);\n\t\t\t\t\t\n\t\t\t\t\tif (mapPromotionType.get(promotionProgramCode) == 1) {\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * mua A(1), B(1) dc km ... C(1), D(1)\n\t\t\t\t\t\t */\n\t\t\t\t\t\tString[] arrProduct = mapArrayProduct.get(promotionProgramCode);\n\t\t\t\t\t\tInteger[] arrProductUnit = mapArrayQuantityUnit.get(promotionProgramCode);\n\t\t\t\t\t\tBigDecimal[] arrSaleQuantity = mapArraySaleQuantity.get(promotionProgramCode);\n\t\t\t\t\t\tBoolean[] arrAndOr = mapArrayAndOr.get(promotionProgramCode);\n\t\t\t\t\t\tString[] arrFreeProduct = mapArrayFreeProduct.get(promotionProgramCode);\n\t\t\t\t\t\tInteger[] arrFreeProductUnit = mapArrayFreeQuantityUnit.get(promotionProgramCode);\n\t\t\t\t\t\tBigDecimal[] arrFreeQuantity = mapArrayFreeQuantity.get(promotionProgramCode);\n\t\t\t\t\t\t//Sort theo saleQuantity\n\t\t\t\t\t\tsortQuantityProduct(arrProduct, arrProductUnit, arrSaleQuantity, arrAndOr, arrFreeProduct, arrFreeProductUnit, arrFreeQuantity, null, null);\n\t\t\t\t\t\tfor (int i = 0; arrProduct != null && i < arrProduct.length; i++) {\n\t\t\t\t\t\t\tif (!StringUtil.isNullOrEmpty(arrProduct[i]) && arrSaleQuantity[i] != null && !StringUtil.isNullOrEmpty(arrFreeProduct[i]) && arrFreeQuantity[i] != null) {\n\t\t\t\t\t\t\t\tGroupMua groupMua;\n\t\t\t\t\t\t\t\tGroupKM groupKM;\n\t\t\t\t\t\t\t\tunit = arrProductUnit[i];\n\t\t\t\t\t\t\t\tif (mapPromotionMua.get(promotionProgramCode) != null && mapPromotionKM.get(promotionProgramCode) != null) {\n\t\t\t\t\t\t\t\t\tgroupMua = mapPromotionMua.get(promotionProgramCode).get(mapPromotionMua.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t\tgroupKM = mapPromotionKM.get(promotionProgramCode).get(mapPromotionKM.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tListGroupMua lstGroupMua = new ListGroupMua();\n\t\t\t\t\t\t\t\t\tListGroupKM lstGroupKM = new ListGroupKM();\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tgroupMua.groupCode = \"N\" + (lstGroupMua.size() + 1);\n\t\t\t\t\t\t\t\t\tgroupMua.qttUnit = unit;\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t//groupMua.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupMua.groupName = arrPromoGroupName[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.multiple = arrMultiple[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.recursive = arrRecursive[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.dkgh = arrDkgh[i];\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tgroupKM.groupCode = \"N\" + (lstGroupKM.size() + 1);\n\t\t\t\t\t\t\t\t\tgroupKM.qttUnit = arrFreeProductUnit[i];\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t//groupKM.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupKM.groupName = arrPromoGroupName[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.multiple = arrMultiple[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.recursive = arrRecursive[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.dkgh = arrDkgh[i];\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupMua.order = lstGroupMua.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupKM.order = lstGroupKM.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tmapPromotionMua.put(promotionProgramCode, lstGroupMua);\n\t\t\t\t\t\t\t\t\tmapPromotionKM.put(promotionProgramCode, lstGroupKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tGroupSP groupSPMua = groupMua.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrProduct[i], unit, arrSaleQuantity[i], indexMua++, i, arrProduct, arrSaleQuantity, arrFreeProduct, arrFreeQuantity);\n\t\t\t\t\t\t\t\tif (groupSPMua == null) {\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tList<GroupMua> lstGroupMua = mapPromotionMua.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupSPMua = groupMua.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrProduct[i], unit, arrSaleQuantity[i], indexMua++, i, arrProduct, arrSaleQuantity, arrFreeProduct, arrFreeQuantity);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tList<Long> lstIndex = mapMuaKM.get(groupSPMua.index);//lay danh sach cac index muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tList<GroupSP> lstLevelKM = groupKM.searchIndex(lstIndex);//lay danh sach cac muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tGroupSP groupSPKM = groupKM.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrFreeProduct[i], unit, arrFreeQuantity[i], arrAndOr[i], indexKM++, i, arrFreeProduct, arrFreeQuantity, lstLevelKM);\n\t\t\t\t\t\t\t\tif (groupSPKM == null) {\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tList<GroupKM> lstGroupKM = mapPromotionKM.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tgroupSPKM = groupKM.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrFreeProduct[i], unit, arrFreeQuantity[i], arrAndOr[i], indexKM++, i, arrFreeProduct, arrFreeQuantity, null);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tmapMuaKM.put(groupSPMua.index, groupSPKM.index);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (mapPromotionType.get(promotionProgramCode) == 2) {\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * mua A(1), B(1) dc km ... 10.000\n\t\t\t\t\t\t */\n\t\t\t\t\t\tString[] arrProduct = mapArrayProduct.get(promotionProgramCode);\n\t\t\t\t\t\tInteger[] arrProductUnit = mapArrayQuantityUnit.get(promotionProgramCode);\n\t\t\t\t\t\tBigDecimal[] arrSaleQuantity = mapArraySaleQuantity.get(promotionProgramCode);\n\t\t\t\t\t\tBoolean[] arrAndOr = mapArrayAndOr.get(promotionProgramCode);\n\t\t\t\t\t\tBigDecimal[] arrFreeAmount = mapArrayDiscountAmount.get(promotionProgramCode);\n\t\t\t\t\t\t//Sort theo saleQuantity\n\t\t\t\t\t\tsortQuantityProduct(arrProduct, arrProductUnit, arrSaleQuantity, arrAndOr, null, null, null, arrFreeAmount, null);\n\t\t\t\t\t\tfor (int i = 0; arrProduct != null && i < arrProduct.length; i++) {\n\t\t\t\t\t\t\tif (!StringUtil.isNullOrEmpty(arrProduct[i]) && arrSaleQuantity[i] != null && arrFreeAmount[i] != null) {\n\t\t\t\t\t\t\t\tGroupMua groupMua;\n\t\t\t\t\t\t\t\tGroupKM groupKM;\n\t\t\t\t\t\t\t\tunit = arrProductUnit[i];\n\t\t\t\t\t\t\t\tif (mapPromotionMua.get(promotionProgramCode) != null && mapPromotionKM.get(promotionProgramCode) != null) {\n\t\t\t\t\t\t\t\t\tgroupMua = mapPromotionMua.get(promotionProgramCode).get(mapPromotionMua.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t\tgroupKM = mapPromotionKM.get(promotionProgramCode).get(mapPromotionKM.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tListGroupMua lstGroupMua = new ListGroupMua();\n\t\t\t\t\t\t\t\t\tListGroupKM lstGroupKM = new ListGroupKM();\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tgroupMua.groupCode = \"N\" + (lstGroupMua.size() + 1);\n\t\t\t\t\t\t\t\t\tgroupMua.qttUnit = unit;\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t//groupMua.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupMua.groupName = arrPromoGroupName[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.multiple = arrMultiple[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.recursive = arrRecursive[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.dkgh = arrDkgh[i];\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tgroupKM.groupCode = \"N\" + (lstGroupKM.size() + 1);\n\t\t\t\t\t\t\t\t\t//groupKM.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupKM.groupName = arrPromoGroupName[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.multiple = arrMultiple[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.recursive = arrRecursive[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.dkgh = arrDkgh[i];\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupMua.order = lstGroupMua.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupKM.order = lstGroupKM.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tmapPromotionMua.put(promotionProgramCode, lstGroupMua);\n\t\t\t\t\t\t\t\t\tmapPromotionKM.put(promotionProgramCode, lstGroupKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tGroupSP groupSPMua = groupMua.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrProduct[i], unit, arrSaleQuantity[i], indexMua++, i, arrProduct, arrSaleQuantity, null, null);\n\t\t\t\t\t\t\t\tif (groupSPMua == null) {\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tList<GroupMua> lstGroupMua = mapPromotionMua.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupSPMua = groupMua.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrProduct[i], unit, arrSaleQuantity[i], indexMua++, i, arrProduct, arrSaleQuantity, null, null);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tList<Long> lstIndex = mapMuaKM.get(groupSPMua.index);//lay danh sach cac index muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tList<GroupSP> lstLevelKM = groupKM.searchIndex(lstIndex);//lay danh sach cac muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tGroupSP groupSPKM = groupKM.add2Level(arrFreeAmount[i], indexKM++, i, arrFreeAmount, lstLevelKM);\n\t\t\t\t\t\t\t\tif (groupSPKM == null) {\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tList<GroupKM> lstGroupKM = mapPromotionKM.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tgroupSPKM = groupKM.add2Level(arrFreeAmount[i], indexKM++, i, arrFreeAmount, lstLevelKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tmapMuaKM.put(groupSPMua.index, groupSPKM.index);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (mapPromotionType.get(promotionProgramCode) == 3) {\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * mua A(1), B(1) dc km ... 10%\n\t\t\t\t\t\t */\n\t\t\t\t\t\tString[] arrProduct = mapArrayProduct.get(promotionProgramCode);\n\t\t\t\t\t\tInteger[] arrProductUnit = mapArrayQuantityUnit.get(promotionProgramCode);\n\t\t\t\t\t\tBigDecimal[] arrSaleQuantity = mapArraySaleQuantity.get(promotionProgramCode);\n\t\t\t\t\t\tBoolean[] arrAndOr = mapArrayAndOr.get(promotionProgramCode);\n\t\t\t\t\t\tFloat[] arrPercent = mapArrayDiscountPercent.get(promotionProgramCode);\n\t\t\t\t\t\t//Sort theo saleQuantity\n\t\t\t\t\t\tsortQuantityProduct(arrProduct, arrProductUnit, arrSaleQuantity, arrAndOr, null, null, null, null, arrPercent);\n\t\t\t\t\t\tfor (int i = 0; arrProduct != null && i < arrProduct.length; i++) {\n\t\t\t\t\t\t\tif (!StringUtil.isNullOrEmpty(arrProduct[i]) && arrSaleQuantity[i] != null && arrPercent[i] != null) {\n\t\t\t\t\t\t\t\tGroupMua groupMua;\n\t\t\t\t\t\t\t\tGroupKM groupKM;\n\t\t\t\t\t\t\t\tunit = arrProductUnit[i];\n\t\t\t\t\t\t\t\tif (mapPromotionMua.get(promotionProgramCode) != null && mapPromotionKM.get(promotionProgramCode) != null) {\n\t\t\t\t\t\t\t\t\tgroupMua = mapPromotionMua.get(promotionProgramCode).get(mapPromotionMua.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t\tgroupKM = mapPromotionKM.get(promotionProgramCode).get(mapPromotionKM.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tListGroupMua lstGroupMua = new ListGroupMua();\n\t\t\t\t\t\t\t\t\tListGroupKM lstGroupKM = new ListGroupKM();\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tgroupMua.groupCode = \"N\" + (lstGroupMua.size() + 1);\n\t\t\t\t\t\t\t\t\tgroupMua.qttUnit = unit;\n\t\t\t\t\t\t\t\t\t//groupMua.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupMua.groupName = arrPromoGroupName[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.multiple = arrMultiple[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.recursive = arrRecursive[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.dkgh = arrDkgh[i];\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tgroupKM.groupCode = \"N\" + (lstGroupKM.size() + 1);\n\t\t\t\t\t\t\t\t\t//groupKM.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupKM.groupName = arrPromoGroupName[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.multiple = arrMultiple[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.recursive = arrRecursive[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.dkgh = arrDkgh[i];\n//\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupMua.order = lstGroupMua.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupKM.order = lstGroupKM.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tmapPromotionMua.put(promotionProgramCode, lstGroupMua);\n\t\t\t\t\t\t\t\t\tmapPromotionKM.put(promotionProgramCode, lstGroupKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tGroupSP groupSPMua = groupMua.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrProduct[i], unit, arrSaleQuantity[i], indexMua++, i, arrProduct, arrSaleQuantity, null, null);\n\t\t\t\t\t\t\t\tif (groupSPMua == null) {\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tList<GroupMua> lstGroupMua = mapPromotionMua.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupSPMua = groupMua.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrProduct[i], unit, arrSaleQuantity[i], indexMua++, i, arrProduct, arrSaleQuantity, null, null);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tList<Long> lstIndex = mapMuaKM.get(groupSPMua.index);//lay danh sach cac index muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tList<GroupSP> lstLevelKM = groupKM.searchIndex(lstIndex);//lay danh sach cac muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tGroupSP groupSPKM = groupKM.add2Level(arrPercent[i], indexKM++, i, arrPercent, lstLevelKM);\n\t\t\t\t\t\t\t\tif (groupSPKM == null) {\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tList<GroupKM> lstGroupKM = mapPromotionKM.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tgroupSPKM = groupKM.add2Level(arrPercent[i], indexKM++, i, arrPercent, lstLevelKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tmapMuaKM.put(groupSPMua.index, groupSPKM.index);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (mapPromotionType.get(promotionProgramCode) == 4) {\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * mua A(10.000), B(10.000) dc km ... C(1), D(1)\n\t\t\t\t\t\t */\n\t\t\t\t\t\tString[] arrProduct = mapArrayProduct.get(promotionProgramCode);\n\t\t\t\t\t\tInteger[] arrProductUnit = mapArrayQuantityUnit.get(promotionProgramCode);\n\t\t\t\t\t\tBigDecimal[] arrSaleAmount = mapArraySaleAmount.get(promotionProgramCode);\n\t\t\t\t\t\tBoolean[] arrAndOr = mapArrayAndOr.get(promotionProgramCode);\n\t\t\t\t\t\tString[] arrFreeProduct = mapArrayFreeProduct.get(promotionProgramCode);\n\t\t\t\t\t\tInteger[] arrFreeProductUnit = mapArrayFreeQuantityUnit.get(promotionProgramCode);\n\t\t\t\t\t\tBigDecimal[] arrFreeQuantity = mapArrayFreeQuantity.get(promotionProgramCode);\n\t\t\t\t\t\t//Sort theo saleQuantity\n\t\t\t\t\t\tsortAmountProduct(arrProduct, arrProductUnit, arrSaleAmount, arrAndOr, arrFreeProduct, arrFreeProductUnit, arrFreeQuantity, null, null);\n\t\t\t\t\t\tfor (int i = 0; arrProduct != null && i < arrProduct.length; i++) {\n\t\t\t\t\t\t\tif (!StringUtil.isNullOrEmpty(arrProduct[i]) && arrSaleAmount[i] != null && !StringUtil.isNullOrEmpty(arrFreeProduct[i]) && arrFreeQuantity[i] != null) {\n\t\t\t\t\t\t\t\tGroupMua groupMua;\n\t\t\t\t\t\t\t\tGroupKM groupKM;\n\t\t\t\t\t\t\t\tunit = arrProductUnit[i];\n\t\t\t\t\t\t\t\tif (mapPromotionMua.get(promotionProgramCode) != null && mapPromotionKM.get(promotionProgramCode) != null) {\n\t\t\t\t\t\t\t\t\tgroupMua = mapPromotionMua.get(promotionProgramCode).get(mapPromotionMua.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t\tgroupKM = mapPromotionKM.get(promotionProgramCode).get(mapPromotionKM.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tListGroupMua lstGroupMua = new ListGroupMua();\n\t\t\t\t\t\t\t\t\tListGroupKM lstGroupKM = new ListGroupKM();\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tgroupMua.groupCode = \"N\" + (lstGroupMua.size() + 1);\n\t\t\t\t\t\t\t\t\tgroupMua.qttUnit = unit;\n\t\t\t\t\t\t\t\t\t//groupMua.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupMua.groupName = arrPromoGroupName[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.multiple = arrMultiple[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.recursive = arrRecursive[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.dkgh = arrDkgh[i];\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tgroupKM.groupCode = \"N\" + (lstGroupKM.size() + 1);\n\t\t\t\t\t\t\t\t\t//groupKM.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupKM.groupName = arrPromoGroupName[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.multiple = arrMultiple[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.recursive = arrRecursive[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.dkgh = arrDkgh[i];\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupMua.qttUnit = arrFreeProductUnit[i];\n\t\t\t\t\t\t\t\t\tgroupMua.order = lstGroupMua.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupKM.order = lstGroupKM.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tmapPromotionMua.put(promotionProgramCode, lstGroupMua);\n\t\t\t\t\t\t\t\t\tmapPromotionKM.put(promotionProgramCode, lstGroupKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tGroupSP groupSPMua = groupMua.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrProduct[i], arrSaleAmount[i], indexMua++, i, arrProduct, arrSaleAmount, arrFreeProduct, arrFreeQuantity);\n\t\t\t\t\t\t\t\tif (groupSPMua == null) {\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tList<GroupMua> lstGroupMua = mapPromotionMua.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupSPMua = groupMua.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrProduct[i], arrSaleAmount[i], indexMua++, i, arrProduct, arrSaleAmount, arrFreeProduct, arrFreeQuantity);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tList<Long> lstIndex = mapMuaKM.get(groupSPMua.index);//lay danh sach cac index muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tList<GroupSP> lstLevelKM = groupKM.searchIndex(lstIndex);//lay danh sach cac muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tGroupSP groupSPKM = groupKM.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrFreeProduct[i], unit, arrFreeQuantity[i], arrAndOr[i], indexKM++, i, arrFreeProduct, arrFreeQuantity, lstLevelKM);\n\t\t\t\t\t\t\t\tif (groupSPKM == null) {\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tList<GroupKM> lstGroupKM = mapPromotionKM.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tgroupSPKM = groupKM.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrFreeProduct[i], unit, arrFreeQuantity[i], arrAndOr[i], indexKM++, i, arrFreeProduct, arrFreeQuantity, null);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tmapMuaKM.put(groupSPMua.index, groupSPKM.index);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (mapPromotionType.get(promotionProgramCode) == 5) {\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * mua A(10.000), B(10.000) dc km ... 10.000\n\t\t\t\t\t\t */\n\t\t\t\t\t\tString[] arrProduct = mapArrayProduct.get(promotionProgramCode);\n\t\t\t\t\t\tInteger[] arrProductUnit = mapArrayQuantityUnit.get(promotionProgramCode);\n\t\t\t\t\t\tBigDecimal[] arrSaleAmount = mapArraySaleAmount.get(promotionProgramCode);\n\t\t\t\t\t\tBoolean[] arrAndOr = mapArrayAndOr.get(promotionProgramCode);\n\t\t\t\t\t\tBigDecimal[] arrFreeAmount = mapArrayDiscountAmount.get(promotionProgramCode);\n\t\t\t\t\t\t//Sort theo saleQuantity\n\t\t\t\t\t\tsortAmountProduct(arrProduct, arrProductUnit, arrSaleAmount, arrAndOr, null, null, null, arrFreeAmount, null);\n\t\t\t\t\t\tfor (int i = 0; arrProduct != null && i < arrProduct.length; i++) {\n\t\t\t\t\t\t\tif (!StringUtil.isNullOrEmpty(arrProduct[i]) && arrSaleAmount[i] != null && arrFreeAmount[i] != null) {\n\t\t\t\t\t\t\t\tGroupMua groupMua;\n\t\t\t\t\t\t\t\tGroupKM groupKM;\n\t\t\t\t\t\t\t\tunit = arrProductUnit[i];\n\t\t\t\t\t\t\t\tif (mapPromotionMua.get(promotionProgramCode) != null && mapPromotionKM.get(promotionProgramCode) != null) {\n\t\t\t\t\t\t\t\t\tgroupMua = mapPromotionMua.get(promotionProgramCode).get(mapPromotionMua.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t\tgroupKM = mapPromotionKM.get(promotionProgramCode).get(mapPromotionKM.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tListGroupMua lstGroupMua = new ListGroupMua();\n\t\t\t\t\t\t\t\t\tListGroupKM lstGroupKM = new ListGroupKM();\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tgroupMua.groupCode = \"N\" + (lstGroupMua.size() + 1);\n\t\t\t\t\t\t\t\t\tgroupMua.qttUnit = unit;\n\t\t\t\t\t\t\t\t\t//groupMua.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupMua.groupName = arrPromoGroupName[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.multiple = arrMultiple[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.recursive = arrRecursive[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.dkgh = arrDkgh[i];\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tgroupKM.groupCode = \"N\" + (lstGroupKM.size() + 1);\n\t\t\t\t\t\t\t\t\t//groupKM.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupKM.groupName = arrPromoGroupName[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.multiple = arrMultiple[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.recursive = arrRecursive[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.dkgh = arrDkgh[i];\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupMua.order = lstGroupMua.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupKM.order = lstGroupKM.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tmapPromotionMua.put(promotionProgramCode, lstGroupMua);\n\t\t\t\t\t\t\t\t\tmapPromotionKM.put(promotionProgramCode, lstGroupKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tGroupSP groupSPMua = groupMua.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrProduct[i], arrSaleAmount[i], indexMua++, i, arrProduct, arrSaleAmount, null, null);\n\t\t\t\t\t\t\t\tif (groupSPMua == null) {\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tList<GroupMua> lstGroupMua = mapPromotionMua.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupSPMua = groupMua.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrProduct[i], arrSaleAmount[i], indexMua++, i, arrProduct, arrSaleAmount, null, null);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tList<Long> lstIndex = mapMuaKM.get(groupSPMua.index);//lay danh sach cac index muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tList<GroupSP> lstLevelKM = groupKM.searchIndex(lstIndex);//lay danh sach cac muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tGroupSP groupSPKM = groupKM.add2Level(arrFreeAmount[i], indexKM++, i, arrFreeAmount, lstLevelKM);\n\t\t\t\t\t\t\t\tif (groupSPKM == null) {\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tList<GroupKM> lstGroupKM = mapPromotionKM.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tgroupSPKM = groupKM.add2Level(arrFreeAmount[i], indexKM++, i, arrFreeAmount, lstLevelKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tmapMuaKM.put(groupSPMua.index, groupSPKM.index);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (mapPromotionType.get(promotionProgramCode) == 6) {\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * mua A(10.000), B(10.000) dc km ... 10%\n\t\t\t\t\t\t */\n\t\t\t\t\t\tString[] arrProduct = mapArrayProduct.get(promotionProgramCode);\n\t\t\t\t\t\tInteger[] arrProductUnit = mapArrayQuantityUnit.get(promotionProgramCode);\n\t\t\t\t\t\tBigDecimal[] arrSaleAmount = mapArraySaleAmount.get(promotionProgramCode);\n\t\t\t\t\t\tBoolean[] arrAndOr = mapArrayAndOr.get(promotionProgramCode);\n\t\t\t\t\t\tFloat[] arrPercent = mapArrayDiscountPercent.get(promotionProgramCode);\n\t\t\t\t\t\t//Sort theo saleQuantity\n\t\t\t\t\t\tsortAmountProduct(arrProduct, arrProductUnit, arrSaleAmount, arrAndOr, null, null, null, null, arrPercent);\n\t\t\t\t\t\tfor (int i = 0; arrProduct != null && i < arrProduct.length; i++) {\n\t\t\t\t\t\t\tif (!StringUtil.isNullOrEmpty(arrProduct[i]) && arrSaleAmount[i] != null && arrPercent[i] != null) {\n\t\t\t\t\t\t\t\tGroupMua groupMua;\n\t\t\t\t\t\t\t\tGroupKM groupKM;\n\t\t\t\t\t\t\t\tunit = arrProductUnit[i];\n\t\t\t\t\t\t\t\tif (mapPromotionMua.get(promotionProgramCode) != null && mapPromotionKM.get(promotionProgramCode) != null) {\n\t\t\t\t\t\t\t\t\tgroupMua = mapPromotionMua.get(promotionProgramCode).get(mapPromotionMua.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t\tgroupKM = mapPromotionKM.get(promotionProgramCode).get(mapPromotionKM.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tListGroupMua lstGroupMua = new ListGroupMua();\n\t\t\t\t\t\t\t\t\tListGroupKM lstGroupKM = new ListGroupKM();\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tgroupMua.groupCode = \"N\" + (lstGroupMua.size() + 1);\n\t\t\t\t\t\t\t\t\t//groupMua.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupMua.groupName = arrPromoGroupName[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.multiple = arrMultiple[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.recursive = arrRecursive[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.dkgh = arrDkgh[i];\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupMua.qttUnit = unit;\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tgroupKM.groupCode = \"N\" + (lstGroupKM.size() + 1);\n\t\t\t\t\t\t\t\t\t//groupKM.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupKM.groupName = arrPromoGroupName[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.multiple = arrMultiple[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.recursive = arrRecursive[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.dkgh = arrDkgh[i];\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupMua.order = lstGroupMua.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupKM.order = lstGroupKM.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tmapPromotionMua.put(promotionProgramCode, lstGroupMua);\n\t\t\t\t\t\t\t\t\tmapPromotionKM.put(promotionProgramCode, lstGroupKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tGroupSP groupSPMua = groupMua.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrProduct[i], arrSaleAmount[i], indexMua++, i, arrProduct, arrSaleAmount, null, null);\n\t\t\t\t\t\t\t\tif (groupSPMua == null) {\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tList<GroupMua> lstGroupMua = mapPromotionMua.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupSPMua = groupMua.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrProduct[i], arrSaleAmount[i], indexMua++, i, arrProduct, arrSaleAmount, null, null);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tList<Long> lstIndex = mapMuaKM.get(groupSPMua.index);//lay danh sach cac index muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tList<GroupSP> lstLevelKM = groupKM.searchIndex(lstIndex);//lay danh sach cac muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tGroupSP groupSPKM = groupKM.add2Level(arrPercent[i], indexKM++, i, arrPercent, lstLevelKM);\n\t\t\t\t\t\t\t\tif (groupSPKM == null) {\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tList<GroupKM> lstGroupKM = mapPromotionKM.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tgroupSPKM = groupKM.add2Level(arrPercent[i], indexKM++, i, arrPercent, lstLevelKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tmapMuaKM.put(groupSPMua.index, groupSPKM.index);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (mapPromotionType.get(promotionProgramCode) == 7) {\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * mua 10000 dc km ... C(1), D(1)\n\t\t\t\t\t\t */\n\t\t\t\t\t\tBigDecimal[] arrSaleAmount = mapArraySaleAmount.get(promotionProgramCode);\n\t\t\t\t\t\tString[] arrFreeProduct = mapArrayFreeProduct.get(promotionProgramCode);\n\t\t\t\t\t\tInteger[] arrFreeProductUnit = mapArrayFreeQuantityUnit.get(promotionProgramCode);\n\t\t\t\t\t\tBigDecimal[] arrFreeQuantity = mapArrayFreeQuantity.get(promotionProgramCode);\n\t\t\t\t\t\tBoolean[] arrAndOr = mapArrayAndOr.get(promotionProgramCode);\n\t\t\t\t\t\tsortAmount(arrSaleAmount, arrAndOr, arrFreeProduct, arrFreeProductUnit, arrFreeQuantity, null, null);\n\t\t\t\t\t\tfor (int i = 0; arrSaleAmount != null && i < arrSaleAmount.length; i++) {\n\t\t\t\t\t\t\tif (arrSaleAmount[i] != null && !StringUtil.isNullOrEmpty(arrFreeProduct[i]) && arrFreeQuantity[i] != null) {\n\t\t\t\t\t\t\t\tGroupMua groupMua;\n\t\t\t\t\t\t\t\tGroupKM groupKM;\n\t\t\t\t\t\t\t\tif (mapPromotionMua.get(promotionProgramCode) != null && mapPromotionKM.get(promotionProgramCode) != null) {\n\t\t\t\t\t\t\t\t\tgroupMua = mapPromotionMua.get(promotionProgramCode).get(mapPromotionMua.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t\tgroupKM = mapPromotionKM.get(promotionProgramCode).get(mapPromotionKM.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tListGroupMua lstGroupMua = new ListGroupMua();\n\t\t\t\t\t\t\t\t\tListGroupKM lstGroupKM = new ListGroupKM();\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tgroupMua.groupCode = \"N\" + (lstGroupMua.size() + 1);\n\t\t\t\t\t\t\t\t\t//groupMua.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupMua.groupName = arrPromoGroupName[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.multiple = arrMultiple[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.recursive = arrRecursive[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.dkgh = arrDkgh[i];\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tgroupKM.groupCode = \"N\" + (lstGroupKM.size() + 1);\n\t\t\t\t\t\t\t\t\t//groupKM.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupKM.groupName = arrPromoGroupName[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.multiple = arrMultiple[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.recursive = arrRecursive[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.dkgh = arrDkgh[i];\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupKM.qttUnit = arrFreeProductUnit[i];\n\t\t\t\t\t\t\t\t\tgroupMua.order = lstGroupMua.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupKM.order = lstGroupKM.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tmapPromotionMua.put(promotionProgramCode, lstGroupMua);\n\t\t\t\t\t\t\t\t\tmapPromotionKM.put(promotionProgramCode, lstGroupKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tGroupSP groupSPMua = groupMua.add2Level(2, arrSaleAmount[i], null, indexMua++, i, arrSaleAmount, arrFreeProduct, arrFreeQuantity);\n\t\t\t\t\t\t\t\tif (groupSPMua == null) {\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tList<GroupMua> lstGroupMua = mapPromotionMua.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupSPMua = groupMua.add2Level(2, arrSaleAmount[i], null, indexMua++, i, arrSaleAmount, arrFreeProduct, arrFreeQuantity);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tList<Long> lstIndex = mapMuaKM.get(groupSPMua.index);//lay danh sach cac index muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tList<GroupSP> lstLevelKM = groupKM.searchIndex(lstIndex);//lay danh sach cac muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tGroupSP groupSPKM = groupKM.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrFreeProduct[i], unit, arrFreeQuantity[i], arrAndOr[i], indexKM++, i, arrFreeProduct, arrFreeQuantity, lstLevelKM);\n\t\t\t\t\t\t\t\tif (groupSPKM == null) {\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tList<GroupKM> lstGroupKM = mapPromotionKM.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tgroupSPKM = groupKM.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrFreeProduct[i], unit, arrFreeQuantity[i], arrAndOr[i], indexKM++, i, arrFreeProduct, arrFreeQuantity, null);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tmapMuaKM.put(groupSPMua.index, groupSPKM.index);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (mapPromotionType.get(promotionProgramCode) == 8) {\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * mua 10000 dc km ... 10.000\n\t\t\t\t\t\t */\n\t\t\t\t\t\tBigDecimal[] arrSaleAmount = mapArraySaleAmount.get(promotionProgramCode);\n\t\t\t\t\t\tBigDecimal[] arrFreeAmount = mapArrayDiscountAmount.get(promotionProgramCode);\n\t\t\t\t\t\tsortAmount(arrSaleAmount, null, null, null, null, arrFreeAmount, null);\n\t\t\t\t\t\tfor (int i = 0; arrSaleAmount != null && i < arrSaleAmount.length; i++) {\n\t\t\t\t\t\t\tif (arrSaleAmount[i] != null && arrFreeAmount[i] != null) {\n\t\t\t\t\t\t\t\tGroupMua groupMua;\n\t\t\t\t\t\t\t\tGroupKM groupKM;\n\t\t\t\t\t\t\t\tif (mapPromotionMua.get(promotionProgramCode) != null && mapPromotionKM.get(promotionProgramCode) != null) {\n\t\t\t\t\t\t\t\t\tgroupMua = mapPromotionMua.get(promotionProgramCode).get(mapPromotionMua.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t\tgroupKM = mapPromotionKM.get(promotionProgramCode).get(mapPromotionKM.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tListGroupMua lstGroupMua = new ListGroupMua();\n\t\t\t\t\t\t\t\t\tListGroupKM lstGroupKM = new ListGroupKM();\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tgroupMua.groupCode = \"N\" + (lstGroupMua.size() + 1);\n\t\t\t\t\t\t\t\t\t//groupMua.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupMua.groupName = arrPromoGroupName[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.multiple = arrMultiple[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.recursive = arrRecursive[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.dkgh = arrDkgh[i];\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tgroupKM.groupCode = \"N\" + (lstGroupKM.size() + 1);\n\t\t\t\t\t\t\t\t\t//groupKM.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupKM.groupName = arrPromoGroupName[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.multiple = arrMultiple[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.recursive = arrRecursive[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.dkgh = arrDkgh[i];\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupMua.order = lstGroupMua.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupKM.order = lstGroupKM.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tmapPromotionMua.put(promotionProgramCode, lstGroupMua);\n\t\t\t\t\t\t\t\t\tmapPromotionKM.put(promotionProgramCode, lstGroupKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tGroupSP groupSPMua = groupMua.add2Level(2, arrSaleAmount[i], null, indexMua++, i, arrSaleAmount, null, null);\n\t\t\t\t\t\t\t\tif (groupSPMua == null) {\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tList<GroupMua> lstGroupMua = mapPromotionMua.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupSPMua = groupMua.add2Level(2, arrSaleAmount[i], null, indexMua++, i, arrSaleAmount, null, null);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tList<Long> lstIndex = mapMuaKM.get(groupSPMua.index);//lay danh sach cac index muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tList<GroupSP> lstLevelKM = groupKM.searchIndex(lstIndex);//lay danh sach cac muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tGroupSP groupSPKM = groupKM.add2Level(arrFreeAmount[i], indexKM++, i, arrFreeAmount, lstLevelKM);\n\t\t\t\t\t\t\t\tif (groupSPKM == null) {\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tList<GroupKM> lstGroupKM = mapPromotionKM.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tgroupSPKM = groupKM.add2Level(arrFreeAmount[i], indexKM++, i, arrFreeAmount, lstLevelKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tmapMuaKM.put(groupSPMua.index, groupSPKM.index);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (mapPromotionType.get(promotionProgramCode) == 9) {\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * mua 10000 dc km ... 10%\n\t\t\t\t\t\t */\n\t\t\t\t\t\tBigDecimal[] arrSaleAmount = mapArraySaleAmount.get(promotionProgramCode);\n\t\t\t\t\t\tFloat[] arrPercent = mapArrayDiscountPercent.get(promotionProgramCode);\n\t\t\t\t\t\tsortAmount(arrSaleAmount, null, null, null, null, null, arrPercent);\n\t\t\t\t\t\tfor (int i = 0; arrSaleAmount != null && i < arrSaleAmount.length; i++) {\n\t\t\t\t\t\t\tif (arrSaleAmount[i] != null && arrPercent[i] != null) {\n\t\t\t\t\t\t\t\tGroupMua groupMua;\n\t\t\t\t\t\t\t\tGroupKM groupKM;\n\t\t\t\t\t\t\t\tif (mapPromotionMua.get(promotionProgramCode) != null && mapPromotionKM.get(promotionProgramCode) != null) {\n\t\t\t\t\t\t\t\t\tgroupMua = mapPromotionMua.get(promotionProgramCode).get(mapPromotionMua.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t\tgroupKM = mapPromotionKM.get(promotionProgramCode).get(mapPromotionKM.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tListGroupMua lstGroupMua = new ListGroupMua();\n\t\t\t\t\t\t\t\t\tListGroupKM lstGroupKM = new ListGroupKM();\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tgroupMua.groupCode = \"N\" + (lstGroupMua.size() + 1);\n\t\t\t\t\t\t\t\t\t//groupMua.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupMua.groupName = arrPromoGroupName[i];\n\t\t\t\t\t\t\t\t\t/*groupMua.multiple = arrMultiple[i];\n\t\t\t\t\t\t\t\t\tgroupMua.recursive = arrRecursive[i];\n\t\t\t\t\t\t\t\t\tgroupMua.dkgh = arrDkgh[i];*/\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tgroupKM.groupCode = \"N\" + (lstGroupKM.size() + 1);\n\t\t\t\t\t\t\t\t\t//groupKM.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupKM.groupName = arrPromoGroupName[i];\n\t\t\t\t\t\t\t\t/*\tgroupKM.multiple = arrMultiple[i];\n\t\t\t\t\t\t\t\t\tgroupKM.recursive = arrRecursive[i];\n\t\t\t\t\t\t\t\t\tgroupKM.dkgh = arrDkgh[i];*/\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupMua.order = lstGroupMua.size() + 1;\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupKM.order = lstGroupKM.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tmapPromotionMua.put(promotionProgramCode, lstGroupMua);\n\t\t\t\t\t\t\t\t\tmapPromotionKM.put(promotionProgramCode, lstGroupKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tGroupSP groupSPMua = groupMua.add2Level(2, arrSaleAmount[i], null, indexMua++, i, arrSaleAmount, null, null);\n\t\t\t\t\t\t\t\tif (groupSPMua == null) {\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tList<GroupMua> lstGroupMua = mapPromotionMua.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupSPMua = groupMua.add2Level(2, arrSaleAmount[i], null, indexMua++, i, arrSaleAmount, null, null);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tList<Long> lstIndex = mapMuaKM.get(groupSPMua.index);//lay danh sach cac index muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tList<GroupSP> lstLevelKM = groupKM.searchIndex(lstIndex);//lay danh sach cac muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tGroupSP groupSPKM = groupKM.add2Level(arrPercent[i], indexKM++, i, arrPercent, lstLevelKM);\n\t\t\t\t\t\t\t\tif (groupSPKM == null) {\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tList<GroupKM> lstGroupKM = mapPromotionKM.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tgroupSPKM = groupKM.add2Level(arrPercent[i], indexKM++, i, arrPercent, lstLevelKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tmapMuaKM.put(groupSPMua.index, groupSPKM.index);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (mapPromotionType.get(promotionProgramCode) == 10) {\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * ZV24\n\t\t\t\t\t\t */\n\t\t\t\t\t\tBigDecimal[] arrSaleQuantity = mapArraySaleQuantity.get(promotionProgramCode);\n\t\t\t\t\t\tInteger[] arrProductUnit = mapArrayQuantityUnit.get(promotionProgramCode);\n\t\t\t\t\t\tString[] arrFreeProduct = mapArrayFreeProduct.get(promotionProgramCode);\n\t\t\t\t\t\tBigDecimal[] arrFreeQuantity = mapArrayFreeQuantity.get(promotionProgramCode);\n\t\t\t\t\t\tBoolean[] arrAndOr = mapArrayAndOr.get(promotionProgramCode);\n\t\t\t\t\t\tInteger[] arrFreeProductUnit = mapArrayFreeQuantityUnit.get(promotionProgramCode);\n\t\t\t\t\t\tsortQuantity(arrSaleQuantity, arrAndOr, arrFreeProduct, arrFreeProductUnit, arrFreeQuantity, null, null);\n\n\t\t\t\t\t\tfor (int i = 0; arrSaleQuantity != null && i < arrSaleQuantity.length; i++) {\n\t\t\t\t\t\t\tif (arrSaleQuantity[i] != null && !StringUtil.isNullOrEmpty(arrFreeProduct[i]) && arrFreeQuantity[i] != null) {\n\t\t\t\t\t\t\t\tGroupMua groupMua;\n\t\t\t\t\t\t\t\tGroupKM groupKM;\n\t\t\t\t\t\t\t\tunit = arrProductUnit[i];\n\t\t\t\t\t\t\t\tif (mapPromotionMua.get(promotionProgramCode) != null && mapPromotionKM.get(promotionProgramCode) != null) {\n\t\t\t\t\t\t\t\t\tgroupMua = mapPromotionMua.get(promotionProgramCode).get(mapPromotionMua.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t\tgroupKM = mapPromotionKM.get(promotionProgramCode).get(mapPromotionKM.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tListGroupMua lstGroupMua = new ListGroupMua();\n\t\t\t\t\t\t\t\t\tListGroupKM lstGroupKM = new ListGroupKM();\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tgroupMua.groupCode = \"N\" + (lstGroupMua.size() + 1);\n\t\t\t\t\t\t\t\t\t//groupMua.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupMua.groupName = arrPromoGroupName[i];\n\t\t\t\t\t\t\t\t\t/*groupMua.multiple = arrMultiple[i];\n\t\t\t\t\t\t\t\t\tgroupMua.recursive = arrRecursive[i];\n\t\t\t\t\t\t\t\t\tgroupMua.dkgh = arrDkgh[i];*/\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupMua.qttUnit = unit;\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tgroupKM.groupCode = \"N\" + (lstGroupKM.size() + 1);\n\t\t\t\t\t\t\t\t\t//groupKM.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupKM.groupName = arrPromoGroupName[i];\n\t\t\t\t\t\t/*\t\t\tgroupKM.multiple = arrMultiple[i];\n\t\t\t\t\t\t\t\t\tgroupKM.recursive = arrRecursive[i];\n\t\t\t\t\t\t\t\t\tgroupKM.dkgh = arrDkgh[i];*/\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupKM.qttUnit = arrFreeProductUnit[i];\n\t\t\t\t\t\t\t\t\tgroupMua.order = lstGroupMua.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupKM.order = lstGroupKM.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tmapPromotionMua.put(promotionProgramCode, lstGroupMua);\n\t\t\t\t\t\t\t\t\tmapPromotionKM.put(promotionProgramCode, lstGroupKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tGroupSP groupSPMua = groupMua.add2Level(1, arrSaleQuantity[i], arrProductUnit[i], indexMua++, i, arrSaleQuantity, arrFreeProduct, arrFreeQuantity);\n\t\t\t\t\t\t\t\tif (groupSPMua == null) {\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tList<GroupMua> lstGroupMua = mapPromotionMua.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupSPMua = groupMua.add2Level(1, arrSaleQuantity[i], null, indexMua++, i, arrSaleQuantity, arrFreeProduct, arrFreeQuantity);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tList<Long> lstIndex = mapMuaKM.get(groupSPMua.index);//lay danh sach cac index muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tList<GroupSP> lstLevelKM = groupKM.searchIndex(lstIndex);//lay danh sach cac muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tGroupSP groupSPKM = groupKM.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrFreeProduct[i], unit, arrFreeQuantity[i], arrAndOr[i], indexKM++, i, arrFreeProduct, arrFreeQuantity, lstLevelKM);\n\t\t\t\t\t\t\t\tif (groupSPKM == null) {\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tList<GroupKM> lstGroupKM = mapPromotionKM.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tgroupSPKM = groupKM.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrFreeProduct[i], unit, arrFreeQuantity[i], arrAndOr[i], indexKM++, i, arrFreeProduct, arrFreeQuantity, null);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tmapMuaKM.put(groupSPMua.index, groupSPKM.index);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (mapPromotionType.get(promotionProgramCode) == 11) {\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * ZV23\n\t\t\t\t\t\t */\n\t\t\t\t\t\tBigDecimal[] arrSaleQuantity = mapArraySaleQuantity.get(promotionProgramCode);\n\t\t\t\t\t\tInteger[] arrProductUnit = mapArrayQuantityUnit.get(promotionProgramCode);\n\t\t\t\t\t\tBigDecimal[] arrFreeAmount = mapArrayDiscountAmount.get(promotionProgramCode);\n\t\t\t\t\t\tsortQuantity(arrSaleQuantity, null, null, null, null, arrFreeAmount, null);\n\t\t\t\t\t\tfor (int i = 0; arrSaleQuantity != null && i < arrSaleQuantity.length; i++) {\n\t\t\t\t\t\t\tif (arrSaleQuantity[i] != null && arrFreeAmount[i] != null) {\n\t\t\t\t\t\t\t\tGroupMua groupMua;\n\t\t\t\t\t\t\t\tGroupKM groupKM;\n\t\t\t\t\t\t\t\tunit = arrProductUnit[i];\n\t\t\t\t\t\t\t\tif (mapPromotionMua.get(promotionProgramCode) != null && mapPromotionKM.get(promotionProgramCode) != null) {\n\t\t\t\t\t\t\t\t\tgroupMua = mapPromotionMua.get(promotionProgramCode).get(mapPromotionMua.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t\tgroupKM = mapPromotionKM.get(promotionProgramCode).get(mapPromotionKM.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tListGroupMua lstGroupMua = new ListGroupMua();\n\t\t\t\t\t\t\t\t\tListGroupKM lstGroupKM = new ListGroupKM();\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tgroupMua.groupCode = \"N\" + (lstGroupMua.size() + 1);\n\t\t\t\t\t\t\t\t\t//groupMua.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupMua.groupName = arrPromoGroupName[i];\n\t\t\t\t\t\t\t\t/*\tgroupMua.multiple = arrMultiple[i];\n\t\t\t\t\t\t\t\t\tgroupMua.recursive = arrRecursive[i];\n\t\t\t\t\t\t\t\t\tgroupMua.dkgh = arrDkgh[i];*/\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupMua.qttUnit = unit;\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tgroupKM.groupCode = \"N\" + (lstGroupKM.size() + 1);\n\t\t\t\t\t\t\t\t\t//groupKM.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupKM.groupName = arrPromoGroupName[i];\n\t\t\t\t\t\t\t/*\t\tgroupKM.multiple = arrMultiple[i];\n\t\t\t\t\t\t\t\t\tgroupKM.recursive = arrRecursive[i];\n\t\t\t\t\t\t\t\t\tgroupKM.dkgh = arrDkgh[i];*/\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupMua.order = lstGroupMua.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupKM.order = lstGroupKM.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tmapPromotionMua.put(promotionProgramCode, lstGroupMua);\n\t\t\t\t\t\t\t\t\tmapPromotionKM.put(promotionProgramCode, lstGroupKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tGroupSP groupSPMua = groupMua.add2Level(1, arrSaleQuantity[i], arrProductUnit[i], indexMua++, i, arrSaleQuantity, null, null);\n\t\t\t\t\t\t\t\tif (groupSPMua == null) {\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tList<GroupMua> lstGroupMua = mapPromotionMua.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupSPMua = groupMua.add2Level(1, arrSaleQuantity[i], arrProductUnit[i], indexMua++, i, arrSaleQuantity, null, null);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tList<Long> lstIndex = mapMuaKM.get(groupSPMua.index);//lay danh sach cac index muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tList<GroupSP> lstLevelKM = groupKM.searchIndex(lstIndex);//lay danh sach cac muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tGroupSP groupSPKM = groupKM.add2Level(arrFreeAmount[i], indexKM++, i, arrFreeAmount, lstLevelKM);\n\t\t\t\t\t\t\t\tif (groupSPKM == null) {\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tList<GroupKM> lstGroupKM = mapPromotionKM.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tgroupSPKM = groupKM.add2Level(arrFreeAmount[i], indexKM++, i, arrFreeAmount, lstLevelKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tmapMuaKM.put(groupSPMua.index, groupSPKM.index);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (mapPromotionType.get(promotionProgramCode) == 12) {\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * \n\t\t\t\t\t\t */\n\t\t\t\t\t\tBigDecimal[] arrSaleQuantity = mapArraySaleQuantity.get(promotionProgramCode);\n\t\t\t\t\t\tInteger[] arrProductUnit = mapArrayQuantityUnit.get(promotionProgramCode);\n\t\t\t\t\t\tFloat[] arrPercent = mapArrayDiscountPercent.get(promotionProgramCode);\n\t\t\t\t\t\t//Sort theo saleQuantity\n\t\t\t\t\t\tsortQuantity(arrSaleQuantity, null, null, null, null, null, arrPercent);\n\t\t\t\t\t\tfor (int i = 0; arrSaleQuantity != null && i < arrSaleQuantity.length; i++) {\n\t\t\t\t\t\t\tif (arrSaleQuantity[i] != null && arrPercent[i] != null) {\n\t\t\t\t\t\t\t\tGroupMua groupMua;\n\t\t\t\t\t\t\t\tGroupKM groupKM;\n\t\t\t\t\t\t\t\tunit = arrProductUnit[i];\n\t\t\t\t\t\t\t\tif (mapPromotionMua.get(promotionProgramCode) != null && mapPromotionKM.get(promotionProgramCode) != null) {\n\t\t\t\t\t\t\t\t\tgroupMua = mapPromotionMua.get(promotionProgramCode).get(mapPromotionMua.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t\tgroupKM = mapPromotionKM.get(promotionProgramCode).get(mapPromotionKM.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tListGroupMua lstGroupMua = new ListGroupMua();\n\t\t\t\t\t\t\t\t\tListGroupKM lstGroupKM = new ListGroupKM();\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tgroupMua.groupCode = \"N\" + (lstGroupMua.size() + 1);\n\t\t\t\t\t\t\t\t\t//groupMua.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupMua.groupName = arrPromoGroupName[i];\n\t\t\t\t\t\t\t\t\t/*groupMua.multiple = arrMultiple[i];\n\t\t\t\t\t\t\t\t\tgroupMua.recursive = arrRecursive[i];\n\t\t\t\t\t\t\t\t\tgroupMua.dkgh = arrDkgh[i];*/\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupMua.qttUnit = unit;\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\t//groupKM.groupCode = \"N\" + (lstGroupKM.size() + 1);\n\t\t\t\t\t\t\t\t\tgroupKM.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupKM.groupName = arrPromoGroupName[i];\n\t\t\t\t\t\t\t\t\t/*groupKM.multiple = arrMultiple[i];\n\t\t\t\t\t\t\t\t\tgroupKM.recursive = arrRecursive[i];\n\t\t\t\t\t\t\t\t\tgroupKM.dkgh = arrDkgh[i];*/\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupMua.order = lstGroupMua.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupKM.order = lstGroupKM.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tmapPromotionMua.put(promotionProgramCode, lstGroupMua);\n\t\t\t\t\t\t\t\t\tmapPromotionKM.put(promotionProgramCode, lstGroupKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tGroupSP groupSPMua = groupMua.add2Level(1, arrSaleQuantity[i], arrProductUnit[i], indexMua++, i, arrSaleQuantity, null, null);\n\t\t\t\t\t\t\t\tif (groupSPMua == null) {\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tList<GroupMua> lstGroupMua = mapPromotionMua.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupSPMua = groupMua.add2Level(1, arrSaleQuantity[i], arrProductUnit[i], indexMua++, i, arrSaleQuantity, null, null);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tList<Long> lstIndex = mapMuaKM.get(groupSPMua.index);//lay danh sach cac index muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tList<GroupSP> lstLevelKM = groupKM.searchIndex(lstIndex);//lay danh sach cac muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tGroupSP groupSPKM = groupKM.add2Level(arrPercent[i], indexKM++, i, arrPercent, lstLevelKM);\n\t\t\t\t\t\t\t\tif (groupSPKM == null) {\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tList<GroupKM> lstGroupKM = mapPromotionKM.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tgroupSPKM = groupKM.add2Level(arrPercent[i], indexKM++, i, arrPercent, lstLevelKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tmapMuaKM.put(groupSPMua.index, groupSPKM.index);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (!StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\terrRow.setContent14(messageError);\n\t\t\t\t\tlstDetailError.add(errRow);\n\t\t\t\t}\n\t\t\t\tfor (String promotionProgramCode : mapPromotionType.keySet()) {\n\t\t\t\t\tsplitGroup(mapPromotionMua.get(promotionProgramCode), mapPromotionKM.get(promotionProgramCode), mapMuaKM, promotionProgramCode, lstProductPromo);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n\tpublic void addRow(Object[] rowData) {\r\n\t\ttry{\r\n\t\t\tPersona newRecord = new Persona();\r\n\t\t\tnewRecord.setNome((String)rowData[0]);\r\n\t\t\tnewRecord.setCognome((String)rowData[1]);\r\n\t\t\tnewRecord.setTelefono((String)rowData[2]);\r\n\t\t\tnewRecord.setIndirizzo((String)rowData[3]);\r\n\t\t\tnewRecord.setEta(Integer.parseInt((String)rowData[4]));\r\n\t\t\tlista.create(newRecord);\r\n\t\t\tsuper.addRow(rowData);\r\n\t\t}\r\n\t\tcatch (NumberFormatException nfe) {\r\n\t\t\tJOptionPane.showMessageDialog(null, NFE_MESSAGE);\r\n\t\t}\r\n\t}", "private void renderTitle() {\n this.row = sheet.createRow(INT_ROW_START);\n //se crea titulos de la tabla\n this.addCell(column_++, \"CODIGO DE BARRAS\", this.cellStyleTitle());\n this.addCell(column_++, \"FECHA\", this.cellStyleTitle());\n this.addCell(column_++, \"HORA\", this.cellStyleTitle());\n this.addCell(column_++, \"MARBETE\", this.cellStyleTitle());\n this.addCell(column_++, \"PRODUCTO\", this.cellStyleTitle());\n this.addCell(column_++, \"DESCRIPCIÓN\", this.cellStyleTitle());\n this.addCell(column_++, \"LOTE\", this.cellStyleTitle());\n this.addCell(column_++, \"PESO\", this.cellStyleTitle());\n this.addCell(column_++, \"RESPONSABLE\", this.cellStyleTitle());\n }", "@DataProvider(name=\"excle\")\n\tpublic static Object[][] createaccountTest() throws IOException {\n\t\tObject content[][];\n\t\tFileInputStream file = new FileInputStream(\n\t\t\t\t\"D:\\\\Java_Workspace\\\\FinalKDDFramework\\\\Input\\\\Account.xlsx\");\n\t\tXSSFWorkbook book = new XSSFWorkbook(file);\n\t\tXSSFSheet sheet = book.getSheet(\"Sheet1\");\n\t\tint rows = sheet.getLastRowNum();\n\t\tcontent = new Object[(sheet.getLastRowNum())-1][sheet.getRow(1)\n\t\t\t\t.getLastCellNum()];\n\t\tRow row;\n\t\tSystem.out.println(\"total no of rows \" + rows);\n\t\tfor (int i = 1; i <rows; i++) \n\t\t{\n\t\t\trow = sheet.getRow(i);\n\t\t\tint cells = row.getLastCellNum();\n\t\t\tfor (int j = 0; j < cells; j++) \n\t\t\t{\n\t\t\t\tCell cell = row.getCell(j);\n\t\t\t\tif (cell.getCellTypeEnum().name().equals(\"NUMERIC\")) \n\t\t\t\t{\n\t\t\t\t\tcontent[i-1][j] = cell.getNumericCellValue();\t\n\t\t\t\t\n\t\t\t\t} \n\t\t\t\telse if (cell.getCellTypeEnum().name().equals(\"STRING\")) \n\t\t\t\t{\n\t\t\t\t\tcontent[i-1][j] = cell.getStringCellValue();\t\n\t\t\t\t\n\t\t\t\t}\t\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\t/*\n\t\t * catch (FileNotFoundException e) {\n\t\t * System.out.println(\"file not found\"); e.printStackTrace(); }\n\t\t */\n\t\treturn content;\n\t}", "private void iterateXlsRow(XSSFSheet sheet) {\n Iterator rowIterator;\n XSSFRow row;\n rowIterator = sheet.rowIterator();\n String time;\n String StudentName;\n String classNumber;\n String reason;\n DataFormatter formatter = new DataFormatter();\n\n while (rowIterator.hasNext()) {\n row = (XSSFRow) rowIterator.next();\n if (isEmptyCell(row.getCell(0))) {\n time = \"NINCS ADAT\";\n } else {\n time = formatter.formatCellValue(row.getCell(0)).trim();\n }\n if (isEmptyCell(row.getCell(1))) {\n StudentName = \"NINCS ADAT\";\n } else {\n StudentName = row.getCell(1).getStringCellValue().trim();\n }\n if (isEmptyCell(row.getCell(2))) {\n classNumber = \"NINCS ADAT\";\n } else {\n classNumber = row.getCell(2).getStringCellValue().trim();\n }\n if (isEmptyCell(row.getCell(3))) {\n reason = \"NINCS ADAT\";\n } else {\n reason = row.getCell(3).getStringCellValue().trim();\n }\n Student student = new Student(time, StudentName, classNumber, reason, classNumber + StudentName);\n xlsxDataList.add(student);\n }\n }", "public Object [][] getTableData(int rowNumber, String title, String author, URL hyperLink, int year, String abstracts, String publisher, boolean isMark, boolean duplicate, String dlName){\r\n\t\t\r\n\t\tObject [][] data = {addTableData(rowNumber, title, author, hyperLink, year, abstracts, publisher, isMark, duplicate, dlName)};\r\n\t\t\r\n\t\treturn data;\r\n\t\t\r\n\t}", "private void setTableModel(List<SlotDto> slots){\n \n int size = 0;\n if(slots != null && !slots.isEmpty())\n size = slots.size();\n \n Object [][] slotsArr = new Object [25][9];\n\n // set days to table cells\n slotsArr[0][0] = \"Sunday\";\n slotsArr[5][0] = \"Monday\";\n slotsArr[10][0] = \"Tuesday\";\n slotsArr[15][0] = \"Wednesday\";\n slotsArr[20][0] = \"Thursday\";\n\n // loop for days' rows of schedule\n for(int r =0;r<5;r++){\n r=r*5;\n \n // loop for slots' columns of schedule \n for (int c=0 ; c<4 ; c++){ \n int cell=c*2;\n \n // loop to get slot of indexed day and time slot \n for( int i=0 ; i<size ; i++ ){\n if( (slots.get(i).getNum()== (c+1) && (slots.get(i).getDay().equals(slotsArr[r][0])) ) ){\n \n // set course name and code od slot \n slotsArr[r][cell+1] = slots.get(i).getCourse().getName();\n slotsArr[r][cell+2] = slots.get(i).getCourse().getCode();\n \n // set type of slot \n slotsArr[r+2][cell+1] = slots.get(i).getSlot_type();\n \n // set location of slot\n slotsArr[r+3][cell+1] = slots.get(i).getLocation().getName();\n \n \n // check slot type then set plt of slot\n if(slots.get(i).getSlot_type().equals(\"LECTURE\")){\n slotsArr[r+3][cell+2] = slots.get(i).getCourse().getPlt_lecture().getCode();\n System.out.println(\"plt\"+slots.get(i).getCourse().getPlt_lecture().getCode());\n }\n if(slots.get(i).getSlot_type().equals(\"SECTION\")){\n slotsArr[r+3][cell+2] = slots.get(i).getCourse().getPlt_lecture().getCode();\n System.out.println(\"plt\"+slots.get(i).getCourse().getPlt_lecture().getCode()); \n }\n \n // set student number of slot \n slotsArr[r+4][cell+1] = \"STUDENT NUMBER\";\n slotsArr[r+4][cell+2] = slots.get(i).getStudent_number();\n \n /*\n * set staff of slot then check if members > 1 then concatenate all members' names\n * and set to cell */\n String staff = slots.get(i).getStaff().get(0).getPosition() + \"/\" +\n slots.get(i).getStaff().get(0).getName() ;\n \n System.out.println(\"staff size\" + slots.get(i).getStaff().size()); \n System.out.println(\"user size\" + slots.get(i).getUser().size()); \n \n if(slots.get(i).getStaff().size()>1){\n for(int j=1 ; j<slots.get(i).getStaff().size() ; j++ ){\n staff=staff+\" # \" +slots.get(i).getStaff().get(j).getPosition()+\"/\"+\n slots.get(i).getStaff().get(j).getName() ; \n }\n }\n slotsArr[r+1][cell+1] = staff;\n \n /*\n * set user email of slot then check if users > 1 then concatenate all users' email \n * and set to cell */ \n String[] email = slots.get(i).getUser().get(0).getEmail().split(\"@\", 2);\n String user = email[0];\n if(slots.get(i).getUser().size()>1){\n for(int k=0 ; k<slots.get(i).getUser().size() ; k++){\n String[] _email = slots.get(i).getUser().get(k).getEmail().split(\"@\", 2);\n user = user +\" # \" + _email[0]; \n }\n }\n slotsArr[r+1][cell+2] = user;\n }\n }\n }\n }\n scheduleTable.setModel(new javax.swing.table.DefaultTableModel(slotsArr,\n new String [] {\n \"Time Slot\", \"First\",\" \", \"Second\", \" \" ,\"Third\",\" \",\"Fourth\",\" \"\n }\n ));\n\n }", "private void createLabel(WritableSheet sheet)\n throws WriteException {\n WritableFont times10pt = new WritableFont(WritableFont.TIMES, 10);\n // Define the cell format\n times = new WritableCellFormat(times10pt);\n // Lets automatically wrap the cells\n times.setWrap(true);\n\n // create create a bold font with unterlines\n WritableFont times10ptBoldUnderline = new WritableFont(\n WritableFont.TIMES, 10, WritableFont.BOLD, true,\n UnderlineStyle.SINGLE);\n timesBoldUnderline = new WritableCellFormat(times10ptBoldUnderline);\n // Lets automatically wrap the cells\n timesBoldUnderline.setWrap(true);\n\n CellView cv = new CellView();\n cv.setFormat(times);\n cv.setFormat(timesBoldUnderline);\n cv.setAutosize(true);\n\n// addCaption(sheet, 3, 0, mExcelObject.getHourActivity()); // ชั่วโมง\n\n // Write a few headers\n// addCaption(sheet, 0, 0, \"ชื่อกิจกรรม \"+mExcelObject.getActivityName()); // ชื่อกิจกรรม\n// addCaption(sheet, 1, 0, \"วันที่จัด \"+mExcelObject.getTimeStart()); // วันที่จัด\n// addCaption(sheet, 2, 0, \"สถานที่่่ \"+mExcelObject.getLocationName()); // สถานที่\n\n\n\n\n\n addCaption(sheet, 0, 1, \"ลำดับ\");\n addCaption(sheet, 1, 1, \"ชื่อผู้ปกครอง\");\n addCaption(sheet, 2, 1, \"ชื่อเด็กนักเรียน\");\n //addCaption(sheet, 3, 1, \"ระดับชั้น\");\n // addCaption(sheet, 4, 1, \"เวลามารับ\");\n\n\n\n\n\n }", "public void createInputRow() throws IOException {\n\t\tStringBuilder fileData = new StringBuilder();\n\t\tfileData.append(\"package dbmsProject;\\n\");\n\t\tfileData.append(\"public class InputRow{\\n\");\n\t\tArrayList<String> list = new ArrayList<String>( Arrays.asList(new String[]{\"cust\", \"prod\", \"day\", \"month\", \"year\", \"state\", \"quant\"}));\n\t\tfor(int i=0;i<list.size();i++ ) {\n\t\t\tString select = list.get(i);\n\t\t\tboolean found=false;\n\t\t\tfor(String str: payload.getselect_variables()) {\n\t\t\t\tif(str.contains(select)) {\n\t\t\t\t\tprojectionVars.add(select);\n\t\t\t\t\tfileData=createrSetterGetter(fileData, helper.columnMapping.get(select), select);\n\t\t\t\t\tfound=true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(found) continue;\n\t\t\tfor(String str: payload.getgrouping_attributes()) {\n\t\t\t\tif(str.contains(select)) {\n\t\t\t\t\tprojectionVars.add(select);\n\t\t\t\t\tfileData=createrSetterGetter(fileData, helper.columnMapping.get(select), select);\n\t\t\t\t\tfound=true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(found) continue;\n\t\t\tfor(String str: payload.getaggregate_functions()) {\n\t\t\t\tif(str.contains(select)) {\n\t\t\t\t\tprojectionVars.add(select);\n\t\t\t\t\tfileData=createrSetterGetter(fileData, helper.columnMapping.get(select), select);\n\t\t\t\t\tfound=true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(found) continue;\n\t\t\tfor(String str: payload.getsuch_that_predicates()) {\n\t\t\t\tif(str.contains(select)) {\n\t\t\t\t\tprojectionVars.add(select);\n\t\t\t\t\tfileData=createrSetterGetter(fileData, helper.columnMapping.get(select), select);\n\t\t\t\t\tfound=true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(found) continue;\n\t\t\tif(payload.isHavingClause() && payload.getHavingClause().contains(select)) {\n\t\t\t\tprojectionVars.add(select);\n\t\t\t\tfileData=createrSetterGetter(fileData, helper.columnMapping.get(select), select);\n\t\t\t\tfound=true;\n\t\t\t}\n\t\t\tif(found) continue;\n\t\t\tif(payload.getIsWhereClause() && payload.getWhereClause().contains(select)) {\n\t\t\t\tprojectionVars.add(select);\n\t\t\t\tfileData=createrSetterGetter(fileData, helper.columnMapping.get(select), select);\n\t\t\t}\n\t\t}\n\t\t\n\t\tfileData.append(\"}\\n\");\n\t\tFileOutputStream fos = new FileOutputStream(\"src/dbmsProject/InputRow.java\");\n\t\tfos.write(fileData.toString().getBytes());\n\t\tfos.flush();\n\t\tfos.close();\n\t}", "public void newRow();", "public void prepareObject(PbReturnObject retObj) {\n try {\r\n\r\n retObj.colCount = retObj.getColumnCount();\r\n\r\n retObj.grandTotals = new BigDecimal[colCount];\r\n retObj.crosstabmapkeys = new BigDecimal[colCount];\r\n retObj.avgTotals = new BigDecimal[colCount];\r\n retObj.max = new BigDecimal[colCount];\r\n retObj.min = new BigDecimal[colCount];\r\n\r\n retObj.columnOverAllMaximums = new TreeMap();\r\n retObj.columnOverAllMinimums = new TreeMap();\r\n retObj.columnAverages = new TreeMap();\r\n retObj.columnGrandTotals = new TreeMap();\r\n retObj.columnGrandTotalscross = new TreeMap();\r\n retObj.rowGrandTotals = new TreeMap();\r\n\r\n for (int i = 0; i < retObj.colCount; i++) {\r\n\r\n// grandTotals[i] = new BigDecimal(\"0\");\r\n// avgTotals[i] = new BigDecimal(\"0\");\r\n// max[i] = new BigDecimal(\"0\");\r\n// min[i] = new BigDecimal(\"0\");\r\n retObj.grandTotals[i] = BigDecimal.ZERO;\r\n retObj.crosstabmapkeys[i] = BigDecimal.ZERO;\r\n retObj.avgTotals[i] = BigDecimal.ZERO;\r\n retObj.max[i] = BigDecimal.ZERO;\r\n retObj.min[i] = BigDecimal.ZERO;\r\n }\r\n\r\n for (int cnt = 0; cnt < retObj.getRowCount(); cnt++) {\r\n\r\n BigDecimal RowGrandTotal = BigDecimal.ZERO;\r\n for (int i = 0; i < retObj.getColumnCount(); i++) {\r\n {\r\n Object Obj = retObj.getFieldValue(cnt, i);\r\n int zerocountct = 0;\r\n\r\n if (retObj.processGT) {\r\n \r\n if (retObj.columnTypes[i] != null) {\r\n if (retObj.columnTypesInt[i] == Types.BIGINT\r\n || retObj.columnTypesInt[i] == Types.DECIMAL || retObj.columnTypesInt[i] == Types.DOUBLE\r\n || retObj.columnTypesInt[i] == Types.FLOAT || retObj.columnTypesInt[i] == Types.INTEGER\r\n || retObj.columnTypesInt[i] == Types.NUMERIC || retObj.columnTypesInt[i] == Types.REAL\r\n || retObj.columnTypesInt[i] == Types.SMALLINT || retObj.columnTypesInt[i] == Types.TINYINT\r\n || retObj.columnTypes[i].equalsIgnoreCase(\"NUMBER\")) {\r\n //code to build max,min,acg and grand total of entire record set\r\n BigDecimal bdecimal = null;\r\n BigDecimal bdcross = null;\r\n if (Obj != null) {\r\n bdecimal = retObj.getFieldValueBigDecimal(cnt, i);\r\n int zerocountvaluect = 0;\r\n BigDecimal bd = new BigDecimal(\"0\");\r\n if (bdecimal == null || bdecimal.compareTo(bd) == 0) {\r\n zerocountct = zerocountct + 1;\r\n bdcross = new BigDecimal(zerocountct);\r\n\r\n }\r\n } else {\r\n bdecimal = BigDecimal.ZERO;\r\n }\r\n if (bdcross == null) {\r\n bdcross = new BigDecimal(\"0\");\r\n }\r\n if (cnt == 0) {\r\n retObj.grandTotals[i] = bdecimal;\r\n retObj.max[i] = bdecimal;\r\n retObj.min[i] = bdecimal;\r\n } else {\r\n if (retObj.grandTotals[i] == null) {\r\n retObj.grandTotals[i] = BigDecimal.ZERO;\r\n retObj.crosstabmapkeys[i] = BigDecimal.ZERO;\r\n }\r\n // \r\n if (bdecimal != null) {\r\n } else {\r\n bdecimal = BigDecimal.ZERO;\r\n }\r\n retObj.grandTotals[i] = retObj.grandTotals[i].add(bdecimal);\r\n retObj.crosstabmapkeys[i] = retObj.crosstabmapkeys[i].add(bdcross);\r\n if (retObj.max[i] == null) {\r\n } else {\r\n retObj.max[i] = retObj.max[i].max(bdecimal);\r\n }\r\n if (retObj.min[i] == null) {\r\n } else {\r\n retObj.min[i] = retObj.min[i].min(bdecimal);\r\n }\r\n\r\n// retObj.max[i]=retObj.max[i].max(bdcross);\r\n// retObj.min[i]=retObj.min[i].min(bdcross);\r\n }\r\n //code to buiold row wise grand total\r\n if (i == 0) {\r\n RowGrandTotal = bdecimal;\r\n } else {\r\n // \r\n if (bdecimal != null) {\r\n RowGrandTotal = RowGrandTotal.add(bdecimal);\r\n } else {\r\n RowGrandTotal = RowGrandTotal.add(BigDecimal.ZERO);\r\n }\r\n }\r\n bdecimal = null;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n if (retObj.processGT) {\r\n retObj.rowGrandTotals.put(\"RowGrandTotal_\" + retObj.rowCount, RowGrandTotal);\r\n }\r\n /// rowCount++;\r\n }\r\n if (retObj.rowCount != 0 && retObj.processGT) {\r\n BigDecimal dividend = new BigDecimal(String.valueOf(retObj.rowCount));\r\n\r\n for (int colIndex = 0; colIndex < retObj.colCount; colIndex++) {\r\n if (retObj.columnTypes[colIndex] != null) {\r\n retObj.columnOverAllMaximums.put(retObj.cols[colIndex], retObj.max[colIndex]);\r\n retObj.columnOverAllMinimums.put(retObj.cols[colIndex], retObj.min[colIndex]);\r\n retObj.columnGrandTotals.put(retObj.cols[colIndex], retObj.grandTotals[colIndex]);\r\n retObj.columnGrandTotalscross.put(retObj.cols[colIndex], retObj.crosstabmapkeys[colIndex]);\r\n retObj.avgTotals[colIndex] = retObj.grandTotals[colIndex].divide(dividend, MathContext.DECIMAL64);\r\n retObj.columnAverages.put(retObj.cols[colIndex], retObj.avgTotals[colIndex]);\r\n }\r\n }\r\n dividend = null;\r\n }\r\n this.initializeViewSequence();\r\n\r\n } catch (Exception ex) {\r\n\r\n logger.error(\"Exception:\", ex);;\r\n }\r\n // long endTime = System.currentTimeMillis();\r\n// \r\n }", "private void fillTable(){\n tblModel.setRowCount(0);// xoa cac hang trong bang\n \n for(Student st: list){\n tblModel.addRow(new String[]{st.getStudentId(), st.getName(), st.getMajor(),\"\"\n + st.getMark(), st.getCapacity(), \"\" + st.isBonnus()});\n // them (\"\" + )de chuyen doi kieu float va boolean sang string\n \n }\n tblModel.fireTableDataChanged();\n }", "private void addRow(WritableSheet sheet, int rowNumber,\n AssessmentFilling assessment) throws IOException, WriteException {\n WritableCellFormat doublevalCellFormat = buildDoublevalCellFormat();\n WritableCellFormat dataCellFormat = buildDataCellFormat();\n WritableCellFormat textCellFormat = buildTextCellFormat();\n Number numberCell = null;\n Label labelCell = null;\n int columnNumber = 0;\n sheet.addCell(new Label(columnNumber, rowNumber,\n assessment.getIdentifier(), dataCellFormat));\n columnNumber++;\n sheet.addCell(new Label(columnNumber, rowNumber,\n assessment.getFirstName(), dataCellFormat));\n columnNumber++;\n sheet.addCell(new Label(columnNumber, rowNumber,\n assessment.getLastName(), dataCellFormat));\n columnNumber++;\n List<QuestionFilling> orderedQuestions = new LinkedList<QuestionFilling>(assessment.getQuestions());\n Collections.sort(orderedQuestions, new QuestionFillingOriginalComparator());\n for (QuestionFilling question : orderedQuestions) {\n double mark = question.getMarkedWeight() != null ? question.getMarkedWeight().\n doubleValue() : 0.0;\n if (question instanceof ClosedQuestionFilling) {\n numberCell = new Number(columnNumber, rowNumber, mark,\n doublevalCellFormat);\n sheet.addCell(numberCell);\n columnNumber++;\n } else if (question instanceof OpenQuestionFilling) {\n labelCell = new Label(columnNumber, rowNumber,\n ((OpenQuestionFilling) question).getAnswer(),\n textCellFormat);\n sheet.addCell(labelCell);\n columnNumber++;\n numberCell = new Number(columnNumber, rowNumber, mark,\n doublevalCellFormat);\n sheet.addCell(numberCell);\n columnNumber++;\n }\n }\n sheet.addCell(new Formula(columnNumber, rowNumber,\n \"SUM(\" + CellReferenceHelper.getCellReference(3,\n rowNumber) + \":\" + CellReferenceHelper.getCellReference(\n columnNumber - 1, rowNumber) + \")\",\n doublevalCellFormat));\n columnNumber++;\n }", "public abstract DynamicDataRow makeUIRowData();", "private DataRow convertDataRow(gherkin.formatter.model.Row row, List<String> cells) {\n DataRow dataRow = new DataRow();\n dataRow.setLine(row.getLine());\n dataRow.setCommentList(createCommentList(row.getComments()));\n dataRow.setValueList(cells);\n\n return dataRow;\n }", "public void addNewIDtoCells() {\n\t\t//Get iterator to all the rows in current sheet\n\t\tIterator<Row> rowIteratorA = cells.iterator();\n\t\t\n\t\trowIteratorA.next();//Ignore the column names. We actually know it.\n\t\tRow row = null;\n\t\tint previousValue = -1;\n\t\tdouble key = -1;\n\t\t//For each row we will read the info. 12\n\t\twhile(rowIteratorA.hasNext()){\n\t\t\trow = rowIteratorA.next();\n\t\t\tdouble currentValue = Math.round(row.getCell(CELLQUERY).getNumericCellValue()*100)/100;\n\t\t\t//System.out.println(i++);\n\t\t\tif(currentValue!=previousValue){\n\t\t\t\tif(table.containsKey(currentValue))\n\t\t\t\t\tkey=table.get(currentValue);\n\t\t\t\telse\n\t\t\t\t\tkey=-1;\n\t\t\t}\n\t\t\trow.createCell(CELLKEY);\n\t\t\trow.getCell(CELLKEY).setCellValue(key);\n\t\t\tif(key==-1){\n\t\t\t\tSystem.err.println(\"Error: Value \"+currentValue+\" was not found in the matching table\");\n\t\t\t}\n\t\t}\n\t\tFileOutputStream dataFileOut;\n\t\ttry {\n\t\t\tdataFileOut = new FileOutputStream(\n\t\t\t\t\tcellsFile.getAbsolutePath().replace(\".xlsx\", \"out.xlsx\"));\n\t\t\t//System.out.println(dataFileOut+\" \"+cellsWorkbook);\n\t\t\t\n\t\t\tcellsWorkbook.write(dataFileOut);\n\t\t\tdataFileOut.flush();\n\t\t\tdataFileOut.close();\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "PivotTable createPivotTable();", "public HSSFWorkbook process(){\r\n\t\tHSSFSheet sheet = templateWorkbook.getSheetAt(0);\r\n\r\n\t\t//write product infmration\r\n\t\torder.putSetToList();\r\n\t\tList<InventoryOrderProduct> orderProducts = order.getProduct_List();\r\n\t\tint totalDataRow = orderProducts.size();\r\n\t\tfor (int i = 0; i < totalDataRow; i++){\r\n\r\n\t\t\tInventoryOrderProduct orderProduct = orderProducts.get(i);\r\n\t\t\tRow row = sheet.createRow(data_row + i);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tProduct product = orderProduct.getProductBarcode().getProduct();\r\n\t\t\trow.createCell(barcode_column).setCellValue(orderProduct.getProductBarcode().getBarcode());\r\n\t\t\t\r\n\t\t\tColor color = orderProduct.getProductBarcode().getColor();\r\n\t\t\tif (color == null)\r\n\t\t\t\trow.createCell(productCode_column).setCellValue(product.getProductCode());\r\n\t\t\telse \r\n\t\t\t\trow.createCell(productCode_column).setCellValue(product.getProductCode() + color.getName());\r\n\t\t\t\r\n\t\t\trow.createCell(unit_column).setCellValue(product.getUnit());\r\n\t\t\tint q = orderProduct.getQuantity();\r\n\t\t\t\r\n\t\t\trow.createCell(quantity_column).setCellValue(orderProduct.getQuantity());\r\n\t\t\trow.createCell(salePrice_column).setCellValue(orderProduct.getSalesPrice());\r\n\t\t\t\r\n\t\t\tString year = product.getYear().getYear();\r\n\t\t\tString quarter = product.getQuarter().getQuarter_Name();\r\n\t\t\tString brandName = product.getBrand().getBrand_Name();\r\n\t\t\t\r\n\t\t\tString productComment = year +\"年\" + brandName + quarter + \"装\";\r\n\t\t\t\t\t\r\n\t\t\t\r\n\t\t\trow.createCell(productComment_column).setCellValue(productComment);\r\n\t\t}\r\n\r\n\t\treturn templateWorkbook;\r\n\t}", "public Object[][] getSheetData() {\n\n List<Object[]> rows = new ArrayList<>();\n\n int rowCount = currentSheet.getPhysicalNumberOfRows();\n\n for (int rowIdx = hasHeaderRow ? 1 : 0; rowIdx < rowCount; rowIdx++)\n rows.add(getRowData(rowIdx));\n\n return removeSkippedHeaderColumns( rows );\n\n }", "public void addRow(String data){//adds a new row of data to the table\n\t\t\t\tif(row_count<100){//checks to see if there is space left in the current datum for an additional rows\n\t\t\t\t\tif(row_count<50){//halvs the data for more efficiant row insertion\n\t\t\t\t\t\tif(row_count<10){//checks to see if it is in the first inner datum\n\t\t\t\t\t\t\tif(dataarr!=null){//makes suhure there is an innerdatum to send the data to\n\t\t\t\t\t\t\t\tdataarr[0].addRow(data);\n\t\t\t\t\t\t\t}else{//if there is not an inner datum in the current spot this adds a new one\n\t\t\t\t\t\t\t\tdataarr[0]=new InnerDatum();\n\t\t\t\t\t\t\t\tdataarr[0].addRow(data);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else if(row_count<20){//checks to see if it is in the second inner datum\n\t\t\t\t\t\t\tf(dataarr!=null){//makes suhure there is an innerdatum to send the data to\n\t\t\t\t\t\t\t\tdataarr[1].addRow(data);\n\t\t\t\t\t\t\t}else{//if there is not an inner datum in the current spot this adds a new one\n\t\t\t\t\t\t\t\tdataarr[1]=new InnerDatum();\n\t\t\t\t\t\t\t\tdataarr[1].addRow(data);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else if(row_count<30){//checks to see if it is in the third inner datum\n\t\t\t\t\t\t\tif(dataarr!=null){//makes suhure there is an innerdatum to send the data to\n\t\t\t\t\t\t\t\tdataarr[2].addRow(data);\n\t\t\t\t\t\t\t}else{//if there is not an inner datum in the current spot this adds a new one\n\t\t\t\t\t\t\t\tdataarr[2]=new InnerDatum();\n\t\t\t\t\t\t\t\tdataarr[2].addRow(data);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else if(row_count<40){//checks to see if it is in the fourth inner datum\n\t\t\t\t\t\t\tif(dataarr!=null){//makes suhure there is an innerdatum to send the data to\n\t\t\t\t\t\t\t\tdataarr[3].addRow(data);\n\t\t\t\t\t\t\t}else{//if there is not an inner datum in the current spot this adds a new one\n\t\t\t\t\t\t\t\tdataarr[3]=new InnerDatum();\n\t\t\t\t\t\t\t\tdataarr[3].addRow(data);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else{//checks to see if it is in the fifth inner datum\n\t\t\t\t\t\t\tif(dataarr!=null){//makes suhure there is an innerdatum to send the data to\n\t\t\t\t\t\t\t\tdataarr[4].addRow(data);\n\t\t\t\t\t\t\t}else{//if there is not an inner datum in the current spot this adds a new one\n\t\t\t\t\t\t\t\tdataarr[4]=new InnerDatum();\n\t\t\t\t\t\t\t\tdataarr[4].addRow(data);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else{\t\n\t\t\t\t\t\tif(row_count<60){//checks to see if it is in the sixth inner datum\n\t\t\t\t\t\t\tif(dataarr!=null){//makes suhure there is an innerdatum to send the data to\n\t\t\t\t\t\t\t\tdataarr[5].addRow(data);\n\t\t\t\t\t\t\t}else{//if there is not an inner datum in the current spot this adds a new one\n\t\t\t\t\t\t\t\tdataarr[5]=new InnerDatum();\n\t\t\t\t\t\t\t\tdataarr[5].addRow(data);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else if(row_count<70){//checks to see if it is in the seventh inner datum\n\t\t\t\t\t\t\tif(dataarr!=null){//makes suhure there is an innerdatum to send the data to\n\t\t\t\t\t\t\t\tdataarr[6].addRow(data);\n\t\t\t\t\t\t\t}else{//if there is not an inner datum in the current spot this adds a new one\n\t\t\t\t\t\t\t\tdataarr[6]=new InnerDatum();\n\t\t\t\t\t\t\t\tdataarr[6].addRow(data);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else if(row_count<80){//checks to see if it is in the eighth inner datum\n\t\t\t\t\t\t\tif(dataarr!=null){//makes suhure there is an innerdatum to send the data to\n\t\t\t\t\t\t\t\tdataarr[7].addRow(data);\n\t\t\t\t\t\t\t}else{//if there is not an inner datum in the current spot this adds a new one\n\t\t\t\t\t\t\t\tdataarr[7]=new InnerDatum();\n\t\t\t\t\t\t\t\tdataarr[7].addRow(data);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else if(row_count<90){//checks to see if it is in the ninth inner datum\n\t\t\t\t\t\t\tif(dataarr!=null){//makes suhure there is an innerdatum to send the data to\n\t\t\t\t\t\t\t\tdataarr[8].addRow(data);\n\t\t\t\t\t\t\t}else{//if there is not an inner datum in the current spot this adds a new one\n\t\t\t\t\t\t\t\tdataarr[8]=new InnerDatum();\n\t\t\t\t\t\t\t\tdataarr[8].addRow(data);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else{//checks to see if it is in the tenth inner datum\n\t\t\t\t\t\t\tif(dataarr!=null){//makes suhure there is an innerdatum to send the data to\n\t\t\t\t\t\t\t\tdataarr[9].addRow(data);\n\t\t\t\t\t\t\t}else{//if there is not an inner datum in the current spot this adds a new one\n\t\t\t\t\t\t\t\tdataarr[9]=new InnerDatum();\n\t\t\t\t\t\t\t\tdataarr[9].addRow(data);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}else{//acctivated when there is no room left in the current outer datum}\n\t\t\t\t\tif(next==null){//checks to see if there is a next outer datum\n\t\t\t\t\t\tnext=new OuterDatum();\t\n\t\t\t\t\t}\n\t\t\t\t\tnext.addRow(data);\n\t\t\t\t}\n\t\t\t}", "public ChartTableModel(int rows) {\n this.data = new Object[rows][7];\n }", "public int xlsWriter(List<CeoMypageDto> datas, String fileName, CeoMypageDto ceoDto )\n\t{\n\t\tint flag = 1;\n\t\tint startRow =2;\n\t\tint startCol =1;\n\t\t//workbook생성\n\t\tHSSFWorkbook workBook = new HSSFWorkbook();\n\t\t\n\t\t//work sheet생성\n\t\tif(fileName.equals(\"\"))fileName=\"sheet1\";\n\t\tHSSFSheet workSheet = workBook.createSheet(fileName);\n\t\t\n\t\t//행생성\n\t\tHSSFRow row = workSheet.createRow(startRow);\n\t\tHSSFRow row1 = workSheet.createRow(startRow+1);\n\t\tHSSFRow row2 = workSheet.createRow(startRow+2);\n\t\t\n\t\t//cell생성\n\t\tHSSFCell cell;\n\t\t\n\t\t//스타일 설정\n\n\n\t\t//스타일 객체 생성 \n\t\tHSSFCellStyle styleHd = workBook.createCellStyle(); //제목 스타일\n\t\tHSSFCellStyle styleBody = workBook.createCellStyle(); //내용 스타일\n\n\n\t\t//제목 폰트\n\t\tHSSFFont font = workBook.createFont();\n\t\tfont.setFontHeightInPoints((short)12);\n\t\tfont.setBoldweight((short)font.BOLDWEIGHT_BOLD);\n\n\t\t//제목 스타일에 폰트 적용, 정렬\n\t\tstyleHd.setFont(font);\n\t\tstyleHd.setAlignment(HSSFCellStyle.ALIGN_CENTER);\n\t\tstyleHd.setVerticalAlignment (HSSFCellStyle.VERTICAL_CENTER);\n styleHd.setFillBackgroundColor(HSSFColor.SKY_BLUE.index);\n styleHd.setFillForegroundColor(HSSFColor.SKY_BLUE.index);\n \n \n\t\tstyleHd.setFillPattern(CellStyle.SOLID_FOREGROUND);\n\t\t\n\t\t//날짜부분\n\t\tcell = row.createCell(startCol);\n\t\tcell.setCellValue(ceoDto.getSTART_DATE());\t\t\n\t\tcell.setCellStyle(styleHd);\n\t\t\n\t\tcell = row.createCell(startCol+2);\n\t\tcell.setCellValue(ceoDto.getEND_DATE());\t\t\n\t\tcell.setCellStyle(styleHd);\n\t\t\n\t\t//검색어, 페이지넘 부분 \n\t\tcell = row1.createCell(startCol);\n\t\tcell.setCellValue(ceoDto.getSEARCH().replace(\"%\", \"\"));\t\t\n\t\tcell.setCellStyle(styleHd);\n\t\t\n\t\tcell = row1.createCell(startCol+2);\n\t\tcell.setCellValue(ceoDto.getPAGE_NUM());\t\t\n\t\tcell.setCellStyle(styleHd);\n\t\t// 제목부분 \n\t\tcell = row2.createCell(startCol);\n\t\tcell.setCellValue(\"분류\");\t\t\n\t\tcell.setCellStyle(styleHd);\n\t\t\n\t\tcell = row2.createCell(startCol+1);\n\t\tcell.setCellValue(\"상품이름\");\n\t\tcell.setCellStyle(styleHd);\n\t\t\n\t\tcell = row2.createCell(startCol+2);\n\t\tcell.setCellValue(\"구매색상\");\n\t\tcell.setCellStyle(styleHd);\n\t\t\n\t\tcell = row2.createCell(startCol+3);\n\t\tcell.setCellValue(\"구매사이즈\");\t\t\n\t\tcell.setCellStyle(styleHd);\n\t\t\n\t\tcell = row2.createCell(startCol+4);\n\t\tcell.setCellValue(\"구매자\");\t\t\n\t\tcell.setCellStyle(styleHd);\n\t\t\n\t\tcell = row2.createCell(startCol+5);\n\t\tcell.setCellValue(\"상품수량\");\t\t\n\t\tcell.setCellStyle(styleHd);\n\n\t\tcell = row2.createCell(startCol+6);\n\t\tcell.setCellValue(\"재고\");\t\t\n\t\tcell.setCellStyle(styleHd);\n\n\t\tcell = row2.createCell(startCol+7);\n\t\tcell.setCellValue(\"실제 구매가격\");\t\t\n\t\tcell.setCellStyle(styleHd);\n\n\t\tcell = row2.createCell(startCol+8);\n\t\tcell.setCellValue(\"구매시간\");\t\t\n\t\tcell.setCellStyle(styleHd);\n\t\t\n\t\tcell = row2.createCell(startCol+9);\n\t\tcell.setCellValue(\"배송상태\");\t\t\n\t\tcell.setCellStyle(styleHd);\n\n\n\n\t\t\n\t\tfor(int i=0;i<datas.size();i++)\n\t\t{\n\t\t\tCeoMypageDto vo = (CeoMypageDto)datas.get(i);\n\t\t\trow = workSheet.createRow(i+(startRow+3));\n\t\t \t\n\t\t\tcell = row.createCell(startCol+0);\n\t\t\tcell.setCellValue(vo.getITEM());\n\t\t\t\n\t\t\tcell = row.createCell(startCol+1);\n\t\t\tcell.setCellValue(vo.getPRO_NAME());\n\t\t\t\n\t\t\tcell = row.createCell(startCol+2);\n\t\t\tcell.setCellValue(vo.getSEL_COLOR());\n\t\t\t\n\t\t\tcell = row.createCell(startCol+3);\n\t\t\tcell.setCellValue(vo.getSEL_SIZE());\n\t\t\t\n\t\t\tcell = row.createCell(startCol+4);\n\t\t\tcell.setCellValue(vo.getUSER_ID());\n\t\t\t\n\t\t\tcell = row.createCell(startCol+5);\n\t\t\tcell.setCellValue(vo.getSEL_NUM());\n\t\t\t\n\t\t\tcell = row.createCell(startCol+6);\n\t\t\tcell.setCellValue(vo.getSTOCK());\n\t\t\t\n\t\t\tcell = row.createCell(startCol+7);\n\t\t\tcell.setCellValue(vo.getFINAL_PRICE());\n\t\t\t\n\t\t\tcell = row.createCell(startCol+8);\n\t\t\tcell.setCellValue(vo.getSELTIME());\n\t\t\t\n\t\t\tcell = row.createCell(startCol+9);\n\t\t\tcell.setCellValue(vo.getDEL_STEP());\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\tfor (int i=0;i<4;i++) \n\t\t{ \n\t\t\tworkSheet.autoSizeColumn(i);\n\t\t\tworkSheet.setColumnWidth(i, (workSheet.getColumnWidth(i))+512 ); //이건 자동으로 조절 하면 너무 딱딱해 보여서 자동조정한 사이즈에 (short)512를 추가해 주니 한결 보기 나아졌다.\n\t\t}\n\t\tworkSheet.setColumnWidth(0, 200);\n\t\t\n\t\t\n\t\tFile file=new File(PATH+fileName+\"_\"+ExcelUtil.getPK()+\".xls\" );\n\t\tFileOutputStream fo = null;\n\t\ttry{\n\t\t\tfo = new FileOutputStream(file);\n\t\t\tworkBook.write(fo);\n\t\t}catch(FileNotFoundException fnf){\n\t\t\tflag = -1;\n\t\t\tfnf.printStackTrace();\n\t\t\t\n\t\t}catch(IOException io){\n\t\t\tflag = -1;\n\t\t\tio.printStackTrace();\n\t\t}finally{\n\t\t\ttry{\n\t\t\t\t\n\t\t\t\tif(workBook!=null)workBook.close();\n\t\t\t\tif(fo!=null)fo.close();\n\t\t\t\t\n\t\t\t}catch(IOException io){\n\t\t\t\tflag = -1;\n\t\t\t\tio.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn flag;\n\t}", "public void writeXlsx() throws IOException {\n String[] columns = {\"Kártya lehúzása\", \"Tanuló neve\", \"Osztálya\", \"Késés oka\"};\n xlsxDataList.sort(Comparator.comparing(Student::getKey));\n Workbook workbook = new XSSFWorkbook();\n Sheet sheet = workbook.createSheet(\"Munka1\");\n\n // Create header\n Font headerFont = workbook.createFont();\n headerFont.setFontHeightInPoints((short) 14);\n CellStyle headerCellStyle = workbook.createCellStyle();\n headerCellStyle.setFont(headerFont);\n headerCellStyle.setBorderBottom(BorderStyle.MEDIUM);\n headerCellStyle.setBorderTop(BorderStyle.MEDIUM);\n Row headerRow = sheet.createRow(0);\n for (int i = 0; i < columns.length; i++) {\n Cell cell = headerRow.createCell(i);\n cell.setCellValue(columns[i]);\n cell.setCellStyle(headerCellStyle);\n }\n // Create Other rows and cells with student data\n int rowNum = 1;\n for (Student student : xlsxDataList) {\n Row row = sheet.createRow(rowNum++);\n row.createCell(0).setCellValue(student.getTime());\n row.createCell(1).setCellValue(student.getName());\n row.createCell(2).setCellValue(student.getClassNumber());\n row.createCell(3).setCellValue(student.getReason());\n }\n // Resize all columns to fit the content size\n for (int i = 0; i < columns.length; i++) {\n sheet.autoSizeColumn(i);\n }\n // Write the output to a file\n FileOutputStream fileOut = new FileOutputStream(\"C:\\\\Munka\\\\\" + year + \"_\" + directory + \"_ho_vegi_osszesites.xlsx\");\n workbook.write(fileOut);\n fileOut.close();\n // Closing the workbook\n workbook.close();\n }", "public void MakeTableData()\r\n {\n classes = ResetClasses();\r\n \r\n // 'WHATS ON' TAB SELECTED\r\n if (selectedTab == 0)\r\n {\r\n // iterate through days\r\n for (int i = 0; i < daysPerWeek; i++)\r\n {\r\n // iterate through times and rooms\r\n for (int j = 0; j < totalSlots; j++)\r\n {\r\n LessonClass a = weekArray[(weekNo -1)].dayArray[i].dayMap.get(roomNtime[j]);\r\n if (a != null)\r\n {\r\n if (byAllFlag == true)\r\n {\r\n classes[j][i] = a.toString();\r\n }\r\n else if (bySubjectFlag == true)\r\n {\r\n if (a.subject == subComb)\r\n {\r\n classes[j][i] = a.toString();\r\n }\r\n }\r\n else if (byTutorFlag == true)\r\n {\r\n if (a.tutorName == tutComb)\r\n {\r\n classes[j][i] = a.toString();\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n // 'DIARY' TAB SELECTED\r\n else if (selectedTab == 1)\r\n {\r\n if (userLoggedIn != null)\r\n { \r\n // iterate through days\r\n for (int i = 0; i < daysPerWeek; i++)\r\n {\r\n // iterate through times and rooms\r\n for (int j = 0; j < totalSlots; j++)\r\n {\r\n // pertinent tracks if ID is in register\r\n boolean pertinent = false;\r\n LessonClass a = weekArray[(weekNo -1)].dayArray[i].dayMap.get(roomNtime[j]);\r\n if (a != null)\r\n {\r\n for (String s : a.register)\r\n {\r\n if (userLoggedIn.equals(s))\r\n {\r\n pertinent = true;\r\n }\r\n } \r\n \r\n if (byAllFlag == true && pertinent == true)\r\n {\r\n classes[j][i] = a.toString();\r\n }\r\n else if (bySubjectFlag == true && pertinent == true)\r\n {\r\n if (a.subject == subComb)\r\n {\r\n classes[j][i] = a.toString();\r\n }\r\n }\r\n else if (byTutorFlag == true && pertinent == true)\r\n {\r\n if (a.tutorName == tutComb)\r\n {\r\n classes[j][i] = a.toString();\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }", "FromTable createFromTable();", "private void fillFirstRow() {\n\t\tputBeeper();\n\t\tputEveryOtherBeeper();\t\t\n\t}", "public static JSONObject constructEmpyTable(JSONObject obj) {\n JSONObject data = new JSONObject();\n data.put(\"repo\", obj.get(\"repo_name\")); // name of the repository associated with this file\n data.put(\"classes\", new JSONObject());\n return data;\n }", "@SuppressWarnings(\"unchecked\")\n private void createTable(ArrayList<Object> objects){\n log.setText(\"\");\n if(!objects.isEmpty()) {\n ArrayList<String> list = new ArrayList<String>();\n int index = 0, row = 0, column = 0;\n for (Field field : objects.get(0).getClass().getDeclaredFields()) {\n list.add(field.getName());\n }\n String[] columnName = new String[list.size()];\n for(String s:list) {\n columnName[index] = s;\n index++;\n }\n Object data[][] = getData(objects, index);\n if(data.length != 0) {\n tableMode = new DefaultTableModel(data, columnName);\n }\n else {\n tableMode = null;\n }\n }\n else {\n tableMode = null;\n }\n }", "DT createDT();", "protected List<AccountingLineTableRow> createRowsForFields() {\n List<AccountingLineTableRow> rows = new ArrayList<AccountingLineTableRow>();\n \n int countForThisRow = 0;\n AccountingLineTableRow row = new AccountingLineTableRow();\n for (AccountingLineViewField field : fields) {\n row.addCell(createHeaderCellForField(field));\n row.addCell(createCellForField(field));\n countForThisRow += 1;\n \n if (countForThisRow == definition.getColumnCount()) {\n rows.add(row);\n countForThisRow = 0;\n row = new AccountingLineTableRow();\n }\n }\n if (countForThisRow > 0) { // oops! we stopped mid-row and now need to fill it out\n while (countForThisRow < definition.getColumnCount()) {\n row.addCell(createPaddingCell());\n countForThisRow += 1;\n }\n rows.add(row);\n }\n \n return rows;\n }", "public TableRow createBadRow(String data) {\n TableRow output = new TableRow();\n output.set(\"json\", data);\n return output;\n }", "public Row(int index) {\n this.index=index;\n row = new ArrayList<>(8);\n }", "@VTID(8)\n com.exceljava.com4j.excel.XlCreator getCreator();", "@VTID(8)\n com.exceljava.com4j.excel.XlCreator getCreator();", "@VTID(8)\n com.exceljava.com4j.excel.XlCreator getCreator();", "@VTID(8)\n com.exceljava.com4j.excel.XlCreator getCreator();" ]
[ "0.6723849", "0.63762337", "0.63641024", "0.6048089", "0.59613407", "0.5951631", "0.5949136", "0.58724785", "0.58714646", "0.58447444", "0.5755584", "0.5754825", "0.5741866", "0.5666846", "0.5625543", "0.55837375", "0.5549381", "0.5536728", "0.5488751", "0.5485792", "0.5442789", "0.5402975", "0.5395563", "0.53909415", "0.5384866", "0.5373742", "0.53702295", "0.53570104", "0.5333268", "0.5318449", "0.5313689", "0.5311215", "0.52904063", "0.524122", "0.5236193", "0.5235055", "0.52290875", "0.52012086", "0.5192699", "0.5177481", "0.5161537", "0.5160516", "0.51595706", "0.51537776", "0.51444346", "0.5128332", "0.5124607", "0.5123643", "0.5116183", "0.5106772", "0.5097383", "0.5060384", "0.5055258", "0.5050626", "0.5045531", "0.5038888", "0.50366366", "0.5034193", "0.5020919", "0.5013906", "0.5008491", "0.49896628", "0.49847028", "0.49771777", "0.4975683", "0.4971094", "0.49640325", "0.4960025", "0.4958623", "0.49555895", "0.4952246", "0.49465355", "0.49342197", "0.49335197", "0.49272305", "0.4924429", "0.49187377", "0.49156332", "0.49114096", "0.4907954", "0.48995286", "0.48942742", "0.48941845", "0.48935542", "0.48896858", "0.48866498", "0.4885577", "0.48849392", "0.48846424", "0.48742712", "0.48699683", "0.48615053", "0.4860052", "0.4859464", "0.48580748", "0.4847316", "0.4847197", "0.4847197", "0.4847197", "0.4847197" ]
0.6538392
1
create a data sheet out of an array of structs
private DataSheet structsToDs(Record record, Object[] array) throws SQLException { DataSheet ds = record.createSheet(false, false); ValueType[] types = ds.getValueTypes(); for (Object struct : array) { if (struct == null || struct instanceof Struct == false) { Tracer.trace( "Found an empty row or a non-struct object for stored procedure parameter " + this.name + ". skipping this row, but not throwing an error."); continue; } Object[] rowData = ((Struct) struct).getAttributes(); Value[] row = this.getRowFromStruct(rowData, types); ds.addRow(row); } return ds; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private DataSheet arrayToDs(Object[] row) throws SQLException {\n\t\tString[] columnNames = { this.name };\n\t\tValueType vt = this.getValueType();\n\t\tif (row.length == 0) {\n\t\t\tValueType[] types = { this.dataTypeObject.getValueType() };\n\t\t\treturn new MultiRowsSheet(columnNames, types);\n\t\t}\n\t\tValue[][] values = { vt.toValues(row) };\n\t\treturn new MultiRowsSheet(columnNames, values);\n\t}", "private DataSheet structToDs(Struct struct) throws SQLException {\n\t\t/*\n\t\t * struct is extracted into a data sheet with just one row\n\t\t */\n\t\tDataSheet ds = ComponentManager.getRecord(this.recordName)\n\t\t\t\t.createSheet(true, false);\n\t\tValueType[] types = ds.getValueTypes();\n\t\tValue[] row = this.getRowFromStruct(struct.getAttributes(), types);\n\t\tds.addRow(row);\n\t\treturn ds;\n\t}", "private void buildObjArray(int numEntries) {\n\t\tmyData = new Object[numEntries + paymentData.size() - 1][6];\n\n\t\tInteger row = 0;\n\t\tfor (int i = 0; i < paymentData.size(); i++) {\n\t\t\tfor (int j = 0; j < paymentData.get(i).size(); j++) {\n\n\t\t\t\tfor (int k = 0; k < 6; k++) {\n\n\t\t\t\t\tif (k == 0) {\n\t\t\t\t\t\tmyData[row][k] = paymentData.get(i).get(j).getMyMonth();\n\t\t\t\t\t} else if (k == 1) {\n\t\t\t\t\t\tmyData[row][k] = paymentData.get(i).get(j).getMyPosition();\n\t\t\t\t\t} else if (k == 2) {\n\t\t\t\t\t\tmyData[row][k] = paymentData.get(i).get(j).getMyName();\n\t\t\t\t\t} else if (k == 3) {\n\t\t\t\t\t\tlong balance = Math.round(paymentData.get(i).get(j).getMyBalance() * 100) / 100;\n\t\t\t\t\t\tmyData[row][k] = balance;\n\t\t\t\t\t} else if (k == 4) {\n\t\t\t\t\t\tlong payment = Math.round(paymentData.get(i).get(j).getMyPayment() * 100) / 100;\n\t\t\t\t\t\tmyData[row][k] = payment;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tlong balance = Math.round(paymentData.get(i).get(j).getMyNewBalance() * 100) / 100;\n\t\t\t\t\t\tmyData[row][k] = balance;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\trow++;\n\t\t\t}\n\t\t\trow++;\n\t\t}\n\t}", "@Test\n public void testFillInDataToTemplate() throws IOException {\n List<List<Object>> rows = new ArrayList<List<Object>>();\n\n List<String> communeStrs = Arrays.asList(\"Aclens\", \"Allaman\", \"Aubonne\", \"Apples\", \"Bière\", \"Bremblens\",\n \"Bougy-Villars\", \"Berolle\", \"Chevilly\");\n List<String> typeStrs = Arrays.asList(\"Résidence Secondaire\", \"Location\", \"Hotel\", \"Chambre\", \"Camping\",\n \"Institut\");\n\n for (int i = 0; i < 25; i++) {\n List<Object> row = new ArrayList<Object>();\n row.add(new Long(900000L + i));\n row.add(i + 1);\n row.add(communeStrs.get(i % communeStrs.size()));\n row.add(typeStrs.get(i % typeStrs.size()));\n row.add(new Long(25000L * i));\n row.add(BooleanUtils.toBoolean(i % 2));\n row.add(new Date());\n row.add(DateUtils.addDays(new Date(), i + 1));\n row.add(String.format(\"%d piéces ou moins\", i + 1));\n row.add(i + 1);\n row.add((i % 7 == 0 ? i : null));\n row.add((i % 7 == 1 ? i : null));\n row.add((i % 7 == 2 ? i : null));\n row.add((i % 7 == 3 ? i : null));\n row.add((i % 7 == 4 ? i : null));\n row.add((i % 7 == 5 ? i : null));\n row.add((i % 7 == 6 ? i : null));\n row.add(10 * i);\n row.add(200 * i);\n row.add(25 * i);\n row.add(i % 5 + 1);\n row.add(i % 6 + 1);\n row.add(BigDecimal.ZERO);\n row.add(1500 * (i + 1));\n row.add(null);\n\n rows.add(row);\n }\n\n SheetDataDto sheet1 = ExcelExportingUtil.convert2DListToSheetDto(rows, false);\n sheet1.setName(\"Data\");\n sheet1.setOverriden(true);\n // re-assign the index of the rows in the sheet to fill in the template: ignore the first two rows\n for (int i = 2; i < 2 + sheet1.getRows().size(); i++) {\n RowDataDto row = sheet1.getRows().get(i - 2);\n row.setRowNum(i);\n for (int j = 0; j < row.getCells().size(); j++) {\n CellDataDto cell = row.getCells().get(j);\n cell.setCellNum(j);\n }\n }\n\n // specify the format for col 7 and 8 (0-based)\n for (int i = 0; i < sheet1.getRows().size(); i++) {\n switch (i) {\n case 7:\n CellFormatter formatter = new CellFormatter(\"dd-MMM-yyyy\");\n formatter.setAlignment(CellStyle.ALIGN_CENTER);\n sheet1.getFormatters().add(formatter);\n break;\n\n case 8:\n CellFormatter formatter1 = new CellFormatter();\n formatter1.setWrapText(false);\n sheet1.getFormatters().add(formatter1);\n break;\n\n default:\n sheet1.getFormatters().add(null);\n break;\n }\n }\n\n InputStream input = getClass().getResourceAsStream(\"/exportData/Statistics_v0.1.xls\");\n ByteArrayOutputStream out = new ByteArrayOutputStream();\n excelExportingService.exportToExcel(input, out, Arrays.asList(sheet1), ExcelFormatTypeEnum.XLS);\n\n FileUtils.writeByteArrayToFile(new File(\"output-template.xls\"), out.toByteArray());\n }", "public void MakeTableData()\r\n {\n classes = ResetClasses();\r\n \r\n // 'WHATS ON' TAB SELECTED\r\n if (selectedTab == 0)\r\n {\r\n // iterate through days\r\n for (int i = 0; i < daysPerWeek; i++)\r\n {\r\n // iterate through times and rooms\r\n for (int j = 0; j < totalSlots; j++)\r\n {\r\n LessonClass a = weekArray[(weekNo -1)].dayArray[i].dayMap.get(roomNtime[j]);\r\n if (a != null)\r\n {\r\n if (byAllFlag == true)\r\n {\r\n classes[j][i] = a.toString();\r\n }\r\n else if (bySubjectFlag == true)\r\n {\r\n if (a.subject == subComb)\r\n {\r\n classes[j][i] = a.toString();\r\n }\r\n }\r\n else if (byTutorFlag == true)\r\n {\r\n if (a.tutorName == tutComb)\r\n {\r\n classes[j][i] = a.toString();\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n // 'DIARY' TAB SELECTED\r\n else if (selectedTab == 1)\r\n {\r\n if (userLoggedIn != null)\r\n { \r\n // iterate through days\r\n for (int i = 0; i < daysPerWeek; i++)\r\n {\r\n // iterate through times and rooms\r\n for (int j = 0; j < totalSlots; j++)\r\n {\r\n // pertinent tracks if ID is in register\r\n boolean pertinent = false;\r\n LessonClass a = weekArray[(weekNo -1)].dayArray[i].dayMap.get(roomNtime[j]);\r\n if (a != null)\r\n {\r\n for (String s : a.register)\r\n {\r\n if (userLoggedIn.equals(s))\r\n {\r\n pertinent = true;\r\n }\r\n } \r\n \r\n if (byAllFlag == true && pertinent == true)\r\n {\r\n classes[j][i] = a.toString();\r\n }\r\n else if (bySubjectFlag == true && pertinent == true)\r\n {\r\n if (a.subject == subComb)\r\n {\r\n classes[j][i] = a.toString();\r\n }\r\n }\r\n else if (byTutorFlag == true && pertinent == true)\r\n {\r\n if (a.tutorName == tutComb)\r\n {\r\n classes[j][i] = a.toString();\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }", "@Before\n\tpublic void createPOJO() {\n\t\tpojo0 = new Pojo();\n\t\tpojo0.setId(1);\n\t\tpojo0.setName(\"Geddy Lee\");\n\t\tpojo0.setFunction(\"Bass\");\n\t\t\n\t\t// creating others simple objects and an array for the ultimate test\n\t\tpojo1 = new Pojo();\n\t\tpojo1.setId(2);\n\t\tpojo1.setName(\"Alex Lifeson\");\n\t\tpojo1.setFunction(\"Guitar\");\n\n\t\tpojo2 = new Pojo();\n\t\tpojo2.setId(3);\n\t\tpojo2.setName(\"Neal Peart\");\n\t\tpojo2.setFunction(\"Drums\");\n\t\t\n\t\tpojos = new Pojo[3];\n\t\tpojos[0] = pojo0;\n\t\tpojos[1] = pojo1;\n\t\tpojos[2] = pojo2;\n\t\t\n\t\t// tricky list\n\t\ttricky = new Pojo[3];\n\t\ttricky[0] = pojo0;\n\t\ttricky[1] = null;\n\t\ttricky[2] = pojo2;\n\t\t\n\t\t// file name for output\n\t\tfileName = \"c:\\\\test.csv\";\n\n\t}", "private static void setupRecords(String[] arr, AllDataRecords rec) {\r\n\t\t\r\n\t\tif(!arr[0].equals(\"\")) rec.setCpscCase(Integer.parseInt(arr[0]));\r\n\t\telse rec.setCpscCase(-1);\r\n\t\trec.setTrmt_date(arr[1]);\r\n\t\tif(!arr[2].equals(\"\")) rec.setPsu(Integer.parseInt(arr[2]));\r\n\t\telse rec.setPsu(-1);\r\n\t\tif(!arr[3].equals(\"\")) rec.setWeight(Double.parseDouble(arr[3]));\r\n\t\telse rec.setWeight(-1);\r\n\t\trec.setStratum(arr[4]);\r\n\t\tif(!arr[5].equals(\"\")) rec.setAge(Integer.parseInt(arr[5]));\r\n\t\telse rec.setAge(-1);\r\n\t\tif(!arr[6].equals(\"\")) rec.setSex(Integer.parseInt(arr[6]));\r\n\t\telse rec.setSex(-1);\r\n\t\tif(!arr[7].equals(\"\")) rec.setRace(Integer.parseInt(arr[7]));\r\n\t\telse rec.setRace(-1);\r\n\t\trec.setRace_other(arr[8]);\r\n\t\tif(!arr[9].equals(\"\")) rec.setDiag(Integer.parseInt(arr[9]));\r\n\t\telse rec.setDiag(-1);\r\n\t\trec.setDiag_other(arr[10]);\r\n\t\tif(!arr[11].equals(\"\")) rec.setBody_part(Integer.parseInt(arr[11]));\r\n\t\telse rec.setBody_part(-1);\r\n\t\tif(!arr[12].equals(\"\")) rec.setDisposition(Integer.parseInt(arr[12]));\r\n\t\telse rec.setDisposition(-1);\r\n\t\tif(!arr[13].equals(\"\")) rec.setLocation(Integer.parseInt(arr[13]));\r\n\t\telse rec.setLocation(-1);\r\n\t\tif(!arr[14].equals(\"\")) rec.setFmv(Integer.parseInt(arr[14]));\r\n\t\telse rec.setFmv(-1);\r\n\t\tif(!arr[15].equals(\"\")) rec.setProd1(Integer.parseInt(arr[15]));\r\n\t\telse rec.setProd1(-1);\r\n\t\tif(!arr[16].equals(\"\")) rec.setProd2(Integer.parseInt(arr[16]));\r\n\t\telse rec.setProd2(-1);\r\n\t\trec.setNarr1(arr[17]);\r\n\t\trec.setNarr2(arr[18]);\r\n\t}", "public interface DataSheet\n{\n /** @return the names of the columns in this table or an empty list if no columns have been defined, never null */\n List<String> getColumns();\n\n /** @return the names of the columns in this table or an empty array if no columns have been defined, never null */\n String[] getHeaders();\n\n /**\n * Determine the name of a column if the position is known.\n *\n * @param index the position in the header starting with 0\n * @return the column name at the given position, null if unknown\n */\n String getColumn(int index);\n\n /**\n * Determine the index of a column if the name is known.\n *\n * @param column the case insensitive name of the respective column\n * @return the index of the column in the headings, -1 if the column is unknown\n */\n int indexOf(String column);\n\n /**\n * Access the given row.\n *\n * @param index the row number, the first row is 0\n * @return the data of the row or an empty array if the row is out of bounds, never null\n */\n Object[] getDataRow(final int index);\n\n /**\n * Access all rows.\n *\n * @return the data of all rows or an empty array no row exist, never null\n */\n Object[][] getDataRows();\n\n /**\n * Retrieve the value of the given row and column.\n *\n * If the row is out of bounds or the column is unknown will simply return <code>null</code> to indicate that no value\n * has been set.\n *\n * @param column the column name in the table\n * @param row the row number in the table starting with 0\n * @return the associated value of that cell, can be null\n */\n Object getDataValue(String column, int row);\n\n /**\n * Retrieve the value of the given row and column.\n *\n * If row or column are out of bounds will simply return <code>null</code> to indicate that no value has been set.\n *\n * @param row the row number in the table starting with 0\n * @param column the column number in the table starting with 0\n * @return the associated value of that cell, can be null\n */\n Object getDataValue(final int row, final int column);\n\n /** @return the number of current rows of this table */\n int size();\n}", "public String[][] fill_table()\n {\n int j=0;\n String[][] data = new String[0][];\n for (Map.Entry<String,Descriptor> entry :parms.getDescriptors().entrySet()) {\n\n data[j][0]=entry.getValue().getId();\n data[j][1]= String.valueOf(entry.getValue().getType());\n data[j][2]= String.valueOf(entry.getValue().getCapacity());\n data[j][3]= String.valueOf(entry.getValue().getState());\n data[j][4]= String.valueOf(entry.getValue().getNbRequest());\n data[j][5]= String.valueOf(entry.getValue().getRequest());\n data[j][6]= String.valueOf(entry.getValue().getRange());\n data[j][7]= String.valueOf(entry.getValue().getService());\n Point p=entry.getValue().getPosition();\n data[j][8]= String.valueOf(p.getX());\n data[j][9]= String.valueOf(p.getY());\n j++;\n }\n return data;\n }", "private void getExcelData21ZV() throws Exception {\n\t\tlistHeader = new ArrayList<ExcelPromotionHeader>();\n\t\tlistDetail = new ArrayList<ExcelPromotionDetail>();\n\t\tlistUnit = new ArrayList<ExcelPromotionUnit>();\n\t\tmapHeader = new HashMap<String, ExcelPromotionHeader>();\n\t\tmapUnit = new HashMap<String, ExcelPromotionUnit>();\n\t\tmapErrorPromotion = new HashMap<String, String>();\n\t\tmapType = new HashMap<String, String>();\n\t\tmapPromotionMua = new HashMap<String, ListGroupMua>();\n\t\tmapPromotionKM = new HashMap<String, ListGroupKM>();\n\t\tmapMuaKM = new MapMuaKM();\n\t\tmapPromotionTypeCheck = new HashMap<String, String>();\n\t\tlstHeaderError = new ArrayList<CellBean>();\n\t\tlstDetailError = new ArrayList<CellBean>();\n\t\tlistUnitError = new ArrayList<CellBean>();\n\t\tMap<String, Integer> mapCheckHeaderDuplicate = new HashMap<String, Integer>();\n\t\tMap<String, String> mapCheckType = apParamMgr.getMapPromotionType();\n\t\tWorkbook myWorkBook = null;\n\t\tInputStream is = new FileInputStream(excelFile);\n\t\tint MAX_ARRAY = 10000;\n\t\tfinal int NUM_SHEETS = 2;\n\n\t\tif (!is.markSupported()) {\n\t\t\tis = new PushbackInputStream(is, 8);\n\t\t}\n\t\tif (POIFSFileSystem.hasPOIFSHeader(is)) {\n\t\t\tmyWorkBook = new HSSFWorkbook(is);\n\t\t} else if (POIXMLDocument.hasOOXMLHeader(is)) {\n\t\t\tmyWorkBook = new XSSFWorkbook(OPCPackage.open(is));\n\t\t}\n\t\tif (myWorkBook != null) {\n\t\t\tif (myWorkBook.getNumberOfSheets() < NUM_SHEETS) {\n\t\t\t\tthrow new Exception(ERR_NUM_SHEET);\n\t\t\t}\n\t\t\tSheet headerSheet = myWorkBook.getSheetAt(0);\n\t\t\tSheet detailSheet = myWorkBook.getSheetAt(1);\n\t\t\tSheet unitSheet = myWorkBook.getSheetAt(2);\n\t\t\tint iRun = 0;\n\t\t\ttotalItem = 0;\n\t\t\tint maxSizeSheet1 = 12;\n\t\t\tif (headerSheet != null) {\n\t\t\t\tIterator<?> rowIter = headerSheet.rowIterator();\n\t\t\t\twhile (rowIter.hasNext()) {\n\t\t\t\t\tRow myRow = (Row) rowIter.next();\n\t\t\t\t\tif (iRun == 0) {\n\t\t\t\t\t\tiRun++;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tboolean isContinue = true;\n\t\t\t\t\t//Kiem tra su hop le cua Row Import\n\t\t\t\t\tfor (int i = 0; i < maxSizeSheet1; i++) {\n\t\t\t\t\t\tif (myRow.getCell(i) != null && !StringUtil.isNullOrEmpty(getCellValueToString(myRow.getCell(i)))) {\n\t\t\t\t\t\t\tisContinue = false;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (isContinue) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tExcelPromotionHeader header = new ExcelPromotionHeader();\n\t\t\t\t\tCellBean errRow = new CellBean();\n\t\t\t\t\tString messageError = \"\";\n\t\t\t\t\ttotalItem++;\n\t\t\t\t\t//0\tget promotionCode\n\t\t\t\t\tString promotionCode = \"\";\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellPromotionCode = myRow.getCell(0);\n\t\t\t\t\t\tif (cellPromotionCode != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\t//\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t//\t\t\t\t\t\t\tpromotionCode = cellPromotionCode.getStringCellValue();\n\t\t\t\t\t\t\t//\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t//\t\t\t\t\t\t\tpromotionCode = String.valueOf(cellPromotionCode.getNumericCellValue());\n\t\t\t\t\t\t\t//\t\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t\t\t//\t\t\t\t\t\t}\n\t\t\t\t\t\t\tpromotionCode = getCellValueToString(cellPromotionCode);\n\t\t\t\t\t\t\tpromotionCode = promotionCode != null ? promotionCode.toUpperCase().trim() : \"\";\n\t\t\t\t\t\t\theader.promotionCode = promotionCode;\n\t\t\t\t\t\t\terrRow.setContent1(promotionCode);\n\t\t\t\t\t\t\tif (StringUtil.isNullOrEmpty(promotionCode)) {\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.column.null\", \"Mã CTKM\");\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tmessageError += ValidateUtil.validateField(promotionCode, \"catalog.promotion.import.column.progcode\", 50, ConstantManager.ERR_REQUIRE, ConstantManager.ERR_MAX_LENGTH, ConstantManager.ERR_EXIST_SPECIAL_CHAR_IN_CODE);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (mapCheckHeaderDuplicate.get(promotionCode) != null) {\n\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.product.import.duplicate\", mapCheckHeaderDuplicate.get(promotionCode));\n\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tmapCheckHeaderDuplicate.put(promotionCode, myRow.getRowNum());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tPromotionProgram existPromotion = promotionProgramMgr.getPromotionProgramByCode(promotionCode);\n\t\t\t\t\t\t\tif (existPromotion != null && !ActiveType.WAITING.equals(existPromotion.getStatus())) {\n\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.program.exists\");\n\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.get.promotion.error\", promotionCode);\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t\t//\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.string\", iRun, \"ProgCode\");\n\t\t\t\t\t}\n\t\t\t\t\t//1\tget description\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellDescription = myRow.getCell(1);\n\t\t\t\t\t\tif (cellDescription != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tString description = getCellValueToString(cellDescription);\n\t\t\t\t\t\t\theader.description = description;\n\t\t\t\t\t\t\terrRow.setContent2(description);\n\t\t\t\t\t\t\tmessageError += ValidateUtil.validateField(description, \"catalog.promotion.import.column.progpescr\", 100, ConstantManager.ERR_REQUIRE, ConstantManager.ERR_MAX_LENGTH, ConstantManager.ERR_EXIST_SPECIAL_CHAR_IN_NAME);\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.string\", iRun, \"ProgDescr\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t//2\tget release\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (myRow.getCell(2) != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\terrRow.setContent3(getCellValueToString(myRow.getCell(2)));\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.number\", iRun, \"Release\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t//3\tget promotion type\n\t\t\t\t\tString type = null;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellPromotionType = myRow.getCell(3);\n\t\t\t\t\t\tif (cellPromotionType != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\ttype = getCellValueToString(cellPromotionType);\n\t\t\t\t\t\t\ttype = type != null ? type.toUpperCase().trim() : \"\";\n\t\t\t\t\t\t\theader.type = type;\n\t\t\t\t\t\t\terrRow.setContent4(type);\n\t\t\t\t\t\t\tif (StringUtil.isNullOrEmpty(type)) {\n\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"common.required\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.type\"));\n\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (mapCheckType.get(type) == null) {\n\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.exists.before\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.type\"));\n\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tmapType.put(header.promotionCode, type);\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.string\", iRun, \"ConditionTypeCode\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t//4 get format\n\t\t\t\t\t//try {\n\t\t\t\t\t//\tCell cellFormat = myRow.getCell(4);\n\t\t\t\t\t//\tif (cellFormat != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t//\t\tString format = cellFormat.getStringCellValue();\n\t\t\t\t\t//\t\theader.format = format;\n\t\t\t\t\t//\t\terrRow.setContent5(format);\n\t\t\t\t\t//\t}\n\t\t\t\t\t//} catch (Exception e) {\n\t\t\t\t\t//\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.string\", iRun, \"User1\");\n\t\t\t\t\t//}\n\t\t\t\t\t//4 get fromDate\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellFromDate = myRow.getCell(4);\n\t\t\t\t\t\tif (cellFromDate != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tif (cellFromDate.getCellType() == Cell.CELL_TYPE_NUMERIC && cellFromDate.getCellStyle() != null && DateUtil.HSSF_DATE_FORMAT_M_D_YY.equals(cellFromDate.getCellStyle().getDataFormatString())) {\n\t\t\t\t\t\t\t\tif (cellFromDate.getDateCellValue() != null || !StringUtil.isNullOrEmpty(cellFromDate.getStringCellValue())) {\n\t\t\t\t\t\t\t\t\tString __fromDate = DateUtil.toDateString(cellFromDate.getDateCellValue(), DateUtil.DATE_FORMAT_DDMMYYYY);\n\t\t\t\t\t\t\t\t\tDate fromDate = DateUtil.toDate(__fromDate, DateUtil.DATE_FORMAT_DDMMYYYY);\n\t\t\t\t\t\t\t\t\theader.fromDate = fromDate;\n\t\t\t\t\t\t\t\t\terrRow.setContent5(__fromDate);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"common.required\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"imp.epx.tuyen.clmn.tuNgay\"));\n\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else if (cellFromDate.getCellType() == Cell.CELL_TYPE_NUMERIC && cellFromDate.getCellStyle() != null && DateUtil.DATE_FORMAT_VISIT.equals(cellFromDate.getCellStyle().getDataFormatString())) {\n\t\t\t\t\t\t\t\tif (cellFromDate.getDateCellValue() != null || !StringUtil.isNullOrEmpty(cellFromDate.getStringCellValue())) {\n\t\t\t\t\t\t\t\t\tString __fromDate = DateUtil.toDateString(cellFromDate.getDateCellValue(), DateUtil.DATE_FORMAT_VISIT);\n\t\t\t\t\t\t\t\t\tDate fromDate = DateUtil.toDate(__fromDate, DateUtil.DATE_FORMAT_VISIT);\n\t\t\t\t\t\t\t\t\theader.fromDate = fromDate;\n\t\t\t\t\t\t\t\t\terrRow.setContent5(__fromDate);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"common.required\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"imp.epx.tuyen.clmn.tuNgay\"));\n\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tif (!StringUtil.isNullOrEmpty(cellFromDate.getStringCellValue())) {\n\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\tString __fromDate = cellFromDate.getStringCellValue();\n\t\t\t\t\t\t\t\t\t\tif (DateUtil.checkInvalidFormatDate(__fromDate)) {\n\t\t\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"common.invalid.format.date\", R.getResource(\"imp.epx.tuyen.clmn.tuNgay\"));\n\t\t\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t\t\t\terrRow.setContent5(__fromDate);\n\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\tDate fromDate = DateUtil.toDate(__fromDate, DateUtil.DATE_FORMAT_DDMMYYYY);\n\t\t\t\t\t\t\t\t\t\t\theader.fromDate = fromDate;\n\t\t\t\t\t\t\t\t\t\t\terrRow.setContent5(__fromDate);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t} catch (Exception e1) {\n\t\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"common.invalid.format.date\", R.getResource(\"imp.epx.tuyen.clmn.tuNgay\"));\n\t\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t\t\terrRow.setContent5(cellFromDate.getStringCellValue());\n\t\t\t\t\t\t\t\t\t\tLogUtility.logError(e1, e1.getMessage());\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"common.required\", R.getResource(\"imp.epx.tuyen.clmn.tuNgay\"));\n\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.cant.read.cell.date\", iRun, \"FromDate\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t//5 get toDate\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellToDate = myRow.getCell(5);\n\t\t\t\t\t\tif (cellToDate != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tif (cellToDate.getCellType() == Cell.CELL_TYPE_NUMERIC && cellToDate.getCellStyle() != null && DateUtil.HSSF_DATE_FORMAT_M_D_YY.equals(cellToDate.getCellStyle().getDataFormatString())) {\n\t\t\t\t\t\t\t\tif (cellToDate.getDateCellValue() != null || !StringUtil.isNullOrEmpty(cellToDate.getStringCellValue())) {\n\t\t\t\t\t\t\t\t\tString __toDate = DateUtil.toDateString(cellToDate.getDateCellValue(), DateUtil.DATE_FORMAT_DDMMYYYY);\n\t\t\t\t\t\t\t\t\tDate toDate = DateUtil.toDate(__toDate, DateUtil.DATE_FORMAT_DDMMYYYY);\n\t\t\t\t\t\t\t\t\theader.toDate = toDate;\n\t\t\t\t\t\t\t\t\terrRow.setContent6(__toDate);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else if (cellToDate.getCellType() == Cell.CELL_TYPE_NUMERIC && cellToDate.getCellStyle() != null && DateUtil.DATE_FORMAT_VISIT.equals(cellToDate.getCellStyle().getDataFormatString())) {\n\t\t\t\t\t\t\t\tif (cellToDate.getDateCellValue() != null || !StringUtil.isNullOrEmpty(cellToDate.getStringCellValue())) {\n\t\t\t\t\t\t\t\t\tString __toDate = DateUtil.toDateString(cellToDate.getDateCellValue(), DateUtil.DATE_FORMAT_VISIT);\n\t\t\t\t\t\t\t\t\tDate toDate = DateUtil.toDate(__toDate, DateUtil.DATE_FORMAT_VISIT);\n\t\t\t\t\t\t\t\t\theader.toDate = toDate;\n\t\t\t\t\t\t\t\t\terrRow.setContent6(__toDate);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else if (!StringUtil.isNullOrEmpty(cellToDate.getStringCellValue())) {\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tString __toDate = cellToDate.getStringCellValue();\n\t\t\t\t\t\t\t\t\tif (DateUtil.checkInvalidFormatDate(__toDate)) {\n\t\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"common.invalid.format.date\", R.getResource(\"imp.epx.tuyen.clmn.denNgay\"));\n\t\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t\t\terrRow.setContent6(__toDate);\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tDate toDate = DateUtil.toDate(__toDate, DateUtil.DATE_FORMAT_DDMMYYYY);\n\t\t\t\t\t\t\t\t\t\theader.toDate = toDate;\n\t\t\t\t\t\t\t\t\t\terrRow.setContent6(__toDate);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} catch (Exception e1) {\n\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"common.invalid.format.date\", R.getResource(\"imp.epx.tuyen.clmn.denNgay\"));\n\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t\terrRow.setContent6(cellToDate.getStringCellValue());\n\t\t\t\t\t\t\t\t\tLogUtility.logError(e1, e1.getMessage());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (header.fromDate != null && header.toDate != null) {\n\t\t\t\t\t\t\tif (DateUtil.compareDateWithoutTime(header.fromDate, header.toDate) > 0) {\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"common.fromdate.greater.todate\") + \"\\n\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.cant.read.cell.date\", iRun, \"ToDate\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\n\t\t\t\t\t//6 Số thông báo CTKM\n\t\t\t\t\t/*\n\t\t\t\t\t * String description =\n\t\t\t\t\t * getCellValueToString(cellDescription); header.description\n\t\t\t\t\t * = description; errRow.setContent2(description);\n\t\t\t\t\t * messageError += ValidateUtil.validateField(description,\n\t\t\t\t\t * \"catalog.promotion.import.column.progpescr\", 100,\n\t\t\t\t\t * ConstantManager.ERR_REQUIRE,\n\t\t\t\t\t * ConstantManager.ERR_MAX_LENGTH,\n\t\t\t\t\t * ConstantManager.ERR_EXIST_SPECIAL_CHAR_IN_NAME);\n\t\t\t\t\t */\n\t\t\t\t\t\n\t\t\t\t\t/*errMsg = ValidateUtil.validateField(promotionName, \"catalog.promotion.name\", 500, ConstantManager.ERR_REQUIRE, ConstantManager.ERR_EXIST_SPECIAL_CHAR_IN_SPECIAL, ConstantManager.ERR_MAX_LENGTH);\n\t\t\t\t\tif (StringUtil.isNullOrEmpty(errMsg)) {\n\t\t\t\t\t\terrMsg = ValidateUtil.validateField(description, \"common.description\", null, ConstantManager.ERR_EXIST_SPECIAL_CHAR_IN_SPECIAL);\n\t\t\t\t\t}*/\n\t\t\t\t\t\n\t\t\t\t\t// 6 Số thông báo\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellNoticeCode = myRow.getCell(6);\n\t\t\t\t\t\tif (cellNoticeCode != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tString noticeCode = getCellValueToString(cellNoticeCode);\n\t\t\t\t\t\t\tif(noticeCode != null){\n\t\t\t\t\t\t\t\tnoticeCode = noticeCode.trim();\n\t\t\t\t\t\t\t\tnoticeCode = noticeCode.toUpperCase();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tmessageError = ValidateUtil.validateField(noticeCode, \"catalog.promotion.noticecode\", 100, ConstantManager.ERR_EXIST_SPECIAL_CHAR_IN_SPECIAL);\n\t\t\t\t\t\t\t/*if(noticeCode.length() > 100){\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.notice.code.over.length\")+\"\\n\";\n\t\t\t\t\t\t\t}else*/ \n\t\t\t\t\t\t\tif(StringUtil.isNullOrEmpty(noticeCode)) {\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.notice.code.obligate\") + \"\\n\";\n\t\t\t\t\t\t\t}else if(noticeCode != null && noticeCode.trim().length() > 100){\n\t\t\t\t\t\t\t\t//messageError += R.getResource(\"catalog.promotion.import.notice.code.incorrect.format\");\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.over.max.length\") + \"\\n\";\n\t\t\t\t\t\t\t\tmessageError = messageError.replaceAll(\"%max%\", \"100\");\n\t\t\t\t\t\t\t\tmessageError = messageError.replaceAll(\"%colName%\", \"Số thông báo\");\n\t\t\t\t\t\t\t}else if(StringUtil.isNullOrEmpty(messageError)){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\theader.noticeCode = noticeCode;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\terrRow.setContent7(noticeCode);\n\t\t\t\t\t\t}else if (cellNoticeCode == null) {\n\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.notice.code.obligate\") + \"\\n\";\n\t\t\t\t\t\t} \n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.cant.read.cell.string\", iRun, \"NoticeCode\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t// 7 Nhóm/Tên SP hàng bán\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellDesProduct = myRow.getCell(7);\n\t\t\t\t\t\tif (cellDesProduct != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tString descProduct = getCellValueToString(cellDesProduct);\n\t\t\t\t\t\t\tif(descProduct != null){\n\t\t\t\t\t\t\t\tdescProduct = descProduct.trim();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//descProduct = descProduct.trim();\n\t\t\t\t\t\t\tmessageError = ValidateUtil.validateField(descProduct, \"catalog.promotion.descriptionproduct\", 1000, ConstantManager.ERR_EXIST_SPECIAL_CHAR_IN_SPECIAL);\n\t\t\t\t\t\t\t/*if(descProduct.length() > 1000){\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.desc.product.over.length\")+\"\\n\";\n\t\t\t\t\t\t\t}else*/ \n\t\t\t\t\t\t\tif(StringUtil.isNullOrEmpty(descProduct)) {\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.description.product.obligate\") + \"\\n\";\n\t\t\t\t\t\t\t}else if(descProduct.trim().length() > 1000){\n\t\t\t\t\t\t\t\t//messageError += R.getResource(\"catalog.promotion.import.description.product.incorrect.format\") + \"\\n\";\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.over.max.length\") + \"\\n\";\n\t\t\t\t\t\t\t\tmessageError = messageError.replaceAll(\"%max%\", \"1000\");\n\t\t\t\t\t\t\t\tmessageError = messageError.replaceAll(\"%colName%\", \"Nhóm/Tên SP hàng bán\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if(StringUtil.isNullOrEmpty(messageError)){\n\t\t\t\t\t\t\t\tdescProduct = descProduct.trim();\n\t\t\t\t\t\t\t\theader.decriptionProduct = descProduct;\n\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\n\t\t\t\t\t\t\terrRow.setContent8(descProduct);\n\t\t\t\t\t\t}else if(cellDesProduct == null) {\n\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.description.product.obligate\") + \"\\n\";\n\t\t\t\t\t\t} \n\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.cant.read.cell.string\", iRun, \"DescProduct\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\n\t\t\t\t\t// 8 Mô tả chương trình\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellDescription = myRow.getCell(8);\n\t\t\t\t\t\tif (cellDescription != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tString description = getCellValueToString(cellDescription);\n\t\t\t\t\t\t\tif(description != null){\n\t\t\t\t\t\t\t\tdescription = description.trim();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif(description != null && description.trim().length() > 1000){\n\t\t\t\t\t\t\t\t//messageError += R.getResource(\"catalog.promotion.import.description.program.incorrect.format\") + \"\\n\";\n\t\t\t\t\t\t\t\t//messageError += R.getResource(\"\", iRun, \"Description\");\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.over.max.length\") + \"\\n\";\n\t\t\t\t\t\t\t\tmessageError = messageError.replaceAll(\"%max%\", \"1000\");\n\t\t\t\t\t\t\t\tmessageError = messageError.replaceAll(\"%colName%\", \"Mô tả chương trình\");\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tdescription = description.trim();\n\t\t\t\t\t\t\t\theader.descriptionProgram = description;\n\t\t\t\t\t\t\t\terrRow.setContent9(description);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t/*else if(cellDescription != null){\n\t\t\t\t\t\t\tString description = getCellValueToString(cellDescription);\n\t\t\t\t\t\t\terrRow.setContent9(description);\n\t\t\t\t\t\t}*/\n\t\t\t\t\t\t\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.cant.read.cell.string\", iRun, \"Description\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t//9 Bội số\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellMultiple = myRow.getCell(9);\n\t\t\t\t\t\theader.multiple = 0; \n\t\t\t\t\t\tif (cellMultiple != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tString multiple = getCellValueToString(cellMultiple);\n\t\t\t\t\t\t\tApParam apParam = apParamMgr.getApParamByCode(\"LIST_PROMO_ALLOW_MULTIPLE\", ApParamType.LIST_PROMO_ALLOW_MULTIPLE);\n\t\t\t\t\t\t\tString strListPromo = apParam != null?apParam.getValue() : \"ZV02,ZV03,ZV05,ZV06,ZV08,ZV09,ZV11,ZV12,ZV13,ZV14,ZV15,ZV16,ZV17,ZV18,ZV20,ZV21,ZV23,ZV24\";\n\t\t\t\t\t\t\tif ((Constant.IS_MULTIPLE.equals(multiple) || Constant.NON_MULTIPLE.equals(multiple)) \n\t\t\t\t\t\t\t\t\t&& strListPromo != null) {\n\t\t\t\t\t\t\t\tstrListPromo = strListPromo.replace(\" \", \"\");\n\t\t\t\t\t\t\t\tstrListPromo = strListPromo.toUpperCase();\n\t\t\t\t\t\t\t\tString[] ListPromoAllow = strListPromo.split(\",\");\n\t\t\t\t\t\t\t\tif (Constant.IS_MULTIPLE.equals(multiple) \n\t\t\t\t\t\t\t\t\t &&\t!Arrays.asList(ListPromoAllow).contains(header.type.toUpperCase())) {\n\t\t\t\t\t\t\t\t\tSystem.out.println(header.type.toUpperCase());\n\t\t\t\t\t\t\t\t\tSystem.out.println(strListPromo);\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.multiple.not.use\") + \"\\n\";\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\theader.multiple = Integer.parseInt(multiple.trim());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.multiple.incorrect.format\") + \"\\n\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\terrRow.setContent10(multiple);\n\t\t\t\t\t\t}/*else if(cellMultiple != null){\n\t\t\t\t\t\t\tString multiple = getCellValueToString(cellMultiple);\n\t\t\t\t\t\t\terrRow.setContent10(multiple);\n\t\t\t\t\t\t}*/\n\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.number\", iRun, \"Multiple\", \"['','X']\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t// 10 Tối ưu\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellRecursive = myRow.getCell(10);\n\t\t\t\t\t\theader.recursive = 0;\n\t\t\t\t\t\tif (cellRecursive != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tString recursive = getCellValueToString(cellRecursive);\n\t\t\t\t\t\t\tApParam apParam = apParamMgr.getApParamByCode(\"LIST_PROMO_ALLOW_RECURSIVE\", ApParamType.LIST_PROMO_ALLOW_RECURSIVE);\n\t\t\t\t\t\t\tString strListPromo = apParam == null? \"ZV02,ZV03,ZV05,ZV06,ZV08,ZV09,ZV11,ZV12,ZV13,ZV14,ZV15,ZV16,ZV17,ZV18,ZV20,ZV21,ZV23,ZV24\":apParam.getValue();\n\t\t\t\t\t\t\tif ((Constant.IS_RECURSIVE.equals(recursive) || Constant.NON_RECURSIVE.equals(recursive)) \n\t\t\t\t\t\t\t\t\t&& strListPromo != null) {\n\t\t\t\t\t\t\t\tstrListPromo = strListPromo.replace(\" \", \"\");\n\t\t\t\t\t\t\t\tString[] listPromoAllow = strListPromo.split(\",\");\n\t\t\t\t\t\t\t\tif (Constant.IS_RECURSIVE.equals(recursive)\t\t\t\n\t\t\t\t\t\t\t\t\t &&\t!Arrays.asList(listPromoAllow).contains(header.type.toUpperCase())) {\n\t\t\t\t\t\t\t\t/*\tSystem.out.println(header.type.toUpperCase());\n\t\t\t\t\t\t\t\t\tSystem.out.println(strListPromo);*/\n\t\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.recursive.not.use\") + \"\\n\";\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\theader.recursive = Integer.parseInt(recursive.trim());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.recursive.incorrect.format\") + \"\\n\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\terrRow.setContent11(recursive);\n\t\t\t\t\t\t}/*else if(cellRecursive != null){\n\t\t\t\t\t\t\tString recursive = getCellValueToString(cellRecursive);\n\t\t\t\t\t\t\terrRow.setContent11(recursive);\n\t\t\t\t\t\t}*/\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.number\", iRun, \"Recursive\", \"['','X']\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t// 9 Loại trả thưởng\n\t\t\t\t/*\ttry {\n\t\t\t\t\t\tCell cellRewardType = myRow.getCell(9);\n\t\t\t\t\t\tApParam apParam = apParamMgr.getApParamByCode(\"LIST_ALLOW_REWARD_TYPE\", ApParamType.LIST_ALLOW_REWARD_TYPE);\n\t\t\t\t\t\tString strListAllowReward = apParam.getApParamName();\n\t\t\t\t\t\tstrListAllowReward = strListAllowReward.replace(\" \", \"\");\n\t\t\t\t\t\tString[] listAllowReward = strListAllowReward.split(\",\");\n\t\t\t\t\t\tif (cellRewardType != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tString strRewardType = getCellValueToString(cellRewardType);\n\t\t\t\t\t\t\tif (strRewardType != null \n\t\t\t\t\t\t\t\t\t&& (Constant.DISCOUNT_MONEY.equals(strRewardType) || Constant.VOUCHER.equals(strRewardType)) \n\t\t\t\t\t\t\t\t\t&& Arrays.asList(listAllowReward).contains(header.type)) {\n\t\t\t\t\t\t\t\theader.rewardType = Integer.parseInt(strRewardType.trim());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\terrRow.setContent10(strRewardType);\n\t\t\t\t\t\t}else if(cellRewardType != null){\n\t\t\t\t\t\t\tString strRewardType = getCellValueToString(cellRewardType);\n\t\t\t\t\t\t\terrRow.setContent10(strRewardType);\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.cant.read.cell.number\", iRun, \"RewardType\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t// 10 Từ ngày trả thưởng\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellFromDateReward = myRow.getCell(10);\n\t\t\t\t\t\tif (Constant.VOUCHER.equals(header.rewardType+\"\")) {\n\t\t\t\t\t\t\tif (cellFromDateReward != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\t\tif (cellFromDateReward.getCellType() == Cell.CELL_TYPE_NUMERIC && cellFromDateReward.getCellStyle() != null && DateUtil.HSSF_DATE_FORMAT_M_D_YY.equals(cellFromDateReward.getCellStyle().getDataFormatString())) {\n\t\t\t\t\t\t\t\t\tif (cellFromDateReward.getDateCellValue() != null || !StringUtil.isNullOrEmpty(cellFromDateReward.getStringCellValue())) {\n\t\t\t\t\t\t\t\t\t\tString _fromDateReward = DateUtil.toDateString(cellFromDateReward.getDateCellValue(), DateUtil.DATE_FORMAT_DDMMYYYY);\n\t\t\t\t\t\t\t\t\t\tDate fromDateReward = DateUtil.toDate(_fromDateReward, DateUtil.DATE_FORMAT_DDMMYYYY);\n\t\t\t\t\t\t\t\t\t\theader.fromApplyDate = fromDateReward;\n\t\t\t\t\t\t\t\t\t\terrRow.setContent11(_fromDateReward);\n\t\t\t\t\t\t\t\t\t} else if (cellFromDateReward.getCellType() == Cell.CELL_TYPE_NUMERIC && cellFromDateReward.getCellStyle() != null && DateUtil.DATE_FORMAT_VISIT.equals(cellFromDateReward.getCellStyle().getDataFormatString())) {\n\t\t\t\t\t\t\t\t\t\tif (cellFromDateReward.getDateCellValue() != null || StringUtil.isNullOrEmpty(cellFromDateReward.getStringCellValue())) {\n\t\t\t\t\t\t\t\t\t\t\tString _fromDateReward = DateUtil.toDateString(cellFromDateReward.getDateCellValue(), DateUtil.DATE_FORMAT_VISIT);\n\t\t\t\t\t\t\t\t\t\t\tDate fromDateReward = DateUtil.toDate(_fromDateReward, DateUtil.DATE_FORMAT_VISIT);\n\t\t\t\t\t\t\t\t\t\t\theader.fromApplyDate = fromDateReward;\n\t\t\t\t\t\t\t\t\t\t\terrRow.setContent11(_fromDateReward);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t} else if (!StringUtil.isNullOrEmpty(cellFromDateReward.getStringCellValue())) {\n\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\tString _fromDateReward = cellFromDateReward.getStringCellValue();\n\t\t\t\t\t\t\t\t\t\t\tif (DateUtil.checkInvalidFormatDate(_fromDateReward)) {\n\t\t\t\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"common.invalid.format.date\", R.getResource(\"imp.epx.tuyen.clmn.tuNgay.traThuong\"));\n\t\t\t\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t\t\t\t\terrRow.setContent11(_fromDateReward);\n\t\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t\tDate fromDateReward = DateUtil.toDate(_fromDateReward, DateUtil.DATE_FORMAT_DDMMYYYY);\n\t\t\t\t\t\t\t\t\t\t\t\theader.fromApplyDate = fromDateReward;\n\t\t\t\t\t\t\t\t\t\t\t\terrRow.setContent11(_fromDateReward);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t} catch (Exception e1) {\n\t\t\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"common.invalid.format.date\", R.getResource(\"imp.epx.tuyen.clmn.tuNgay.traThuong\"));\n\t\t\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t\t\t\terrRow.setContent11(cellFromDateReward.getStringCellValue());\n\t\t\t\t\t\t\t\t\t\t\tLogUtility.logError(e1, e1.getMessage());\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tif(header.fromApplyDate != null && header.fromDate != null){\n\t\t\t\t\t\t\t\t\t\tint sub = DateUtil.compareDateWithoutTime(header.fromDate,header.fromApplyDate);\n\t\t\t\t\t\t\t\t\t\tif(DateUtil.compareDateWithoutTime(header.fromDate,header.fromApplyDate) > 0){\n\t\t\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"common.fromdate.reward.greater.fromdate\")+\"\\n\";\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}else if(cellFromDateReward != null){\n\t\t\t\t\t\t\tString _fromDateReward = getCellValueToString(cellFromDateReward); \n\t\t\t\t\t\t\terrRow.setContent11(_fromDateReward);\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.cant.read.cell.date\", iRun, \"FromDateReward\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\n\t\t\t\t\t// 11 Đến ngày trả thưởng\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellToDateReward = myRow.getCell(11);\n\t\t\t\t\t\tif (Constant.VOUCHER.equals(header.rewardType+\"\")) {\n\t\t\t\t\t\t\tif (cellToDateReward != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\t\tif (cellToDateReward.getCellType() == Cell.CELL_TYPE_NUMERIC && cellToDateReward.getCellStyle() != null && DateUtil.HSSF_DATE_FORMAT_M_D_YY.equals(cellToDateReward.getCellStyle().getDataFormatString())) {\n\t\t\t\t\t\t\t\t\tif (cellToDateReward.getDateCellValue() != null || !StringUtil.isNullOrEmpty(cellToDateReward.getStringCellValue())) {\n\t\t\t\t\t\t\t\t\t\tString _toDateReward = DateUtil.toDateString(cellToDateReward.getDateCellValue(), DateUtil.DATE_FORMAT_DDMMYYYY);\n\t\t\t\t\t\t\t\t\t\tDate toDateReward = DateUtil.toDate(_toDateReward, DateUtil.DATE_FORMAT_DDMMYYYY);\n\t\t\t\t\t\t\t\t\t\theader.toApplyDate = toDateReward;\n\t\t\t\t\t\t\t\t\t\terrRow.setContent12(_toDateReward);\n\t\t\t\t\t\t\t\t\t} else if (cellToDateReward.getCellType() == Cell.CELL_TYPE_NUMERIC && cellToDateReward.getCellStyle() != null && DateUtil.DATE_FORMAT_VISIT.equals(cellToDateReward.getCellStyle().getDataFormatString())) {\n\t\t\t\t\t\t\t\t\t\tif (cellToDateReward.getDateCellValue() != null || StringUtil.isNullOrEmpty(cellToDateReward.getStringCellValue())) {\n\t\t\t\t\t\t\t\t\t\t\tString _toDateReward = DateUtil.toDateString(cellToDateReward.getDateCellValue(), DateUtil.DATE_FORMAT_VISIT);\n\t\t\t\t\t\t\t\t\t\t\tDate toDateReward = DateUtil.toDate(_toDateReward, DateUtil.DATE_FORMAT_VISIT);\n\t\t\t\t\t\t\t\t\t\t\theader.toApplyDate = toDateReward;\n\t\t\t\t\t\t\t\t\t\t\terrRow.setContent12(_toDateReward);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t} else if (!StringUtil.isNullOrEmpty(cellToDateReward.getStringCellValue())) {\n\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\tString _todateReward = cellToDateReward.getStringCellValue();\n\t\t\t\t\t\t\t\t\t\t\tif (DateUtil.checkInvalidFormatDate(_todateReward)) {\n\t\t\t\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"common.invalid.format.date\", R.getResource(\"imp.epx.tuyen.clmn.denNgay.traThuong \"));\n\t\t\t\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t\t\t\t\terrRow.setContent12(_todateReward);\n\t\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t\tDate toDate = DateUtil.toDate(_todateReward, DateUtil.DATE_FORMAT_DDMMYYYY);\n\t\t\t\t\t\t\t\t\t\t\t\theader.toApplyDate = toDate;\n\t\t\t\t\t\t\t\t\t\t\t\terrRow.setContent12(_todateReward);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t} catch (Exception e1) {\n\t\t\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"common.invalid.format.date\", R.getResource(\"imp.epx.tuyen.clmn.denNgay.traThuong\"));\n\t\t\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t\t\t\terrRow.setContent12(cellToDateReward.getStringCellValue());\n\t\t\t\t\t\t\t\t\t\t\tLogUtility.logError(e1, e1.getMessage());\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif (header.fromApplyDate != null && header.toApplyDate != null) {\n\t\t\t\t\t\t\t\t\t\tif (DateUtil.compareDateWithoutTime(header.fromApplyDate, header.toApplyDate) > 0) {\n\t\t\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"common.fromdate.greater.todate.reward\") + \"\\n\";\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else if(cellToDateReward != null){\n\t\t\t\t\t\t\tString _todateReward = getCellValueToString(cellToDateReward); \n\t\t\t\t\t\t\terrRow.setContent12(_todateReward);\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.cant.read.cell.date\", iRun, \"ToDateReward\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}*/\n\t\t\t\t\t// 11 Loại trả thưởng\n\t\t\t\t\ttry {\n\t\t\t\t\t\t\tCell cellRewardType = myRow.getCell(11);\n\t\t\t\t\t\t\tApParam apParam = apParamMgr.getApParamByCode(\"LIST_ALLOW_REWARD_TYPE\", ApParamType.LIST_ALLOW_REWARD_TYPE);\n\t\t\t\t\t\t\tString strListAllowReward = apParam.getApParamName();\n\t\t\t\t\t\t\tstrListAllowReward = strListAllowReward.replace(\" \", \"\");\n\t\t\t\t\t\t\tString[] listAllowReward = strListAllowReward.split(\",\");\n\t\t\t\t\t\t\tif (cellRewardType != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\t\tString strRewardType = getCellValueToString(cellRewardType);\n\t\t\t\t\t\t\t\tif (strRewardType != null \n\t\t\t\t\t\t\t\t\t&& (Constant.DISCOUNT_MONEY.equals(strRewardType) || Constant.VOUCHER.equals(strRewardType)) \n\t\t\t\t\t\t\t\t\t&& Arrays.asList(listAllowReward).contains(header.type)) \n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tif(Constant.DISCOUNT_MONEY.equals(strRewardType) || Constant.VOUCHER.equals(strRewardType)) \n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\theader.rewardType = Integer.parseInt(strRewardType.trim());\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\terrRow.setContent12(strRewardType);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tString strRewardType = getCellValueToString(cellRewardType);\n\t\t\t\t\t\t\t\terrRow.setContent12(strRewardType);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.cant.read.cell.number\", iRun, \"RewardType\");\n\t\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// 12 Từ ngày trả thưởng\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellFromDateReward = myRow.getCell(12);\n\t\t\t\t\t\tif (Constant.VOUCHER.equals(header.rewardType+\"\")) {\n\t\t\t\t\t\t\tif (cellFromDateReward != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\t\tif (StringUtil.isNullOrEmpty(cellFromDateReward.getStringCellValue()))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.column.null\", R.getResource(\"imp.epx.tuyen.clmn.tuNgay.traThuong\"));\n\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tif (cellFromDateReward.getCellType() == Cell.CELL_TYPE_NUMERIC && cellFromDateReward.getCellStyle() != null && DateUtil.HSSF_DATE_FORMAT_M_D_YY.equals(cellFromDateReward.getCellStyle().getDataFormatString())) {\n\t\t\t\t\t\t\t\t\tif (cellFromDateReward.getDateCellValue() != null || !StringUtil.isNullOrEmpty(cellFromDateReward.getStringCellValue())) {\n\t\t\t\t\t\t\t\t\t\tString _fromDateReward = DateUtil.toDateString(cellFromDateReward.getDateCellValue(), DateUtil.DATE_FORMAT_DDMMYYYY);\n\t\t\t\t\t\t\t\t\t\tDate fromDateReward = DateUtil.toDate(_fromDateReward, DateUtil.DATE_FORMAT_DDMMYYYY);\n\t\t\t\t\t\t\t\t\t\theader.fromApplyDate = fromDateReward;\n\t\t\t\t\t\t\t\t\t\terrRow.setContent13(_fromDateReward);\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse if (cellFromDateReward.getCellType() == Cell.CELL_TYPE_NUMERIC && cellFromDateReward.getCellStyle() != null && DateUtil.DATE_FORMAT_VISIT.equals(cellFromDateReward.getCellStyle().getDataFormatString())) {\n\t\t\t\t\t\t\t\t\t\tif (cellFromDateReward.getDateCellValue() != null || StringUtil.isNullOrEmpty(cellFromDateReward.getStringCellValue())) {\n\t\t\t\t\t\t\t\t\t\t\tString _fromDateReward = DateUtil.toDateString(cellFromDateReward.getDateCellValue(), DateUtil.DATE_FORMAT_VISIT);\n\t\t\t\t\t\t\t\t\t\t\tDate fromDateReward = DateUtil.toDate(_fromDateReward, DateUtil.DATE_FORMAT_VISIT);\n\t\t\t\t\t\t\t\t\t\t\theader.fromApplyDate = fromDateReward;\n\t\t\t\t\t\t\t\t\t\t\terrRow.setContent13(_fromDateReward);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t} else if (!StringUtil.isNullOrEmpty(cellFromDateReward.getStringCellValue())) {\n\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\tString _fromDateReward = cellFromDateReward.getStringCellValue();\n\t\t\t\t\t\t\t\t\t\t\tif (DateUtil.checkInvalidFormatDate(_fromDateReward)) {\n\t\t\t\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"common.invalid.format.date\", R.getResource(\"imp.epx.tuyen.clmn.tuNgay.traThuong\"));\n\t\t\t\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t\t\t\t\terrRow.setContent13(_fromDateReward);\n\t\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t\tDate fromDateReward = DateUtil.toDate(_fromDateReward, DateUtil.DATE_FORMAT_DDMMYYYY);\n\t\t\t\t\t\t\t\t\t\t\t\theader.fromApplyDate = fromDateReward;\n\t\t\t\t\t\t\t\t\t\t\t\terrRow.setContent13(_fromDateReward);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t} catch (Exception e1) {\n\t\t\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"common.invalid.format.date\", R.getResource(\"imp.epx.tuyen.clmn.tuNgay.traThuong\"));\n\t\t\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t\t\t\terrRow.setContent13(cellFromDateReward.getStringCellValue());\n\t\t\t\t\t\t\t\t\t\t\tLogUtility.logError(e1, e1.getMessage());\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tif(header.fromApplyDate != null && header.fromDate != null){\n//\t\t\t\t\t\t\t\t\t\tint sub = DateUtil.compareDateWithoutTime(header.fromDate,header.fromApplyDate);\n\t\t\t\t\t\t\t\t\t\tif(DateUtil.compareDateWithoutTime(header.fromDate,header.fromApplyDate) > 0){\n\t\t\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"common.fromdate.reward.greater.fromdate\")+\"\\n\";\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else if(cellFromDateReward != null){\n\t\t\t\t\t\t\tString _fromDateReward = getCellValueToString(cellFromDateReward); \n\t\t\t\t\t\t\terrRow.setContent13(_fromDateReward);\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.cant.read.cell.date\", iRun, \"FromDateReward\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// 11 Đến ngày trả thưởng\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellToDateReward = myRow.getCell(13);\n\t\t\t\t\t\tif (Constant.VOUCHER.equals(header.rewardType+\"\")) {\n\t\t\t\t\t\t\tif (cellToDateReward != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\t\tif (cellToDateReward.getCellType() == Cell.CELL_TYPE_NUMERIC && cellToDateReward.getCellStyle() != null && DateUtil.HSSF_DATE_FORMAT_M_D_YY.equals(cellToDateReward.getCellStyle().getDataFormatString())) {\n\t\t\t\t\t\t\t\t\tif (cellToDateReward.getDateCellValue() != null || !StringUtil.isNullOrEmpty(cellToDateReward.getStringCellValue())) {\n\t\t\t\t\t\t\t\t\t\tString _toDateReward = DateUtil.toDateString(cellToDateReward.getDateCellValue(), DateUtil.DATE_FORMAT_DDMMYYYY);\n\t\t\t\t\t\t\t\t\t\tDate toDateReward = DateUtil.toDate(_toDateReward, DateUtil.DATE_FORMAT_DDMMYYYY);\n\t\t\t\t\t\t\t\t\t\theader.toApplyDate = toDateReward;\n\t\t\t\t\t\t\t\t\t\terrRow.setContent14(_toDateReward);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t} else if (cellToDateReward.getCellType() == Cell.CELL_TYPE_NUMERIC && cellToDateReward.getCellStyle() != null && DateUtil.DATE_FORMAT_VISIT.equals(cellToDateReward.getCellStyle().getDataFormatString())) {\n\t\t\t\t\t\t\t\t\t\tif (cellToDateReward.getDateCellValue() != null || StringUtil.isNullOrEmpty(cellToDateReward.getStringCellValue())) {\n\t\t\t\t\t\t\t\t\t\t\tString _toDateReward = DateUtil.toDateString(cellToDateReward.getDateCellValue(), DateUtil.DATE_FORMAT_VISIT);\n\t\t\t\t\t\t\t\t\t\t\tDate toDateReward = DateUtil.toDate(_toDateReward, DateUtil.DATE_FORMAT_VISIT);\n\t\t\t\t\t\t\t\t\t\t\theader.toApplyDate = toDateReward;\n\t\t\t\t\t\t\t\t\t\t\terrRow.setContent14(_toDateReward);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t} else if (!StringUtil.isNullOrEmpty(cellToDateReward.getStringCellValue())) {\n\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\tString _todateReward = cellToDateReward.getStringCellValue();\n\t\t\t\t\t\t\t\t\t\t\tif (DateUtil.checkInvalidFormatDate(_todateReward)) {\n\t\t\t\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"common.invalid.format.date\", R.getResource(\"imp.epx.tuyen.clmn.denNgay.traThuong \"));\n\t\t\t\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t\t\t\t\terrRow.setContent14(_todateReward);\n\t\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t\tDate toDate = DateUtil.toDate(_todateReward, DateUtil.DATE_FORMAT_DDMMYYYY);\n\t\t\t\t\t\t\t\t\t\t\t\theader.toApplyDate = toDate;\n\t\t\t\t\t\t\t\t\t\t\t\terrRow.setContent14(_todateReward);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t} catch (Exception e1) {\n\t\t\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"common.invalid.format.date\", R.getResource(\"imp.epx.tuyen.clmn.denNgay.traThuong\"));\n\t\t\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t\t\t\terrRow.setContent14(cellToDateReward.getStringCellValue());\n\t\t\t\t\t\t\t\t\t\t\tLogUtility.logError(e1, e1.getMessage());\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif (header.fromApplyDate != null && header.toApplyDate != null) {\n\t\t\t\t\t\t\t\t\t\tif (DateUtil.compareDateWithoutTime(header.fromApplyDate, header.toApplyDate) > 0) {\n\t\t\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"common.fromdate.greater.todate.reward\") + \"\\n\";\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else if(cellToDateReward != null){\n\t\t\t\t\t\t\tString _todateReward = getCellValueToString(cellToDateReward); \n\t\t\t\t\t\t\terrRow.setContent14(_todateReward);\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.cant.read.cell.date\", iRun, \"ToDateReward\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\tlistHeader.add(header);\n\t\t\t\t\t\tmapHeader.put(header.promotionCode, header);\n\t\t\t\t\t} else {\n\t\t\t\t\t\terrRow.setErrMsg(messageError);\n\t\t\t\t\t\tlstHeaderError.add(errRow);\n\t\t\t\t\t\tif (mapErrorPromotion.get(header.promotionCode) == null) {\n\t\t\t\t\t\t\tmapErrorPromotion.put(header.promotionCode, messageError);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tiRun++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//Sheet Don vi tham gia\n\t\t\tif (unitSheet != null) {\n\t\t\t\tIterator<?> rowIter = unitSheet.rowIterator();\n\t\t\t\tiRun = 0;\n\t\t\t\tint maxSizeSheet3 = 5;\n\t\t\t\tList<Shop> listShopChild;\n\t\t\t\twhile (rowIter.hasNext()) {\n\t\t\t\t\tRow myRow = (Row) rowIter.next();\n\t\t\t\t\tif (iRun == 0) {\n\t\t\t\t\t\tiRun++;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tboolean isContinue = true;\n\t\t\t\t\tfor (int i = 0; i < maxSizeSheet3; i++) {\n\t\t\t\t\t\tif (myRow.getCell(i) != null) {\n\t\t\t\t\t\t\tisContinue = false;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (isContinue) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tExcelPromotionUnit unitPromo = new ExcelPromotionUnit();\n\t\t\t\t\tCellBean errRow = new CellBean();\n\t\t\t\t\tString messageError = \"\";\n\t\t\t\t\tBoolean isHasData = false;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tString promotionCode = getCellValueToString(myRow.getCell(0));\n\t\t\t\t\t\tString shopCode = getCellValueToString(myRow.getCell(1));\n\t\t\t\t\t\tString quality = getCellValueToString(myRow.getCell(2));\n\t\t\t\t\t\tString totalAmount = getCellValueToString(myRow.getCell(3));\n\t\t\t\t\t\tString amount = getCellValueToString(myRow.getCell(4));\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (!StringUtil.isNullOrEmpty(promotionCode) || !StringUtil.isNullOrEmpty(shopCode) || !StringUtil.isNullOrEmpty(quality)\n\t\t\t\t\t\t\t\t|| !StringUtil.isNullOrEmpty(totalAmount) || !StringUtil.isNullOrEmpty(amount)) {\n\t\t\t\t\t\t\tisHasData = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t// 1 Mã CTKM\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellPromotionCode = myRow.getCell(0);\n\t\t\t\t\t\tif (cellPromotionCode != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tif(isHasData){\n\t\t\t\t\t\t\t\tString promoCode = getCellValueToString(cellPromotionCode);\n\t\t\t\t\t\t\t\tPromotionProgram newPromotionProgram;\n\t\t\t\t\t\t\t\tif (StringUtil.isNullOrEmpty(promoCode)) {\n\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.promotion.code.obligate\") + \"\\n\";\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tnewPromotionProgram = promotionProgramMgr.getPromotionProgramByCode(promoCode);\n\t\t\t\t\t\t\t\t\tif(newPromotionProgram == null \n\t\t\t\t\t\t\t\t\t\t\t&& mapHeader.get(promoCode) == null){\n\t\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.not.init\") + \"\\n\";\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tunitPromo.promotionCode = promoCode;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\terrRow.setContent1(promoCode);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.string\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"Mã CTKM\"));\n\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t// 2 Mã đơn vị\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellUnitCode = myRow.getCell(1);\n\t\t\t\t\t\tif (cellUnitCode != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tif(isHasData){\n\t\t\t\t\t\t\t\tString unitCode = getCellValueToString(cellUnitCode);\n\t\t\t\t\t\t\t\t// Kiem tra ma don vi empty\n\t\t\t\t\t\t\t\tif(StringUtil.isNullOrEmpty(unitCode)){\n\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.unit.code.obligate\") + \"\\n\";\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t// Kiem tra don vi ton tai trong he thong\n\t\t\t\t\t\t\t\t\tif(shopMgr.getShopByCode(unitCode) == null){\n\t\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.unit.code.not.permission\") + \"\\n\";\n\t\t\t\t\t\t\t\t\t} else if (currentUser != null && currentUser.getShopRoot() != null){ // kiem tra don vi co thuoc quyen quan ly cua user\n\t\t\t\t\t\t\t\t\t\tlistShopChild = promotionProgramMgr.getListChildByShopId(currentUser.getShopRoot().getShopId());\n\t\t\t\t\t\t\t\t\t\t// Kiem tra shop co thuoc quen quan ly cua user dang nhap\n\t\t\t\t\t\t\t\t\t\tboolean isShopMapWithUser = false;\n\t\t\t\t\t\t\t\t\t\tfor(Shop shop: listShopChild){\n\t\t\t\t\t\t\t\t\t\t\t if(unitCode.toLowerCase().equals(shop.getShopCode().toLowerCase())){\n\t\t\t\t\t\t\t\t\t\t\t\t isShopMapWithUser = true;\n\t\t\t\t\t\t\t\t\t\t\t\t break;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tif(!isShopMapWithUser){\n\t\t\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.unit.code.not.permission.by.current.user\") + \"\\n\";\n\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\tunitPromo.unitCode = unitCode;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\terrRow.setContent2(unitCode);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.string\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"Mã CTKM\"));\n\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t// 3 Số suất \n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellQuantityMax = myRow.getCell(2);\n\t\t\t\t\t\tif (cellQuantityMax != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tString quantityMax = getCellValueToString(cellQuantityMax);\n\t\t\t\t\t\t\tif(quantityMax != null){\n\t\t\t\t\t\t\t\tquantityMax = quantityMax.trim().replace(\",\", \"\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (quantityMax != null && quantityMax.trim().length() <= 9 \n\t\t\t\t\t\t\t\t\t&& StringUtil.isFloat(quantityMax) && Double.parseDouble(quantityMax.trim()) > 0\n\t\t\t\t\t\t\t\t\t&& quantityMax.contains(\".\") == false) {\n\t\t\t\t\t\t\t\tunitPromo.quantityMax = Integer.parseInt(quantityMax.trim().replace(\",\", \"\"));\n\t\t\t\t\t\t\t} else if(quantityMax != null && quantityMax.length() > 9 ){\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.over.max.length\") + \"\\n\";\n\t\t\t\t\t\t\t\tmessageError = messageError.replaceAll(\"%max%\", \"9\");\n\t\t\t\t\t\t\t\tmessageError = messageError.replaceAll(\"%colName%\", \"Số suất\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if (StringUtil.isNullOrEmpty(quantityMax) == false) {\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.quantity.max.incorrect.format\") + \"\\n\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\terrRow.setContent3(quantityMax);\n\t\t\t\t\t\t}else if(cellQuantityMax != null){\n\t\t\t\t\t\t\t// String quantityMax = getCellValueToString(cellQuantityMax);\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.number\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"Số suất\"));\n\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t// 4 Số tiền amountMax\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellAmountMax = myRow.getCell(3);\n\t\t\t\t\t\tif (cellAmountMax != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tString amountMax = getCellValueToString(cellAmountMax);\n\t\t\t\t\t\t\tif(amountMax != null){\n\t\t\t\t\t\t\t\tamountMax = amountMax.trim().replace(\",\", \"\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (amountMax != null && amountMax.length() <= 9 && StringUtil.isFloat(amountMax) \n\t\t\t\t\t\t\t\t\t&& Double.parseDouble(amountMax.trim()) > 0 && amountMax.contains(\".\") == false) {\n\t\t\t\t\t\t\t\tunitPromo.amountMax = new BigDecimal(amountMax.trim().replace(\",\", \"\"));\n\t\t\t\t\t\t\t} else if(amountMax != null && amountMax.length() > 9){\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.over.max.length\") + \"\\n\";\n\t\t\t\t\t\t\t\tmessageError = messageError.replaceAll(\"%max%\", \"9\");\n\t\t\t\t\t\t\t\tmessageError = messageError.replaceAll(\"%colName%\", \"Số tiền\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if (StringUtil.isNullOrEmpty(amountMax) == false) {\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.amount.max.incorrect.format\") + \"\\n\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\terrRow.setContent4(amountMax);\n\t\t\t\t\t\t}else if(cellAmountMax != null){\n\t\t\t\t\t\t\tString amountMax = getCellValueToString(cellAmountMax);\n\t\t\t\t\t\t\terrRow.setContent4(amountMax);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.number\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"Số tiền\"));\n\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t// 5 Số lượng numMax\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellNumMax = myRow.getCell(4);\n\t\t\t\t\t\tif (cellNumMax != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tString numMax = getCellValueToString(cellNumMax);\n\t\t\t\t\t\t\tnumMax = numMax.trim().replace(\",\", \"\");\n\t\t\t\t\t\t\tif (numMax != null && numMax.length() <= 9 \n\t\t\t\t\t\t\t\t\t&& StringUtil.isFloat(numMax) \n\t\t\t\t\t\t\t\t\t&& Double.parseDouble(numMax.trim()) > 0\n\t\t\t\t\t\t\t\t\t&& numMax.contains(\".\") == false) {\n\t\t\t\t\t\t\t\tunitPromo.numMax = new BigDecimal(numMax.trim().replace(\",\", \"\"));\n\t\t\t\t\t\t\t} else if(numMax != null && numMax.length() > 9){\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.over.max.length\") + \"\\n\";\n\t\t\t\t\t\t\t\tmessageError = messageError.replaceAll(\"%max%\", \"9\");\n\t\t\t\t\t\t\t\tmessageError = messageError.replaceAll(\"%colName%\", \"Số lượng\");\n\t\t\t\t\t\t\t}else if (StringUtil.isNullOrEmpty(numMax) == false) {\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.num.max.incorrect.format\") + \"\\n\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\terrRow.setContent5(numMax);\n\t\t\t\t\t\t}else if(cellNumMax != null){\n\t\t\t\t\t\t\tString numMax = getCellValueToString(cellNumMax);\n\t\t\t\t\t\t\terrRow.setContent5(numMax);\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.number\",\n\t\t\t\t\t\t\t\tConfiguration.getResourceString(ConstantManager.VI_LANGUAGE, \"Số lượng\"));\n\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\tif (StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\tlistUnit.add(unitPromo);\n\t\t\t\t\t\tmapUnit.put(unitPromo.promotionCode, unitPromo);\n\t\t\t\t\t}else{\n\t\t\t\t\t\terrRow.setContent6(messageError);\n\t\t\t\t\t\tlistUnitError.add(errRow);\n//\t\t\t\t\t\tif(mapErrorUnit.get(unitPromo.promotionCode) == null){\n//\t\t\t\t\t\t\tmapErrorUnit.put(unitPromo.promotionCode, messageError);\n//\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t/*if (StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\tlistHeader.add(header);\n\t\t\t\t\t\tmapHeader.put(header.promotionCode, header);\n\t\t\t\t\t} else {\n\t\t\t\t\t\terrRow.setContent13(messageError);\n\t\t\t\t\t\tlstHeaderError.add(errRow);\n\t\t\t\t\t\tif (mapErrorPromotion.get(header.promotionCode) == null) {\n\t\t\t\t\t\t\tmapErrorPromotion.put(header.promotionCode, messageError);\n\t\t\t\t\t\t}\n\t\t\t\t\t}*/\n\n\t\t\t\t\tiRun++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//Sheet Co cau KM\n\t\t\t/////\n\t\t\tif (detailSheet != null) {\t\n\t\t\t\tIterator<?> rowIter = detailSheet.rowIterator();\n\t\t\t\tString previousPromotionCode = null;\n\t\t\t\tint typeKM;\n\t\t\t\tMap<String, Integer> mapPromotionType = new HashMap<String, Integer>();\n\t\t\t\tiRun = 0;\n\t\t\t\tMap<String, String[]> mapArrayProduct = new HashMap<String, String[]>();\n\t\t\t\tMap<String, BigDecimal[]> mapArraySaleQuantity = new HashMap<String, BigDecimal[]>();\n\t\t\t\tMap<String, BigDecimal[]> mapArraySaleAmount = new HashMap<String, BigDecimal[]>();\n\t\t\t\tMap<String, BigDecimal[]> mapArrayDiscountAmount = new HashMap<String, BigDecimal[]>();\n\t\t\t\tMap<String, Float[]> mapArrayDiscountPercent = new HashMap<String, Float[]>();\n\t\t\t\tMap<String, Integer[]> mapArrayQuantityUnit = new HashMap<String, Integer[]>();\n\t\t\t\tMap<String, String[]> mapArrayFreeProduct = new HashMap<String, String[]>();\n\t\t\t\tMap<String, BigDecimal[]> mapArrayFreeQuantity = new HashMap<String, BigDecimal[]>();\n\t\t\t\tMap<String, Integer[]> mapArrayFreeQuantityUnit = new HashMap<String, Integer[]>();\n\t\t\t\tMap<String, Boolean[]> mapArrayAndOr = new HashMap<String, Boolean[]>();\n\t\t\t\tMap<String, String[]> mapPromoGroupCode = new HashMap<String, String[]>();\n\t\t\t\tMap<String, String[]> mapPromoGroupName = new HashMap<String, String[]>();\n\t\t\t\tMap<String, String[]> mapPromoLevelCode = new HashMap<String, String[]>();\n//\t\t\t\tMap<String, Integer[]> mapMultiple = new HashMap<String, Integer[]>();\n//\t\t\t\tMap<String, Integer[]> mapRecursive = new HashMap<String, Integer[]>();\n//\t\t\t\tMap<String, Integer[]> mapDkgh = new HashMap<String,Integer[]>();\n\t\t\t\t\n\t\t\t\tLinkedHashMap<String, Integer> lstProductPromo = new LinkedHashMap<String, Integer>();\n\t\t\t\tMap<String, List<Row>> lstRow = new HashMap<String, List<Row>>();\n\t\t\t\tint indexProductPromo = 0;\n\t\t\t\tint maxSizeSheet2 = 12;\n\t\t\t\tPromotionProgram existPromotion = null;\n\t\t\t\twhile (rowIter.hasNext()) {\n\t\t\t\t\tRow myRow = (Row) rowIter.next();\n\t\t\t\t\tif (iRun == 0) {\n\t\t\t\t\t\tiRun++;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tboolean isContinue = true;\n\t\t\t\t\t//Kiem tra su hop le cua Row Import\n\t\t\t\t\tfor (int i = 0; i < maxSizeSheet2; i++) {\n\t\t\t\t\t\tif (myRow.getCell(i) != null) {\n\t\t\t\t\t\t\tisContinue = false;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (isContinue) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tExcelPromotionDetail detail = new ExcelPromotionDetail();\n\t\t\t\t\tCellBean errRow = new CellBean();\n\t\t\t\t\tString messageError = \"\";\n\t\t\t\t\t//0 get promotionCode\n\t\t\t\t\tString promotionCode = null;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellPromotionCode = myRow.getCell(0);\n\t\t\t\t\t\tif (cellPromotionCode != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\t//\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t//\t\t\t\t\t\t\tpromotionCode = cellPromotionCode.getStringCellValue();\n\t\t\t\t\t\t\t//\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t//\t\t\t\t\t\t\tpromotionCode = String.valueOf(cellPromotionCode.getNumericCellValue());\n\t\t\t\t\t\t\t//\t\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t\t\t//\t\t\t\t\t\t}\n\t\t\t\t\t\t\tpromotionCode = getCellValueToString(cellPromotionCode);\n\t\t\t\t\t\t\tpromotionCode = promotionCode != null ? promotionCode.trim().toUpperCase().trim() : \"\";\n\t\t\t\t\t\t\tif (StringUtil.isNullOrEmpty(promotionCode)) {\n\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tmessageError += ValidateUtil.validateField(promotionCode, \"catalog.promotion.import.column.progcode\", 50, ConstantManager.ERR_REQUIRE, ConstantManager.ERR_MAX_LENGTH, ConstantManager.ERR_EXIST_SPECIAL_CHAR_IN_CODE);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\texistPromotion = promotionProgramMgr.getPromotionProgramByCode(promotionCode);\n\t\t\t\t\t\t\tif (existPromotion == null && mapHeader.get(promotionCode) == null) {\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.not.init\") + \"\\n\";\n\t\t\t\t\t\t\t\t//messageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.program.not.exists\");\n\t\t\t\t\t\t\t\t//messageError += \"\\n\";\n\t\t\t\t\t\t\t\t//else if(existPromotion != null && mapHeader.get(promotionCode) == null){\n\t\t\t\t\t\t\t} else if(existPromotion != null && ActiveType.RUNNING.equals(existPromotion.getStatus())){\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.program.exists\") + \"\\n\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tdetail.promotionCode = promotionCode;\n\t\t\t\t\t\t\terrRow.setContent1(promotionCode);\n\t\t\t\t\t\t\tif (StringUtil.isNullOrEmpty(promotionCode)) {\n\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"common.required\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.code\"));\n\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.string\", iRun, \"Mã CTKM\") + \"\\n\";\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t//1 get type\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (myRow.getCell(1) != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\t//\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t//\t\t\t\t\t\t\tdetail.type = myRow.getCell(1).getStringCellValue();\n\t\t\t\t\t\t\t//\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t//\t\t\t\t\t\t\tdetail.type = String.valueOf(myRow.getCell(1).getNumericCellValue());\n\t\t\t\t\t\t\t//\t\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t\t\t//\t\t\t\t\t\t}\n\t\t\t\t\t\t\tdetail.type = getCellValueToString(myRow.getCell(1));\n\t\t\t\t\t\t\tdetail.type = detail.type != null ? detail.type.trim().toUpperCase().trim() : \"\";\n\t\t\t\t\t\t\tif (StringUtil.isNullOrEmpty(detail.type)) {\n\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tif (mapCheckType.get(detail.type) == null) {\n\t\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.exists.before\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.type\"));\n\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t} else if (mapType.get(promotionCode) == null) {\n\t\t\t\t\t\t\t\t\tif (null != existPromotion && existPromotion.getType().equalsIgnoreCase(detail.type)) {\n\t\t\t\t\t\t\t\t\t\tmapType.put(detail.promotionCode, detail.type);\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.type.is.not.same2\") + \"\\n\";\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else if (!mapType.get(promotionCode).equals(detail.type)) {\n\t\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.type.is.not.same2\") + \"\\n\";\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\terrRow.setContent2(getCellValueToString(myRow.getCell(1)));\n\t\t\t\t\t\t}else if(myRow.getCell(1) != null){\n\t\t\t\t\t\t\terrRow.setContent2(getCellValueToString(myRow.getCell(1)));\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.string\", iRun, \"Loại CTKM\") + \"\\n\";\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t//2 Mã nhóm\n\t\t\t\t\t/*try {\n\t\t\t\t\t\tCell cellGroupCode = myRow.getCell(2);\n\t\t\t\t\t\tString groupCode = null;\n\t\t\t\t\t\tif (cellGroupCode != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tgroupCode = getCellValueToString(cellGroupCode);\n\t\t\t\t\t\t\tmessageError = ValidateUtil.validateField(noticeCode, \"catalog.promotion.noticecode\", 100, ConstantManager.ERR_EXIST_SPECIAL_CHAR_IN_SPECIAL);\n\t\t\t\t\t\t\tif (StringUtil.isNullOrEmpty(groupCode)) {\n\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.promotion.group.code.obligate\") + \"\\n\";\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tdetail.promoGroupCode = groupCode;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\terrRow.setContent3(groupCode);\n\t\t\t\t\t\t}else if (cellGroupCode != null) {\n\t\t\t\t\t\t\tgroupCode = getCellValueToString(cellGroupCode);\n\t\t\t\t\t\t\terrRow.setContent3(groupCode);\n\t\t\t\t\t\t}else if (cellGroupCode == null) {\n\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.promotion.group.code.obligate\") + \"\\n\";\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.string\", iRun, \"Mã nhóm\") + \"\\n\";\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t// 3 Tên nhóm\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellGroupName = myRow.getCell(3);\n\t\t\t\t\t\tString groupName = null;\n\t\t\t\t\t\tif (cellGroupName != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tgroupName = getCellValueToString(cellGroupName);\n\t\t\t\t\t\t\tif (StringUtil.isNullOrEmpty(groupName)) {\n\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.promotion.group.name.obligate\") + \"\\n\";\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tdetail.promoGroupName = groupName;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\terrRow.setContent4(groupName);\n\t\t\t\t\t\t}else if (cellGroupName != null) {\n\t\t\t\t\t\t\tgroupName = getCellValueToString(cellGroupName);\n\t\t\t\t\t\t\terrRow.setContent4(groupName);\n\t\t\t\t\t\t}else if (cellGroupName == null) {\n\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.promotion.group.name.obligate\") + \"\\n\";\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.string\", iRun, \"Tên nhóm\") + \"\\n\";\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t// 4 Mã mức\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellLevelCode = myRow.getCell(4);\n\t\t\t\t\t\tString levelCode = null;\n\t\t\t\t\t\tif (cellLevelCode != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tlevelCode = getCellValueToString(cellLevelCode);\n\t\t\t\t\t\t\tif (StringUtil.isNullOrEmpty(levelCode)) {\n\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.promotion.level.code.obligate\") + \"\\n\";\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tdetail.promoLevelCode = levelCode;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\terrRow.setContent5(levelCode);\n\t\t\t\t\t\t} else if (cellLevelCode != null) {\n\t\t\t\t\t\t\tlevelCode = getCellValueToString(cellLevelCode);\n\t\t\t\t\t\t\terrRow.setContent5(levelCode);\n\t\t\t\t\t\t}else if (cellLevelCode == null) {\n\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.promotion.level.code.obligate\") + \"\\n\";\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.string\", iRun, \"Tên nhóm\") + \"\\n\";\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}*/\n\t\t\t\t\t//5 Tên mức\n\t\t\t\t\t/*try {\n\t\t\t\t\t\tCell cellLevelName = myRow.getCell(5);\n\t\t\t\t\t\tString levelName = null;\n\t\t\t\t\t\tif (cellLevelName != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tlevelName = getCellValueToString(cellLevelName);\n\t\t\t\t\t\t\tif (StringUtil.isNullOrEmpty(levelName)) {\n\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.promotion.level.name.obligate \") + \"\\n\";\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tdetail.promoLevelName = levelName;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\terrRow.setContent6(levelName);\n\t\t\t\t\t\t} else if (cellLevelName == null) {\n\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.promotion.level.name.obligate \") + \"\\n\";\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.string\", iRun, \"Tên nhóm\") + \"\\n\";\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}*/\n\t\t\t\t\t//2 get productCode\n\t\t\t\t\tString productCode = \"\";\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (checkColumnNecessary(detail.type, 2) && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tCell cellProductCode = myRow.getCell(2);\n\t\t\t\t\t\t\tif (cellProductCode != null) {\n\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\tproductCode = cellProductCode.getStringCellValue();\n\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\tproductCode = String.valueOf(cellProductCode.getNumericCellValue());\n\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\tLogUtility.logError(ex, ex.getMessage());\n\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tproductCode = getCellValueToString(cellProductCode);\n\t\t\t\t\t\t\t\tif (!StringUtil.isNullOrEmpty(productCode)) {\n\t\t\t\t\t\t\t\t\tProduct product = productMgr.getProductByCode(productCode.trim());\n\t\t\t\t\t\t\t\t\tif (product == null) {\n\t\t\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"common.not.exist.in.db\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.buyproduct.code\"));\n\t\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tdetail.productCode = productCode.toUpperCase().trim();\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.column.null\", \"Mã Sản Phẩm Mua\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.column.null\", \"Mã Sản Phẩm Mua\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (myRow.getCell(2) != null) {\n\t\t\t\t\t\t\terrRow.setContent3(getCellValueToString(myRow.getCell(2)));\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.get.product.error\", productCode);\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t//3 getQuantity\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (checkColumnNecessary(detail.type, 3) && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tCell cellQuantity = myRow.getCell(3);\n\t\t\t\t\t\t\tif (cellQuantity != null && cellQuantity.getCellType() != Cell.CELL_TYPE_BLANK) {\n\t\t\t\t\t\t\t\tif (cellQuantity.getCellType() == Cell.CELL_TYPE_NUMERIC) {\n\t\t\t\t\t\t\t\t\tBigDecimal quantity = new BigDecimal(cellQuantity.getNumericCellValue());\n\t\t\t\t\t\t\t\t\tif (quantity == null || quantity.compareTo(BigDecimal.ZERO) <= 0) {\n\t\t\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"common.not.date\", \"SL Sản Phẩm Mua\");\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tdetail.saleQuantity = quantity;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.column.invalid.format.number\", \"SL Sản Phẩm Mua\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.column.null\", \"SL Sản Phẩm Mua\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (myRow.getCell(3) != null) {\n\t\t\t\t\t\t\terrRow.setContent4(getCellValueToString(myRow.getCell(3)));\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.number\", iRun, \"SL Sản Phẩm Mua\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t//4 get UOM\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (checkColumnNecessary(detail.type, 4) && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tCell cellProductUnit = myRow.getCell(4);\n\t\t\t\t\t\t\tif (cellProductUnit != null && cellProductUnit.getCellType() != Cell.CELL_TYPE_BLANK) {\n\t\t\t\t\t\t\t\tif (cellProductUnit.getCellType() == Cell.CELL_TYPE_STRING) {\n\t\t\t\t\t\t\t\t\tString unit = cellProductUnit.getStringCellValue();\n\t\t\t\t\t\t\t\t\tif (unit == null || StringUtil.isNullOrEmpty(unit)) {\n\t\t\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"common.not.date\", \"Đơn Vị Tính Cho SP Mua\");\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif (unit.trim().toLowerCase().equals(\"LẺ\".toLowerCase())) {\n\t\t\t\t\t\t\t\t\t\tdetail.productUnit = 1;\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tdetail.productUnit = 2;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.column.invalid.format.number\", \"Đơn Vị Tính Cho SP Mua\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.column.null\", \"Đơn Vị Tính Cho SP Mua\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (myRow.getCell(4) != null) {\n\t\t\t\t\t\t\terrRow.setContent5(getCellValueToString(myRow.getCell(4)));\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.string\", iRun, \"Đơn Vị Tính Cho SP Mua\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t//5 getAmount\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (checkColumnNecessary(detail.type, 5) && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tCell cellAmount = myRow.getCell(5);\n\t\t\t\t\t\t\tif (cellAmount != null && cellAmount.getCellType() != Cell.CELL_TYPE_BLANK) {\n\t\t\t\t\t\t\t\tif (cellAmount.getCellType() == Cell.CELL_TYPE_NUMERIC) {\n\t\t\t\t\t\t\t\t\tBigDecimal amount = BigDecimal.valueOf(cellAmount.getNumericCellValue());\n\t\t\t\t\t\t\t\t\tif (amount == null || amount.compareTo(BigDecimal.ZERO) < 0) {\n\t\t\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"common.not.date\", \"Số Tiền SP Mua\");\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tdetail.saleAmount = amount;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.column.invalid.format.number\", \"Số Tiền SP Mua\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.column.null\", \"Số Tiền SP Mua\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (myRow.getCell(5) != null) {\n\t\t\t\t\t\t\terrRow.setContent6(getCellValueToString(myRow.getCell(5)));\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.number\", iRun, \"Số Tiền SP Mua\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t//6 getDiscount Amount\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (checkColumnNecessary(detail.type, 6) && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tCell cellDiscountAmount = myRow.getCell(6);\n\t\t\t\t\t\t\tif (cellDiscountAmount != null && cellDiscountAmount.getCellType() != Cell.CELL_TYPE_BLANK) {\n\t\t\t\t\t\t\t\tif (cellDiscountAmount.getCellType() == Cell.CELL_TYPE_NUMERIC) {\n\t\t\t\t\t\t\t\t\tBigDecimal discountAmount = BigDecimal.valueOf(cellDiscountAmount.getNumericCellValue());\n\t\t\t\t\t\t\t\t\tif (discountAmount == null || discountAmount.compareTo(BigDecimal.ZERO) < 0) {\n\t\t\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"common.not.date\", \"Số Tiền SP KM\");\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tdetail.discountAmount = discountAmount;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.column.invalid.format.number\", \"Số Tiền SP KM\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.column.null\", \"Số Tiền SP KM\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (myRow.getCell(6) != null) {\n\t\t\t\t\t\t\terrRow.setContent7(getCellValueToString(myRow.getCell(6)));\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.number\", iRun, \"Số Tiền SP KM\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t//7 get discount percent\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (checkColumnNecessary(detail.type, 7) && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tCell cellDiscountPercent = myRow.getCell(7);\n\t\t\t\t\t\t\tif (cellDiscountPercent != null && cellDiscountPercent.getCellType() != Cell.CELL_TYPE_BLANK) {\n\t\t\t\t\t\t\t\tif (cellDiscountPercent.getCellType() == Cell.CELL_TYPE_NUMERIC) {\n\t\t\t\t\t\t\t\t\tFloat discountPercent = (float) cellDiscountPercent.getNumericCellValue();\n\t\t\t\t\t\t\t\t\tif (discountPercent == null || discountPercent < 0 || discountPercent > 100) {\n\t\t\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"common.not.date\", \"% KM\");\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tdetail.discountPercent = discountPercent;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.column.invalid.format.float\", \"% KM\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.column.null\", \"% KM\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (myRow.getCell(7) != null) {\n\t\t\t\t\t\t\terrRow.setContent8(getCellValueToString(myRow.getCell(7)));\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.number\", iRun, \"DiscPer\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t//8 get Free product code\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (checkColumnNecessary(detail.type, 8) && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tCell cellFreeProductCode = myRow.getCell(8);\n\t\t\t\t\t\t\tif (cellFreeProductCode != null) {\n\t\t\t\t\t\t\t\tString freeProductCode = getCellValueToString(cellFreeProductCode);\n\t\t\t\t\t\t\t\tif (!StringUtil.isNullOrEmpty(freeProductCode)) {\n\t\t\t\t\t\t\t\t\tProduct freeProduct = productMgr.getProductByCode(freeProductCode.trim());\n\t\t\t\t\t\t\t\t\tif (freeProduct == null) {\n\t\t\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"common.not.exist.in.db\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.disproduct.code\"));\n\t\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tdetail.freeProductCode = freeProductCode.toUpperCase().trim();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.column.null\", \"Mã SP KM\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (myRow.getCell(8) != null) {\n\t\t\t\t\t\t\terrRow.setContent9(getCellValueToString(myRow.getCell(8)));\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.string\", iRun, \"Mã SP KM\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t//9 get free Quantity\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (checkColumnNecessary(detail.type, 9) && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tCell cellFreeQuantity = myRow.getCell(9);\n\t\t\t\t\t\t\tif (cellFreeQuantity != null && cellFreeQuantity.getCellType() != Cell.CELL_TYPE_BLANK) {\n\t\t\t\t\t\t\t\tif (cellFreeQuantity.getCellType() == Cell.CELL_TYPE_NUMERIC) {\n\t\t\t\t\t\t\t\t\tBigDecimal freeQuantity = new BigDecimal(cellFreeQuantity.getNumericCellValue());\n\t\t\t\t\t\t\t\t\tif (freeQuantity == null || freeQuantity.compareTo(BigDecimal.ZERO) < 0) {\n\t\t\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"common.not.date\", \"Số Lượng KM\");\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tdetail.freeQuantity = freeQuantity;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.column.invalid.format.number\", \"Số Lượng KM\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.column.null\", \"Số Lượng KM\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (myRow.getCell(9) != null) {\n\t\t\t\t\t\t\terrRow.setContent10(getCellValueToString(myRow.getCell(9)));\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.number\", iRun, \"Số Lượng KM\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t//10 get Free UOM\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (checkColumnNecessary(detail.type, 10) && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tCell cellProductUnit = myRow.getCell(10);\n\t\t\t\t\t\t\tif (cellProductUnit != null && cellProductUnit.getCellType() != Cell.CELL_TYPE_BLANK) {\n\t\t\t\t\t\t\t\tif (cellProductUnit.getCellType() == Cell.CELL_TYPE_STRING) {\n\t\t\t\t\t\t\t\t\tString unit = cellProductUnit.getStringCellValue();\n\t\t\t\t\t\t\t\t\tif (unit == null || StringUtil.isNullOrEmpty(unit)) {\n\t\t\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"common.not.date\", \"Đơn Vị Tính cho SP KM\");\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif (unit.trim().toLowerCase().equals(\"LẺ\".toLowerCase())) {\n\t\t\t\t\t\t\t\t\t\tdetail.freeProductUnit = 1;\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tdetail.freeProductUnit = 2;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.column.invalid.format.number\", \"Đơn Vị Tính cho SP KM\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (myRow.getCell(10) != null) {\n\t\t\t\t\t\t\terrRow.setContent11(getCellValueToString(myRow.getCell(10)));\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.string\", iRun, \"Đơn Vị Tính cho SP KM\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t//11 get And Or\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (checkColumnNecessary(detail.type, 11) && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tCell cellAndOrCell = myRow.getCell(11);\n\t\t\t\t\t\t\tif (cellAndOrCell != null) {\n\t\t\t\t\t\t\t\tString value;\n\t\t\t\t\t\t\t\tif (cellAndOrCell.getCellType() != Cell.CELL_TYPE_NUMERIC) {\n\t\t\t\t\t\t\t\t\tvalue = cellAndOrCell.getStringCellValue();\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tvalue = String.valueOf((float) cellAndOrCell.getNumericCellValue());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (\"X\".equals(value.trim().toUpperCase())) {\n\t\t\t\t\t\t\t\t\tdetail.andOr = true;\n\t\t\t\t\t\t\t\t\terrRow.setContent12(value);\n\t\t\t\t\t\t\t\t} else if (\"\".equals(value.trim().toUpperCase())) {\n\t\t\t\t\t\t\t\t\tdetail.andOr = false;\n\t\t\t\t\t\t\t\t\terrRow.setContent12(value);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\terrRow.setContent13(value);\n\t\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.read.cell.format.invalid\", iRun, \"AllFreeItemcode\", \"['','X']\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tdetail.andOr = false;\n\t\t\t\t\t\t\t\terrRow.setContent12(\"\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.read.cell.format.invalid\", iRun, \"AllFreeItemcode\", \"['','X']\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// 12 ĐKGH\n\t\t\t\t\t/*try{\n\t\t\t\t\t\tApParam apParam = apParamMgr.getApParamByCode(\"LIST_ALLOW_DKGH\", ApParamType.LIST_ALLOW_DKGH);\n\t\t\t\t\t\tString strListPromo = apParam.getApParamName();\n\t\t\t\t\t\tCell cellDKGH = myRow.getCell(17);\n\t\t\t\t\t\tString[] ListAllow = strListPromo.split(\",\");\n\t\t\t\t\t\tif(Arrays.asList(ListAllow).contains(detail.type)){\n\t\t\t\t\t\t\tif(cellDKGH != null && StringUtil.isNullOrEmpty(messageError)){\n\t\t\t\t\t\t\t\tString dkgh = getCellValueToString(cellDKGH);\n\t\t\t\t\t\t\t\tif(dkgh != null \n\t\t\t\t\t\t\t\t\t\t&& (Constant.HAVE_CONDITION.equals(dkgh) || (Constant.NON_CONDITION.equals(dkgh)))){\n\t\t\t\t\t\t\t\t\tdetail.dkgh = Integer.parseInt(dkgh.trim());\n\t\t\t\t\t\t\t\t}else if(dkgh != null){\n\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.dkgh.incorrect.format\")+\"\\n\";\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\terrRow.setContent18(dkgh);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else if(cellDKGH != null){\n\t\t\t\t\t\t\tString dkgh = getCellValueToString(cellDKGH);\n\t\t\t\t\t\t\terrRow.setContent18(dkgh);\n\t\t\t\t\t\t}\n\t\t\t\t\t}catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.number\", iRun, \"DKGH\", \"['','X']\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}*/\n\t\t\t\t\tif (mapPromotionTypeCheck.get(detail.promotionCode) == null) {\n\t\t\t\t\t\tmapPromotionTypeCheck.put(detail.promotionCode, detail.type);\n\t\t\t\t\t}\n\t\t\t\t\tif (!promotionCode.equals(previousPromotionCode)) {\n\t\t\t\t\t\tif (mapPromotionType.get(detail.promotionCode) != null) {//da ton tai ctkm nay truoc do roi\n\t\t\t\t\t\t\t//typeKM = mapPromotionType.get(detail.promotionCode);//=> lay ra loai cua no thoi\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif (!StringUtil.isNullOrEmpty(detail.productCode) && detail.saleQuantity != null && detail.saleQuantity.compareTo(BigDecimal.ZERO) > 0 && !StringUtil.isNullOrEmpty(detail.freeProductCode) && detail.freeQuantity != null\n\t\t\t\t\t\t\t\t\t&& detail.freeQuantity.compareTo(BigDecimal.ZERO) > 0) {\n\t\t\t\t\t\t\t\ttypeKM = 1;//ZV03\n\t\t\t\t\t\t\t} else if (!StringUtil.isNullOrEmpty(detail.productCode) && detail.saleQuantity != null && detail.saleQuantity.compareTo(BigDecimal.ZERO) > 0 && detail.discountAmount != null && detail.discountAmount.compareTo(\n\t\t\t\t\t\t\t\t\tBigDecimal.ZERO) > 0) {\n\t\t\t\t\t\t\t\ttypeKM = 2;//ZV02\n\t\t\t\t\t\t\t} else if (!StringUtil.isNullOrEmpty(detail.productCode) && detail.saleQuantity != null && detail.saleQuantity.compareTo(BigDecimal.ZERO) > 0 && detail.discountPercent != null && detail.discountPercent > 0) {\n\t\t\t\t\t\t\t\ttypeKM = 3;//ZV01\n\t\t\t\t\t\t\t} else if (!StringUtil.isNullOrEmpty(detail.productCode) && detail.saleAmount != null && detail.saleAmount.compareTo(BigDecimal.ZERO) > 0 && !StringUtil.isNullOrEmpty(detail.freeProductCode) && detail.freeQuantity != null\n\t\t\t\t\t\t\t\t\t&& detail.freeQuantity.compareTo(BigDecimal.ZERO) > 0) {\n\t\t\t\t\t\t\t\ttypeKM = 4;\n\t\t\t\t\t\t\t} else if (!StringUtil.isNullOrEmpty(detail.productCode) && detail.saleAmount != null && detail.saleAmount.compareTo(BigDecimal.ZERO) > 0 && detail.discountAmount != null && detail.discountAmount.compareTo(\n\t\t\t\t\t\t\t\t\tBigDecimal.ZERO) > 0) {\n\t\t\t\t\t\t\t\ttypeKM = 5;\n\t\t\t\t\t\t\t} else if (!StringUtil.isNullOrEmpty(detail.productCode) && detail.saleAmount != null && detail.saleAmount.compareTo(BigDecimal.ZERO) > 0 && detail.discountPercent != null && detail.discountPercent > 0) {\n\t\t\t\t\t\t\t\ttypeKM = 6;\n\t\t\t\t\t\t\t} else if (detail.saleAmount != null && detail.saleAmount.compareTo(BigDecimal.ZERO) > 0 && !StringUtil.isNullOrEmpty(detail.freeProductCode) && detail.freeQuantity != null && detail.freeQuantity.compareTo(\n\t\t\t\t\t\t\t\t\tBigDecimal.ZERO) > 0) {\n\t\t\t\t\t\t\t\ttypeKM = 7;\n\t\t\t\t\t\t\t} else if (detail.saleAmount != null && detail.saleAmount.compareTo(BigDecimal.ZERO) > 0 && detail.discountAmount != null && detail.discountAmount.compareTo(BigDecimal.ZERO) > 0) {\n\t\t\t\t\t\t\t\ttypeKM = 8;\n\t\t\t\t\t\t\t} else if (detail.saleAmount != null && detail.saleAmount.compareTo(BigDecimal.ZERO) > 0 && detail.discountPercent != null && detail.discountPercent > 0) {\n\t\t\t\t\t\t\t\ttypeKM = 9;\n\t\t\t\t\t\t\t} else if (detail.saleQuantity != null && detail.saleQuantity.compareTo(BigDecimal.ZERO) > 0 && !StringUtil.isNullOrEmpty(detail.freeProductCode) && detail.freeQuantity != null && detail.freeQuantity.compareTo(\n\t\t\t\t\t\t\t\t\tBigDecimal.ZERO) > 0) {\n\t\t\t\t\t\t\t\ttypeKM = 10;//ZV24\n\t\t\t\t\t\t\t} else if (detail.saleQuantity != null && detail.saleQuantity.compareTo(BigDecimal.ZERO) > 0 && detail.discountAmount != null && detail.discountAmount.compareTo(BigDecimal.ZERO) > 0) {\n\t\t\t\t\t\t\t\ttypeKM = 11;//ZV23\n\t\t\t\t\t\t\t} else if (detail.saleQuantity != null && detail.saleQuantity.compareTo(BigDecimal.ZERO) > 0 && detail.discountPercent != null && detail.discountPercent > 0) {\n\t\t\t\t\t\t\t\ttypeKM = 12;//ZV22\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\ttypeKM = -1;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tmapPromotionType.put(detail.promotionCode, typeKM);\n\t\t\t\t\t\t\tpreviousPromotionCode = detail.promotionCode;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\t//typeKM = mapPromotionType.get(detail.promotionCode);\n\t\t\t\t\t}\n\n\t\t\t\t\tif (StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\tList<Row> lstR = lstRow.get(detail.promotionCode);\n\t\t\t\t\t\tif (lstR == null) {\n\t\t\t\t\t\t\tlstR = new ArrayList<Row>();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tmessageError = checkDuplicate(mapType.get(detail.promotionCode), lstR, myRow);\n\t\t\t\t\t\tif(StringUtil.isNullOrEmpty(messageError)){\n\t\t\t\t\t\t\tlistDetail.add(detail);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tlstR.add(myRow);\n\t\t\t\t\t\tlstRow.put(detail.promotionCode, lstR);\n\t\t\t\t\t}\n\t\t\t\t\tif (StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\tif (mapArrayProduct.get(detail.promotionCode) == null) {\n\t\t\t\t\t\t\tString[] arrProduct = new String[MAX_ARRAY];\n\t\t\t\t\t\t\tarrProduct[iRun] = detail.productCode;\n\t\t\t\t\t\t\tmapArrayProduct.put(detail.promotionCode, arrProduct);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tString[] arrProduct = mapArrayProduct.get(detail.promotionCode);\n\t\t\t\t\t\t\tarrProduct[iRun] = detail.productCode;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (mapArraySaleQuantity.get(detail.promotionCode) == null) {\n\t\t\t\t\t\t\tBigDecimal[] arrSaleQuantity = new BigDecimal[MAX_ARRAY];\n\t\t\t\t\t\t\tarrSaleQuantity[iRun] = detail.saleQuantity;\n\t\t\t\t\t\t\tmapArraySaleQuantity.put(detail.promotionCode, arrSaleQuantity);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tBigDecimal[] arrSaleQuantity = mapArraySaleQuantity.get(detail.promotionCode);\n\t\t\t\t\t\t\tarrSaleQuantity[iRun] = detail.saleQuantity;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (mapArrayQuantityUnit.get(detail.promotionCode) == null) {\n\t\t\t\t\t\t\tInteger[] arrUnit = new Integer[MAX_ARRAY];\n\t\t\t\t\t\t\tarrUnit[iRun] = detail.productUnit;\n\t\t\t\t\t\t\tmapArrayQuantityUnit.put(detail.promotionCode, arrUnit);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tInteger[] arrUnit = mapArrayQuantityUnit.get(detail.promotionCode);\n\t\t\t\t\t\t\tarrUnit[iRun] = detail.productUnit;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (mapArraySaleAmount.get(detail.promotionCode) == null) {\n\t\t\t\t\t\t\tBigDecimal[] arrSaleAmount = new BigDecimal[MAX_ARRAY];\n\t\t\t\t\t\t\tarrSaleAmount[iRun] = detail.saleAmount;\n\t\t\t\t\t\t\tmapArraySaleAmount.put(detail.promotionCode, arrSaleAmount);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tBigDecimal[] arrSaleAmount = mapArraySaleAmount.get(detail.promotionCode);\n\t\t\t\t\t\t\tarrSaleAmount[iRun] = detail.saleAmount;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (mapArrayFreeProduct.get(detail.promotionCode) == null) {\n\t\t\t\t\t\t\tString[] arrFreeProduct = new String[MAX_ARRAY];\n\t\t\t\t\t\t\tarrFreeProduct[iRun] = detail.freeProductCode;\n\t\t\t\t\t\t\tmapArrayFreeProduct.put(detail.promotionCode, arrFreeProduct);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tString[] arrFreeProduct = mapArrayFreeProduct.get(detail.promotionCode);\n\t\t\t\t\t\t\tarrFreeProduct[iRun] = detail.freeProductCode;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (mapArrayFreeQuantityUnit.get(detail.promotionCode) == null) {\n\t\t\t\t\t\t\tInteger[] arrUnit = new Integer[MAX_ARRAY];\n\t\t\t\t\t\t\tarrUnit[iRun] = detail.freeProductUnit;\n\t\t\t\t\t\t\tmapArrayFreeQuantityUnit.put(detail.promotionCode, arrUnit);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tInteger[] arrUnit = mapArrayFreeQuantityUnit.get(detail.promotionCode);\n\t\t\t\t\t\t\tarrUnit[iRun] = detail.freeProductUnit;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (mapArrayFreeQuantity.get(detail.promotionCode) == null) {\n\t\t\t\t\t\t\tBigDecimal[] arrFreeQuantity = new BigDecimal[MAX_ARRAY];\n\t\t\t\t\t\t\tarrFreeQuantity[iRun] = detail.freeQuantity;\n\t\t\t\t\t\t\tmapArrayFreeQuantity.put(detail.promotionCode, arrFreeQuantity);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tBigDecimal[] arrFreeProduct = mapArrayFreeQuantity.get(detail.promotionCode);\n\t\t\t\t\t\t\tarrFreeProduct[iRun] = detail.freeQuantity;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (mapArrayDiscountAmount.get(detail.promotionCode) == null) {\n\t\t\t\t\t\t\tBigDecimal[] arrDiscountAmount = new BigDecimal[MAX_ARRAY];\n\t\t\t\t\t\t\tarrDiscountAmount[iRun] = detail.discountAmount;\n\t\t\t\t\t\t\tmapArrayDiscountAmount.put(detail.promotionCode, arrDiscountAmount);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tBigDecimal[] arrDiscountAmount = mapArrayDiscountAmount.get(detail.promotionCode);\n\t\t\t\t\t\t\tarrDiscountAmount[iRun] = detail.discountAmount;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (mapArrayDiscountPercent.get(detail.promotionCode) == null) {\n\t\t\t\t\t\t\tFloat[] arrDiscountPercent = new Float[MAX_ARRAY];\n\t\t\t\t\t\t\tarrDiscountPercent[iRun] = detail.discountPercent;\n\t\t\t\t\t\t\tmapArrayDiscountPercent.put(detail.promotionCode, arrDiscountPercent);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tFloat[] arrDiscountPercent = mapArrayDiscountPercent.get(detail.promotionCode);\n\t\t\t\t\t\t\tarrDiscountPercent[iRun] = detail.discountPercent;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (mapArrayAndOr.get(detail.promotionCode) == null) {\n\t\t\t\t\t\t\tBoolean[] arrAndOr = new Boolean[MAX_ARRAY];\n\t\t\t\t\t\t\tarrAndOr[iRun] = detail.andOr;\n\t\t\t\t\t\t\tmapArrayAndOr.put(detail.promotionCode, arrAndOr);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tBoolean[] arrAndOr = mapArrayAndOr.get(detail.promotionCode);\n\t\t\t\t\t\t\tarrAndOr[iRun] = detail.andOr;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// map Ma nhom\n\t\t\t\t\t\tif(mapPromoGroupCode.get(detail.promotionCode) == null){\n\t\t\t\t\t\t\tString[] arrPromoGroupCode = new String[MAX_ARRAY];\n\t\t\t\t\t\t\tarrPromoGroupCode[iRun] = detail.promoGroupCode;\n\t\t\t\t\t\t\tmapPromoGroupCode.put(detail.promotionCode, arrPromoGroupCode);\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tString[] arrPromoGroupCode = mapPromoGroupCode.get(detail.promotionCode);\n\t\t\t\t\t\t\tarrPromoGroupCode[iRun] = detail.promoGroupCode;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// map Ten nhom\n\t\t\t\t\t\tif(mapPromoGroupName.get(detail.promotionCode) == null){\n\t\t\t\t\t\t\tString[] arrPromoGroupName = new String[MAX_ARRAY];\n\t\t\t\t\t\t\tarrPromoGroupName[iRun] = detail.promoGroupName;\n\t\t\t\t\t\t\tmapPromoGroupName.put(detail.promotionCode, arrPromoGroupName);\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tString[] arrPromoGroupName = mapPromoGroupName.get(detail.promotionCode);\n\t\t\t\t\t\t\tarrPromoGroupName[iRun] = detail.promoGroupName;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// map Ma muc\n\t\t\t\t\t\tif(mapPromoLevelCode.get(detail.promotionCode) == null){\n\t\t\t\t\t\t\tString[] arrayPromoLevelCode = new String[MAX_ARRAY];\n\t\t\t\t\t\t\tarrayPromoLevelCode[iRun] = detail.promoLevelCode;\n\t\t\t\t\t\t\tmapPromoLevelCode.put(detail.promotionCode, arrayPromoLevelCode);\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tString[] arrayPromoLevelCode = mapPromoLevelCode.get(detail.promotionCode);\n\t\t\t\t\t\t\tarrayPromoLevelCode[iRun] = detail.promoLevelCode;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// map Bội số\n\t\t\t\t\t\t/*if(mapMultiple.get(detail.promotionCode) == null){\n\t\t\t\t\t\t\tInteger[] arrMultiple = new Integer[MAX_ARRAY];\n\t\t\t\t\t\t\tarrMultiple[iRun] = detail.multiple;\n\t\t\t\t\t\t\tmapMultiple.put(detail.promotionCode, arrMultiple);\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tInteger[] arrMultiple = mapMultiple.get(detail.promotionCode);\n\t\t\t\t\t\t\tarrMultiple[iRun] = detail.multiple;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// map Tối ưu\n\t\t\t\t\t\tif(mapRecursive.get(detail.promotionCode) == null){\n\t\t\t\t\t\t\tInteger[] arrRecursive = new Integer[MAX_ARRAY];\n\t\t\t\t\t\t\tarrRecursive[iRun] = detail.recursive;\n\t\t\t\t\t\t\tmapRecursive.put(detail.promotionCode, arrRecursive);\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tInteger[] arrRecursive = mapRecursive.get(detail.promotionCode);\n\t\t\t\t\t\t\tarrRecursive[iRun] = detail.recursive;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// map ĐKGH\n\t\t\t\t\t\tif(mapDkgh.get(detail.promotionCode) == null){\n\t\t\t\t\t\t\tInteger[] arrDkgh = new Integer[MAX_ARRAY];\n\t\t\t\t\t\t\tarrDkgh[iRun] = detail.dkgh;\n\t\t\t\t\t\t\tmapDkgh.put(detail.promotionCode, arrDkgh);\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tInteger[] arrDkgh = mapDkgh.get(detail.promotionCode);\n\t\t\t\t\t\t\tarrDkgh[iRun] = detail.dkgh;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t*/\n\t\t\t\t\t\tif (!StringUtil.isNullOrEmpty(detail.productCode) && lstProductPromo.get(detail.promotionCode + \"-\" + detail.productCode) == null) {\n\t\t\t\t\t\t\tlstProductPromo.put(detail.promotionCode + \"-\" + detail.productCode, indexProductPromo++);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\t//error\n\t\t\t\t\t\terrRow.setContent13(messageError);\n\t\t\t\t\t\tlstDetailError.add(errRow);\n\t\t\t\t\t\tif (mapErrorPromotion.get(detail.promotionCode) == null) {\n\t\t\t\t\t\t\tmapErrorPromotion.put(detail.promotionCode, messageError);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t// totalItem++;\n\t\t\t\t\tiRun++;\n\t\t\t\t}\n\t\t\t\t/**\n\t\t\t\t * put vao group level\n\t\t\t\t */\n\t\t\t\tString messageError = \"\";\n\t\t\t\tCellBean errRow = new CellBean();\n\t\t\t\t\n\t\t\t\tfor (String promotionProgramCode : mapPromotionType.keySet()) {\n\t\t\t\t\tInteger unit = -1;\n\t\t\t\t\tString[] arrPromoGroupCode = mapPromoGroupCode.get(promotionProgramCode);\n\t\t\t\t\tString[] arrPromoGroupName = mapPromoGroupName.get(promotionProgramCode);\n\t\t\t\t/*\tString[] arrPromoLevelCode = mapPromoLevelCode.get(promotionProgramCode);\n\t\t\t\t\tInteger[] arrMultiple = mapMultiple.get(promotionProgramCode);\n\t\t\t\t\tInteger[] arrRecursive = mapRecursive.get(promotionProgramCode);\t\t*/\t\t\t\n//\t\t\t\t\tInteger[] arrDkgh = mapDkgh.get(promotionProgramCode);\n\t\t\t\t\t\n\t\t\t\t\tif (mapPromotionType.get(promotionProgramCode) == 1) {\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * mua A(1), B(1) dc km ... C(1), D(1)\n\t\t\t\t\t\t */\n\t\t\t\t\t\tString[] arrProduct = mapArrayProduct.get(promotionProgramCode);\n\t\t\t\t\t\tInteger[] arrProductUnit = mapArrayQuantityUnit.get(promotionProgramCode);\n\t\t\t\t\t\tBigDecimal[] arrSaleQuantity = mapArraySaleQuantity.get(promotionProgramCode);\n\t\t\t\t\t\tBoolean[] arrAndOr = mapArrayAndOr.get(promotionProgramCode);\n\t\t\t\t\t\tString[] arrFreeProduct = mapArrayFreeProduct.get(promotionProgramCode);\n\t\t\t\t\t\tInteger[] arrFreeProductUnit = mapArrayFreeQuantityUnit.get(promotionProgramCode);\n\t\t\t\t\t\tBigDecimal[] arrFreeQuantity = mapArrayFreeQuantity.get(promotionProgramCode);\n\t\t\t\t\t\t//Sort theo saleQuantity\n\t\t\t\t\t\tsortQuantityProduct(arrProduct, arrProductUnit, arrSaleQuantity, arrAndOr, arrFreeProduct, arrFreeProductUnit, arrFreeQuantity, null, null);\n\t\t\t\t\t\tfor (int i = 0; arrProduct != null && i < arrProduct.length; i++) {\n\t\t\t\t\t\t\tif (!StringUtil.isNullOrEmpty(arrProduct[i]) && arrSaleQuantity[i] != null && !StringUtil.isNullOrEmpty(arrFreeProduct[i]) && arrFreeQuantity[i] != null) {\n\t\t\t\t\t\t\t\tGroupMua groupMua;\n\t\t\t\t\t\t\t\tGroupKM groupKM;\n\t\t\t\t\t\t\t\tunit = arrProductUnit[i];\n\t\t\t\t\t\t\t\tif (mapPromotionMua.get(promotionProgramCode) != null && mapPromotionKM.get(promotionProgramCode) != null) {\n\t\t\t\t\t\t\t\t\tgroupMua = mapPromotionMua.get(promotionProgramCode).get(mapPromotionMua.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t\tgroupKM = mapPromotionKM.get(promotionProgramCode).get(mapPromotionKM.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tListGroupMua lstGroupMua = new ListGroupMua();\n\t\t\t\t\t\t\t\t\tListGroupKM lstGroupKM = new ListGroupKM();\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tgroupMua.groupCode = \"N\" + (lstGroupMua.size() + 1);\n\t\t\t\t\t\t\t\t\tgroupMua.qttUnit = unit;\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t//groupMua.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupMua.groupName = arrPromoGroupName[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.multiple = arrMultiple[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.recursive = arrRecursive[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.dkgh = arrDkgh[i];\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tgroupKM.groupCode = \"N\" + (lstGroupKM.size() + 1);\n\t\t\t\t\t\t\t\t\tgroupKM.qttUnit = arrFreeProductUnit[i];\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t//groupKM.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupKM.groupName = arrPromoGroupName[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.multiple = arrMultiple[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.recursive = arrRecursive[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.dkgh = arrDkgh[i];\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupMua.order = lstGroupMua.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupKM.order = lstGroupKM.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tmapPromotionMua.put(promotionProgramCode, lstGroupMua);\n\t\t\t\t\t\t\t\t\tmapPromotionKM.put(promotionProgramCode, lstGroupKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tGroupSP groupSPMua = groupMua.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrProduct[i], unit, arrSaleQuantity[i], indexMua++, i, arrProduct, arrSaleQuantity, arrFreeProduct, arrFreeQuantity);\n\t\t\t\t\t\t\t\tif (groupSPMua == null) {\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tList<GroupMua> lstGroupMua = mapPromotionMua.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupSPMua = groupMua.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrProduct[i], unit, arrSaleQuantity[i], indexMua++, i, arrProduct, arrSaleQuantity, arrFreeProduct, arrFreeQuantity);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tList<Long> lstIndex = mapMuaKM.get(groupSPMua.index);//lay danh sach cac index muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tList<GroupSP> lstLevelKM = groupKM.searchIndex(lstIndex);//lay danh sach cac muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tGroupSP groupSPKM = groupKM.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrFreeProduct[i], unit, arrFreeQuantity[i], arrAndOr[i], indexKM++, i, arrFreeProduct, arrFreeQuantity, lstLevelKM);\n\t\t\t\t\t\t\t\tif (groupSPKM == null) {\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tList<GroupKM> lstGroupKM = mapPromotionKM.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tgroupSPKM = groupKM.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrFreeProduct[i], unit, arrFreeQuantity[i], arrAndOr[i], indexKM++, i, arrFreeProduct, arrFreeQuantity, null);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tmapMuaKM.put(groupSPMua.index, groupSPKM.index);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (mapPromotionType.get(promotionProgramCode) == 2) {\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * mua A(1), B(1) dc km ... 10.000\n\t\t\t\t\t\t */\n\t\t\t\t\t\tString[] arrProduct = mapArrayProduct.get(promotionProgramCode);\n\t\t\t\t\t\tInteger[] arrProductUnit = mapArrayQuantityUnit.get(promotionProgramCode);\n\t\t\t\t\t\tBigDecimal[] arrSaleQuantity = mapArraySaleQuantity.get(promotionProgramCode);\n\t\t\t\t\t\tBoolean[] arrAndOr = mapArrayAndOr.get(promotionProgramCode);\n\t\t\t\t\t\tBigDecimal[] arrFreeAmount = mapArrayDiscountAmount.get(promotionProgramCode);\n\t\t\t\t\t\t//Sort theo saleQuantity\n\t\t\t\t\t\tsortQuantityProduct(arrProduct, arrProductUnit, arrSaleQuantity, arrAndOr, null, null, null, arrFreeAmount, null);\n\t\t\t\t\t\tfor (int i = 0; arrProduct != null && i < arrProduct.length; i++) {\n\t\t\t\t\t\t\tif (!StringUtil.isNullOrEmpty(arrProduct[i]) && arrSaleQuantity[i] != null && arrFreeAmount[i] != null) {\n\t\t\t\t\t\t\t\tGroupMua groupMua;\n\t\t\t\t\t\t\t\tGroupKM groupKM;\n\t\t\t\t\t\t\t\tunit = arrProductUnit[i];\n\t\t\t\t\t\t\t\tif (mapPromotionMua.get(promotionProgramCode) != null && mapPromotionKM.get(promotionProgramCode) != null) {\n\t\t\t\t\t\t\t\t\tgroupMua = mapPromotionMua.get(promotionProgramCode).get(mapPromotionMua.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t\tgroupKM = mapPromotionKM.get(promotionProgramCode).get(mapPromotionKM.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tListGroupMua lstGroupMua = new ListGroupMua();\n\t\t\t\t\t\t\t\t\tListGroupKM lstGroupKM = new ListGroupKM();\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tgroupMua.groupCode = \"N\" + (lstGroupMua.size() + 1);\n\t\t\t\t\t\t\t\t\tgroupMua.qttUnit = unit;\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t//groupMua.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupMua.groupName = arrPromoGroupName[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.multiple = arrMultiple[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.recursive = arrRecursive[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.dkgh = arrDkgh[i];\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tgroupKM.groupCode = \"N\" + (lstGroupKM.size() + 1);\n\t\t\t\t\t\t\t\t\t//groupKM.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupKM.groupName = arrPromoGroupName[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.multiple = arrMultiple[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.recursive = arrRecursive[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.dkgh = arrDkgh[i];\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupMua.order = lstGroupMua.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupKM.order = lstGroupKM.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tmapPromotionMua.put(promotionProgramCode, lstGroupMua);\n\t\t\t\t\t\t\t\t\tmapPromotionKM.put(promotionProgramCode, lstGroupKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tGroupSP groupSPMua = groupMua.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrProduct[i], unit, arrSaleQuantity[i], indexMua++, i, arrProduct, arrSaleQuantity, null, null);\n\t\t\t\t\t\t\t\tif (groupSPMua == null) {\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tList<GroupMua> lstGroupMua = mapPromotionMua.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupSPMua = groupMua.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrProduct[i], unit, arrSaleQuantity[i], indexMua++, i, arrProduct, arrSaleQuantity, null, null);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tList<Long> lstIndex = mapMuaKM.get(groupSPMua.index);//lay danh sach cac index muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tList<GroupSP> lstLevelKM = groupKM.searchIndex(lstIndex);//lay danh sach cac muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tGroupSP groupSPKM = groupKM.add2Level(arrFreeAmount[i], indexKM++, i, arrFreeAmount, lstLevelKM);\n\t\t\t\t\t\t\t\tif (groupSPKM == null) {\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tList<GroupKM> lstGroupKM = mapPromotionKM.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tgroupSPKM = groupKM.add2Level(arrFreeAmount[i], indexKM++, i, arrFreeAmount, lstLevelKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tmapMuaKM.put(groupSPMua.index, groupSPKM.index);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (mapPromotionType.get(promotionProgramCode) == 3) {\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * mua A(1), B(1) dc km ... 10%\n\t\t\t\t\t\t */\n\t\t\t\t\t\tString[] arrProduct = mapArrayProduct.get(promotionProgramCode);\n\t\t\t\t\t\tInteger[] arrProductUnit = mapArrayQuantityUnit.get(promotionProgramCode);\n\t\t\t\t\t\tBigDecimal[] arrSaleQuantity = mapArraySaleQuantity.get(promotionProgramCode);\n\t\t\t\t\t\tBoolean[] arrAndOr = mapArrayAndOr.get(promotionProgramCode);\n\t\t\t\t\t\tFloat[] arrPercent = mapArrayDiscountPercent.get(promotionProgramCode);\n\t\t\t\t\t\t//Sort theo saleQuantity\n\t\t\t\t\t\tsortQuantityProduct(arrProduct, arrProductUnit, arrSaleQuantity, arrAndOr, null, null, null, null, arrPercent);\n\t\t\t\t\t\tfor (int i = 0; arrProduct != null && i < arrProduct.length; i++) {\n\t\t\t\t\t\t\tif (!StringUtil.isNullOrEmpty(arrProduct[i]) && arrSaleQuantity[i] != null && arrPercent[i] != null) {\n\t\t\t\t\t\t\t\tGroupMua groupMua;\n\t\t\t\t\t\t\t\tGroupKM groupKM;\n\t\t\t\t\t\t\t\tunit = arrProductUnit[i];\n\t\t\t\t\t\t\t\tif (mapPromotionMua.get(promotionProgramCode) != null && mapPromotionKM.get(promotionProgramCode) != null) {\n\t\t\t\t\t\t\t\t\tgroupMua = mapPromotionMua.get(promotionProgramCode).get(mapPromotionMua.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t\tgroupKM = mapPromotionKM.get(promotionProgramCode).get(mapPromotionKM.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tListGroupMua lstGroupMua = new ListGroupMua();\n\t\t\t\t\t\t\t\t\tListGroupKM lstGroupKM = new ListGroupKM();\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tgroupMua.groupCode = \"N\" + (lstGroupMua.size() + 1);\n\t\t\t\t\t\t\t\t\tgroupMua.qttUnit = unit;\n\t\t\t\t\t\t\t\t\t//groupMua.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupMua.groupName = arrPromoGroupName[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.multiple = arrMultiple[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.recursive = arrRecursive[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.dkgh = arrDkgh[i];\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tgroupKM.groupCode = \"N\" + (lstGroupKM.size() + 1);\n\t\t\t\t\t\t\t\t\t//groupKM.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupKM.groupName = arrPromoGroupName[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.multiple = arrMultiple[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.recursive = arrRecursive[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.dkgh = arrDkgh[i];\n//\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupMua.order = lstGroupMua.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupKM.order = lstGroupKM.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tmapPromotionMua.put(promotionProgramCode, lstGroupMua);\n\t\t\t\t\t\t\t\t\tmapPromotionKM.put(promotionProgramCode, lstGroupKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tGroupSP groupSPMua = groupMua.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrProduct[i], unit, arrSaleQuantity[i], indexMua++, i, arrProduct, arrSaleQuantity, null, null);\n\t\t\t\t\t\t\t\tif (groupSPMua == null) {\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tList<GroupMua> lstGroupMua = mapPromotionMua.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupSPMua = groupMua.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrProduct[i], unit, arrSaleQuantity[i], indexMua++, i, arrProduct, arrSaleQuantity, null, null);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tList<Long> lstIndex = mapMuaKM.get(groupSPMua.index);//lay danh sach cac index muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tList<GroupSP> lstLevelKM = groupKM.searchIndex(lstIndex);//lay danh sach cac muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tGroupSP groupSPKM = groupKM.add2Level(arrPercent[i], indexKM++, i, arrPercent, lstLevelKM);\n\t\t\t\t\t\t\t\tif (groupSPKM == null) {\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tList<GroupKM> lstGroupKM = mapPromotionKM.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tgroupSPKM = groupKM.add2Level(arrPercent[i], indexKM++, i, arrPercent, lstLevelKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tmapMuaKM.put(groupSPMua.index, groupSPKM.index);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (mapPromotionType.get(promotionProgramCode) == 4) {\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * mua A(10.000), B(10.000) dc km ... C(1), D(1)\n\t\t\t\t\t\t */\n\t\t\t\t\t\tString[] arrProduct = mapArrayProduct.get(promotionProgramCode);\n\t\t\t\t\t\tInteger[] arrProductUnit = mapArrayQuantityUnit.get(promotionProgramCode);\n\t\t\t\t\t\tBigDecimal[] arrSaleAmount = mapArraySaleAmount.get(promotionProgramCode);\n\t\t\t\t\t\tBoolean[] arrAndOr = mapArrayAndOr.get(promotionProgramCode);\n\t\t\t\t\t\tString[] arrFreeProduct = mapArrayFreeProduct.get(promotionProgramCode);\n\t\t\t\t\t\tInteger[] arrFreeProductUnit = mapArrayFreeQuantityUnit.get(promotionProgramCode);\n\t\t\t\t\t\tBigDecimal[] arrFreeQuantity = mapArrayFreeQuantity.get(promotionProgramCode);\n\t\t\t\t\t\t//Sort theo saleQuantity\n\t\t\t\t\t\tsortAmountProduct(arrProduct, arrProductUnit, arrSaleAmount, arrAndOr, arrFreeProduct, arrFreeProductUnit, arrFreeQuantity, null, null);\n\t\t\t\t\t\tfor (int i = 0; arrProduct != null && i < arrProduct.length; i++) {\n\t\t\t\t\t\t\tif (!StringUtil.isNullOrEmpty(arrProduct[i]) && arrSaleAmount[i] != null && !StringUtil.isNullOrEmpty(arrFreeProduct[i]) && arrFreeQuantity[i] != null) {\n\t\t\t\t\t\t\t\tGroupMua groupMua;\n\t\t\t\t\t\t\t\tGroupKM groupKM;\n\t\t\t\t\t\t\t\tunit = arrProductUnit[i];\n\t\t\t\t\t\t\t\tif (mapPromotionMua.get(promotionProgramCode) != null && mapPromotionKM.get(promotionProgramCode) != null) {\n\t\t\t\t\t\t\t\t\tgroupMua = mapPromotionMua.get(promotionProgramCode).get(mapPromotionMua.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t\tgroupKM = mapPromotionKM.get(promotionProgramCode).get(mapPromotionKM.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tListGroupMua lstGroupMua = new ListGroupMua();\n\t\t\t\t\t\t\t\t\tListGroupKM lstGroupKM = new ListGroupKM();\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tgroupMua.groupCode = \"N\" + (lstGroupMua.size() + 1);\n\t\t\t\t\t\t\t\t\tgroupMua.qttUnit = unit;\n\t\t\t\t\t\t\t\t\t//groupMua.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupMua.groupName = arrPromoGroupName[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.multiple = arrMultiple[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.recursive = arrRecursive[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.dkgh = arrDkgh[i];\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tgroupKM.groupCode = \"N\" + (lstGroupKM.size() + 1);\n\t\t\t\t\t\t\t\t\t//groupKM.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupKM.groupName = arrPromoGroupName[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.multiple = arrMultiple[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.recursive = arrRecursive[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.dkgh = arrDkgh[i];\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupMua.qttUnit = arrFreeProductUnit[i];\n\t\t\t\t\t\t\t\t\tgroupMua.order = lstGroupMua.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupKM.order = lstGroupKM.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tmapPromotionMua.put(promotionProgramCode, lstGroupMua);\n\t\t\t\t\t\t\t\t\tmapPromotionKM.put(promotionProgramCode, lstGroupKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tGroupSP groupSPMua = groupMua.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrProduct[i], arrSaleAmount[i], indexMua++, i, arrProduct, arrSaleAmount, arrFreeProduct, arrFreeQuantity);\n\t\t\t\t\t\t\t\tif (groupSPMua == null) {\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tList<GroupMua> lstGroupMua = mapPromotionMua.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupSPMua = groupMua.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrProduct[i], arrSaleAmount[i], indexMua++, i, arrProduct, arrSaleAmount, arrFreeProduct, arrFreeQuantity);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tList<Long> lstIndex = mapMuaKM.get(groupSPMua.index);//lay danh sach cac index muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tList<GroupSP> lstLevelKM = groupKM.searchIndex(lstIndex);//lay danh sach cac muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tGroupSP groupSPKM = groupKM.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrFreeProduct[i], unit, arrFreeQuantity[i], arrAndOr[i], indexKM++, i, arrFreeProduct, arrFreeQuantity, lstLevelKM);\n\t\t\t\t\t\t\t\tif (groupSPKM == null) {\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tList<GroupKM> lstGroupKM = mapPromotionKM.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tgroupSPKM = groupKM.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrFreeProduct[i], unit, arrFreeQuantity[i], arrAndOr[i], indexKM++, i, arrFreeProduct, arrFreeQuantity, null);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tmapMuaKM.put(groupSPMua.index, groupSPKM.index);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (mapPromotionType.get(promotionProgramCode) == 5) {\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * mua A(10.000), B(10.000) dc km ... 10.000\n\t\t\t\t\t\t */\n\t\t\t\t\t\tString[] arrProduct = mapArrayProduct.get(promotionProgramCode);\n\t\t\t\t\t\tInteger[] arrProductUnit = mapArrayQuantityUnit.get(promotionProgramCode);\n\t\t\t\t\t\tBigDecimal[] arrSaleAmount = mapArraySaleAmount.get(promotionProgramCode);\n\t\t\t\t\t\tBoolean[] arrAndOr = mapArrayAndOr.get(promotionProgramCode);\n\t\t\t\t\t\tBigDecimal[] arrFreeAmount = mapArrayDiscountAmount.get(promotionProgramCode);\n\t\t\t\t\t\t//Sort theo saleQuantity\n\t\t\t\t\t\tsortAmountProduct(arrProduct, arrProductUnit, arrSaleAmount, arrAndOr, null, null, null, arrFreeAmount, null);\n\t\t\t\t\t\tfor (int i = 0; arrProduct != null && i < arrProduct.length; i++) {\n\t\t\t\t\t\t\tif (!StringUtil.isNullOrEmpty(arrProduct[i]) && arrSaleAmount[i] != null && arrFreeAmount[i] != null) {\n\t\t\t\t\t\t\t\tGroupMua groupMua;\n\t\t\t\t\t\t\t\tGroupKM groupKM;\n\t\t\t\t\t\t\t\tunit = arrProductUnit[i];\n\t\t\t\t\t\t\t\tif (mapPromotionMua.get(promotionProgramCode) != null && mapPromotionKM.get(promotionProgramCode) != null) {\n\t\t\t\t\t\t\t\t\tgroupMua = mapPromotionMua.get(promotionProgramCode).get(mapPromotionMua.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t\tgroupKM = mapPromotionKM.get(promotionProgramCode).get(mapPromotionKM.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tListGroupMua lstGroupMua = new ListGroupMua();\n\t\t\t\t\t\t\t\t\tListGroupKM lstGroupKM = new ListGroupKM();\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tgroupMua.groupCode = \"N\" + (lstGroupMua.size() + 1);\n\t\t\t\t\t\t\t\t\tgroupMua.qttUnit = unit;\n\t\t\t\t\t\t\t\t\t//groupMua.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupMua.groupName = arrPromoGroupName[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.multiple = arrMultiple[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.recursive = arrRecursive[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.dkgh = arrDkgh[i];\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tgroupKM.groupCode = \"N\" + (lstGroupKM.size() + 1);\n\t\t\t\t\t\t\t\t\t//groupKM.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupKM.groupName = arrPromoGroupName[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.multiple = arrMultiple[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.recursive = arrRecursive[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.dkgh = arrDkgh[i];\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupMua.order = lstGroupMua.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupKM.order = lstGroupKM.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tmapPromotionMua.put(promotionProgramCode, lstGroupMua);\n\t\t\t\t\t\t\t\t\tmapPromotionKM.put(promotionProgramCode, lstGroupKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tGroupSP groupSPMua = groupMua.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrProduct[i], arrSaleAmount[i], indexMua++, i, arrProduct, arrSaleAmount, null, null);\n\t\t\t\t\t\t\t\tif (groupSPMua == null) {\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tList<GroupMua> lstGroupMua = mapPromotionMua.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupSPMua = groupMua.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrProduct[i], arrSaleAmount[i], indexMua++, i, arrProduct, arrSaleAmount, null, null);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tList<Long> lstIndex = mapMuaKM.get(groupSPMua.index);//lay danh sach cac index muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tList<GroupSP> lstLevelKM = groupKM.searchIndex(lstIndex);//lay danh sach cac muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tGroupSP groupSPKM = groupKM.add2Level(arrFreeAmount[i], indexKM++, i, arrFreeAmount, lstLevelKM);\n\t\t\t\t\t\t\t\tif (groupSPKM == null) {\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tList<GroupKM> lstGroupKM = mapPromotionKM.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tgroupSPKM = groupKM.add2Level(arrFreeAmount[i], indexKM++, i, arrFreeAmount, lstLevelKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tmapMuaKM.put(groupSPMua.index, groupSPKM.index);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (mapPromotionType.get(promotionProgramCode) == 6) {\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * mua A(10.000), B(10.000) dc km ... 10%\n\t\t\t\t\t\t */\n\t\t\t\t\t\tString[] arrProduct = mapArrayProduct.get(promotionProgramCode);\n\t\t\t\t\t\tInteger[] arrProductUnit = mapArrayQuantityUnit.get(promotionProgramCode);\n\t\t\t\t\t\tBigDecimal[] arrSaleAmount = mapArraySaleAmount.get(promotionProgramCode);\n\t\t\t\t\t\tBoolean[] arrAndOr = mapArrayAndOr.get(promotionProgramCode);\n\t\t\t\t\t\tFloat[] arrPercent = mapArrayDiscountPercent.get(promotionProgramCode);\n\t\t\t\t\t\t//Sort theo saleQuantity\n\t\t\t\t\t\tsortAmountProduct(arrProduct, arrProductUnit, arrSaleAmount, arrAndOr, null, null, null, null, arrPercent);\n\t\t\t\t\t\tfor (int i = 0; arrProduct != null && i < arrProduct.length; i++) {\n\t\t\t\t\t\t\tif (!StringUtil.isNullOrEmpty(arrProduct[i]) && arrSaleAmount[i] != null && arrPercent[i] != null) {\n\t\t\t\t\t\t\t\tGroupMua groupMua;\n\t\t\t\t\t\t\t\tGroupKM groupKM;\n\t\t\t\t\t\t\t\tunit = arrProductUnit[i];\n\t\t\t\t\t\t\t\tif (mapPromotionMua.get(promotionProgramCode) != null && mapPromotionKM.get(promotionProgramCode) != null) {\n\t\t\t\t\t\t\t\t\tgroupMua = mapPromotionMua.get(promotionProgramCode).get(mapPromotionMua.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t\tgroupKM = mapPromotionKM.get(promotionProgramCode).get(mapPromotionKM.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tListGroupMua lstGroupMua = new ListGroupMua();\n\t\t\t\t\t\t\t\t\tListGroupKM lstGroupKM = new ListGroupKM();\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tgroupMua.groupCode = \"N\" + (lstGroupMua.size() + 1);\n\t\t\t\t\t\t\t\t\t//groupMua.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupMua.groupName = arrPromoGroupName[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.multiple = arrMultiple[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.recursive = arrRecursive[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.dkgh = arrDkgh[i];\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupMua.qttUnit = unit;\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tgroupKM.groupCode = \"N\" + (lstGroupKM.size() + 1);\n\t\t\t\t\t\t\t\t\t//groupKM.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupKM.groupName = arrPromoGroupName[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.multiple = arrMultiple[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.recursive = arrRecursive[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.dkgh = arrDkgh[i];\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupMua.order = lstGroupMua.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupKM.order = lstGroupKM.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tmapPromotionMua.put(promotionProgramCode, lstGroupMua);\n\t\t\t\t\t\t\t\t\tmapPromotionKM.put(promotionProgramCode, lstGroupKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tGroupSP groupSPMua = groupMua.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrProduct[i], arrSaleAmount[i], indexMua++, i, arrProduct, arrSaleAmount, null, null);\n\t\t\t\t\t\t\t\tif (groupSPMua == null) {\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tList<GroupMua> lstGroupMua = mapPromotionMua.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupSPMua = groupMua.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrProduct[i], arrSaleAmount[i], indexMua++, i, arrProduct, arrSaleAmount, null, null);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tList<Long> lstIndex = mapMuaKM.get(groupSPMua.index);//lay danh sach cac index muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tList<GroupSP> lstLevelKM = groupKM.searchIndex(lstIndex);//lay danh sach cac muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tGroupSP groupSPKM = groupKM.add2Level(arrPercent[i], indexKM++, i, arrPercent, lstLevelKM);\n\t\t\t\t\t\t\t\tif (groupSPKM == null) {\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tList<GroupKM> lstGroupKM = mapPromotionKM.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tgroupSPKM = groupKM.add2Level(arrPercent[i], indexKM++, i, arrPercent, lstLevelKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tmapMuaKM.put(groupSPMua.index, groupSPKM.index);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (mapPromotionType.get(promotionProgramCode) == 7) {\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * mua 10000 dc km ... C(1), D(1)\n\t\t\t\t\t\t */\n\t\t\t\t\t\tBigDecimal[] arrSaleAmount = mapArraySaleAmount.get(promotionProgramCode);\n\t\t\t\t\t\tString[] arrFreeProduct = mapArrayFreeProduct.get(promotionProgramCode);\n\t\t\t\t\t\tInteger[] arrFreeProductUnit = mapArrayFreeQuantityUnit.get(promotionProgramCode);\n\t\t\t\t\t\tBigDecimal[] arrFreeQuantity = mapArrayFreeQuantity.get(promotionProgramCode);\n\t\t\t\t\t\tBoolean[] arrAndOr = mapArrayAndOr.get(promotionProgramCode);\n\t\t\t\t\t\tsortAmount(arrSaleAmount, arrAndOr, arrFreeProduct, arrFreeProductUnit, arrFreeQuantity, null, null);\n\t\t\t\t\t\tfor (int i = 0; arrSaleAmount != null && i < arrSaleAmount.length; i++) {\n\t\t\t\t\t\t\tif (arrSaleAmount[i] != null && !StringUtil.isNullOrEmpty(arrFreeProduct[i]) && arrFreeQuantity[i] != null) {\n\t\t\t\t\t\t\t\tGroupMua groupMua;\n\t\t\t\t\t\t\t\tGroupKM groupKM;\n\t\t\t\t\t\t\t\tif (mapPromotionMua.get(promotionProgramCode) != null && mapPromotionKM.get(promotionProgramCode) != null) {\n\t\t\t\t\t\t\t\t\tgroupMua = mapPromotionMua.get(promotionProgramCode).get(mapPromotionMua.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t\tgroupKM = mapPromotionKM.get(promotionProgramCode).get(mapPromotionKM.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tListGroupMua lstGroupMua = new ListGroupMua();\n\t\t\t\t\t\t\t\t\tListGroupKM lstGroupKM = new ListGroupKM();\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tgroupMua.groupCode = \"N\" + (lstGroupMua.size() + 1);\n\t\t\t\t\t\t\t\t\t//groupMua.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupMua.groupName = arrPromoGroupName[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.multiple = arrMultiple[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.recursive = arrRecursive[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.dkgh = arrDkgh[i];\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tgroupKM.groupCode = \"N\" + (lstGroupKM.size() + 1);\n\t\t\t\t\t\t\t\t\t//groupKM.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupKM.groupName = arrPromoGroupName[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.multiple = arrMultiple[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.recursive = arrRecursive[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.dkgh = arrDkgh[i];\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupKM.qttUnit = arrFreeProductUnit[i];\n\t\t\t\t\t\t\t\t\tgroupMua.order = lstGroupMua.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupKM.order = lstGroupKM.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tmapPromotionMua.put(promotionProgramCode, lstGroupMua);\n\t\t\t\t\t\t\t\t\tmapPromotionKM.put(promotionProgramCode, lstGroupKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tGroupSP groupSPMua = groupMua.add2Level(2, arrSaleAmount[i], null, indexMua++, i, arrSaleAmount, arrFreeProduct, arrFreeQuantity);\n\t\t\t\t\t\t\t\tif (groupSPMua == null) {\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tList<GroupMua> lstGroupMua = mapPromotionMua.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupSPMua = groupMua.add2Level(2, arrSaleAmount[i], null, indexMua++, i, arrSaleAmount, arrFreeProduct, arrFreeQuantity);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tList<Long> lstIndex = mapMuaKM.get(groupSPMua.index);//lay danh sach cac index muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tList<GroupSP> lstLevelKM = groupKM.searchIndex(lstIndex);//lay danh sach cac muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tGroupSP groupSPKM = groupKM.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrFreeProduct[i], unit, arrFreeQuantity[i], arrAndOr[i], indexKM++, i, arrFreeProduct, arrFreeQuantity, lstLevelKM);\n\t\t\t\t\t\t\t\tif (groupSPKM == null) {\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tList<GroupKM> lstGroupKM = mapPromotionKM.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tgroupSPKM = groupKM.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrFreeProduct[i], unit, arrFreeQuantity[i], arrAndOr[i], indexKM++, i, arrFreeProduct, arrFreeQuantity, null);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tmapMuaKM.put(groupSPMua.index, groupSPKM.index);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (mapPromotionType.get(promotionProgramCode) == 8) {\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * mua 10000 dc km ... 10.000\n\t\t\t\t\t\t */\n\t\t\t\t\t\tBigDecimal[] arrSaleAmount = mapArraySaleAmount.get(promotionProgramCode);\n\t\t\t\t\t\tBigDecimal[] arrFreeAmount = mapArrayDiscountAmount.get(promotionProgramCode);\n\t\t\t\t\t\tsortAmount(arrSaleAmount, null, null, null, null, arrFreeAmount, null);\n\t\t\t\t\t\tfor (int i = 0; arrSaleAmount != null && i < arrSaleAmount.length; i++) {\n\t\t\t\t\t\t\tif (arrSaleAmount[i] != null && arrFreeAmount[i] != null) {\n\t\t\t\t\t\t\t\tGroupMua groupMua;\n\t\t\t\t\t\t\t\tGroupKM groupKM;\n\t\t\t\t\t\t\t\tif (mapPromotionMua.get(promotionProgramCode) != null && mapPromotionKM.get(promotionProgramCode) != null) {\n\t\t\t\t\t\t\t\t\tgroupMua = mapPromotionMua.get(promotionProgramCode).get(mapPromotionMua.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t\tgroupKM = mapPromotionKM.get(promotionProgramCode).get(mapPromotionKM.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tListGroupMua lstGroupMua = new ListGroupMua();\n\t\t\t\t\t\t\t\t\tListGroupKM lstGroupKM = new ListGroupKM();\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tgroupMua.groupCode = \"N\" + (lstGroupMua.size() + 1);\n\t\t\t\t\t\t\t\t\t//groupMua.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupMua.groupName = arrPromoGroupName[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.multiple = arrMultiple[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.recursive = arrRecursive[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.dkgh = arrDkgh[i];\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tgroupKM.groupCode = \"N\" + (lstGroupKM.size() + 1);\n\t\t\t\t\t\t\t\t\t//groupKM.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupKM.groupName = arrPromoGroupName[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.multiple = arrMultiple[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.recursive = arrRecursive[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.dkgh = arrDkgh[i];\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupMua.order = lstGroupMua.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupKM.order = lstGroupKM.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tmapPromotionMua.put(promotionProgramCode, lstGroupMua);\n\t\t\t\t\t\t\t\t\tmapPromotionKM.put(promotionProgramCode, lstGroupKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tGroupSP groupSPMua = groupMua.add2Level(2, arrSaleAmount[i], null, indexMua++, i, arrSaleAmount, null, null);\n\t\t\t\t\t\t\t\tif (groupSPMua == null) {\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tList<GroupMua> lstGroupMua = mapPromotionMua.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupSPMua = groupMua.add2Level(2, arrSaleAmount[i], null, indexMua++, i, arrSaleAmount, null, null);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tList<Long> lstIndex = mapMuaKM.get(groupSPMua.index);//lay danh sach cac index muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tList<GroupSP> lstLevelKM = groupKM.searchIndex(lstIndex);//lay danh sach cac muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tGroupSP groupSPKM = groupKM.add2Level(arrFreeAmount[i], indexKM++, i, arrFreeAmount, lstLevelKM);\n\t\t\t\t\t\t\t\tif (groupSPKM == null) {\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tList<GroupKM> lstGroupKM = mapPromotionKM.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tgroupSPKM = groupKM.add2Level(arrFreeAmount[i], indexKM++, i, arrFreeAmount, lstLevelKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tmapMuaKM.put(groupSPMua.index, groupSPKM.index);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (mapPromotionType.get(promotionProgramCode) == 9) {\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * mua 10000 dc km ... 10%\n\t\t\t\t\t\t */\n\t\t\t\t\t\tBigDecimal[] arrSaleAmount = mapArraySaleAmount.get(promotionProgramCode);\n\t\t\t\t\t\tFloat[] arrPercent = mapArrayDiscountPercent.get(promotionProgramCode);\n\t\t\t\t\t\tsortAmount(arrSaleAmount, null, null, null, null, null, arrPercent);\n\t\t\t\t\t\tfor (int i = 0; arrSaleAmount != null && i < arrSaleAmount.length; i++) {\n\t\t\t\t\t\t\tif (arrSaleAmount[i] != null && arrPercent[i] != null) {\n\t\t\t\t\t\t\t\tGroupMua groupMua;\n\t\t\t\t\t\t\t\tGroupKM groupKM;\n\t\t\t\t\t\t\t\tif (mapPromotionMua.get(promotionProgramCode) != null && mapPromotionKM.get(promotionProgramCode) != null) {\n\t\t\t\t\t\t\t\t\tgroupMua = mapPromotionMua.get(promotionProgramCode).get(mapPromotionMua.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t\tgroupKM = mapPromotionKM.get(promotionProgramCode).get(mapPromotionKM.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tListGroupMua lstGroupMua = new ListGroupMua();\n\t\t\t\t\t\t\t\t\tListGroupKM lstGroupKM = new ListGroupKM();\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tgroupMua.groupCode = \"N\" + (lstGroupMua.size() + 1);\n\t\t\t\t\t\t\t\t\t//groupMua.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupMua.groupName = arrPromoGroupName[i];\n\t\t\t\t\t\t\t\t\t/*groupMua.multiple = arrMultiple[i];\n\t\t\t\t\t\t\t\t\tgroupMua.recursive = arrRecursive[i];\n\t\t\t\t\t\t\t\t\tgroupMua.dkgh = arrDkgh[i];*/\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tgroupKM.groupCode = \"N\" + (lstGroupKM.size() + 1);\n\t\t\t\t\t\t\t\t\t//groupKM.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupKM.groupName = arrPromoGroupName[i];\n\t\t\t\t\t\t\t\t/*\tgroupKM.multiple = arrMultiple[i];\n\t\t\t\t\t\t\t\t\tgroupKM.recursive = arrRecursive[i];\n\t\t\t\t\t\t\t\t\tgroupKM.dkgh = arrDkgh[i];*/\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupMua.order = lstGroupMua.size() + 1;\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupKM.order = lstGroupKM.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tmapPromotionMua.put(promotionProgramCode, lstGroupMua);\n\t\t\t\t\t\t\t\t\tmapPromotionKM.put(promotionProgramCode, lstGroupKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tGroupSP groupSPMua = groupMua.add2Level(2, arrSaleAmount[i], null, indexMua++, i, arrSaleAmount, null, null);\n\t\t\t\t\t\t\t\tif (groupSPMua == null) {\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tList<GroupMua> lstGroupMua = mapPromotionMua.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupSPMua = groupMua.add2Level(2, arrSaleAmount[i], null, indexMua++, i, arrSaleAmount, null, null);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tList<Long> lstIndex = mapMuaKM.get(groupSPMua.index);//lay danh sach cac index muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tList<GroupSP> lstLevelKM = groupKM.searchIndex(lstIndex);//lay danh sach cac muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tGroupSP groupSPKM = groupKM.add2Level(arrPercent[i], indexKM++, i, arrPercent, lstLevelKM);\n\t\t\t\t\t\t\t\tif (groupSPKM == null) {\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tList<GroupKM> lstGroupKM = mapPromotionKM.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tgroupSPKM = groupKM.add2Level(arrPercent[i], indexKM++, i, arrPercent, lstLevelKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tmapMuaKM.put(groupSPMua.index, groupSPKM.index);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (mapPromotionType.get(promotionProgramCode) == 10) {\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * ZV24\n\t\t\t\t\t\t */\n\t\t\t\t\t\tBigDecimal[] arrSaleQuantity = mapArraySaleQuantity.get(promotionProgramCode);\n\t\t\t\t\t\tInteger[] arrProductUnit = mapArrayQuantityUnit.get(promotionProgramCode);\n\t\t\t\t\t\tString[] arrFreeProduct = mapArrayFreeProduct.get(promotionProgramCode);\n\t\t\t\t\t\tBigDecimal[] arrFreeQuantity = mapArrayFreeQuantity.get(promotionProgramCode);\n\t\t\t\t\t\tBoolean[] arrAndOr = mapArrayAndOr.get(promotionProgramCode);\n\t\t\t\t\t\tInteger[] arrFreeProductUnit = mapArrayFreeQuantityUnit.get(promotionProgramCode);\n\t\t\t\t\t\tsortQuantity(arrSaleQuantity, arrAndOr, arrFreeProduct, arrFreeProductUnit, arrFreeQuantity, null, null);\n\n\t\t\t\t\t\tfor (int i = 0; arrSaleQuantity != null && i < arrSaleQuantity.length; i++) {\n\t\t\t\t\t\t\tif (arrSaleQuantity[i] != null && !StringUtil.isNullOrEmpty(arrFreeProduct[i]) && arrFreeQuantity[i] != null) {\n\t\t\t\t\t\t\t\tGroupMua groupMua;\n\t\t\t\t\t\t\t\tGroupKM groupKM;\n\t\t\t\t\t\t\t\tunit = arrProductUnit[i];\n\t\t\t\t\t\t\t\tif (mapPromotionMua.get(promotionProgramCode) != null && mapPromotionKM.get(promotionProgramCode) != null) {\n\t\t\t\t\t\t\t\t\tgroupMua = mapPromotionMua.get(promotionProgramCode).get(mapPromotionMua.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t\tgroupKM = mapPromotionKM.get(promotionProgramCode).get(mapPromotionKM.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tListGroupMua lstGroupMua = new ListGroupMua();\n\t\t\t\t\t\t\t\t\tListGroupKM lstGroupKM = new ListGroupKM();\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tgroupMua.groupCode = \"N\" + (lstGroupMua.size() + 1);\n\t\t\t\t\t\t\t\t\t//groupMua.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupMua.groupName = arrPromoGroupName[i];\n\t\t\t\t\t\t\t\t\t/*groupMua.multiple = arrMultiple[i];\n\t\t\t\t\t\t\t\t\tgroupMua.recursive = arrRecursive[i];\n\t\t\t\t\t\t\t\t\tgroupMua.dkgh = arrDkgh[i];*/\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupMua.qttUnit = unit;\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tgroupKM.groupCode = \"N\" + (lstGroupKM.size() + 1);\n\t\t\t\t\t\t\t\t\t//groupKM.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupKM.groupName = arrPromoGroupName[i];\n\t\t\t\t\t\t/*\t\t\tgroupKM.multiple = arrMultiple[i];\n\t\t\t\t\t\t\t\t\tgroupKM.recursive = arrRecursive[i];\n\t\t\t\t\t\t\t\t\tgroupKM.dkgh = arrDkgh[i];*/\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupKM.qttUnit = arrFreeProductUnit[i];\n\t\t\t\t\t\t\t\t\tgroupMua.order = lstGroupMua.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupKM.order = lstGroupKM.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tmapPromotionMua.put(promotionProgramCode, lstGroupMua);\n\t\t\t\t\t\t\t\t\tmapPromotionKM.put(promotionProgramCode, lstGroupKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tGroupSP groupSPMua = groupMua.add2Level(1, arrSaleQuantity[i], arrProductUnit[i], indexMua++, i, arrSaleQuantity, arrFreeProduct, arrFreeQuantity);\n\t\t\t\t\t\t\t\tif (groupSPMua == null) {\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tList<GroupMua> lstGroupMua = mapPromotionMua.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupSPMua = groupMua.add2Level(1, arrSaleQuantity[i], null, indexMua++, i, arrSaleQuantity, arrFreeProduct, arrFreeQuantity);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tList<Long> lstIndex = mapMuaKM.get(groupSPMua.index);//lay danh sach cac index muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tList<GroupSP> lstLevelKM = groupKM.searchIndex(lstIndex);//lay danh sach cac muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tGroupSP groupSPKM = groupKM.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrFreeProduct[i], unit, arrFreeQuantity[i], arrAndOr[i], indexKM++, i, arrFreeProduct, arrFreeQuantity, lstLevelKM);\n\t\t\t\t\t\t\t\tif (groupSPKM == null) {\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tList<GroupKM> lstGroupKM = mapPromotionKM.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tgroupSPKM = groupKM.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrFreeProduct[i], unit, arrFreeQuantity[i], arrAndOr[i], indexKM++, i, arrFreeProduct, arrFreeQuantity, null);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tmapMuaKM.put(groupSPMua.index, groupSPKM.index);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (mapPromotionType.get(promotionProgramCode) == 11) {\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * ZV23\n\t\t\t\t\t\t */\n\t\t\t\t\t\tBigDecimal[] arrSaleQuantity = mapArraySaleQuantity.get(promotionProgramCode);\n\t\t\t\t\t\tInteger[] arrProductUnit = mapArrayQuantityUnit.get(promotionProgramCode);\n\t\t\t\t\t\tBigDecimal[] arrFreeAmount = mapArrayDiscountAmount.get(promotionProgramCode);\n\t\t\t\t\t\tsortQuantity(arrSaleQuantity, null, null, null, null, arrFreeAmount, null);\n\t\t\t\t\t\tfor (int i = 0; arrSaleQuantity != null && i < arrSaleQuantity.length; i++) {\n\t\t\t\t\t\t\tif (arrSaleQuantity[i] != null && arrFreeAmount[i] != null) {\n\t\t\t\t\t\t\t\tGroupMua groupMua;\n\t\t\t\t\t\t\t\tGroupKM groupKM;\n\t\t\t\t\t\t\t\tunit = arrProductUnit[i];\n\t\t\t\t\t\t\t\tif (mapPromotionMua.get(promotionProgramCode) != null && mapPromotionKM.get(promotionProgramCode) != null) {\n\t\t\t\t\t\t\t\t\tgroupMua = mapPromotionMua.get(promotionProgramCode).get(mapPromotionMua.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t\tgroupKM = mapPromotionKM.get(promotionProgramCode).get(mapPromotionKM.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tListGroupMua lstGroupMua = new ListGroupMua();\n\t\t\t\t\t\t\t\t\tListGroupKM lstGroupKM = new ListGroupKM();\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tgroupMua.groupCode = \"N\" + (lstGroupMua.size() + 1);\n\t\t\t\t\t\t\t\t\t//groupMua.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupMua.groupName = arrPromoGroupName[i];\n\t\t\t\t\t\t\t\t/*\tgroupMua.multiple = arrMultiple[i];\n\t\t\t\t\t\t\t\t\tgroupMua.recursive = arrRecursive[i];\n\t\t\t\t\t\t\t\t\tgroupMua.dkgh = arrDkgh[i];*/\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupMua.qttUnit = unit;\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tgroupKM.groupCode = \"N\" + (lstGroupKM.size() + 1);\n\t\t\t\t\t\t\t\t\t//groupKM.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupKM.groupName = arrPromoGroupName[i];\n\t\t\t\t\t\t\t/*\t\tgroupKM.multiple = arrMultiple[i];\n\t\t\t\t\t\t\t\t\tgroupKM.recursive = arrRecursive[i];\n\t\t\t\t\t\t\t\t\tgroupKM.dkgh = arrDkgh[i];*/\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupMua.order = lstGroupMua.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupKM.order = lstGroupKM.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tmapPromotionMua.put(promotionProgramCode, lstGroupMua);\n\t\t\t\t\t\t\t\t\tmapPromotionKM.put(promotionProgramCode, lstGroupKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tGroupSP groupSPMua = groupMua.add2Level(1, arrSaleQuantity[i], arrProductUnit[i], indexMua++, i, arrSaleQuantity, null, null);\n\t\t\t\t\t\t\t\tif (groupSPMua == null) {\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tList<GroupMua> lstGroupMua = mapPromotionMua.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupSPMua = groupMua.add2Level(1, arrSaleQuantity[i], arrProductUnit[i], indexMua++, i, arrSaleQuantity, null, null);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tList<Long> lstIndex = mapMuaKM.get(groupSPMua.index);//lay danh sach cac index muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tList<GroupSP> lstLevelKM = groupKM.searchIndex(lstIndex);//lay danh sach cac muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tGroupSP groupSPKM = groupKM.add2Level(arrFreeAmount[i], indexKM++, i, arrFreeAmount, lstLevelKM);\n\t\t\t\t\t\t\t\tif (groupSPKM == null) {\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tList<GroupKM> lstGroupKM = mapPromotionKM.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tgroupSPKM = groupKM.add2Level(arrFreeAmount[i], indexKM++, i, arrFreeAmount, lstLevelKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tmapMuaKM.put(groupSPMua.index, groupSPKM.index);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (mapPromotionType.get(promotionProgramCode) == 12) {\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * \n\t\t\t\t\t\t */\n\t\t\t\t\t\tBigDecimal[] arrSaleQuantity = mapArraySaleQuantity.get(promotionProgramCode);\n\t\t\t\t\t\tInteger[] arrProductUnit = mapArrayQuantityUnit.get(promotionProgramCode);\n\t\t\t\t\t\tFloat[] arrPercent = mapArrayDiscountPercent.get(promotionProgramCode);\n\t\t\t\t\t\t//Sort theo saleQuantity\n\t\t\t\t\t\tsortQuantity(arrSaleQuantity, null, null, null, null, null, arrPercent);\n\t\t\t\t\t\tfor (int i = 0; arrSaleQuantity != null && i < arrSaleQuantity.length; i++) {\n\t\t\t\t\t\t\tif (arrSaleQuantity[i] != null && arrPercent[i] != null) {\n\t\t\t\t\t\t\t\tGroupMua groupMua;\n\t\t\t\t\t\t\t\tGroupKM groupKM;\n\t\t\t\t\t\t\t\tunit = arrProductUnit[i];\n\t\t\t\t\t\t\t\tif (mapPromotionMua.get(promotionProgramCode) != null && mapPromotionKM.get(promotionProgramCode) != null) {\n\t\t\t\t\t\t\t\t\tgroupMua = mapPromotionMua.get(promotionProgramCode).get(mapPromotionMua.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t\tgroupKM = mapPromotionKM.get(promotionProgramCode).get(mapPromotionKM.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tListGroupMua lstGroupMua = new ListGroupMua();\n\t\t\t\t\t\t\t\t\tListGroupKM lstGroupKM = new ListGroupKM();\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tgroupMua.groupCode = \"N\" + (lstGroupMua.size() + 1);\n\t\t\t\t\t\t\t\t\t//groupMua.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupMua.groupName = arrPromoGroupName[i];\n\t\t\t\t\t\t\t\t\t/*groupMua.multiple = arrMultiple[i];\n\t\t\t\t\t\t\t\t\tgroupMua.recursive = arrRecursive[i];\n\t\t\t\t\t\t\t\t\tgroupMua.dkgh = arrDkgh[i];*/\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupMua.qttUnit = unit;\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\t//groupKM.groupCode = \"N\" + (lstGroupKM.size() + 1);\n\t\t\t\t\t\t\t\t\tgroupKM.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupKM.groupName = arrPromoGroupName[i];\n\t\t\t\t\t\t\t\t\t/*groupKM.multiple = arrMultiple[i];\n\t\t\t\t\t\t\t\t\tgroupKM.recursive = arrRecursive[i];\n\t\t\t\t\t\t\t\t\tgroupKM.dkgh = arrDkgh[i];*/\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupMua.order = lstGroupMua.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupKM.order = lstGroupKM.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tmapPromotionMua.put(promotionProgramCode, lstGroupMua);\n\t\t\t\t\t\t\t\t\tmapPromotionKM.put(promotionProgramCode, lstGroupKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tGroupSP groupSPMua = groupMua.add2Level(1, arrSaleQuantity[i], arrProductUnit[i], indexMua++, i, arrSaleQuantity, null, null);\n\t\t\t\t\t\t\t\tif (groupSPMua == null) {\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tList<GroupMua> lstGroupMua = mapPromotionMua.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupSPMua = groupMua.add2Level(1, arrSaleQuantity[i], arrProductUnit[i], indexMua++, i, arrSaleQuantity, null, null);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tList<Long> lstIndex = mapMuaKM.get(groupSPMua.index);//lay danh sach cac index muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tList<GroupSP> lstLevelKM = groupKM.searchIndex(lstIndex);//lay danh sach cac muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tGroupSP groupSPKM = groupKM.add2Level(arrPercent[i], indexKM++, i, arrPercent, lstLevelKM);\n\t\t\t\t\t\t\t\tif (groupSPKM == null) {\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tList<GroupKM> lstGroupKM = mapPromotionKM.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tgroupSPKM = groupKM.add2Level(arrPercent[i], indexKM++, i, arrPercent, lstLevelKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tmapMuaKM.put(groupSPMua.index, groupSPKM.index);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (!StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\terrRow.setContent14(messageError);\n\t\t\t\t\tlstDetailError.add(errRow);\n\t\t\t\t}\n\t\t\t\tfor (String promotionProgramCode : mapPromotionType.keySet()) {\n\t\t\t\t\tsplitGroup(mapPromotionMua.get(promotionProgramCode), mapPromotionKM.get(promotionProgramCode), mapMuaKM, promotionProgramCode, lstProductPromo);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "String[][] packData();", "private void setTableModel(List<SlotDto> slots){\n \n int size = 0;\n if(slots != null && !slots.isEmpty())\n size = slots.size();\n \n Object [][] slotsArr = new Object [25][9];\n\n // set days to table cells\n slotsArr[0][0] = \"Sunday\";\n slotsArr[5][0] = \"Monday\";\n slotsArr[10][0] = \"Tuesday\";\n slotsArr[15][0] = \"Wednesday\";\n slotsArr[20][0] = \"Thursday\";\n\n // loop for days' rows of schedule\n for(int r =0;r<5;r++){\n r=r*5;\n \n // loop for slots' columns of schedule \n for (int c=0 ; c<4 ; c++){ \n int cell=c*2;\n \n // loop to get slot of indexed day and time slot \n for( int i=0 ; i<size ; i++ ){\n if( (slots.get(i).getNum()== (c+1) && (slots.get(i).getDay().equals(slotsArr[r][0])) ) ){\n \n // set course name and code od slot \n slotsArr[r][cell+1] = slots.get(i).getCourse().getName();\n slotsArr[r][cell+2] = slots.get(i).getCourse().getCode();\n \n // set type of slot \n slotsArr[r+2][cell+1] = slots.get(i).getSlot_type();\n \n // set location of slot\n slotsArr[r+3][cell+1] = slots.get(i).getLocation().getName();\n \n \n // check slot type then set plt of slot\n if(slots.get(i).getSlot_type().equals(\"LECTURE\")){\n slotsArr[r+3][cell+2] = slots.get(i).getCourse().getPlt_lecture().getCode();\n System.out.println(\"plt\"+slots.get(i).getCourse().getPlt_lecture().getCode());\n }\n if(slots.get(i).getSlot_type().equals(\"SECTION\")){\n slotsArr[r+3][cell+2] = slots.get(i).getCourse().getPlt_lecture().getCode();\n System.out.println(\"plt\"+slots.get(i).getCourse().getPlt_lecture().getCode()); \n }\n \n // set student number of slot \n slotsArr[r+4][cell+1] = \"STUDENT NUMBER\";\n slotsArr[r+4][cell+2] = slots.get(i).getStudent_number();\n \n /*\n * set staff of slot then check if members > 1 then concatenate all members' names\n * and set to cell */\n String staff = slots.get(i).getStaff().get(0).getPosition() + \"/\" +\n slots.get(i).getStaff().get(0).getName() ;\n \n System.out.println(\"staff size\" + slots.get(i).getStaff().size()); \n System.out.println(\"user size\" + slots.get(i).getUser().size()); \n \n if(slots.get(i).getStaff().size()>1){\n for(int j=1 ; j<slots.get(i).getStaff().size() ; j++ ){\n staff=staff+\" # \" +slots.get(i).getStaff().get(j).getPosition()+\"/\"+\n slots.get(i).getStaff().get(j).getName() ; \n }\n }\n slotsArr[r+1][cell+1] = staff;\n \n /*\n * set user email of slot then check if users > 1 then concatenate all users' email \n * and set to cell */ \n String[] email = slots.get(i).getUser().get(0).getEmail().split(\"@\", 2);\n String user = email[0];\n if(slots.get(i).getUser().size()>1){\n for(int k=0 ; k<slots.get(i).getUser().size() ; k++){\n String[] _email = slots.get(i).getUser().get(k).getEmail().split(\"@\", 2);\n user = user +\" # \" + _email[0]; \n }\n }\n slotsArr[r+1][cell+2] = user;\n }\n }\n }\n }\n scheduleTable.setModel(new javax.swing.table.DefaultTableModel(slotsArr,\n new String [] {\n \"Time Slot\", \"First\",\" \", \"Second\", \" \" ,\"Third\",\" \",\"Fourth\",\" \"\n }\n ));\n\n }", "private void populateData() {\n\t\tList<TrafficRecord> l = TestHelper.getSampleData();\r\n\t\tfor(TrafficRecord tr: l){\r\n\t\t\tput(tr);\r\n\t\t}\r\n\t\t \r\n\t}", "private void generateData(int popsize, int ntrials) {\n data = new double[ntrials][100];\n \n for (int i = 0; i < ntrials; i++) {\n Population pop = new Population(popsize, rand);\n for (int j = 0; j < 100; j++) {\n data[i][j] = pop.totalA();\n pop.advance();\n }\n }\n }", "private void populateData(String seriesName) {\n competitorsList = new ArrayList<>();\n {\n Cursor cursor = DB.readSeriesResult(seriesName);\n int rankCount = 1;\n while (cursor.moveToNext()) {\n\n int rank = rankCount;\n String bClass = cursor.getString(0);\n int sailNo = Integer.parseInt(cursor.getString(1));\n String helmName = cursor.getString(2);\n String crewName = cursor.getString(3) == null ? \"\" :cursor.getString(3) ;\n int PY = Integer.parseInt(cursor.getString(4));\n int points = cursor.getString(5) == null ? -1 : Integer.parseInt(cursor.getString(5));\n rankCount++;\n FinalCompetitorData competitor = new FinalCompetitorData(rank, bClass, sailNo, helmName, crewName, PY, points);\n competitorsList.add(competitor);\n }\n records = new String[competitorsList.size()][columnHeaders.length];\n for (int i = 0; i < competitorsList.size(); i++) {\n FinalCompetitorData s = competitorsList.get(i);\n\n records[i][0] = String.valueOf(s.getRank());\n records[i][1] = s.getBoatClass();\n records[i][2] = String.valueOf(s.getSailNo());\n records[i][3] = s.getHelmName();\n records[i][4] = s.getCrewName().equals(\"\") ? \"--\" : s.getCrewName();\n records[i][5] = String.valueOf(s.getPY());\n records[i][6] = s.getPoints() == -1 ? \"--\" : String.valueOf(s.getPoints());\n }//for\n }\n }", "public void generateShipmentList(String fileName){\n Shipment sh;\n ShipmentValidation shValid = new ShipmentValidation();\n Template rf = new Template();\n rf.setTemplateFileName(fileName);\n rf.generateListExcel();\n ArrayList<Shipment> arrTemp = new ArrayList<>();\n\n for (Object item: rf.getArrList()\n ) {\n sh = new Shipment(((HashMap<Integer, String>) item).get(0),((HashMap<Integer, String>) item).get(1),((HashMap<Integer, String>) item).get(2),((HashMap<Integer, String>) item).get(3),((HashMap<Integer, String>) item).get(4)\n ,((HashMap<Integer, String>) item).get(5),((HashMap<Integer, String>) item).get(6),((HashMap<Integer, String>) item).get(7),((HashMap<Integer, String>) item).get(8),((HashMap<Integer, String>) item).get(9)\n ,((HashMap<Integer, String>) item).get(10),((HashMap<Integer, String>) item).get(11),((HashMap<Integer, String>) item).get(12),((HashMap<Integer, String>) item).get(13),((HashMap<Integer, String>) item).get(14)\n ,((HashMap<Integer, String>) item).get(15),((HashMap<Integer, String>) item).get(16),((HashMap<Integer, String>) item).get(17),((HashMap<Integer, String>) item).get(18),((HashMap<Integer, String>) item).get(19)\n ,((HashMap<Integer, String>) item).get(20),((HashMap<Integer, String>) item).get(21),((HashMap<Integer, String>) item).get(22),((HashMap<Integer, String>) item).get(23),((HashMap<Integer, String>) item).get(24)\n ,((HashMap<Integer, String>) item).get(25),((HashMap<Integer, String>) item).get(26),((HashMap<Integer, String>) item).get(27),((HashMap<Integer, String>) item).get(28),((HashMap<Integer, String>) item).get(29)\n ,((HashMap<Integer, String>) item).get(30),((HashMap<Integer, String>) item).get(31),((HashMap<Integer, String>) item).get(32),((HashMap<Integer, String>) item).get(33),((HashMap<Integer, String>) item).get(34)\n ,((HashMap<Integer, String>) item).get(35),((HashMap<Integer, String>) item).get(36),((HashMap<Integer, String>) item).get(37),((HashMap<Integer, String>) item).get(38),((HashMap<Integer, String>) item).get(39)\n ,((HashMap<Integer, String>) item).get(40),((HashMap<Integer, String>) item).get(41),((HashMap<Integer, String>) item).get(42),((HashMap<Integer, String>) item).get(43),((HashMap<Integer, String>) item).get(44)\n ,((HashMap<Integer, String>) item).get(45),((HashMap<Integer, String>) item).get(46),((HashMap<Integer, String>) item).get(47),((HashMap<Integer, String>) item).get(48),((HashMap<Integer, String>) item).get(49)\n ,((HashMap<Integer, String>) item).get(50),((HashMap<Integer, String>) item).get(51),((HashMap<Integer, String>) item).get(52),((HashMap<Integer, String>) item).get(53),((HashMap<Integer, String>) item).get(54)\n ,((HashMap<Integer, String>) item).get(55),((HashMap<Integer, String>) item).get(56),((HashMap<Integer, String>) item).get(57),((HashMap<Integer, String>) item).get(58),((HashMap<Integer, String>) item).get(59)\n ,((HashMap<Integer, String>) item).get(60),((HashMap<Integer, String>) item).get(61),((HashMap<Integer, String>) item).get(62),((HashMap<Integer, String>) item).get(63));\n sh.setErrorMsg(shValid.FindError(sh));\n\n arrTemp.add(sh);\n }\n\n this.setShipmentList(arrTemp);\n }", "@Override\n protected List<Map<String, Object>> getInputRecords() {\n Map[] simpleStructs = new Map[]{\n null, createStructInput(\"structString\", \"abc\", \"structLong\", 1000L, \"structDouble\", 5.99999),\n createStructInput(\"structString\", \"def\", \"structLong\", 2000L, \"structDouble\", 6.99999),\n createStructInput(\"structString\", \"ghi\", \"structLong\", 3000L, \"structDouble\", 7.99999)\n };\n\n // complex struct - contains a string and nested struct of int and long\n Map[] complexStructs = new Map[]{\n createStructInput(\"structString\", \"abc\", \"nestedStruct\",\n createStructInput(\"nestedStructInt\", 4, \"nestedStructLong\", 4000L)),\n createStructInput(\"structString\", \"def\", \"nestedStruct\",\n createStructInput(\"nestedStructInt\", 5, \"nestedStructLong\", 5000L)), null,\n createStructInput(\"structString\", \"ghi\", \"nestedStruct\",\n createStructInput(\"nestedStructInt\", 6, \"nestedStructLong\", 6000L))\n };\n\n // complex list element - each element contains a struct of int and double\n List[] complexLists = new List[]{\n Arrays.asList(createStructInput(\"complexListInt\", 10, \"complexListDouble\", 100.0),\n createStructInput(\"complexListInt\", 20, \"complexListDouble\", 200.0)), null,\n Collections.singletonList(createStructInput(\"complexListInt\", 30, \"complexListDouble\", 300.0)),\n Arrays.asList(createStructInput(\"complexListInt\", 40, \"complexListDouble\", 400.0),\n createStructInput(\"complexListInt\", 50, \"complexListDouble\", 500.0))\n };\n\n // single value integer\n Integer[] userID = new Integer[]{1, 2, null, 4};\n\n // single value string\n String[] firstName = new String[]{null, \"John\", \"Ringo\", \"George\"};\n\n // collection of integers\n List[] bids = new List[]{Arrays.asList(10, 20), null, Collections.singletonList(1), Arrays.asList(1, 2, 3)};\n\n // single value double\n double[] cost = new double[]{10000, 20000, 30000, 25000};\n\n // single value long\n long[] timestamp = new long[]{1570863600000L, 1571036400000L, 1571900400000L, 1574000000000L};\n\n // simple map with string keys and integer values\n Map[] simpleMaps = new Map[]{\n createStructInput(\"key1\", 10, \"key2\", 20), null, createStructInput(\"key3\", 30),\n createStructInput(\"key4\", 40, \"key5\", 50)\n };\n\n // complex map with struct values - struct contains double and string\n Map[] complexMap = new Map[]{\n createStructInput(\"key1\", createStructInput(\"doubleField\", 2.0, \"stringField\", \"abc\")), null,\n createStructInput(\"key1\", createStructInput(\"doubleField\", 3.0, \"stringField\", \"xyz\"), \"key2\",\n createStructInput(\"doubleField\", 4.0, \"stringField\", \"abc123\")),\n createStructInput(\"key1\", createStructInput(\"doubleField\", 3.0, \"stringField\", \"xyz\"), \"key2\",\n createStructInput(\"doubleField\", 4.0, \"stringField\", \"abc123\"), \"key3\",\n createStructInput(\"doubleField\", 4.0, \"stringField\", \"asdf\"))\n };\n\n List<Map<String, Object>> inputRecords = new ArrayList<>(4);\n for (int i = 0; i < 4; i++) {\n Map<String, Object> record = new HashMap<>();\n record.put(\"userID\", userID[i]);\n record.put(\"firstName\", firstName[i]);\n record.put(\"bids\", bids[i]);\n record.put(\"cost\", cost[i]);\n record.put(\"timestamp\", timestamp[i]);\n record.put(\"simpleStruct\", simpleStructs[i]);\n record.put(\"complexStruct\", complexStructs[i]);\n record.put(\"complexList\", complexLists[i]);\n record.put(\"simpleMap\", simpleMaps[i]);\n record.put(\"complexMap\", complexMap[i]);\n\n inputRecords.add(record);\n }\n return inputRecords;\n }", "@DataProvider(name = \"DataProviderFactory\")\n public Object[][] factoryDataProvider() throws IOException {\n LinkedHashSet<LinkedHashSet<String>> tableSet = new LinkedHashSet();\n File f = new File(\"C:\\\\Users\\\\Mahesh_Bhosale\\\\Documents\\\\Projects\\\\Assignment-Git\\\\src\\\\test\\\\java\\\\com\\\\cleartrip\\\\testsuite\\\\factory\\\\data.xlsx\");\n FileInputStream fis = new FileInputStream(f);\n XSSFWorkbook wb = new XSSFWorkbook(fis);\n XSSFSheet sh = wb.getSheetAt(0);\n int rowNum = sh.getPhysicalNumberOfRows();\n int cellNum = 0;\n for (int i = 0; i<rowNum; i++) {\n XSSFRow rw = sh.getRow(i);\n cellNum = rw.getLastCellNum();\n LinkedHashSet<String> rowSet = new LinkedHashSet();\n for (int j = 0; j<cellNum; j++) {\n XSSFCell cl = rw.getCell(j);\n// cell value is return in type Object. Convert it to the string.\n rowSet.add(String.valueOf(cl));\n }\n tableSet.add(rowSet);\n }\n Object[][] o = new Object[tableSet.size()][cellNum];\n Iterator<LinkedHashSet<String>> itr = tableSet.iterator();\n for (int i = 0; itr.hasNext(); i++) {\n LinkedHashSet<String> lhs = itr.next();\n// convert set to Array\n o[i] = lhs.toArray();\n }\n// logger.trace(tableSet);\n tableSet.clear();\n return o;\n }", "private void setDataModel() {\r\n tableData = new Object[resultSet.size()][classFields.length];\r\n // for every object from collection of objects\r\n for (int i = 0; i < resultSet.size(); i++) {\r\n // for every fields from class of object\r\n for (int j = 0; j < classFields.length; j++) {\r\n // for every method from class of object\r\n for (int x = 0; x < classMethods.length; x++) {\r\n // if class name start with 'get' and class method name\r\n // lenght is equal to field name + 3 (becouse of get word)\r\n if ((classMethods[x].getName().startsWith(\"get\"))\r\n && (classMethods[x].getName().length() == (classFields[j].getName().length() + 3))) {\r\n // if class name to lowercase ends with field name to\r\n // lower case\r\n if (classMethods[x].getName().toLowerCase().endsWith(classFields[j].getName().toLowerCase())) {\r\n // then try to invoke that getter\r\n try {\r\n tableData[i][j] = classMethods[x].invoke(resultSet.get(i));\r\n } catch (IllegalAccessException e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n } catch (IllegalArgumentException e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n } catch (InvocationTargetException e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n }\r\n }\r\n }\r\n }\r\n // This is alternative method for obtaining getter for field but\r\n // it will need public fields\r\n // try {\r\n // fieldValue = pola[j].get(resultSet.get(i));\r\n // data[i][j]=fieldValue;\r\n // } catch (IllegalArgumentException e) {\r\n // // TODO Auto-generated catch block\r\n // e.printStackTrace();\r\n // } catch (IllegalAccessException e) {\r\n // // TODO Auto-generated catch block\r\n // e.printStackTrace();\r\n // }\r\n }\r\n }\r\n }", "DataList createDataList();", "public static void initializeData() {\n\t\tList list;\n\t\tint i;\n\t\tList data = new ArrayList<>();\n\t\tString filename = \".\\\\data\\\\ticketType.dat\";\n\t\t\n\t\tMovieType movieType;\n\t\tCinemaClass cinemaClass;\n\t\tMovieGoerGroup[] movieGoerGroupL;\n\t\tString[] dayOfWeekL;\n\t\tString[] isPublicHolidayL;\n\t\tdouble price;\n\t\tTicketType ticketType, temp;\n\t\t\n\t\t//Type 1\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 5;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 2\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 7;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 3\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.ADULT};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 9;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 4: Sat, Sun \n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 13;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 5: public holiday \n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\"}; //public holiday\n\t\tprice = 13;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 6: Atmos cinemaType\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.ATMOS;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\", \"false\"}; \n\t\tprice = 14;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 7: Platinum cinemaType\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.PLATINUM;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\", \"false\"}; \n\t\tprice = 28;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//3D movie: price + 2\n\t\tfor(i = 0 ; i < 7 ; i++) {\n\t\t\ttemp = (TicketType) data.get(i);\n\t\t\tticketType = new TicketType(MovieType._3D, temp.getCinemaClass(), temp.getMovieGoerGroupL(),\n\t\t\t\t\t\t\t\t\t\ttemp.getDayOfWeekL(), temp.getIsPublicHolidayL(), temp.getPrice() + 2);\n\t\t\tdata.add(ticketType);\n\t\t}\n\t\t\n\t\t//Blockbuster movie: price + 1\n\t\tfor(i = 0 ; i < 7 ; i++) {\n\t\t\ttemp = (TicketType) data.get(i);\n\t\t\tticketType = new TicketType(MovieType.BLOCKBUSTER, temp.getCinemaClass(), temp.getMovieGoerGroupL(),\n\t\t\t\t\t\t\t\t\t\ttemp.getDayOfWeekL(), temp.getIsPublicHolidayL(), temp.getPrice() + 2);\n\t\t\tdata.add(ticketType);\n\t\t}\n\t\t\n\t\tSerializeDB.writeSerializedObject(filename, data); //Write data\n\t}", "Rows createRows();", "private MyTable generateTable()\n\t{\n\t\t//this creates the column headers for the table\n\t\tString[] titles = new String[] {\"Name\"};\n\t\t//fields will store all of the entries in the database for the GUI\n\t\tArrayList<String[]> fields = new ArrayList<String[]>();\n\t\tfor (food foodStuff: items) //for each element in items do the following\n\t\t{\n\t\t\t//creates a single row of the table\n\t\t\tString[] currentRow = new String[1]; //creates an array for this row\n\t\t\tcurrentRow[1] = foodStuff.getName(); //sets this row's name\n\t\t\tfields.add(currentRow); //adds this row to the fields ArrayList\n\t\t}\n\t\t//builds a table with titles and a downgraded fields array\n\t\tMyTable builtTable = new MyTable(fields.toArray(new String[0][1]), titles);\n\t\treturn builtTable; // return\n\t}", "public ArrayList<TheDataModel> getDataTabulated(ArrayList<String[]> records){\n\t\t\n\t\t\tArrayList<TheDataModel> tabulatedData=new ArrayList<TheDataModel>();\n\t\t\tString[] firstLine=records.get(0);\n\t\t\tint noOfRows=Integer.parseInt(firstLine[0]);\n\t\t\tint noOfCols=Integer.parseInt(firstLine[1]);\n\t\t\n\t\t\tfor(int i=1;i<(noOfRows+1);i++){\n\t\t\t\tString[] row=records.get(i);\n\t\t\t\tfor(int j=0;j<noOfCols;j++){\n\t\t\t\t\n\t\t\t\t\ttabulatedData.add(new TheDataModel(j, i-1, row[j]));\n\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\n\t\treturn tabulatedData;\n\t\t\n\t}", "public abstract List<V> makeRowData();", "@Parameterized.Parameters\n public static Collection<Object[]> data() {\n Object[][] data = new Object[][] {\n { \"Jack\" , \"Temperature\"},\n { \"Jack\" , \"AQI\"},\n { \"Jack\" , \"Location\"},\n { \"David\", \"Temperature\"},\n { \"David\", \"AQI\"},\n { \"David\", \"Location\"},\n };\n return Arrays.asList(data);\n }", "public Breakdown generateReportByDemo(Date startDate, Date endDate, String[] demoArr) {\n\n //INSTANTIATING VARIABLES\n UserDAO userDAO = new UserDAO();\n AppUsageDAO auDAO = new AppUsageDAO();\n ArrayList<User> userList = auDAO.retrieveUsers(startDate, endDate);\n\n double total = userList.size();\n\n Breakdown result = new Breakdown();\n\n ArrayList<String> schools = Utility.retrieveSchools();\n ArrayList<String> years = Utility.getYears();\n ArrayList<String> genders = Utility.getGenders();\n ArrayList<String> ccas = userDAO.getCCAs();\n Collections.sort(ccas);\n\n ArrayList<String> demo1List = new ArrayList<String>();\n ArrayList<String> demo2List = new ArrayList<String>();\n ArrayList<String> demo3List = new ArrayList<String>();\n ArrayList<String> demo4List = new ArrayList<String>();\n\n String demo1Type = \"\";\n String demo2Type = \"\";\n String demo3Type = \"\";\n String demo4Type = \"\";\n\n int demoCount = demoArr.length;\n if (demoCount > 0) {\n switch (demoArr[0]) {\n case \"gender\":\n demo1List = genders;\n demo1Type = \"gender\";\n break;\n case \"school\":\n demo1List = schools;\n demo1Type = \"school\";\n break;\n case \"year\":\n demo1List = years;\n demo1Type = \"year\";\n break;\n case \"cca\":\n demo1List = ccas;\n demo1Type = \"cca\";\n break;\n }\n }\n if (demoCount > 1) {\n switch (demoArr[1]) {\n case \"gender\":\n demo2List = genders;\n demo2Type = \"gender\";\n break;\n case \"school\":\n demo2List = schools;\n demo2Type = \"school\";\n break;\n case \"year\":\n demo2List = years;\n demo2Type = \"year\";\n break;\n case \"cca\":\n demo2List = ccas;\n demo2Type = \"cca\";\n break;\n }\n }\n if (demoCount > 2) {\n switch (demoArr[2]) {\n case \"gender\":\n demo3List = genders;\n demo3Type = \"gender\";\n break;\n case \"school\":\n demo3List = schools;\n demo3Type = \"school\";\n break;\n case \"year\":\n demo3List = years;\n demo3Type = \"year\";\n break;\n case \"cca\":\n demo3List = ccas;\n demo3Type = \"cca\";\n break;\n }\n }\n if (demoCount > 3) {\n switch (demoArr[3]) {\n case \"gender\":\n demo4List = genders;\n demo4Type = \"gender\";\n break;\n case \"school\":\n demo4List = schools;\n demo4Type = \"school\";\n break;\n case \"year\":\n demo4List = years;\n demo4Type = \"year\";\n break;\n case \"cca\":\n demo4List = ccas;\n demo4Type = \"cca\";\n break;\n }\n }\n\n //For each demo1\n for (String demo1 : demo1List) {\n HashMap<String, Breakdown> demo1Map = new HashMap<String, Breakdown>();\n ArrayList<User> demo1UserList = filterDemo(demo1, demo1Type, userList);\n demo1Map.put(demo1Type, new Breakdown(demo1));\n demo1Map.put(\"count\", new Breakdown(\"\" + demo1UserList.size()));\n Breakdown demo1bd = new Breakdown();\n demo1Map.put(\"breakdown\", demo1bd);\n\n result.addInList(demo1Map);\n\n //For each demo2\n for (String demo2 : demo2List) {\n HashMap<String, Breakdown> demo2Map = new HashMap<String, Breakdown>();\n ArrayList<User> demo2UserList = filterDemo(demo2, demo2Type, demo1UserList);\n demo2Map.put(demo2Type, new Breakdown(demo2));\n demo2Map.put(\"count\", new Breakdown(\"\" + demo2UserList.size()));\n Breakdown demo2bd = new Breakdown();\n demo2Map.put(\"breakdown\", demo2bd);\n\n demo1bd.addInList(demo2Map);\n\n //For each demo3\n for (String demo3 : demo3List) {\n HashMap<String, Breakdown> demo3Map = new HashMap<String, Breakdown>();\n ArrayList<User> demo3UserList = filterDemo(demo3, demo3Type, demo2UserList);\n demo3Map.put(demo3Type, new Breakdown(demo3));\n demo3Map.put(\"count\", new Breakdown(\"\" + demo3UserList.size()));\n Breakdown demo3bd = new Breakdown();\n demo3Map.put(\"breakdown\", demo3bd);\n\n demo2bd.addInList(demo3Map);\n\n//\t\t\t\t\t\n //For each demo4\n for (String demo4 : demo4List) {\n HashMap<String, Breakdown> demo4Map = new HashMap<String, Breakdown>();\n ArrayList<User> demo4UserList = filterDemo(demo4, demo4Type, demo3UserList);\n demo4Map.put(demo4Type, new Breakdown(demo4));\n demo4Map.put(\"count\", new Breakdown(\"\" + demo4UserList.size()));\n\n demo3bd.addInList(demo4Map);\n\n if (demoCount == 4) {\n Breakdown demo4report = generateReport(startDate, endDate, demo4UserList, total);\n demo4Map.put(\"breakdown\", demo4report);\n }\n }\n\n if (demoCount == 3) {\n //generate report if last demo\n Breakdown demo3report = generateReport(startDate, endDate, demo3UserList, total);\n demo3Map.put(\"breakdown\", demo3report);\n }\n\n }\n\n if (demoCount == 2) {\n //generate report if last demo\n Breakdown demo2report = generateReport(startDate, endDate, demo2UserList, total);\n demo2Map.put(\"breakdown\", demo2report);\n\n }\n }\n\n if (demoCount == 1) {\n //generate report if last demo\n Breakdown demo1report = generateReport(startDate, endDate, demo1UserList, total);\n demo1Map.put(\"breakdown\", demo1report);\n }\n }\n\n //CALCULATE PERCENTAGE\n if (demoCount > 0) {\n Breakdown bd1 = result;\n ArrayList<HashMap<String, Breakdown>> list1 = bd1.getBreakdown();\n\n generatePercentage(bd1, total);\n\n }\n\n if (demoCount > 1) {\n ArrayList<HashMap<String, Breakdown>> secondTier = result.getBreakdown();\n for (HashMap<String, Breakdown> secondMap : secondTier) {\n generatePercentage(secondMap.get(\"breakdown\"), total);\n }\n\n }\n if (demoCount > 2) {\n ArrayList<HashMap<String, Breakdown>> secondTier = result.getBreakdown();\n for (HashMap<String, Breakdown> secondMap : secondTier) {\n ArrayList<HashMap<String, Breakdown>> thirdTier = secondMap.get(\"breakdown\").getBreakdown();\n for (HashMap<String, Breakdown> thirdMap : thirdTier) {\n generatePercentage(thirdMap.get(\"breakdown\"), total);\n\n }\n\n }\n }\n if (demoCount > 3) {\n ArrayList<HashMap<String, Breakdown>> secondTier = result.getBreakdown();\n\n for (HashMap<String, Breakdown> secondMap : secondTier) {\n ArrayList<HashMap<String, Breakdown>> thirdTier = secondMap.get(\"breakdown\").getBreakdown();\n for (HashMap<String, Breakdown> thirdMap : thirdTier) {\n ArrayList<HashMap<String, Breakdown>> fourthTier = thirdMap.get(\"breakdown\").getBreakdown();\n for (HashMap<String, Breakdown> fourthMap : fourthTier) {\n generatePercentage(fourthMap.get(\"breakdown\"), total);\n }\n }\n\n }\n }\n\n return result;\n }", "UnpivotTable createUnpivotTable();", "public static byte[] writeExcel(List<Object[]> objectList) throws IOException {\n\n String sheetName = \"Sheet1\";//name of sheet\n\n XSSFWorkbook wb = new XSSFWorkbook();\n XSSFSheet sheet = wb.createSheet(sheetName);\n Map<String, CellStyle> styles = createStyles(wb);\n int contRow = 0;\n for (Object[] obj : objectList) {\n XSSFRow row = sheet.createRow(contRow);\n int contCell = 0;\n\n for (Object s : obj) {\n\n XSSFCell cell = row.createCell(contCell);\n\n /*if (contCell == 0 && contRow > 0) {\n nomAct = s.toString();\n }*/\n \n /*if (contCell == 1 && contRow > 0) {\n descripAct = s.toString();\n }*/\n\n if (contRow == 0) {\n cell.setCellValue(s.toString());\n cell.setCellStyle(styles.get(\"header\"));\n } else {\n /*if (nomAct.equals(nomAnt) && contCell == 0) {\n cell.setCellValue(\"\");\n cell.setCellStyle(styles.get(\"cell_normal_rol\"));\n }\n if (descripAct.equals(descripAnt) && contCell == 1) {\n cell.setCellValue(\"\");\n cell.setCellStyle(styles.get(\"cell_normal_rol\"));\n } else {*/\n cell.setCellValue(s.toString());\n /* if (contCell == 0 || contCell==1) {\n cell.setCellStyle(styles.get(\"cell_normal_rol\"));\n nomAnt = nomAct;\n descripAnt = descripAct;\n } else {\n cell.setCellStyle(styles.get(\"cell_normal\"));\n }*/\n //}\n }\n\n contCell++;\n }\n contRow++;\n }\n\n/*\n sheet.addMergedRegion(new CellRangeAddress(1, contRow - 1, 0, 0));\n sheet.addMergedRegion(new CellRangeAddress(1, contRow - 1, 1, 1));*/\n\n\n /*//iterating r number of rows\n for (int r = 0; r < 5; r++) {\n XSSFRow row = sheet.createRow(r);\n\n //iterating c number of columns\n for (int c = 0; c < 5; c++) {\n for (int c = 0; c < 5; c++) {\n XSSFCell cell = row.createCell(c);\n\n cell.setCellValue(\"Cell \" + r + \" \" + c);\n }\n }*/\n\n // FileOutputStream fileOut = new FileOutputStream(excelFileName);\n ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n wb.write(byteArrayOutputStream);\n return byteArrayOutputStream.toByteArray();\n\n //write this workbook to an Outputstream.\n/* wb.write(fileOut);\n fileOut.flush();\n fileOut.close();*/\n }", "@Override\r\n\tpublic void initializeBoard() {\r\n\t\t\r\n\t\tfor(int i = 0; i < FieldData.FIELDNAME_DATA.length; i++){\r\n\t\t\tswitch(FieldData.FIELDTYPE_DATA[i]){\r\n\t\t\tcase REFUGE:\r\n\t\t\t\tfields[i] = new Refuge.Builder().build();\r\n\t\t\t\tfields[i].setDescription(reader.getElement(\"get\", 0) + \" \" + FieldData.FIELDRENT1_DATA[i]);\r\n\t\t\t\tbreak;\r\n\t\t\tcase TAX:\r\n\t\t\t\tfields[i] = new Tax.Builder().build();\r\n\t\t\t\tfields[i].setDescription(reader.getElement(\"pay\", 0) + \" \" + FieldData.FIELDRENT1_DATA[i]);\r\n\t\t\t\tbreak;\r\n\t\t\tcase TERRITORY:\r\n\t\t\t\tfields[i] = new Street.Builder()\r\n\t\t\t\t.setBgColor(FieldData.fieldColor[i])\r\n\t\t\t\t.build();\r\n\t\t\t\tfields[i].setDescription(reader.getElement(\"ownable\", 0) + \" \" + FieldData.FIELDBUYPRICE_DATA[i] +\r\n\t\t\t\t\t\t\", \" + reader.getElement(\"territory\", 0) + \" \" +FieldData.FIELDRENT1_DATA[i]);\r\n\t\t\t\tbreak;\r\n\t\t\tcase LABOR_CAMP:\r\n\t\t\t\tfields[i] = new Brewery.Builder().build();\r\n\t\t\t\tfields[i].setDescription(reader.getElement(\"ownable\", 0) + \" \" + FieldData.FIELDBUYPRICE_DATA[i] +\r\n\t\t\t\t\t\t\", \" + reader.getElement(\"laborCamp\", 0));\r\n\t\t\t\tbreak;\r\n\t\t\tcase FLEET:\r\n\t\t\t\tfields[i] = new Shipping.Builder().build();\r\n\t\t\t\tfields[i].setDescription(reader.getElement(\"ownable\", 0) + \" \" + FieldData.FIELDBUYPRICE_DATA[i] +\r\n\t\t\t\t\t\t\", \" + reader.getElement(\"fleet\", 0));\r\n\t\t\t\tbreak;\r\n\t\t\tcase PRISON:\r\n\t\t\t\tfields[i] = new Jail.Builder().build();\r\n\t\t\t\tfields[i].setDescription(reader.getElement(\"fine\", 0)+ \" \" + \"Kr. 1000\");\r\n\t\t\t\tbreak;\r\n\t\t\tcase START:\r\n\t\t\t\tfields[i] = new Start.Builder().build();\r\n\t\t\t\tfields[i].setDescription(reader.getElement(\"bonus\", 0) + \" \" + \"Kr. 4000\");\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tcase LUCKYCARD:\r\n\t\t\t\tfields[i] = new Chance.Builder().build();\r\n\t\t\t\tfields[i].setDescription(reader.getElement(\"lucky\", 0));\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tfields[i].setTitle(String.valueOf(i+1));\r\n\t\t\tfields[i].setSubText(reader.getElement(FieldData.FIELDNAME_DATA[i], 0));\r\n\t\t}\r\n\t\tGUI.create(fields);\r\n\t}", "@Override\n public Object[] createRow() {\n ObjectDescriptor.TypeObject newTypeObjectInstance = ObjectDescriptor.newInstance();\n List<PropertyDescriptor> descriptors = typeObjectDescriptor.getObjectProperties();\n InitValuesFiller.fill(newTypeObjectInstance, descriptors);\n\n return new Object[]{ StringUtils.EMPTY, newTypeObjectInstance };\n }", "public void generateChart(){\n String[][] contents = retrieveFields();\n\n// String msg = \"test - \";\n// printCells(contents);\n\n String[] houseDisplay = new String[12];\n houseDisplay = new String[]{\"6\",\"4\",\"2\",\"1\",\"4\",\"6\",\"3\",\"5\",\"7/8\",\"\",\"5\",\"3\"};\n display(houseDisplay);\n }", "ArrayList<DataObject> dataObjects(Activity activity, ArrayList<Spieler> spieler, ArrayList<ArrayList<Statistikwerte>> statistikwerte){\n\n ArrayList<DataObject> dataObjects = new ArrayList<DataObject>();\n\n for (int i=0; i<spieler.size(); i++){\n Log.d(\"ANZAHL\", String.valueOf(statistikwerte.get(i).size()));\n DataObject dataObject = new DataObject(activity, spieler.get(i), statistikwerte.get(i));\n\n if(i == spieler.size()-1 && spieler.size() > 2){\n View v = dataObject.getDataviews().get(0);\n v.setPadding(v.getPaddingLeft(), v.getPaddingTop(), v.getPaddingRight(), v.getPaddingBottom()+30);\n }\n\n dataObjects.add(dataObject);\n }\n\n\n return dataObjects;\n\n }", "private void populateData() {\r\n\t\tfor(int i = 0; i < this.incomeRanges.length; i++) {\r\n\t\t\tthis.addData(new Data(incomeRanges[i], 0), true);\r\n\t\t}\t// end for\r\n\t}", "@DataProvider(name = \"zimPageShowNotesPairs\")\n\tpublic\n\tObject[][] createData1()\n\t{\n\t\treturn new Object[][]\n\t\t\t{\n\t\t\t\t{\":UbuntuPodcast:s10:e05\", \"http://ubuntupodcast.org/2017/04/06/s10e05-supreme-luxuriant-gun/\"},\n\t\t\t};\n\t}", "@Parameters\n public static Iterable<Object[]> getData() {\n List<Object[]> obj = new ArrayList<>();\n obj.add(new Object[] {3, 12});\n obj.add(new Object[] {2, 8});\n obj.add(new Object[] {1, 4});\n \n return obj;\n }", "@Parameters\n\tpublic static Collection<Object[]> data() {\n\t\tObject[][] data = new Object[][] { \n\t\t\t{null, null, null, null, null},\n\t\t\t{null, \"\", null, null, null},\n\t\t\t{null, troppoLunga, null, null, null},\n\t\t};\n\t\treturn Arrays.asList(data);\n\t}", "@Parameters\n // Método public static que devuelve un elemento iterable de array de objetos\n public static Iterable<Object[]> getData() {\n return Arrays.asList(new Object[][] {\n // Indicamos todas las pruebas {a, b, esperado}\n { 3, 1, 4 }, { 2, 3, 5 }, { 3, 3, 6 } });\n }", "private static void createCells(Dataset dataset, Set<List<Integer>> ntuples) {\r\n\t\tMap<List<Integer>, Cell> cells = new LinkedHashMap<>();\r\n\t\tfor (List<Integer> ntuple : ntuples) {\r\n\t\t\tList<String> labels = new ArrayList<>();\r\n\t\t\tList<String> indexes = new ArrayList<>();\r\n\t\t\tfor (int dimensionIndex = 0; dimensionIndex < ntuple.size(); dimensionIndex++) {\r\n\t\t\t\tString dimensionId = dataset.getId().get(dimensionIndex);\r\n\t\t\t\tDimension dimension = dataset.getDimension().get(dimensionId);\r\n\t\t\t\tCategory category = dimension.getCategory();\r\n\t\t\t\tint categoryIndex = ntuple.get(dimensionIndex);\r\n\r\n\t\t\t\tif (null != category.getLabel()) {\r\n\t\t\t\t\tString label = (String) category.getLabel().values().toArray()[categoryIndex]; \r\n\t\t\t\t\tlabels.add(label);\r\n\t\t\t\t}\r\n\t\t\t\tif (null != category.getIndex()) {\r\n\t\t\t\t\tif (category.getIndex() instanceof List) {\r\n\t\t\t\t\t\tString index = (String) ((List<?>) category.getIndex()).get(categoryIndex);\r\n\t\t\t\t\t\tindexes.add(index);\r\n\t\t\t\t\t} else if (category.getIndex() instanceof Map) {\r\n\t\t\t\t\t\tString index = (String) ((Map<?, ?>) category.getIndex()).keySet().toArray()[categoryIndex];\r\n\t\t\t\t\t\tindexes.add(index);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t// TODO exception\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tObject value = dataset.getValueByNtuple(ntuple);\r\n\t\t\tcells.put(ntuple, new Cell(value, labels, indexes));\r\n\t\t}\r\n\t\tdataset.setCells(cells);\r\n\t\tdataset.displayCells();\r\n\r\n\t}", "public TesttabRecord(java.lang.Integer id, java.lang.Object[] dataarr) {\n\t\tsuper(org.jooq.h2.generated.tables.Testtab.TESTTAB);\n\n\t\tsetValue(0, id);\n\t\tsetValue(1, dataarr);\n\t}", "public void createListData()\n {\n List<SinhVien> listSinhvien=new ArrayList<>();\n for(int i=0;i<10;i++){\n SinhVien sv=new SinhVien(i+\"\",\"123\",\"0123\",i+1.0f);\n listSinhvien.add(sv);\n }\n PresenterImplDangXuat.onLoadSucess(listSinhvien);\n }", "@Override\n public synchronized void buildIndex(){\n for(SlotData data : slotDataList){\n data.prepareReport();\n }\n }", "protected abstract D createData();", "private void initDataset() {\r\n CollGestDBHelper collGestDBHelper = new CollGestDBHelper(activityContext);\r\n List<CollGestItem> listAllItems = collGestDBHelper.getAllGestItem();\r\n\r\n mDataset = new String[listAllItems.size()][7];\r\n System.out.println(\"+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +++++++++++++++++++++++++++++++++++++++++++++++++++++++++\");\r\n System.out.println(listAllItems.size());\r\n System.out.println(listAllItems.toString());\r\n System.out.println(\"+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +++++++++++++++++++++++++++++++++++++++++++++++++++++++++\");\r\n for (int i = 0; i < listAllItems.size(); i++) {\r\n mDataset[i][0] = listAllItems.get(i).getItemName();\r\n mDataset[i][1] = Integer.toString(listAllItems.get(i).getItemMinJoueurs());\r\n mDataset[i][2] = Integer.toString(listAllItems.get(i).getItemMaxJoueurs());\r\n mDataset[i][3] = Integer.toString(listAllItems.get(i).getItemDuration());\r\n mDataset[i][4] = listAllItems.get(i).getItemTypes();\r\n mDataset[i][5] = listAllItems.get(i).getItemCheckedOut();\r\n mDataset[i][6] = listAllItems.get(i).getItemLastPlayed();\r\n }\r\n System.out.println(mDataset);\r\n }", "public Test3()\n {\n for(int i=0; i< horas.length;i++){\n String [] d = horas[i].split(\":\");\n v[i][0] = new CarroGrande(\"URC781\"+i, \"60458723\", Integer.parseInt(d[0]), Integer.parseInt(d[1]), Integer.parseInt(d[2]));\n v[i][1] = new CarroPequeno(\"URC782\"+i, \"60458723\", Integer.parseInt(d[0]), Integer.parseInt(d[1]), Integer.parseInt(d[2]));\n v[i][2] = new Moto(\"URC783\"+i, \"60458723\", Integer.parseInt(d[0]), Integer.parseInt(d[1]), Integer.parseInt(d[2]));\n v[i][3] = new Bicicleta(\"URC784\"+i, \"60458723\", Integer.parseInt(d[0]), Integer.parseInt(d[1]), Integer.parseInt(d[2]));\n }\n }", "private static DataTable createDataTable() throws Exception {\n DataTable t = new DataTable(\"Items\");\r\n\r\n // Add two columns\r\n DataColumn c;\r\n\r\n // First column\r\n c = t.getColumns().Add(\"id\", TClrType.getType(\"System.Int32\"));\r\n c.setAutoIncrement(true);\r\n\r\n // Second column\r\n t.getColumns().Add(\"item\", TClrType.getType(\"System.String\"));\r\n\r\n // Set primary key\r\n t.setPrimaryKey(new DataColumnArray(new DataColumn[]{t.getColumns().getItem(0)}));\r\n\r\n // Add twelve rows\r\n for (int i = 0; i < 10; i++) {\r\n DataRow row = t.NewRow();\r\n row.setItem(0, i);\r\n row.setItem(1, String.format(\"%s\", i));\r\n t.getRows().Add(row);\r\n }\r\n DataRow row = t.NewRow();\r\n row.setItem(0, 11);\r\n row.setItem(1, \"abc\");\r\n t.getRows().Add(row);\r\n\r\n row = t.NewRow();\r\n row.setItem(0, 15);\r\n row.setItem(1, \"ABC\");\r\n t.getRows().Add(row);\r\n\r\n return t;\r\n }", "Pivots createPivots();", "public void prepareObject(PbReturnObject retObj) {\n try {\r\n\r\n retObj.colCount = retObj.getColumnCount();\r\n\r\n retObj.grandTotals = new BigDecimal[colCount];\r\n retObj.crosstabmapkeys = new BigDecimal[colCount];\r\n retObj.avgTotals = new BigDecimal[colCount];\r\n retObj.max = new BigDecimal[colCount];\r\n retObj.min = new BigDecimal[colCount];\r\n\r\n retObj.columnOverAllMaximums = new TreeMap();\r\n retObj.columnOverAllMinimums = new TreeMap();\r\n retObj.columnAverages = new TreeMap();\r\n retObj.columnGrandTotals = new TreeMap();\r\n retObj.columnGrandTotalscross = new TreeMap();\r\n retObj.rowGrandTotals = new TreeMap();\r\n\r\n for (int i = 0; i < retObj.colCount; i++) {\r\n\r\n// grandTotals[i] = new BigDecimal(\"0\");\r\n// avgTotals[i] = new BigDecimal(\"0\");\r\n// max[i] = new BigDecimal(\"0\");\r\n// min[i] = new BigDecimal(\"0\");\r\n retObj.grandTotals[i] = BigDecimal.ZERO;\r\n retObj.crosstabmapkeys[i] = BigDecimal.ZERO;\r\n retObj.avgTotals[i] = BigDecimal.ZERO;\r\n retObj.max[i] = BigDecimal.ZERO;\r\n retObj.min[i] = BigDecimal.ZERO;\r\n }\r\n\r\n for (int cnt = 0; cnt < retObj.getRowCount(); cnt++) {\r\n\r\n BigDecimal RowGrandTotal = BigDecimal.ZERO;\r\n for (int i = 0; i < retObj.getColumnCount(); i++) {\r\n {\r\n Object Obj = retObj.getFieldValue(cnt, i);\r\n int zerocountct = 0;\r\n\r\n if (retObj.processGT) {\r\n \r\n if (retObj.columnTypes[i] != null) {\r\n if (retObj.columnTypesInt[i] == Types.BIGINT\r\n || retObj.columnTypesInt[i] == Types.DECIMAL || retObj.columnTypesInt[i] == Types.DOUBLE\r\n || retObj.columnTypesInt[i] == Types.FLOAT || retObj.columnTypesInt[i] == Types.INTEGER\r\n || retObj.columnTypesInt[i] == Types.NUMERIC || retObj.columnTypesInt[i] == Types.REAL\r\n || retObj.columnTypesInt[i] == Types.SMALLINT || retObj.columnTypesInt[i] == Types.TINYINT\r\n || retObj.columnTypes[i].equalsIgnoreCase(\"NUMBER\")) {\r\n //code to build max,min,acg and grand total of entire record set\r\n BigDecimal bdecimal = null;\r\n BigDecimal bdcross = null;\r\n if (Obj != null) {\r\n bdecimal = retObj.getFieldValueBigDecimal(cnt, i);\r\n int zerocountvaluect = 0;\r\n BigDecimal bd = new BigDecimal(\"0\");\r\n if (bdecimal == null || bdecimal.compareTo(bd) == 0) {\r\n zerocountct = zerocountct + 1;\r\n bdcross = new BigDecimal(zerocountct);\r\n\r\n }\r\n } else {\r\n bdecimal = BigDecimal.ZERO;\r\n }\r\n if (bdcross == null) {\r\n bdcross = new BigDecimal(\"0\");\r\n }\r\n if (cnt == 0) {\r\n retObj.grandTotals[i] = bdecimal;\r\n retObj.max[i] = bdecimal;\r\n retObj.min[i] = bdecimal;\r\n } else {\r\n if (retObj.grandTotals[i] == null) {\r\n retObj.grandTotals[i] = BigDecimal.ZERO;\r\n retObj.crosstabmapkeys[i] = BigDecimal.ZERO;\r\n }\r\n // \r\n if (bdecimal != null) {\r\n } else {\r\n bdecimal = BigDecimal.ZERO;\r\n }\r\n retObj.grandTotals[i] = retObj.grandTotals[i].add(bdecimal);\r\n retObj.crosstabmapkeys[i] = retObj.crosstabmapkeys[i].add(bdcross);\r\n if (retObj.max[i] == null) {\r\n } else {\r\n retObj.max[i] = retObj.max[i].max(bdecimal);\r\n }\r\n if (retObj.min[i] == null) {\r\n } else {\r\n retObj.min[i] = retObj.min[i].min(bdecimal);\r\n }\r\n\r\n// retObj.max[i]=retObj.max[i].max(bdcross);\r\n// retObj.min[i]=retObj.min[i].min(bdcross);\r\n }\r\n //code to buiold row wise grand total\r\n if (i == 0) {\r\n RowGrandTotal = bdecimal;\r\n } else {\r\n // \r\n if (bdecimal != null) {\r\n RowGrandTotal = RowGrandTotal.add(bdecimal);\r\n } else {\r\n RowGrandTotal = RowGrandTotal.add(BigDecimal.ZERO);\r\n }\r\n }\r\n bdecimal = null;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n if (retObj.processGT) {\r\n retObj.rowGrandTotals.put(\"RowGrandTotal_\" + retObj.rowCount, RowGrandTotal);\r\n }\r\n /// rowCount++;\r\n }\r\n if (retObj.rowCount != 0 && retObj.processGT) {\r\n BigDecimal dividend = new BigDecimal(String.valueOf(retObj.rowCount));\r\n\r\n for (int colIndex = 0; colIndex < retObj.colCount; colIndex++) {\r\n if (retObj.columnTypes[colIndex] != null) {\r\n retObj.columnOverAllMaximums.put(retObj.cols[colIndex], retObj.max[colIndex]);\r\n retObj.columnOverAllMinimums.put(retObj.cols[colIndex], retObj.min[colIndex]);\r\n retObj.columnGrandTotals.put(retObj.cols[colIndex], retObj.grandTotals[colIndex]);\r\n retObj.columnGrandTotalscross.put(retObj.cols[colIndex], retObj.crosstabmapkeys[colIndex]);\r\n retObj.avgTotals[colIndex] = retObj.grandTotals[colIndex].divide(dividend, MathContext.DECIMAL64);\r\n retObj.columnAverages.put(retObj.cols[colIndex], retObj.avgTotals[colIndex]);\r\n }\r\n }\r\n dividend = null;\r\n }\r\n this.initializeViewSequence();\r\n\r\n } catch (Exception ex) {\r\n\r\n logger.error(\"Exception:\", ex);;\r\n }\r\n // long endTime = System.currentTimeMillis();\r\n// \r\n }", "@SuppressWarnings(\"unchecked\")\n private void createTable(ArrayList<Object> objects){\n log.setText(\"\");\n if(!objects.isEmpty()) {\n ArrayList<String> list = new ArrayList<String>();\n int index = 0, row = 0, column = 0;\n for (Field field : objects.get(0).getClass().getDeclaredFields()) {\n list.add(field.getName());\n }\n String[] columnName = new String[list.size()];\n for(String s:list) {\n columnName[index] = s;\n index++;\n }\n Object data[][] = getData(objects, index);\n if(data.length != 0) {\n tableMode = new DefaultTableModel(data, columnName);\n }\n else {\n tableMode = null;\n }\n }\n else {\n tableMode = null;\n }\n }", "@Test\n public void test(){\n ExcelUtil qa3Sheet = new ExcelUtil(\"src/test/resources/Vytrack testusers.xlsx\", \"QA3-short\");\n // 1 based , not 0 based\n int rowCount = qa3Sheet.rowCount();\n // 1 based, not 0 based\n int colCount = qa3Sheet.columnCount();\n System.out.println(\"rowCount = \" + rowCount);\n System.out.println(\"colCount = \" + colCount);\n\n List<String> columnsNames = qa3Sheet.getColumnsNames();\n System.out.println(\"columnsNames = \" + columnsNames);\n // 0 based, get specific cell value based on index\n String cellData = qa3Sheet.getCellData(2, 3);\n System.out.println(\"cellData = \" + cellData);\n\n // get all table values in a list\n List<Map<String, String>> dataList = qa3Sheet.getDataList();\n\n System.out.println(dataList.get(5).get(\"firstname\"));\n\n String[][] dataArray = qa3Sheet.getDataArray();\n\n System.out.println(dataArray[1][1]);\n\n }", "public static void main(String[] args) {\n EmpClass[] obj = new EmpClass[4];\n int i;\n for(i=0;i<=obj.length;i++) {\n\n obj[i]=new EmpClass(1,\"AG\");\n\n obj[i].getData();\n obj[i].putData();\n }\n /* for (i=0;i<=3;i++) {\n obj.getData();\n obj.putData();\n }*/\n // obj.putData();\n }", "@DataProvider(name = \"dpExcelData\")\n\tpublic static Object[][] getXLData()throws Exception\n\t{\n\t\t\t\t\n\t\tString[][] xlTableArr = null;\n\t\t\n\t\tint totalRowArrSize = 0;\n\t\t\n\t\t//row and colmn indexes....\n\t\tint ri = 0, ci;\n\t\ttry{\n\t\t\t\n\t\t\tlogger.debug(\"set excel file path and sheet\");\n\t\t\t//set file path and sheet name....\n\t\t\tExcelUtils.setExcelFile(Constant.pathTestData+Constant.fileTestData, Constant.fileShName);\n\t\t\tlogger.info(\"done setting up filepath and sheet name successfully\");;\n\t\t\t\n\t\t\tlogger.debug(\"get test case name\");\n\t\t\tString tcsName = ExcelUtils.getTestCaseName(rnTestName);\n\t\t\t\n\t\t\tint tcsNameColmn = 0;\n\t\t\t\n\t\t\tlogger.debug(\"get test case row number\");\n\t\t\tint tcsRowNum = ExcelUtils.getTestCaseRowNums(tcsName,tcsNameColmn);\n\t\t\t\n\t\t\t//int totalRowsUsed = ExcelUtils.getRowUsed();\n\t\t\tlogger.debug(\"get total column used for running test cases\");\n\t\t\tint totalColmnUsed = ExcelUtils.getColmnUsed(tcsRowNum);\n\t\t\t\n\t\t\tlogger.debug(\"get row count for multiple data for tcs\");\n\t\t\tint tcsMatchRows = ExcelUtils.getTestCaseMatchingRows(tcsName, tcsNameColmn);\n\t\t\t\n\t\t\t//number of data per test cases\n\t\t\tlogger.debug(\"check number of rows\");\n\t\t\tif(tcsRowNum == tcsMatchRows)\n\t\t\t{\n\t\t\t\tlogger.info(\"found single data for this tcs\");\n\t\t\t}else\n\t\t\t{\n\t\t\t\tlogger.info(\"found multiple data for this tcs\");\n\t\t\t\ttotalRowArrSize = tcsMatchRows - tcsRowNum;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t//set array size....\n\t\t\t\n\t\t\t//row counting based on 0, so set add 1 to set arraysize.....\n\t\t\tint addOneInRowArr = 1;\n\t\t\t//we start reading data from 2nd column.\n\t\t\tint minusFirstColmn = 1;\n\t\t\tlogger.info(\"set array size for array table\");\n\t\t\txlTableArr = new String[totalRowArrSize+addOneInRowArr][totalColmnUsed-minusFirstColmn];\n\t\t\t\n\t\t\tlogger.info(\"Data reading and fetching started...\");\n\t\t\tfor(int rwNum = tcsRowNum; rwNum<=tcsMatchRows; rwNum++,ri++ )\n\t\t\t{\n\t\t\t\tci =0;\n\t\t\t\tfor(int clNum = 1; clNum<totalColmnUsed; clNum++,ci++)\n\t\t\t\t{\n\t\t\t\t\t\n\t\t\t\t\txlTableArr[ri][ci] = ExcelUtils.getCellData(rwNum, clNum);\n\t\t\t\t\tlogger.debug(\"data fecting is : \" + xlTableArr[ri][ci]);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\n\t\t}catch(FileNotFoundException e)\n\t\t{\n\t\t\tlogger.error(\"file not found\", e);\n\t\t\te.printStackTrace();\n\t\t\t\n\t\t}catch(IOException e)\n\t\t{\n\t\t\tlogger.error(\"IO exception\", e);\n\t\t\te.printStackTrace();\n\t\t}catch(Exception e)\n\t\t{\n\t\t\tlogger.error(\"exception is occured\", e);\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tlogger.info(\"Data feteched and stored successfully in arraytable\" );\n\t\treturn (xlTableArr);\n\t}", "DataTable createDataTable();", "@DataProvider(name=\"BookData\")\n public Object[][] getData()\n {\n\n return new Object[][] {{\"once\", \"1111\"},{\"twice\",\"2222\"},{\"thrice\",\"3333\"}};\n }", "DataElement createDataElement();", "public Object[][] makeCourseData(ArrayList<Course> courses) {\n Object[][] courseData = new Object[courses.size()][3];\n int rowCounter = 0;\n for (Course course : courses) {\n courseData[rowCounter][0] = course.courseName;\n courseData[rowCounter][1] = course.students.size();\n courseData[rowCounter][2] = course.maxStudents;\n rowCounter += 1;\n }\n return courseData;\n }", "public static void main(String[] args) {\n String [][]table1 = new String[][]{{\"Real World Mathematics\", \"ECM0002\"}, {\"Programming\", \"ECM1400\"}, {\"Data Structures\", \"ECM1406\"}, {\"Object-Oriented Programming\", \"ECM1410\"}, {\"Information Systems\", \"BEM2027\"}, {\"Thermal Physics\", \"PHY2023\"}};\n \n double [][]table1Doubles = new double[][]{{0.1, 0.3, 0.6},{0.25, 0.25, 0.25, 0.25},{0.25, 0.25, 0.5},{0.2, 0.3, 0.5},{0.1, 0.3, 0.3, 0.3},{0.4, 0.6}}; \n \n ModuleDescriptor ECM0002 = new ModuleDescriptor(table1[0][0], table1[0][1], table1Doubles[0]);\n ModuleDescriptor ECM1400 = new ModuleDescriptor(table1[1][0], table1[1][1], table1Doubles[1]);\n ModuleDescriptor ECM1406 = new ModuleDescriptor(table1[2][0], table1[2][1], table1Doubles[2]);\n ModuleDescriptor ECM1410 = new ModuleDescriptor(table1[3][0], table1[3][1], table1Doubles[3]);\n ModuleDescriptor BEM2027 = new ModuleDescriptor(table1[4][0], table1[4][1], table1Doubles[4]);\n ModuleDescriptor PHY2023 = new ModuleDescriptor(table1[5][0], table1[5][1], table1Doubles[5]);\n \n //%%%%%%%%%%maing student objects%%%%%%%%%%%%%%%%%%%%%%%%\n int []IDs = new int[]{1000,1001,1002,1003,1004,1005,1006,1007,1008,1009};\n String []names = new String[]{\"Ana\", \"Oliver\", \"Mary\", \"John\", \"Noah\", \"Chico\", \"Maria\", \"Mark\", \"Lia\", \"Rachel\"};\n char []genders = new char[]{'F', 'M', 'F', 'M', 'M', 'M', 'F', 'X', 'F', 'F'};\n \n Student []students_ = new Student[10];\n for (int i=0;i<10;i++){\n students_[i] = new Student(IDs[i], names[i], genders[i]);\n //System.out.println(students_[i]);\n }\n \n //%%%%%%%%%%%%making the module object%%%%%%%%%%%%%%%%%%%%%%%\n Module ECM0002Module = new Module(2020, (byte) 2, ECM0002);\n Module ECM1400Module = new Module(2019, (byte) 2, ECM1400);\n Module ECM1406Module = new Module(2020, (byte) 1, ECM1406);\n Module ECM1410Module = new Module(2020, (byte) 1, ECM1410);\n Module BEM2027Module = new Module(2019, (byte) 2, BEM2027);\n Module PHY2023Module = new Module(2019, (byte) 1, PHY2023);\n \n //%%%%%%%%%%%%%%%making module student and marks objects%%%%%%%%%%%%%%%%%%%%%%%%%%\n double [][]Marks = new double[][]{{9, 10, 10, 10}, {8, 8, 8, 9}, {5, 5, 6, 5}, {6, 4, 7, 9}, {10, 9, 10, 9}, {9, 9}, {6, 9}, {5, 6}, {9, 7}, {8, 5}, {10, 10, 9.5, 10}, {7, 8.5, 8.2, 8}, {6.5, 7.0, 5.5, 8.5}, {5.5, 5, 6.5, 7}, {7, 5, 8, 6}, {9, 10, 10, 10}, {8, 8, 8, 9}, {5, 5, 6, 5}, {6, 4, 7, 9}, {10, 9, 8, 9}, {10, 10, 10}, {8, 7.5, 7.5}, {9, 7, 7}, {9, 8, 7}, {2, 7, 7}, {10, 10, 10}, {8, 7.5, 7.5}, {10, 10, 10}, {9, 8, 7}, {8, 9, 10}, {10, 9, 10}, {8.5, 9, 7.5}, {10, 10, 5.5}, {7, 7, 7}, {5, 6, 10}, {8, 9, 8}, {6.5, 9, 9.5}, {8.5, 10, 8.5}, {7.5, 8, 10}, {10, 6, 10}};\n \n byte []term_ = new byte[]{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2};\n \n int []years_ = new int[]{2019, 2019, 2019, 2019, 2019, 2019, 2019, 2019, 2019, 2019, 2019, 2019, 2019, 2019, 2019, 2019, 2019, 2019, 2019, 2019, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020};\n \n Module []Modules_ = new Module[]{ECM1400Module, ECM1400Module, ECM1400Module, ECM1400Module, ECM1400Module, PHY2023Module, PHY2023Module, PHY2023Module, PHY2023Module, PHY2023Module, BEM2027Module, BEM2027Module, BEM2027Module, BEM2027Module, BEM2027Module, ECM1400Module, ECM1400Module, ECM1400Module, ECM1400Module, ECM1400Module, ECM1406Module, ECM1406Module, ECM1406Module, ECM1406Module, ECM1406Module, ECM1406Module, ECM1406Module, ECM1406Module, ECM1406Module, ECM1406Module, ECM1410Module, ECM1410Module, ECM1410Module, ECM1410Module, ECM1410Module, ECM0002Module, ECM0002Module, ECM0002Module, ECM0002Module, ECM0002Module};\n \n Student []Students = new Student[]{students_[0], students_[1], students_[2], students_[3], students_[4], students_[5], students_[6], students_[7], students_[8], students_[9], students_[0], students_[1], students_[2], students_[3], students_[4], students_[5], students_[6], students_[7], students_[8], students_[9], students_[0], students_[1], students_[2], students_[3], students_[4], students_[5], students_[6], students_[7], students_[8], students_[9], students_[0], students_[1], students_[2], students_[3], students_[4], students_[5], students_[6], students_[7], students_[8], students_[9]};\n \n \n //%%%%%%%%%%%making the student record object%%%%%%%%%%%%%%%%%%\n StudentRecord []studentRecords_ = new StudentRecord[40];\n double []finalmark = new double[40];\n for (int i=0;i<40;i++){\n for (int j=0;j<Marks[i].length;j++){\n double []weights = Modules_[i].getCAweightsm();\n finalmark[i] = finalmark[i] + (Marks[i][j] * weights[j] * 10);\n }\n studentRecords_[i] = new StudentRecord(Students[i], Modules_[i], Marks[i], finalmark[i]);\n }\n \n double []gpa = new double[10];\n int j=0;\n for (int i=0;i<10;j=j+10){\n gpa[i] = gpa[i] + studentRecords_[j].getfinalScore();\n if (j>=30){\n gpa[i] = gpa[i]/4;\n i++;\n j=i;\n }\n }\n \n Student []CompleteStudents_ = new Student[10];\n for (int i=0;i<10;i++){\n StudentRecord []studentsrecords_ = new StudentRecord[4];\n int p = 0;\n for (j=0;j<40;j++){\n if (studentRecords_[j].getStudent() == students_[i]){\n studentsrecords_[p] = studentRecords_[j];\n p++;\n }\n }\n CompleteStudents_[i] = new Student(IDs[i], names[i], genders[i], studentsrecords_, gpa[i]);\n }\n //%%%%%%%%%%%%%%%Creating new module objects with the student records and average scores%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\n \n ModuleDescriptor []modulestoadd = new ModuleDescriptor[]{ECM0002, ECM1400, ECM1406, ECM1410, BEM2027, PHY2023};\n StudentRecord [][]moduleStudents = new StudentRecord[6][10];\n double []averageScore = new double[]{0,0,0,0,0,0};\n for (j=0;j<6;j++){\n int p=0;\n for (int i=0;i<40;i++){\n if (studentRecords_[i].getModule().getmoduled().getcode() == modulestoadd[j].getcode()){\n moduleStudents[j][p] = studentRecords_[i];\n averageScore[j] = averageScore[j] + studentRecords_[i].getfinalScore();\n p++;\n }\n }\n averageScore[j] = averageScore[j]/p;\n }\n Module ECM0002ModuleNew = new Module(2020, (byte) 2, ECM0002, moduleStudents[0], averageScore[0]);\n Module ECM1400ModuleNew = new Module(2019, (byte) 2, ECM1400, moduleStudents[1], averageScore[1]);\n Module ECM1406ModuleNew = new Module(2020, (byte) 1, ECM1406, moduleStudents[2], averageScore[2]);\n Module ECM1410ModuleNew = new Module(2020, (byte) 1, ECM1410, moduleStudents[3], averageScore[3]);\n Module BEM2027ModuleNew = new Module(2019, (byte) 2, BEM2027, moduleStudents[4], averageScore[4]);\n Module PHY2023ModuleNew = new Module(2019, (byte) 1, PHY2023, moduleStudents[5], averageScore[5]);\n \n //%%%%%%%%%%%%creating the university object%%%%%%%%%%%%%%%%%%%%%%%%\n \n ModuleDescriptor []moduledescriptors = new ModuleDescriptor[]{ECM0002, ECM1400, ECM1406, ECM1410, BEM2027, PHY2023};\n \n Module []modules_ = new Module[]{ECM0002ModuleNew, ECM1400ModuleNew, ECM1406ModuleNew, ECM1410ModuleNew, BEM2027ModuleNew, PHY2023ModuleNew};\n \n University university = new University(moduledescriptors, CompleteStudents_, modules_);\n \n // You need to create and instantiate university object\n // this can be done in several ways, for instance, you can create an \"empty\" university and add\n // module descriptors, students, and modules, or you can create a university object already \"complete\".\n \n // These decisions about how and where to implement each functionality is part of your OO design.\n // Regardless of your choice, in the end you need to have the university object loaded with the given\n // input data.\n \n // TODO create and initialise the university\n \n // Print Reports \n System.out.println();\n System.out.println(\"The UoK has \" + university.getTotalNumberStudents() + \" students.\");\n\n // best module\n System.out.println(\"\\nThe best module is:\");\n System.out.println(university.getBestModule());\n\n // best student\n System.out.println(\"\\nThe best student is:\");\n System.out.println(university.getBestStudent().printTranscript());\n System.out.println();\n\t}", "public static void main(String[] args) {\n\n ArrayPractice[] ar= new ArrayPractice[1];\n ar[0]=new ArrayPractice(99,\"vivek\",\"prodct\");\n for (Object o:ar) {\n ar[0].employeeInfo();\n\n }\n\n\n\n// int[][] arr = {{2, 3}, {2, 5}, {2, 34}, {2, 5}};\n//\n//\n// for (int[] temp : arr) {\n// for (int n : temp) {\n// System.out.println(n);\n// }\n//\n// }\n// int[][] arrr = new int[4][4];\n// System.out.println(arrr[0].length);\n// String[] name = {\"Vivek\", \"Atin\"};\n//\n// greet(\"Vivek\", \"Atin\");\n// }\n// public static void greet(String... name) {\n// for(String n:name){\n// System.out.println(\"hello\"+n);\n// }\n\n\n\n\n// }\n// public class student{\n// String name;\n// Int id;\n// Int age;\n// String major;\n// float gpa;\n// public void studenDetails(){\n// studenDetails=new studentDetails();\n\n\n }", "private void createData() {\n//\n// tour = new Tour();\n// tour.setTitle(\"Death Valley\");\n// tour.setDescription(\"A tour to Death Valley\");\n// tour.setPrice(900);\n// tour.setImage(\"death_valley\");\n// tour = dataSource.create(tour);\n// Log.i(LOGTAG, \"Tour created with id \" + tour.getId());\n//\n// tour = new Tour();\n// tour.setTitle(\"San Francisco\");\n// tour.setDescription(\"A tour to San Francisco\");\n// tour.setPrice(1200);\n// tour.setImage(\"san_francisco\");\n// tour = dataSource.create(tour);\n// Log.i(LOGTAG, \"Tour created with id \" + tour.getId());\n\n ToursPullParser parser = new ToursPullParser();\n tours = parser.parseXML(this);\n\n for (Tour tour : tours) {\n dataSource.create(tour);\n }\n\n }", "public void getTableData() {\n MSApptIDCol.setCellValueFactory(new PropertyValueFactory<Appointment, Integer>(\"appointmentID\"));\n MSCustIDCol.setCellValueFactory(new PropertyValueFactory<Appointment, Integer>(\"customerID\"));\n MSTitleCol.setCellValueFactory(new PropertyValueFactory<Appointment, String>(\"appointmentTitle\"));\n MSDescriptionCol.setCellValueFactory(new PropertyValueFactory<Appointment, String>(\"description\"));\n MSContactCol.setCellValueFactory(new PropertyValueFactory<Appointment, String>(\"contactName\"));\n MSLocationCol.setCellValueFactory(new PropertyValueFactory<Appointment, String>(\"location\"));\n MSTypeCol.setCellValueFactory(new PropertyValueFactory<Appointment, String>(\"appointmentType\"));\n MSStartTimeCol.setCellValueFactory(new PropertyValueFactory<Appointment, LocalDateTime>(\"appointmentStart\"));\n MSEndTimeCol.setCellValueFactory(new PropertyValueFactory<Appointment, LocalDateTime>(\"appointmentEnd\"));\n }", "private PieData generateDataPie() {\n\n ArrayList<PieEntry> entries = new ArrayList<>();\n String year = year_txt.getText().toString();\n String month1 =Utilities.getMonth(months,month_txt.getText().toString());\n TransactionBeans transactionBeans = transactionDB.getTransactionRecordsYear(month1,year);\n if(transactionBeans!=null) {\n float income = 0;\n float expense = 0;\n try{\n income = (float) (Double.parseDouble(transactionBeans.getIncome()));\n }catch(Exception e){\n income = 0;\n }\n try{\n expense = (float) (Double.parseDouble(transactionBeans.getExpense()));\n }catch(Exception e){\n expense = 0;\n }\n entries.add(new PieEntry(income, \"Income \"));\n entries.add(new PieEntry(expense, \"Expense \"));\n }\n PieDataSet d = new PieDataSet(entries, \"\");\n\n // space between slices\n d.setSliceSpace(2f);\n d.setColors(ColorTemplate.VORDIPLOM_COLORS);\n\n return new PieData(d);\n }", "public java.util.List<Object> generateDataSet(java.util.List<Object> genericProperties);", "public ByteArrayInputStream ClassificationDataToExcel(ArrayList<MaterialData> material_datas) throws IOException {\n\n\t\tMaterialData currentData = new MaterialData();\n\t\tMaterialData previousData = new MaterialData();\n\t\tboolean firstRow = true;\n\t\tint rowIdx = 0;\n\n\t\ttry (Workbook workbook = new XSSFWorkbook(); ByteArrayOutputStream out = new ByteArrayOutputStream();) {\n\t\t\tSheet sheet = workbook.createSheet(\"Result\");\n\n\t\t\tfor (int i = 0; i < material_datas.size(); i++) {\n\n\t\t\t\tMaterialData materialData = material_datas.get(i);\n\t\t\t\tcurrentData = materialData;\n\n//\t\t\t\tSystem.out.println(\" previous data\" + previousData.getMaterialId());\n//\t\t\t\tSystem.out.println(\" current data\" + currentData.getMaterialId());\n\n\t\t\t\t/**\n\t\t\t\t * 1. Check if currentData is not equal to previousData true -> 1.1.a Check if\n\t\t\t\t * the read row is first ->true --> 1.a.i Build the Header ->false --> 1.a.ii\n\t\t\t\t * Build the Section 3 (previous data)\n\t\t\t\t */\n\n\t\t\t\tif (!(currentData.getMaterialId()).equals(previousData.getMaterialId())) {\n\t\t\t\t\tif (firstRow) {\n\t\t\t\t\t\tfirstRow = false;\n//\t\t\t\t\t\tSystem.out.println(\"Building header\");\n\t\t\t\t\t\tArrayList<String> headerResultRowData = new ArrayList<String>();\n\t\t\t\t\t\theaderResultRowData = buildHeader.header();\n\t\t\t\t\t\tRow row = sheet.createRow(rowIdx++);\n\t\t\t\t\t\tint colIdx = 0;\n\t\t\t\t\t\tfor (String rowData : headerResultRowData) {\n\t\t\t\t\t\t\trow.createCell(colIdx++).setCellValue(rowData);\n\t\t\t\t\t\t}\n\t\t\t\t\t\theaderResultRowData.clear();\n\t\t\t\t\t}\n\n\t\t\t\t\telse {\n//\t\t\t\t\t\tSystem.out.println(\"Building section 3\");\n\t\t\t\t\t\tArrayList<ArrayList<String>> section3Data = new ArrayList<ArrayList<String>>();\n\t\t\t\t\t\tsection3Data = buildSection3.section3(previousData);\n\t\t\t\t\t\tfor (ArrayList<String> resultRowData : section3Data) {\n\t\t\t\t\t\t\tRow row = sheet.createRow(rowIdx++);\n\t\t\t\t\t\t\tint colIdx = 0;\n\t\t\t\t\t\t\tfor (String rowData : resultRowData) {\n\t\t\t\t\t\t\t\trow.createCell(colIdx++).setCellValue(rowData);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tsection3Data.clear();\n\t\t\t\t\t\t\n//\t\t\t\t\t\tSystem.out.println(\"Building header\");\n\t\t\t\t\t\tArrayList<String> headerResultRowData = new ArrayList<String>();\n\t\t\t\t\t\theaderResultRowData = buildHeader.header();\n\t\t\t\t\t\tRow row = sheet.createRow(rowIdx++);\n\t\t\t\t\t\tint colIdx = 0;\n\t\t\t\t\t\tfor (String rowData : headerResultRowData) {\n\t\t\t\t\t\t\trow.createCell(colIdx++).setCellValue(rowData);\n\t\t\t\t\t\t}\n\t\t\t\t\t\theaderResultRowData.clear();\n\t\t\t\t\t}\n\n\t\t\t\t\t/**\n\t\t\t\t\t * 1.1.b Build the Section 1 (current data) \n\t\t\t\t\t * 1.1.c Build the Section 2 (current data)\n\t\t\t\t\t */\n\n//\t\t\t\t\tSystem.out.println(\"Building section 1\");\n\t\t\t\t\tArrayList<ArrayList<String>> section1Data = new ArrayList<ArrayList<String>>();\n\t\t\t\t\tsection1Data = buildSection1.section1(currentData);\n\t\t\t\t\tfor (ArrayList<String> resultRowData : section1Data) {\n\t\t\t\t\t\tRow row = sheet.createRow(rowIdx++);\n\t\t\t\t\t\tint colIdx = 0;\n\n\t\t\t\t\t\tfor (String rowData : resultRowData) {\n\t\t\t\t\t\t\trow.createCell(colIdx++).setCellValue(rowData);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tsection1Data.clear();\n\n//\t\t\t\t\tSystem.out.println(\"Building section 2\");\n\t\t\t\t\tArrayList<ArrayList<String>> section2Data = new ArrayList<ArrayList<String>>();\n\t\t\t\t\tsection2Data = buildSection2.section2(currentData);\n\t\t\t\t\tfor (ArrayList<String> resultRowData : section2Data) {\n\t\t\t\t\t\tRow row = sheet.createRow(rowIdx++);\n\t\t\t\t\t\tint colIdx = 0;\n\t\t\t\t\t\tfor (String rowData : resultRowData) {\n\t\t\t\t\t\t\trow.createCell(colIdx++).setCellValue(rowData);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tsection2Data.clear();\n\n\t\t\t\t}\n\n\t\t\t\t/**\n\t\t\t\t * 1. Check if currentData is not equal to previousData false -> 1.2.a Build\n\t\t\t\t * Section 2(current data)\n\t\t\t\t */\n\n\t\t\t\telse {\n\n//\t\t\t\t\tSystem.out.println(\"Building section 2\");\n\t\t\t\t\tArrayList<ArrayList<String>> section2Data = new ArrayList<ArrayList<String>>();\n\t\t\t\t\tsection2Data = buildSection2.section2(currentData);\n\t\t\t\t\tfor (ArrayList<String> resultRowData : section2Data) {\n\t\t\t\t\t\tRow row = sheet.createRow(rowIdx++);\n\t\t\t\t\t\tint colIdx = 0;\n\t\t\t\t\t\tfor (String rowData : resultRowData) {\n\t\t\t\t\t\t\trow.createCell(colIdx++).setCellValue(rowData);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tsection2Data.clear();\n\t\t\t\t}\n\n\t\t\t\t/**\n\t\t\t\t * 2. Set previous data = current data\n\t\t\t\t */\n\t\t\t\tpreviousData = currentData;\n\n\t\t\t}\n\n\t\t\t/**\n\t\t\t * 3. If EOF -> Build Section 3 (previous data) [last element]\n\t\t\t */\n\n//\t\t\tSystem.out.println(\"Building section 3\");\n\t\t\tArrayList<ArrayList<String>> section3Data = new ArrayList<ArrayList<String>>();\n\t\t\tsection3Data = buildSection3.section3(previousData);\n\t\t\tfor (ArrayList<String> resultRowData : section3Data) {\n\t\t\t\tRow row = sheet.createRow(rowIdx++);\n\t\t\t\tint colIdx = 0;\n\t\t\t\tfor (String rowData : resultRowData) {\n\t\t\t\t\trow.createCell(colIdx++).setCellValue(rowData);\n\t\t\t\t}\n\t\t\t}\n\t\t\tsection3Data.clear();\n\n\t\t\tworkbook.write(out);\n\t\t\treturn new ByteArrayInputStream(out.toByteArray());\n\t\t}\n\t}", "public synchronized ExcelSimpleWriter<?> addData(ExportFunction<Object[]> query) {\n AbstractExcelGenerateTask<Object[]> generateTask = new AbstractExcelGenerateTask<Object[]>(query) {\n @Override\n public void parse(PageResult<Object[]> pageResult) {\n\n List<Object[]> result = pageResult.getData();\n int index = pageResult.getPage();\n if (log.isDebugEnabled()) {\n log.debug(\"parse data of index:\" + index);\n }\n if (indexParse.get() == index) {\n try {\n lock.lock();\n indexParse.incrementAndGet();\n if (log.isDebugEnabled()) {\n log.debug(\"Write data of index:\" + index);\n }\n write(result);\n } catch (Exception e) {\n throw new RuntimeException(e);\n } finally {\n lock.unlock();\n }\n } else {\n peerDataMap.put(index, result);\n if (peerDataMap.containsKey(indexParse.get() + 1)) {\n try {\n lock.lock();\n if (log.isDebugEnabled()) {\n log.debug(\"Write data of index:\" + indexParse.get()+1);\n }\n write(peerDataMap.remove(indexParse.incrementAndGet()));\n } catch (Exception e) {\n throw new RuntimeException(e);\n } finally {\n lock.unlock();\n }\n }\n }\n }\n };\n generateTask.producers(TaraExcelConfig.CONFIG.getCsvProducerThread());\n generateTask.consumers(2);\n generateTask.start();\n return this;\n }", "public Object[][] makeTableData(Course course) {\n Object[][] tableData = new Object[returnLargerLength(course.students, course.teachers)][2];\n int studentRowCounter = 0;\n int teacherRowCounter = 0;\n for (String student : course.students) {\n tableData[studentRowCounter][0] = student;\n studentRowCounter += 1;\n }\n for (String teacher : course.teachers) {\n tableData[teacherRowCounter][1] = teacher;\n teacherRowCounter += 1;\n }\n return tableData;\n }", "public static void main(String[] args) {\n Alumno aaDatos []; // El identificador es nulo\n \n aaDatos = new Alumno[tam];//Creamos un arreglo de 10 \n //alumnos - AQUI HABRA PREGUNTA\n for (int i = 0; i < aaDatos.length; i++) {\n aaDatos[i]= new Alumno(\"Dany\",\"16550518\", 0);//Para cada lugar de arreglo se crea un objeto de la clase alumno\n \n }\n for (Alumno aaDatos1: aaDatos) {\n System.out.println(\"Nombre: \"+ aaDatos1.getsNom());\n System.out.println(\"Marticula: \"+ aaDatos1.getsMatri());\n System.out.println(\"Carrera: \"+ aaDatos1.getiCar());\n \n }\n \n \n //CREAMOS UNA COPIA DEL ARREGLO\n Alumno aaCopiaDatos [];\n aaCopiaDatos = new Alumno [tam];\n \n for (int i = 0; i < aaCopiaDatos.length; i++) {\n aaCopiaDatos[i]= new Alumno(aaDatos[i].getsNom(), // <<<Se llenan todos los datos que pide el constructor por argumentos\n aaDatos[i].getsMatri(), \n aaDatos[i].getiCar());\n \n }\n for (Alumno aaCopiaDatos1 : aaCopiaDatos) {\n System.out.println(\"Nombre: \"+ aaCopiaDatos1.getsNom());\n System.out.println(\"Marticula: \"+ aaCopiaDatos1.getsMatri());\n System.out.println(\"Carrera: \"+ aaCopiaDatos1.getiCar());\n }\n System.out.println(aaDatos);\n System.out.println(aaCopiaDatos);\n }", "public static void main(String[] args) {\n\t\tArrayList<Person> arr = new ArrayList<>();\n\t\tarr.add(new Person(\"billy\", \"123 Main St\", \"123456789\", \"[email protected]\"));\n\t\tarr.add(new Student(\"bob\", \"321 Cool St\", \"987654321\", \"[email protected]\", StatusType.FRESHMAN));\n\t\tarr.add(new Employee(\"emp\", \"789 Wow St\", \"564738291\", \"[email protected]\", \"B1200\", 50000.0, new MyDate(-System.currentTimeMillis())));\n\t\tarr.add(new Faculty(\"Fac\", \"789 Some St\", \"564738291\", \"[email protected]\", \"B1200\", 50000.0, new MyDate(2019, 2, 28), 8, 4, Rank.B));\n\t\tarr.add(new Faculty(\"InvalidDateFac\", \"789 CPP St\", \"564738291\", \"[email protected]\", \"B1200\", 50000.0, new MyDate(2019, 1, 29), 8, 4, Rank.D));\n\t\tarr.add(new Faculty(\"InvalidDateFac2\", \"789 CPP St\", \"564738291\", \"[email protected]\", \"B1200\", 50000.0, new MyDate(2019, 12, 15), 8, 4, Rank.D));\n\t\tarr.add(new Staff(\"staff\", \"789 Java St\", \"564738291\", \"[email protected]\", \"B1200\", 50000.0, new MyDate(), \"Cool Title\"));\n\n\t\ttry {\n\t\t\tarr.add(new Staff(\"InvlidSalStaff\", \"789 Java St\", \"564738291\", \"[email protected]\", \"B1200\", -10000.0, new MyDate(), \"Cool Title\"));\n\t\t} catch(IllegalArgumentException e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\n\t\t// print the information to the screen...\n\t\tSystem.out.println(\"Information\");\n\t\tSystem.out.println(\"-----------\");\n\t\tfor(Person p : arr) {\n\t\t\tSystem.out.println(p);\n\t\t}\n\n\t}", "static double[][] makeTestData() {\n double[][] data = new double[21][2];\n double xmax = 5;\n double xmin = -5;\n double dx = (xmax - xmin) / (data.length -1);\n for (int i = 0; i < data.length; i++) {\n double x = xmin + dx * i;\n double y = 2.5 * x * x * x - x * x / 3 + 3 * x;\n data[i][0] = x;\n data[i][1] = y;\n }\n return data;\n }", "private Value[] getRowFromStruct(Object[] struct, ValueType[] types) {\n\t\t/*\n\t\t * get values from struct as an array of objects\n\t\t */\n\t\tValue[] row = new Value[struct.length];\n\t\tint col = 0;\n\t\tfor (Object val : struct) {\n\t\t\trow[col] = types[col].parseObject(val);\n\t\t\tcol++;\n\t\t}\n\t\treturn row;\n\t}", "@DataProvider(name=\"excle\")\n\tpublic static Object[][] createaccountTest() throws IOException {\n\t\tObject content[][];\n\t\tFileInputStream file = new FileInputStream(\n\t\t\t\t\"D:\\\\Java_Workspace\\\\FinalKDDFramework\\\\Input\\\\Account.xlsx\");\n\t\tXSSFWorkbook book = new XSSFWorkbook(file);\n\t\tXSSFSheet sheet = book.getSheet(\"Sheet1\");\n\t\tint rows = sheet.getLastRowNum();\n\t\tcontent = new Object[(sheet.getLastRowNum())-1][sheet.getRow(1)\n\t\t\t\t.getLastCellNum()];\n\t\tRow row;\n\t\tSystem.out.println(\"total no of rows \" + rows);\n\t\tfor (int i = 1; i <rows; i++) \n\t\t{\n\t\t\trow = sheet.getRow(i);\n\t\t\tint cells = row.getLastCellNum();\n\t\t\tfor (int j = 0; j < cells; j++) \n\t\t\t{\n\t\t\t\tCell cell = row.getCell(j);\n\t\t\t\tif (cell.getCellTypeEnum().name().equals(\"NUMERIC\")) \n\t\t\t\t{\n\t\t\t\t\tcontent[i-1][j] = cell.getNumericCellValue();\t\n\t\t\t\t\n\t\t\t\t} \n\t\t\t\telse if (cell.getCellTypeEnum().name().equals(\"STRING\")) \n\t\t\t\t{\n\t\t\t\t\tcontent[i-1][j] = cell.getStringCellValue();\t\n\t\t\t\t\n\t\t\t\t}\t\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\t/*\n\t\t * catch (FileNotFoundException e) {\n\t\t * System.out.println(\"file not found\"); e.printStackTrace(); }\n\t\t */\n\t\treturn content;\n\t}", "void populateData();", "private void fillData() {\n\t\tfor(Entry<String, HashMap<String, Double>> entry : m.map.entrySet()) {\n\t\t\tfor(Entry<String, Double> subEntry : entry.getValue().entrySet()) {\n\t\t\t\tMappingData item = new MappingData(entry.getKey(), subEntry.getKey(), subEntry.getValue());\n\t\t\t\tdataList.add(item);\n\t\t\t}\n\t\t}\n\t}", "private void addData(){\n\n for (Recipe obj : frecipes)\n {\n /** Create a TableRow dynamically **/\n tr = new TableRow(this);\n tr.setLayoutParams(new TableRow.LayoutParams(\n TableRow.LayoutParams.MATCH_PARENT,\n TableRow.LayoutParams.WRAP_CONTENT));\n\n /** Creating a TextView to add to the row **/\n name = new TextView(this);\n name.setText(obj.getName());\n name.setWidth(320);\n name.setTypeface(Typeface.DEFAULT, Typeface.NORMAL);\n name.setPadding(5, 5, 5, 5);\n tr.addView(name); // Adding textView to tablerow.\n\n // Add the TableRow to the TableLayout\n tl.addView(tr, new TableLayout.LayoutParams(\n TableRow.LayoutParams.MATCH_PARENT,\n TableRow.LayoutParams.WRAP_CONTENT));\n }\n }", "@DataProvider(name=\"Booksdata\")\n public Object[][] data()\n {\n\t return new Object[][] { {\"teste11\",\"011\"},{\"teset22\",\"022\"},{\"teset33\",\"033\"} };\n }", "private static Ms3Person convertDataToRequiredDataType(String[] personArray,int index) {\r\n\t\t\r\n\t\tString firstName = \"\", lastName = \"\", email = \"\", gender = \"\", urlLink = \"\", card = \"\", city = \"\";\r\n\t\tfloat charges = 0f;\r\n\t\tboolean h_column = false, i_column = false;\r\n\t\t\r\n\t\tboolean flag = false;\r\n\t\tint i = 0;\r\n\t\t//ignore the bad data if read\r\n\t\tif(personArray.length<2 || personArray.length >11)\r\n\t\t\treturn null;\r\n\t\t//iterate the person details & set details in PErson object\r\n\t\tfor (; i < personArray.length; i++) {\r\n\t\t\tString temp = personArray[i];\r\n\t\t\tif(temp.length()<=1)\r\n\t\t\t\treturn null;\r\n\t\t\t// if current string is empty or null\r\n\t\t\tif (temp == null || temp.length() <=1) {\r\n\t\t\t\t// contains bad data\r\n\t\t\t\t// so new file is to be created & append\r\n\t\t\t\treturn null;\r\n\t\t\t} else {\r\n\t\t\t\tif (i == 0) {\r\n\t\t\t\t\tfirstName = personArray[0];\r\n\t\t\t\t} else if (i == 1) {\r\n\t\t\t\t\tlastName = personArray[1];\r\n\t\t\t\t} else if (i == 2) {\r\n\t\t\t\t\temail = personArray[2];\r\n\t\t\t\t} else if (i == 3) {\r\n\t\t\t\t\tgender = personArray[3];\r\n\t\t\t\t} else if (i == 4) {//urllink contains comma in it we need to be careful for this\r\n\t\t\t\t\turlLink = personArray[4] + personArray[i + 1];\r\n\t\t\t\t\ti = 5;\r\n\t\t\t\t} else if (i == 6) {//card name\r\n\t\t\t\t\tcard = personArray[6];\r\n\t\t\t\t} else if (i == 7) {//// $0.02 we need to trim $ from it\r\n\t\t\t\t\t//few ccolumns contains empty data so we need to check that as well\r\n\t\t\t\t\tString stringCharge = personArray[7];\r\n\t\t\t\t\tstringCharge = stringCharge.substring(1);\r\n\t\t\t\t\t//parse String to double to take care of \r\n\t\t\t\t\t//exception\r\n\t\t\t\t\t//System.out.println(\"Cost: \"+stringCharge);\r\n\t\t\t\t\tcharges = (float)Double.parseDouble(stringCharge);\r\n\t\t\t\t} else if (i == 8) {//parse String to Boolean \r\n\t\t\t\t\th_column = Boolean.parseBoolean(personArray[8]);\r\n\t\t\t\t} else if (i == 9) {\r\n\t\t\t\t\ti_column = Boolean.parseBoolean(personArray[9]);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif (i == 10)\r\n\t\t\t\t\t\tcity = personArray[10];\r\n \r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t} // while loop ends\r\n\r\n\t\t//create object & initialise all data members\r\n\t\tMs3Person person = new Ms3Person(firstName, lastName, email, gender, urlLink, card, charges, h_column, i_column,\r\n\t\t\t\tcity);\r\n\t\tlineCount++;\r\n\t\t//know how many lines are being read\r\n\t\tSystem.out.println(person + \" lineNo: \" + lineCount);\r\n\t\treturn person;//return the PErson object\r\n \r\n\t}", "@DataProvider(name = \"test1\")\n\tpublic Object[][] createData1() {\n\t return new Object[][] {\n\t { \"Cedric\", new Integer(36) },\n\t { \"Anne\", new Integer(37)},\n\t };\n\t}", "private void writeData(Employee[] employees, DataOutput out) throws IOException {\n // write number of employees\n out.writeInt(employees.length);\n\n for (Employee e : employees) {\n out.writeInt(e.getName().length());\n out.writeChars(e.getName());\n out.writeInt(e.getHireDay().toString().length());\n out.writeChars(e.getHireDay().toString());\n out.writeDouble(e.getSalary());\n }\n }", "private PaymentSummary[] fromBeansToObjects(BaseOracleBean[] beans)\n throws SQLException {\n PaymentSummary[] array = new PaymentSummary[beans.length];\n for (int i = 0; i < array.length; i++)\n array[i] = fromBeanToObject(beans[i]);\n return array;\n }", "public static Data<Weapon> weaponList(){\n\t\tData<Weapon> res = new Data<Weapon>();\n\t\tres.add(new Tuple<Weapon, Integer>(new MeleeWeapon(\"Epée bâtarde\",Type.CAC_1M, TypeDamage.T, TypeMaterial.STEEL,35,3), 1));\n\t\tres.add(new Tuple<Weapon, Integer>(new MeleeWeapon(\"Hache d’armes\",Type.CAC_1M, TypeDamage.T, TypeMaterial.STEEL,10,3), 4));\n\t\tres.add(new Tuple<Weapon, Integer>(new Munition(\"Bolas\",TypeDamage.C,\"_\",5,1), 1));\n\t\tres.add(new Tuple<Weapon, Integer>(new MeleeWeapon(\"Gourdin\",Type.CAC_1M,TypeDamage.C, TypeMaterial.WOOD,0,1.5), 2));\n\t\tres.add(new Tuple<Weapon, Integer>(new RangeWeapon(\"Arc long composite\", new Munition(\"Flèche\",0.075),TypeDamage.P,TypeMaterial.WOOD,100,1.5), 2));\n\t\tres.add(new Tuple<Weapon, Integer>(new RangeWeapon(\"Arc court composite\", new Munition(\"Flèche\",0.075),TypeDamage.P,TypeMaterial.WOOD,75,1), 2));\n\t\tres.add(new Tuple<Weapon, Integer>(new MeleeWeapon(\"Dague\", Type.CAC_LIGHT ,TypeDamage.P_T,TypeMaterial.STEEL,2,0.5), 4));\n\t\tres.add(new Tuple<Weapon, Integer>(new Munition(\"Fléchette\", TypeDamage.P, \"_\",0.5,0.25), 1));\n\t\tres.add(new Tuple<Weapon, Integer>(new MeleeWeapon(\"Hache d’armes naine\", Type.CAC_1M ,TypeDamage.T, TypeMaterial.STEEL,15,3), 1));\n\t\tres.add(new Tuple<Weapon, Integer>(new MeleeWeapon(\"Cimeterre à deux mains\", Type.CAC_2M,TypeDamage.T, TypeMaterial.STEEL,75,4), 1));\n\t\tres.add(new Tuple<Weapon, Integer>(new MeleeWeapon(\"Gantelet\", Type.CAC_LIGHT, TypeDamage.C, TypeMaterial.STEEL,2,0.5), 1));\n\t\tres.add(new Tuple<Weapon, Integer>(new MeleeWeapon(\"Coutille\", Type.CAC_2M, TypeDamage.T, TypeMaterial.STEEL,8,5), 1));\n\t\tres.add(new Tuple<Weapon, Integer>(new MeleeWeapon(\"Grande hache\", Type.CAC_2M,TypeDamage.T,TypeMaterial.STEEL,20,6), 3));\n\t\tres.add(new Tuple<Weapon, Integer>(new MeleeWeapon(\"Massue\",Type.CAC_2M ,TypeDamage.C, TypeMaterial.WOOD,5,4), 1));\n\t\tres.add(new Tuple<Weapon, Integer>(new MeleeWeapon(\"Epée à deux mains\", Type.CAC_2M, TypeDamage.T, TypeMaterial.STEEL,50,4), 3));\n\t\tres.add(new Tuple<Weapon, Integer>(new MeleeWeapon(\"Hallebarde\", Type.CAC_2M ,TypeDamage.P_T, TypeMaterial.STEEL,10,6), 1));\n\t\tres.add(new Tuple<Weapon, Integer>(new MeleeWeapon(\"Hachette\", Type.CAC_LIGHT ,TypeDamage.T, TypeMaterial.STEEL,6,1.5), 1));\n\t\tres.add(new Tuple<Weapon, Integer>(new RangeWeapon(\"Arbalète lourde\", new Munition(\"Carreau\",0.05),TypeDamage.P, TypeMaterial.STEEL,50,4), 3));\n\t\tres.add(new Tuple<Weapon, Integer>(new MeleeWeapon(\"Fléau d’armes lourd\", Type.CAC_2M,TypeDamage.C, TypeMaterial.STEEL,15,5), 1));\n\t\tres.add(new Tuple<Weapon, Integer>(new MeleeWeapon(\"Masse d’armes lourde\", Type.CAC_1M,TypeDamage.C, TypeMaterial.STEEL,12,4), 1));\n\t\tres.add(new Tuple<Weapon, Integer>(new MeleeWeapon(\"Lance d’arçon\", Type.CAC_2M, TypeDamage.P, TypeMaterial.STEEL,10,5), 2));\n\t\tres.add(new Tuple<Weapon, Integer>(new RangeWeapon(\"Arbalète légère\", new Munition(\"Carreau\",0.05),TypeDamage.P, TypeMaterial.STEEL,35,2), 3));\n\t\tres.add(new Tuple<Weapon, Integer>(new MeleeWeapon(\"Fléau d’armes léger\", Type.CAC_1M, TypeDamage.C, TypeMaterial.STEEL,8,2.5), 1));\n\t\tres.add(new Tuple<Weapon, Integer>(new MeleeWeapon(\"Marteau léger\", Type.CAC_LIGHT ,TypeDamage.C, TypeMaterial.STEEL,1,2), 1));\n\t\tres.add(new Tuple<Weapon, Integer>(new MeleeWeapon(\"Masse d’armes légère\", Type.CAC_LIGHT,TypeDamage.C, TypeMaterial.STEEL,5,2), 2));\n\t\tres.add(new Tuple<Weapon, Integer>(new MeleeWeapon(\"Pic de guerre léger\", Type.CAC_LIGHT ,TypeDamage.P, TypeMaterial.STEEL,4,1.5), 1));\n\t\tres.add(new Tuple<Weapon, Integer>(new RangeWeapon(\"Arc long\", new Munition(\"Flèche\",0.075),TypeDamage.P, TypeMaterial.WOOD,75,1.5), 4));\n\t\tres.add(new Tuple<Weapon, Integer>(new MeleeWeapon(\"Pique\", Type.CAC_2M,TypeDamage.P, TypeMaterial.WOOD,5,4.5), 2));\n\t\tres.add(new Tuple<Weapon, Integer>(new MeleeWeapon(\"Epée longue\", Type.CAC_1M, TypeDamage.T, TypeMaterial.STEEL,15,2), 7));\n\t\tres.add(new Tuple<Weapon, Integer>(new MeleeWeapon(\"Morgenstern\", Type.CAC_1M, TypeDamage.C_P,TypeMaterial.STEEL,8,3), 2));\n\t\tres.add(new Tuple<Weapon, Integer>(new MeleeWeapon(\"Nunchaku\", Type.CAC_LIGHT, TypeDamage.C, TypeMaterial.WOOD,2,1), 1));\n\t\tres.add(new Tuple<Weapon, Integer>(new MeleeWeapon(\"Bâton\", Type.CAC_2M, TypeDamage.C, TypeMaterial.WOOD,0,2), 2));\n\t\tres.add(new Tuple<Weapon, Integer>(new MeleeWeapon(\"Rapière\", Type.CAC_1M, TypeDamage.P ,TypeMaterial.STEEL,20,1), 2));\n\t\tres.add(new Tuple<Weapon, Integer>(new MeleeWeapon(\"Sai\", Type.CAC_LIGHT, TypeDamage.C_P ,TypeMaterial.STEEL,1,0.5), 1));\n\t\tres.add(new Tuple<Weapon, Integer>(new MeleeWeapon(\"Matraque\", Type.CAC_LIGHT, TypeDamage.C ,TypeMaterial.WOOD,1,1), 1));\n\t\tres.add(new Tuple<Weapon, Integer>(new MeleeWeapon(\"Cimeterre\", Type.CAC_1M, TypeDamage.T ,TypeMaterial.STEEL,15,2), 1));\n\t\tres.add(new Tuple<Weapon, Integer>(new MeleeWeapon(\"Faux\", Type.CAC_2M, TypeDamage.C_P ,TypeMaterial.STEEL,18,5), 1));\n\t\tres.add(new Tuple<Weapon, Integer>(new RangeWeapon(\"Arc court\", new Munition(\"Flèche\",0.075),TypeDamage.P, TypeMaterial.WOOD,30,1), 4));\n\t\tres.add(new Tuple<Weapon, Integer>(new MeleeWeapon(\"Epieu\", Type.CAC_1M, TypeDamage.P ,TypeMaterial.STEEL,1,1.5), 2));\n\t\tres.add(new Tuple<Weapon, Integer>(new MeleeWeapon(\"Epée courte\", Type.CAC_1M, TypeDamage.P ,TypeMaterial.STEEL,10,1), 5));\n\t\tres.add(new Tuple<Weapon, Integer>(new Munition(\"Shuriken\",TypeDamage.P,\"_\",1,0.25), 1));\n\t\tres.add(new Tuple<Weapon, Integer>(new MeleeWeapon(\"Serpe\", Type.CAC_LIGHT, TypeDamage.T ,TypeMaterial.STEEL,6,1), 1));\n\t\tres.add(new Tuple<Weapon, Integer>(new RangeWeapon(\"Fronde\", new Munition(\"Bille\",0.25),TypeDamage.C,null,0,0), 2));\n\t\tres.add(new Tuple<Weapon, Integer>(new MeleeWeapon(\"Lance\", Type.CAC_2M, TypeDamage.P, TypeMaterial.STEEL,2,3), 3));\n\t\tres.add(new Tuple<Weapon, Integer>(new MeleeWeapon(\"Trident\", Type.CAC_1M,TypeDamage.P, TypeMaterial.STEEL,15,2), 1));\n\t\tres.add(new Tuple<Weapon, Integer>(new MeleeWeapon(\"Marteau de guerre\", Type.CAC_1M,TypeDamage.C, TypeMaterial.STEEL,12,2.5), 3));\n\t\tres.add(new Tuple<Weapon, Integer>(new MeleeWeapon(\"Fouet\", Type.CAC_1M, TypeDamage.T, TypeMaterial.STEEL,1,1), 1));\n\t\t//Cas des armes a choisir manuellement.\n\t\tres.add(new Tuple<Weapon, Integer>(new MeleeWeapon(\"Autre arme de corps à corps légère\", Type.CAC_LIGHT, TypeDamage.NOTHING, null,0,0), 2));\n\t\tres.add(new Tuple<Weapon, Integer>(new MeleeWeapon(\"Autre arme de corps à corps à une main\", Type.CAC_1M, TypeDamage.NOTHING, null,0,0), 2));\n\t\tres.add(new Tuple<Weapon, Integer>(new MeleeWeapon(\"Autre arme de corps à corps à deux mains\", Type.CAC_2M, TypeDamage.NOTHING, null,0,0), 2));\n\t\tres.add(new Tuple<Weapon, Integer>(new RangeWeapon(\"Autre arme à distance\", new Munition(\"Autre munition\",0), TypeDamage.NOTHING,null,0,0), 2));\n\t\t\n\t\treturn res;\n\t}", "public void summarizeData() {\n\t\t//take json object and populate a POJO\n\t\t\n//\t\tfor(javaObject : x) {\n\t\t\n\t\t\t//new JobSummaryObject\n\t\t\t//\n\t}", "private void generarListaData() throws FileStructureException {\n CarmasTimbresTemp timbre = null;\n HSSFWorkbook workbook = null;\n HSSFSheet sheet = null;\n Iterator<Row> rowIterator = null;\n Row row = null;\n DataFormatter formatter = new DataFormatter(Locale.getDefault());\n listaData.clear();\n InputStream inputStream = null;\n try {\n if (this.file != null) {\n inputStream = this.file.getInputStream();\n workbook = new HSSFWorkbook(inputStream);\n sheet = workbook.getSheetAt(0);\n rowIterator = sheet.iterator();\n while (rowIterator.hasNext()) {\n row = rowIterator.next();\n if (row.getRowNum() == 0) {\n validarEstructura(row);\n } else if (row != null) {\n if (!isEmptyRow(row)) {\n timbre = new CarmasTimbresTemp();\n timbre.setCajero(formatter.formatCellValue(row.getCell(0)).replaceAll(\"\\\\D+\", \"\"));\n timbre.setProvdiasgteMaq(formatter.formatCellValue(row.getCell(1)).replaceAll(\"\\\\D+\", \"\"));\n timbre.setProvdiasgteLin(formatter.formatCellValue(row.getCell(2)).replaceAll(\"\\\\D+\", \"\"));\n timbre.setDiferencias(formatter.formatCellValue(row.getCell(3)).replaceAll(\"\\\\D+\", \"\"));\n timbre.setObservacion(row.getCell(4) == null ? \"\" : row.getCell(4).toString().toUpperCase().replaceAll(\"\\\\^[a-zA-Z0-9]+$\", \"\"));\n timbre.setOcca(formatter.formatCellValue(row.getCell(5)).replaceAll(\"\\\\D+\", \"\"));\n timbre.setAumento(formatter.formatCellValue(row.getCell(6)).replaceAll(\"\\\\D+\", \"\"));\n timbre.setDisminucion(formatter.formatCellValue(row.getCell(7)).replaceAll(\"\\\\D+\", \"\"));\n timbre.setSobrante(formatter.formatCellValue(row.getCell(8)).replaceAll(\"\\\\D+\", \"\"));\n timbre.setFaltante(formatter.formatCellValue(row.getCell(9)).replaceAll(\"\\\\D+\", \"\"));\n timbre.setNovedad(row.getCell(10) == null ? \"\" : row.getCell(10).toString().toUpperCase().replaceAll(\"\\\\^[a-zA-Z0-9]+$\", \"\"));\n timbre.setAsignadoA(row.getCell(11) == null ? \"\" : row.getCell(11).toString().toUpperCase().replaceAll(\"\\\\^[a-zA-Z0-9]+$\", \"\"));\n timbre.setProveedor(row.getCell(12) == null ? \"\" : row.getCell(12).toString().toUpperCase().replaceAll(\"\\\\^[a-zA-Z0-9]+$\", \"\"));\n timbre.setClasificacion(row.getCell(13) == null ? \"\" : row.getCell(13).toString().toUpperCase().replaceAll(\"\\\\^[a-zA-Z0-9]+$\", \"\"));\n timbre.setTipificacionTransportadora(row.getCell(14) == null ? \"\" : row.getCell(14).toString().toUpperCase().replaceAll(\"\\\\^[a-zA-Z0-9]+$\", \"\"));\n listaData.add(timbre);\n }\n }\n }\n }\n } catch (OfficeXmlFileException ex) {\n abrirModal(\"SARA\", \"Formato Invalido\", ex);\n } catch (IOException ex) {\n abrirModal(\"SARA\", \"Seleccione archivo\", ex);\n } finally {\n if (inputStream != null) {\n try {\n inputStream.close();\n } catch (IOException ex) {\n Logger.getLogger(CargarTimbresMasivosBean.class.getName()).log(Level.SEVERE, null, ex);\n inputStream = null;\n }\n }\n }\n }", "private void createPendingCellData()\r\n\t{\r\n\r\n\t\tObject[][] cell = new Object[plans.size()][columnCount];\r\n\t\tAbstractPlan plan = null;\r\n\r\n\t\t//now for each thread populate the table\r\n\t\tfor(int i = 0; i < plans.size(); i++)\r\n\t\t{\r\n\t\t\tbyte[] by = new byte[3];\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\tplan = (AbstractPlan) plans.get(i);\r\n\t\t\t}catch(ClassCastException e)\r\n\t\t\t{\r\n\t\t\t\tlogger.error(\"createPendingCellData - attempt to put non AbstPlan objects in thread-model failed\");\r\n\t\t\t}\r\n\t\t\tObject[] rowCell = cell[i];\r\n\t\t\t//now populate each column\r\n\t\t\trowCell[0] = plan.getPlanName();\r\n\t\t\tBoolean sampling = plan.getBayesNet() == null ? new Boolean(false) : new Boolean(plan.getBayesNet().isSampling());\r\n\t\t\trowCell[1] = sampling;\r\n\t\t\tBoolean paused = plan.getBayesNet() == null ? new Boolean(false) : new Boolean(plan.getBayesNet().isSamplerPaused());\r\n\t\t\trowCell[2] = paused;\r\n\t\t\trowCell[3] = new Boolean(false);\r\n\r\n\t\t}\r\n\t\t//make sure concurrency is safe\r\n\t\tsynchronized(dataLock)\r\n\t\t{\r\n\t\t\tpendingCellData = cell;\r\n\t\t}\r\n\t}", "@Test\n\tpublic void driverCreateReport() {\n\t\tfinal Object testingData[][] = {\n\t\t\t{\n\t\t\t\t\"2019/04/23\", \"example\", \"player1\", null\n\t\t\t},//1. All fine\n\t\t\t{\n\t\t\t\t\"2019/04/23\", \"\t\t\", \"player1\", ConstraintViolationException.class\n\t\t\t},//2. Description = blank\n\t\t\t{\n\t\t\t\t\"2019/04/23\", null, \"player1\", ConstraintViolationException.class\n\t\t\t},//3. Description = null\n\n\t\t};\n\n\t\tfor (int i = 0; i < testingData.length; i++)\n\t\t\tthis.templateCreateReport(this.convertStringToDate((String) testingData[i][0]), (String) testingData[i][1], (String) testingData[i][2], (Class<?>) testingData[i][3]);\n\t}", "@Override\n\tprotected RoomTypeDTO convertArrayToDTO(String[] value) throws IOException {\n\t\tInteger roomTypeId = Integer.valueOf(value[COLUMN_INDEX_ROOM_TYPE_ID]);\n\t\tString roomType = value[COLUMN_INDEX_ROOM_TYPE];\n\t\tDouble price = Double.valueOf(value[COLUMN_INDEX_PRICE]);\n\t\tString unit = value[COLUMN_INDEX_PRICE_UNIT];\n\n\t\tRoomTypeDTO dto = new RoomTypeDTO(roomType,price,unit);\n\t\treturn dto;\n\t}", "@Override\n\tpublic void createCellStructure() {\n\t\t\n\t}", "private void fillData()\n {\n\n }", "public Object[][] retrieveDataBasedOnViewSeq(ArrayList<String> columns) {\n Object cellData;\r\n Object[][] data = new Object[this.viewSequence.size()][columns.size()];\r\n int j;\r\n int columnType;\r\n\r\n for (int i = 0; i < this.viewSequence.size(); i++) {\r\n j = 0;\r\n for (String column : columns) {\r\n columnType = this.getColumnType(column);\r\n\r\n if (isNumberColumn(columnType)) {\r\n cellData = this.getMeasureColumnData(column, this.viewSequence.get(i));//this.getFieldValueBigDecimal(i,column);\r\n } else {\r\n cellData = this.getDimensionColumnData(column, this.viewSequence.get(i)); //hardcoding not good assuming C is Dimension\r\n }\r\n data[i][j] = cellData;\r\n j++;\r\n }\r\n }\r\n // long endTime = System.currentTimeMillis();\r\n// \r\n return data;\r\n }", "public void prepareObject(PbReturnObject retObj, ArrayList<Integer> viewSequence) {\r\n // long startTime = System.currentTimeMillis();\r\n\r\n try {\r\n\r\n retObj.colCount = retObj.getColumnCount();\r\n\r\n retObj.grandTotals = new BigDecimal[colCount];\r\n retObj.avgTotals = new BigDecimal[colCount];\r\n retObj.max = new BigDecimal[colCount];\r\n retObj.min = new BigDecimal[colCount];\r\n\r\n retObj.columnOverAllMaximums = new TreeMap();\r\n retObj.columnOverAllMinimums = new TreeMap();\r\n retObj.columnAverages = new TreeMap();\r\n retObj.columnGrandTotals = new TreeMap();\r\n retObj.rowGrandTotals = new TreeMap();\r\n\r\n for (int i = 0; i < retObj.colCount; i++) {\r\n\r\n// grandTotals[i] = new BigDecimal(\"0\");\r\n// avgTotals[i] = new BigDecimal(\"0\");\r\n// max[i] = new BigDecimal(\"0\");\r\n// min[i] = new BigDecimal(\"0\");\r\n retObj.grandTotals[i] = BigDecimal.ZERO;\r\n retObj.avgTotals[i] = BigDecimal.ZERO;\r\n retObj.max[i] = BigDecimal.ZERO;\r\n retObj.min[i] = BigDecimal.ZERO;\r\n }\r\n\r\n for (int cnt = 0; cnt < retObj.getViewSequence().size(); cnt++) {\r\n\r\n BigDecimal RowGrandTotal = BigDecimal.ZERO;\r\n for (int i = 0; i < retObj.getColumnCount(); i++) {\r\n {\r\n Object Obj = retObj.getFieldValue(retObj.getViewSequence().get(cnt), i);\r\n\r\n if (retObj.processGT) {\r\n// \r\n if (retObj.columnTypesInt[i] == Types.BIGINT\r\n || retObj.columnTypesInt[i] == Types.DECIMAL || retObj.columnTypesInt[i] == Types.DOUBLE\r\n || retObj.columnTypesInt[i] == Types.FLOAT || retObj.columnTypesInt[i] == Types.INTEGER\r\n || retObj.columnTypesInt[i] == Types.NUMERIC || retObj.columnTypesInt[i] == Types.REAL\r\n || retObj.columnTypesInt[i] == Types.SMALLINT || retObj.columnTypesInt[i] == Types.TINYINT\r\n || retObj.columnTypes[i].equalsIgnoreCase(\"NUMBER\")) {\r\n //code to build max,min,acg and grand total of entire record set\r\n BigDecimal bdecimal = null;\r\n if (Obj != null) {\r\n bdecimal = retObj.getFieldValueBigDecimal(retObj.getViewSequence().get(cnt), i);\r\n } else {\r\n bdecimal = BigDecimal.ZERO;\r\n }\r\n if (cnt == 0) {\r\n retObj.grandTotals[i] = bdecimal;\r\n retObj.max[i] = bdecimal;\r\n retObj.min[i] = bdecimal;\r\n } else {\r\n retObj.grandTotals[i] = retObj.grandTotals[i].add(bdecimal);\r\n retObj.max[i] = retObj.max[i].max(bdecimal);\r\n retObj.min[i] = retObj.min[i].min(bdecimal);\r\n }\r\n //code to buiold row wise grand total\r\n if (i == 0) {\r\n RowGrandTotal = bdecimal;\r\n } else {\r\n RowGrandTotal = RowGrandTotal.add(bdecimal);\r\n }\r\n bdecimal = null;\r\n }\r\n }\r\n }\r\n }\r\n if (retObj.processGT) {\r\n retObj.rowGrandTotals.put(\"RowGrandTotal_\" + retObj.rowCount, RowGrandTotal);\r\n }\r\n /// rowCount++;\r\n }\r\n if (retObj.rowCount != 0 && retObj.processGT) {\r\n BigDecimal dividend = new BigDecimal(String.valueOf(retObj.rowCount));\r\n\r\n for (int colIndex = 0; colIndex < retObj.colCount; colIndex++) {\r\n retObj.columnOverAllMaximums.put(retObj.cols[colIndex], retObj.max[colIndex]);\r\n retObj.columnOverAllMinimums.put(retObj.cols[colIndex], retObj.min[colIndex]);\r\n retObj.columnGrandTotals.put(retObj.cols[colIndex], retObj.grandTotals[colIndex]);\r\n retObj.avgTotals[colIndex] = retObj.grandTotals[colIndex].divide(dividend, MathContext.DECIMAL64);\r\n retObj.columnAverages.put(retObj.cols[colIndex], retObj.avgTotals[colIndex]);\r\n }\r\n dividend = null;\r\n }\r\n //this.initializeViewSequence();\r\n\r\n } catch (Exception ex) {\r\n\r\n logger.error(\"Exception:\", ex);;\r\n }\r\n // long endTime = System.currentTimeMillis();\r\n// \r\n }", "public Object[][] getTableData(){\r\n if (ufeRunner == null || renders == null || htmlObjLang == null) {\r\n return null;\r\n }\r\n final ArrayList<Object[]> lista = new ArrayList<>();\r\n Object[] fila = new Object[2];\r\n fila[0] = \"CssHelper\";\r\n if (ufeRunner.cssHelper == null) {\r\n fila[1] = \"null\";\r\n }else{\r\n fila[1] = ufeRunner.cssHelper.getPath();\r\n }\r\n lista.add(fila);\r\n fila = new Object[2];\r\n fila[0] = \"\";\r\n fila[1] = \"\";\r\n lista.add(fila);\r\n for (ImportedInstance ufeImport : ufeRunner.imports) {\r\n fila = new Object[2];\r\n fila[0] = \"UfeImport\";\r\n fila[1] = ufeImport.path;\r\n lista.add(fila);\r\n }\r\n if (ufeRunner.imports.size() < 1) {\r\n fila = new Object[2];\r\n fila[0] = \"Sin ufe imports\";\r\n fila[1] = \"Sin ufe imports\";\r\n lista.add(fila);\r\n }\r\n fila = new Object[2];\r\n fila[0] = \"\";\r\n fila[1] = \"\";\r\n lista.add(fila);\r\n ufeRunner.scope.symbolTable.forEach((key, val)->{\r\n Object[] f = new Object[2];\r\n f[0] = key;\r\n if (val.isPresent()) {\r\n Object obj = val.get();\r\n if (obj instanceof Object[]) {\r\n StringBuilder sb = new StringBuilder();\r\n sb.append(\"{ \");\r\n for (Object o : (Object[])obj) {\r\n sb.append(o.toString()).append(\",\");\r\n }\r\n sb.setLength(sb.length() - 1);\r\n sb.append(\" }\");\r\n f[1] = sb.toString();\r\n }else{\r\n f[1] = obj.toString();\r\n }\r\n }else{\r\n f[1] = \"null\";\r\n }\r\n lista.add(f);\r\n });\r\n Object[][] result = new Object[lista.size()][2];\r\n for (int i = 0; i < lista.size(); i++) {\r\n fila = lista.get(i);\r\n for (int j = 0; j < 2; j++) {\r\n result[i][j] = fila[j];\r\n }\r\n }\r\n return result;\r\n }", "public void testCreateNewFile() {\n List<SheetDataDto> data = new ArrayList<SheetDataDto>();\n RowDataDto headerRow = new RowDataDto();\n headerRow.getCells().add(new CellDataDto(\"Col 1\", CellDataTypeEnum.TEXT));\n headerRow.getCells().add(new CellDataDto(\"Col 2\", CellDataTypeEnum.TEXT));\n headerRow.getCells().add(new CellDataDto(\"Col 3\", CellDataTypeEnum.TEXT));\n headerRow.getCells().add(new CellDataDto(\"Col 4\", CellDataTypeEnum.TEXT));\n\n SheetDataDto sheet1 = new SheetDataDto();\n sheet1.setName(\"First sheet\");\n sheet1.setHeaderRow(headerRow);\n\n RowDataDto row1 = new RowDataDto();\n row1.getCells().add(new CellDataDto(1d, CellDataTypeEnum.NUMBER));\n row1.getCells().add(new CellDataDto(\"IF(A2 > 0, \\\"1\\\", \\\"0\\\")\", CellDataTypeEnum.FORMULAR));\n row1.getCells().add(new CellDataDto(\"123456789\", CellDataTypeEnum.NUMBER));\n row1.getCells().add(new CellDataDto(new Date(), CellDataTypeEnum.DATE));\n\n sheet1.getRows().add(row1);\n data.add(sheet1);\n\n excelExportingService.exportToExcel(\"t1.xls\", data, false, ExcelFormatTypeEnum.XLS);\n excelExportingService.exportToExcel(\"t1.xlsx\", data, false, ExcelFormatTypeEnum.XLSX);\n }", "void populateReportInformation( Collection<ExpressionExperimentDetailsValueObject> vos );", "void createWorkSheet() {\n wb = new HSSFWorkbook();\n for (int SheetNumber = 0; SheetNumber < keywords.length - 1; SheetNumber++) {\n sheet[SheetNumber] = wb.createSheet(keywords[SheetNumber]);\n // Create row at index zero ( Top Row)\n HSSFRow row = sheet[SheetNumber].createRow((short) 0);\n String[] headers = {\"Title\", \"Category\", \"Developer\", \"Description\", \"Release Date\", \"currentVersionReleaseDate\", \"Version\", \"Website\", \"Rating Counts\", \"Average User Rating\", \"Average User Rating For Current Version\", \"Market URL\", \"Size\"};\n for (int i = 0; i <= 12; i++) {\n\n HSSFCell cell = row.createCell((short) i);\n cell.setCellType(HSSFCell.CELL_TYPE_STRING);\n cell.setCellValue(headers[i]);\n excelFileCreated = false;\n }\n }\n }", "private TileDataOLD createData(int sx, int sy) {\n\t\tTileDataOLD td = new TileDataOLD(sx, sy);\n\t\tdata[sx][sy] = td;\n\t\treturn td;\n\t}", "public DesignADataStructure() {\n arr = new ArrayList<>();\n map = new HashMap<>();\n }", "private void createTestData() {\n for (int i = startKey; i < startKey + numKeys; i++) {\n keys.add(i);\n }\n }", "public AbstractDatum makeMemberDatum(VMState vms, int address, AbstractDatum parent, String name) {\r\n\t Assert.check( elementCount >= 0 ) ;\r\n\t ArrayDatum d = new ArrayDatum( address, elementCount, getElementType().getNumBytes(),\r\n\t parent, vms.getMemory(), name, this, vms.getTimeManager() ) ;\r\n int\telementAddress = address ;\r\n\t\tfor( int i=0, sz=elementCount ; i<sz ; ++i ) {\r\n\t /*DBG System.out.println(\"Adding an element at \"+elementAddress) ;/*DBG*/\r\n\t String i_as_string = Integer.toString( i ) ;\r\n\t\t AbstractDatum f = getElementType().makeMemberDatum(vms, elementAddress, d, name+\"[\"+i_as_string+\"]\") ;\r\n\t\t d.putElement( i, f ) ;\r\n\t\t elementAddress += getElementType().getNumBytes() ; }\r\n\t\treturn d ; }", "@Override\n protected Sheet createSheet() {\n Sheet sheet = Sheet.createDefault();\n // Create a set of properties\n Sheet.Set set = Sheet.createPropertiesSet();\n\n set.put(getNameProperty());\n set.put(getMajorProperty());\n set.put(getMinorProperty());\n set.put(getPatchProperty());\n set.put(getDescriptionProperty());\n set.put( getGitProperty());\n set.put( getBranchProperty());\n\n // Add the set of properties to the sheet\n sheet.put(set);\n\n return sheet;\n }", "private ExporterIndicatorFTS_XLSX buildSheets(final List<DataSerie> dss) {\n\t\tExporterIndicatorFTS_XLSX previous = null;\n\t\tfor (final DataSerie ds : dss) {\n\t\t\tExporterIndicatorFTS_XLSX aSheet = null;\n\t\t\tif (previous == null) {\n\t\t\t\taSheet = new ExporterIndicatorFTS_XLSX(this, ds.getIndicatorCode(), ds.getIndicatorCode());\n\t\t\t} else {\n\t\t\t\taSheet = new ExporterIndicatorFTS_XLSX(previous, ds.getIndicatorCode(), ds.getIndicatorCode());\n\t\t\t}\n\t\t\tprevious = aSheet;\n\t\t}\n\t\treturn previous;\n\t}", "private void setFields() {\n\t\t// create nine rectangles to represent the cells\n\t\tfor (int x=0;x<3;x++) {\n\t\t\tfor (int y=0;y<3;y++) {\n\t\t\t\t// create the fields based on the dimensions of the board\n\t\t\t\tfieldsArrayGeometry[x][y]= new Rectangle2D.Double(xBoardMin+fieldWidthX*x, yBoardMin+fieldHeightY*y, fieldWidthX, fieldHeightY);\n\t\t\t}\n\t\t\t//System.out.println(Arrays.deepToString(fieldsArrayGeometry));\n\t\t}\n\t\t// write fields to file\n\t\ttry {\n FileWriter fileWriterFields = new FileWriter(fileNameFieldsDimensions,true);\n BufferedWriter bufferedWriter = new BufferedWriter(fileWriterFields);\n bufferedWriter.write(\"New Fields \"+fieldWidthX+\" \"+fieldHeightY+\" \"+\"\\n\");\n \t\t\tfor (int x=0;x<3;x++) {\n \t\t\t\tfor (int y=0;y<3;y++) {\n \t\t\t\t\tbufferedWriter.write(x+\",\"+y+\",\"+\n \t\t\t\t\t\t\t(int) fieldsArrayGeometry[x][y].getMinX()+\",\"+\n \t\t\t\t\t\t\t(int) fieldsArrayGeometry[x][y].getMaxX()+\",\"+\n \t\t\t\t\t\t\t(int) fieldsArrayGeometry[x][y].getMinY()+\",\"+\n \t\t\t\t\t\t\t(int) fieldsArrayGeometry[x][y].getMaxY()+\"\\n\");\n \t\t\t\t}\n \t\t\t}\n bufferedWriter.close(); }\n catch(IOException ex2) {\n System.out.println(\"Error writing to file '\"+ fileNameFieldsDimensions + \"'\");\n }\n\t}", "public Object [][] getTableData(int rowNumber, String title, String author, URL hyperLink, int year, String abstracts, String publisher, boolean isMark, boolean duplicate, String dlName){\r\n\t\t\r\n\t\tObject [][] data = {addTableData(rowNumber, title, author, hyperLink, year, abstracts, publisher, isMark, duplicate, dlName)};\r\n\t\t\r\n\t\treturn data;\r\n\t\t\r\n\t}" ]
[ "0.6040826", "0.5966267", "0.5831606", "0.57870996", "0.54041123", "0.5329946", "0.5281186", "0.525293", "0.5240333", "0.523502", "0.52331704", "0.5229686", "0.52123344", "0.5206208", "0.51910794", "0.5122787", "0.51202506", "0.50925237", "0.5091305", "0.50821084", "0.50691164", "0.50254965", "0.5024544", "0.50228125", "0.50193346", "0.501709", "0.5008295", "0.5004727", "0.5000366", "0.5000125", "0.49970257", "0.49820566", "0.49717802", "0.49627712", "0.496117", "0.4954001", "0.4947125", "0.49392158", "0.49337754", "0.49330804", "0.49171448", "0.49156192", "0.490853", "0.49024555", "0.48916093", "0.4891127", "0.48876208", "0.4886149", "0.48785946", "0.48680267", "0.48623824", "0.48549056", "0.48543936", "0.48466778", "0.48460266", "0.48427275", "0.48376405", "0.48329702", "0.483249", "0.4831512", "0.48292774", "0.48259333", "0.48173067", "0.48059785", "0.48045474", "0.48039642", "0.48036584", "0.48034698", "0.48005927", "0.47936574", "0.47906056", "0.47905698", "0.47897524", "0.47888783", "0.47807094", "0.4779787", "0.47772118", "0.47669548", "0.47615984", "0.47568944", "0.4754771", "0.47542816", "0.47484356", "0.47404128", "0.4734973", "0.47330797", "0.47302312", "0.4729128", "0.47219667", "0.47150594", "0.47130942", "0.470978", "0.47046444", "0.46999726", "0.46996957", "0.46988997", "0.46968302", "0.46966434", "0.4685708", "0.46811736" ]
0.6912082
0
convert a struct into a row of a data sheet
private Value[] getRowFromStruct(Object[] struct, ValueType[] types) { /* * get values from struct as an array of objects */ Value[] row = new Value[struct.length]; int col = 0; for (Object val : struct) { row[col] = types[col].parseObject(val); col++; } return row; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private DataSheet structToDs(Struct struct) throws SQLException {\n\t\t/*\n\t\t * struct is extracted into a data sheet with just one row\n\t\t */\n\t\tDataSheet ds = ComponentManager.getRecord(this.recordName)\n\t\t\t\t.createSheet(true, false);\n\t\tValueType[] types = ds.getValueTypes();\n\t\tValue[] row = this.getRowFromStruct(struct.getAttributes(), types);\n\t\tds.addRow(row);\n\t\treturn ds;\n\t}", "private DataSheet structsToDs(Record record, Object[] array)\n\t\t\tthrows SQLException {\n\t\tDataSheet ds = record.createSheet(false, false);\n\t\tValueType[] types = ds.getValueTypes();\n\t\tfor (Object struct : array) {\n\t\t\tif (struct == null || struct instanceof Struct == false) {\n\t\t\t\tTracer.trace(\n\t\t\t\t\t\t\"Found an empty row or a non-struct object for stored procedure parameter \"\n\t\t\t\t\t\t\t\t+ this.name\n\t\t\t\t\t\t\t\t+ \". skipping this row, but not throwing an error.\");\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tObject[] rowData = ((Struct) struct).getAttributes();\n\t\t\tValue[] row = this.getRowFromStruct(rowData, types);\n\t\t\tds.addRow(row);\n\t\t}\n\t\treturn ds;\n\t}", "private DataRow convertDataRow(gherkin.formatter.model.Row row, List<String> cells) {\n DataRow dataRow = new DataRow();\n dataRow.setLine(row.getLine());\n dataRow.setCommentList(createCommentList(row.getComments()));\n dataRow.setValueList(cells);\n\n return dataRow;\n }", "private DataSheet arrayToDs(Object[] row) throws SQLException {\n\t\tString[] columnNames = { this.name };\n\t\tValueType vt = this.getValueType();\n\t\tif (row.length == 0) {\n\t\t\tValueType[] types = { this.dataTypeObject.getValueType() };\n\t\t\treturn new MultiRowsSheet(columnNames, types);\n\t\t}\n\t\tValue[][] values = { vt.toValues(row) };\n\t\treturn new MultiRowsSheet(columnNames, values);\n\t}", "Row createRow();", "RowValues createRowValues();", "public static Row beanToRow(Object bean) throws Exception {\n Row row = new Row();\n BeanInfo beaninfo = Introspector.getBeanInfo(bean.getClass());\n PropertyDescriptor[] descriptors = beaninfo.getPropertyDescriptors();\n if (descriptors != null) {\n for (PropertyDescriptor descriptor : descriptors) {\n Cell cell = new Cell();\n cell.setName(descriptor.getDisplayName());\n // cell.setValue(descriptor.getValue());\n row.getCells().add(cell);\n }\n }\n return row;\n }", "RowValue createRowValue();", "public interface DataSheet\n{\n /** @return the names of the columns in this table or an empty list if no columns have been defined, never null */\n List<String> getColumns();\n\n /** @return the names of the columns in this table or an empty array if no columns have been defined, never null */\n String[] getHeaders();\n\n /**\n * Determine the name of a column if the position is known.\n *\n * @param index the position in the header starting with 0\n * @return the column name at the given position, null if unknown\n */\n String getColumn(int index);\n\n /**\n * Determine the index of a column if the name is known.\n *\n * @param column the case insensitive name of the respective column\n * @return the index of the column in the headings, -1 if the column is unknown\n */\n int indexOf(String column);\n\n /**\n * Access the given row.\n *\n * @param index the row number, the first row is 0\n * @return the data of the row or an empty array if the row is out of bounds, never null\n */\n Object[] getDataRow(final int index);\n\n /**\n * Access all rows.\n *\n * @return the data of all rows or an empty array no row exist, never null\n */\n Object[][] getDataRows();\n\n /**\n * Retrieve the value of the given row and column.\n *\n * If the row is out of bounds or the column is unknown will simply return <code>null</code> to indicate that no value\n * has been set.\n *\n * @param column the column name in the table\n * @param row the row number in the table starting with 0\n * @return the associated value of that cell, can be null\n */\n Object getDataValue(String column, int row);\n\n /**\n * Retrieve the value of the given row and column.\n *\n * If row or column are out of bounds will simply return <code>null</code> to indicate that no value has been set.\n *\n * @param row the row number in the table starting with 0\n * @param column the column number in the table starting with 0\n * @return the associated value of that cell, can be null\n */\n Object getDataValue(final int row, final int column);\n\n /** @return the number of current rows of this table */\n int size();\n}", "public abstract List<V> makeRowData();", "@Test\n public void testFillInDataToTemplate() throws IOException {\n List<List<Object>> rows = new ArrayList<List<Object>>();\n\n List<String> communeStrs = Arrays.asList(\"Aclens\", \"Allaman\", \"Aubonne\", \"Apples\", \"Bière\", \"Bremblens\",\n \"Bougy-Villars\", \"Berolle\", \"Chevilly\");\n List<String> typeStrs = Arrays.asList(\"Résidence Secondaire\", \"Location\", \"Hotel\", \"Chambre\", \"Camping\",\n \"Institut\");\n\n for (int i = 0; i < 25; i++) {\n List<Object> row = new ArrayList<Object>();\n row.add(new Long(900000L + i));\n row.add(i + 1);\n row.add(communeStrs.get(i % communeStrs.size()));\n row.add(typeStrs.get(i % typeStrs.size()));\n row.add(new Long(25000L * i));\n row.add(BooleanUtils.toBoolean(i % 2));\n row.add(new Date());\n row.add(DateUtils.addDays(new Date(), i + 1));\n row.add(String.format(\"%d piéces ou moins\", i + 1));\n row.add(i + 1);\n row.add((i % 7 == 0 ? i : null));\n row.add((i % 7 == 1 ? i : null));\n row.add((i % 7 == 2 ? i : null));\n row.add((i % 7 == 3 ? i : null));\n row.add((i % 7 == 4 ? i : null));\n row.add((i % 7 == 5 ? i : null));\n row.add((i % 7 == 6 ? i : null));\n row.add(10 * i);\n row.add(200 * i);\n row.add(25 * i);\n row.add(i % 5 + 1);\n row.add(i % 6 + 1);\n row.add(BigDecimal.ZERO);\n row.add(1500 * (i + 1));\n row.add(null);\n\n rows.add(row);\n }\n\n SheetDataDto sheet1 = ExcelExportingUtil.convert2DListToSheetDto(rows, false);\n sheet1.setName(\"Data\");\n sheet1.setOverriden(true);\n // re-assign the index of the rows in the sheet to fill in the template: ignore the first two rows\n for (int i = 2; i < 2 + sheet1.getRows().size(); i++) {\n RowDataDto row = sheet1.getRows().get(i - 2);\n row.setRowNum(i);\n for (int j = 0; j < row.getCells().size(); j++) {\n CellDataDto cell = row.getCells().get(j);\n cell.setCellNum(j);\n }\n }\n\n // specify the format for col 7 and 8 (0-based)\n for (int i = 0; i < sheet1.getRows().size(); i++) {\n switch (i) {\n case 7:\n CellFormatter formatter = new CellFormatter(\"dd-MMM-yyyy\");\n formatter.setAlignment(CellStyle.ALIGN_CENTER);\n sheet1.getFormatters().add(formatter);\n break;\n\n case 8:\n CellFormatter formatter1 = new CellFormatter();\n formatter1.setWrapText(false);\n sheet1.getFormatters().add(formatter1);\n break;\n\n default:\n sheet1.getFormatters().add(null);\n break;\n }\n }\n\n InputStream input = getClass().getResourceAsStream(\"/exportData/Statistics_v0.1.xls\");\n ByteArrayOutputStream out = new ByteArrayOutputStream();\n excelExportingService.exportToExcel(input, out, Arrays.asList(sheet1), ExcelFormatTypeEnum.XLS);\n\n FileUtils.writeByteArrayToFile(new File(\"output-template.xls\"), out.toByteArray());\n }", "public static Row createRow() {\n\t\treturn new Row(fsco,criteria,columns);\n\t}", "@Test\n public void testWriteRowCells() {\n XSSFWorkbook workbook = new XSSFWorkbook();\n XSSFSheet sheet = workbook.createSheet();\n XSSFRow row = sheet.createRow(0);\n List<Object> cellContents = new ArrayList<Object>();\n cellContents.add(new String(\"abc\"));\n cellContents.add(new Long(\"1\")); \n MaterialRequestHelper.writeRowCells(cellContents, row);\n assertEquals(row.getPhysicalNumberOfCells(), 2);\n assertEquals(row.getCell(0).getCellType(),XSSFCell.CELL_TYPE_STRING);\n assertEquals(row.getCell(1).getCellType(),XSSFCell.CELL_TYPE_NUMERIC);\n assertEquals(row.getCell(0).getStringCellValue(),\"abc\");\n assertEquals(row.getCell(1).getNumericCellValue(),1,0); \n }", "@Override\n public Row call(Tuple2<Iterable<Row>, Iterable<Row>> cogrouped) throws Exception {\n Row intoRow = cogrouped._1().iterator().next();\n Row[] fromRows = Iterables.toArray(cogrouped._2(), Row.class);\n int intoRowNumFields = intoRow.size();\n\n Object[] nestedValues = new Object[intoRowNumFields + 1];\n for (int i = 0; i < intoRowNumFields; i++) {\n nestedValues[i] = intoRow.get(i);\n }\n nestedValues[intoRowNumFields] = fromRows;\n\n Row nested = RowFactory.create(nestedValues);\n\n return nested;\n }", "@Override\n public Object[] createRow() {\n ObjectDescriptor.TypeObject newTypeObjectInstance = ObjectDescriptor.newInstance();\n List<PropertyDescriptor> descriptors = typeObjectDescriptor.getObjectProperties();\n InitValuesFiller.fill(newTypeObjectInstance, descriptors);\n\n return new Object[]{ StringUtils.EMPTY, newTypeObjectInstance };\n }", "Rows createRows();", "public void prepareObject(PbReturnObject retObj) {\n try {\r\n\r\n retObj.colCount = retObj.getColumnCount();\r\n\r\n retObj.grandTotals = new BigDecimal[colCount];\r\n retObj.crosstabmapkeys = new BigDecimal[colCount];\r\n retObj.avgTotals = new BigDecimal[colCount];\r\n retObj.max = new BigDecimal[colCount];\r\n retObj.min = new BigDecimal[colCount];\r\n\r\n retObj.columnOverAllMaximums = new TreeMap();\r\n retObj.columnOverAllMinimums = new TreeMap();\r\n retObj.columnAverages = new TreeMap();\r\n retObj.columnGrandTotals = new TreeMap();\r\n retObj.columnGrandTotalscross = new TreeMap();\r\n retObj.rowGrandTotals = new TreeMap();\r\n\r\n for (int i = 0; i < retObj.colCount; i++) {\r\n\r\n// grandTotals[i] = new BigDecimal(\"0\");\r\n// avgTotals[i] = new BigDecimal(\"0\");\r\n// max[i] = new BigDecimal(\"0\");\r\n// min[i] = new BigDecimal(\"0\");\r\n retObj.grandTotals[i] = BigDecimal.ZERO;\r\n retObj.crosstabmapkeys[i] = BigDecimal.ZERO;\r\n retObj.avgTotals[i] = BigDecimal.ZERO;\r\n retObj.max[i] = BigDecimal.ZERO;\r\n retObj.min[i] = BigDecimal.ZERO;\r\n }\r\n\r\n for (int cnt = 0; cnt < retObj.getRowCount(); cnt++) {\r\n\r\n BigDecimal RowGrandTotal = BigDecimal.ZERO;\r\n for (int i = 0; i < retObj.getColumnCount(); i++) {\r\n {\r\n Object Obj = retObj.getFieldValue(cnt, i);\r\n int zerocountct = 0;\r\n\r\n if (retObj.processGT) {\r\n \r\n if (retObj.columnTypes[i] != null) {\r\n if (retObj.columnTypesInt[i] == Types.BIGINT\r\n || retObj.columnTypesInt[i] == Types.DECIMAL || retObj.columnTypesInt[i] == Types.DOUBLE\r\n || retObj.columnTypesInt[i] == Types.FLOAT || retObj.columnTypesInt[i] == Types.INTEGER\r\n || retObj.columnTypesInt[i] == Types.NUMERIC || retObj.columnTypesInt[i] == Types.REAL\r\n || retObj.columnTypesInt[i] == Types.SMALLINT || retObj.columnTypesInt[i] == Types.TINYINT\r\n || retObj.columnTypes[i].equalsIgnoreCase(\"NUMBER\")) {\r\n //code to build max,min,acg and grand total of entire record set\r\n BigDecimal bdecimal = null;\r\n BigDecimal bdcross = null;\r\n if (Obj != null) {\r\n bdecimal = retObj.getFieldValueBigDecimal(cnt, i);\r\n int zerocountvaluect = 0;\r\n BigDecimal bd = new BigDecimal(\"0\");\r\n if (bdecimal == null || bdecimal.compareTo(bd) == 0) {\r\n zerocountct = zerocountct + 1;\r\n bdcross = new BigDecimal(zerocountct);\r\n\r\n }\r\n } else {\r\n bdecimal = BigDecimal.ZERO;\r\n }\r\n if (bdcross == null) {\r\n bdcross = new BigDecimal(\"0\");\r\n }\r\n if (cnt == 0) {\r\n retObj.grandTotals[i] = bdecimal;\r\n retObj.max[i] = bdecimal;\r\n retObj.min[i] = bdecimal;\r\n } else {\r\n if (retObj.grandTotals[i] == null) {\r\n retObj.grandTotals[i] = BigDecimal.ZERO;\r\n retObj.crosstabmapkeys[i] = BigDecimal.ZERO;\r\n }\r\n // \r\n if (bdecimal != null) {\r\n } else {\r\n bdecimal = BigDecimal.ZERO;\r\n }\r\n retObj.grandTotals[i] = retObj.grandTotals[i].add(bdecimal);\r\n retObj.crosstabmapkeys[i] = retObj.crosstabmapkeys[i].add(bdcross);\r\n if (retObj.max[i] == null) {\r\n } else {\r\n retObj.max[i] = retObj.max[i].max(bdecimal);\r\n }\r\n if (retObj.min[i] == null) {\r\n } else {\r\n retObj.min[i] = retObj.min[i].min(bdecimal);\r\n }\r\n\r\n// retObj.max[i]=retObj.max[i].max(bdcross);\r\n// retObj.min[i]=retObj.min[i].min(bdcross);\r\n }\r\n //code to buiold row wise grand total\r\n if (i == 0) {\r\n RowGrandTotal = bdecimal;\r\n } else {\r\n // \r\n if (bdecimal != null) {\r\n RowGrandTotal = RowGrandTotal.add(bdecimal);\r\n } else {\r\n RowGrandTotal = RowGrandTotal.add(BigDecimal.ZERO);\r\n }\r\n }\r\n bdecimal = null;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n if (retObj.processGT) {\r\n retObj.rowGrandTotals.put(\"RowGrandTotal_\" + retObj.rowCount, RowGrandTotal);\r\n }\r\n /// rowCount++;\r\n }\r\n if (retObj.rowCount != 0 && retObj.processGT) {\r\n BigDecimal dividend = new BigDecimal(String.valueOf(retObj.rowCount));\r\n\r\n for (int colIndex = 0; colIndex < retObj.colCount; colIndex++) {\r\n if (retObj.columnTypes[colIndex] != null) {\r\n retObj.columnOverAllMaximums.put(retObj.cols[colIndex], retObj.max[colIndex]);\r\n retObj.columnOverAllMinimums.put(retObj.cols[colIndex], retObj.min[colIndex]);\r\n retObj.columnGrandTotals.put(retObj.cols[colIndex], retObj.grandTotals[colIndex]);\r\n retObj.columnGrandTotalscross.put(retObj.cols[colIndex], retObj.crosstabmapkeys[colIndex]);\r\n retObj.avgTotals[colIndex] = retObj.grandTotals[colIndex].divide(dividend, MathContext.DECIMAL64);\r\n retObj.columnAverages.put(retObj.cols[colIndex], retObj.avgTotals[colIndex]);\r\n }\r\n }\r\n dividend = null;\r\n }\r\n this.initializeViewSequence();\r\n\r\n } catch (Exception ex) {\r\n\r\n logger.error(\"Exception:\", ex);;\r\n }\r\n // long endTime = System.currentTimeMillis();\r\n// \r\n }", "T getRowData(int rowNumber);", "default Object convert(GenericRowData row) {\n return convert(row, -1);\n }", "private RowData() {\n initFields();\n }", "public void writeFromObjectIntoRow(Object object, AbstractRecord row, AbstractSession session) throws DescriptorException {\n if (this.isReadOnly()) {\n return;\n }\n\n Object attributeValue = this.getAttributeValueFromObject(object);\n if (attributeValue == null) {\n row.put(this.getField(), null);\n return;\n }\n\n ContainerPolicy cp = this.getContainerPolicy();\n\n Vector nestedRows = new Vector(cp.sizeFor(attributeValue));\n for (Object iter = cp.iteratorFor(attributeValue); cp.hasNext(iter);) {\n Object element = cp.next(iter, session);\n // convert the value - if necessary\n if (hasConverter()) {\n element = getConverter().convertObjectValueToDataValue(element, session);\n }\n nestedRows.addElement(buildCompositeRow(element, session, row));\n }\n\n Object fieldValue = null;\n if (!nestedRows.isEmpty()) {\n fieldValue = this.getReferenceDescriptor().buildFieldValueFromNestedRows(nestedRows, getStructureName(), session);\n }\n row.put(this.getField(), fieldValue);\n }", "@Test\n public void test(){\n ExcelUtil qa3Sheet = new ExcelUtil(\"src/test/resources/Vytrack testusers.xlsx\", \"QA3-short\");\n // 1 based , not 0 based\n int rowCount = qa3Sheet.rowCount();\n // 1 based, not 0 based\n int colCount = qa3Sheet.columnCount();\n System.out.println(\"rowCount = \" + rowCount);\n System.out.println(\"colCount = \" + colCount);\n\n List<String> columnsNames = qa3Sheet.getColumnsNames();\n System.out.println(\"columnsNames = \" + columnsNames);\n // 0 based, get specific cell value based on index\n String cellData = qa3Sheet.getCellData(2, 3);\n System.out.println(\"cellData = \" + cellData);\n\n // get all table values in a list\n List<Map<String, String>> dataList = qa3Sheet.getDataList();\n\n System.out.println(dataList.get(5).get(\"firstname\"));\n\n String[][] dataArray = qa3Sheet.getDataArray();\n\n System.out.println(dataArray[1][1]);\n\n }", "Row<T> createRow(final T element);", "private void formatData(AccountVO acct, Row r) {\n\t\tint cellCnt = 0;\n\t\tString name = StringUtil.checkVal(acct.getRep().getFirstName()) + \" \" + StringUtil.checkVal(acct.getRep().getLastName());\n\t\tcreateStringCell(r, name, cellCnt++);\n\t\tcreateStringCell(r, acct.getRep().getTerritoryId(), cellCnt++);\n\t\tcreateStringCell(r, acct.getRep().getSampleAccountNo(), cellCnt++);\n\t\tcreateStringCell(r, acct.getAccountName(), cellCnt++);\n\t\tcreateStringCell(r, acct.getAccountNo(), cellCnt++);\n\t\tcreateStringCell(r, acct.getPhysicians().size(), cellCnt++);\n\t\tcreateStringCell(r, acct.getUnitCount(), cellCnt++);\n\n\t\t//iterated the transactions and classify by status\n\t\tint pending = 0, approved = 0, complete = 0, denied = 0;\n\t\tfor (TransactionVO v : acct.getTransactions()) {\n\t\t\tswitch (v.getStatus()) {\n\t\t\t\tcase PENDING:\n\t\t\t\t\t++pending;\n\t\t\t\t\tbreak;\n\t\t\t\tcase APPROVED:\n\t\t\t\t\t++approved;\n\t\t\t\t\tbreak;\n\t\t\t\tcase COMPLETE:\n\t\t\t\t\t++complete;\n\t\t\t\t\tbreak;\n\t\t\t\tcase DECLINED:\n\t\t\t\t\t++denied;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tStringBuilder sts = new StringBuilder(100);\n\t\tif (pending > 0) sts.append(pending).append(\" Pending<br/>\\r\");\n\t\tif (approved > 0) sts.append(approved).append(\" Approved<br/>\\r\");\n\t\tif (complete > 0) sts.append(complete).append(\" Completed<br/>\\r\");\n\t\tif (denied > 0) sts.append(denied).append(\" Denied\");\n\t\tcreateStringCell(r, sts.toString(), cellCnt++);\n\n\t\tcreateStringCell(r, acct.getAccountPhoneNumber(), cellCnt++);\n\t\tcreateStringCell(r, acct.getAccountAddress(), cellCnt++);\n\t\tcreateStringCell(r, acct.getAccountAddress2(), cellCnt++);\n\t\tcreateStringCell(r, acct.getAccountCity(), cellCnt++);\n\t\tcreateStringCell(r, acct.getAccountState(), cellCnt++);\n\t\tcreateStringCell(r, acct.getAccountZipCode(), cellCnt++);\n\t\tcreateStringCell(r, acct.getAccountCountry(), cellCnt++);\n\t}", "private void iterateXlsRow(XSSFSheet sheet) {\n Iterator rowIterator;\n XSSFRow row;\n rowIterator = sheet.rowIterator();\n String time;\n String StudentName;\n String classNumber;\n String reason;\n DataFormatter formatter = new DataFormatter();\n\n while (rowIterator.hasNext()) {\n row = (XSSFRow) rowIterator.next();\n if (isEmptyCell(row.getCell(0))) {\n time = \"NINCS ADAT\";\n } else {\n time = formatter.formatCellValue(row.getCell(0)).trim();\n }\n if (isEmptyCell(row.getCell(1))) {\n StudentName = \"NINCS ADAT\";\n } else {\n StudentName = row.getCell(1).getStringCellValue().trim();\n }\n if (isEmptyCell(row.getCell(2))) {\n classNumber = \"NINCS ADAT\";\n } else {\n classNumber = row.getCell(2).getStringCellValue().trim();\n }\n if (isEmptyCell(row.getCell(3))) {\n reason = \"NINCS ADAT\";\n } else {\n reason = row.getCell(3).getStringCellValue().trim();\n }\n Student student = new Student(time, StudentName, classNumber, reason, classNumber + StudentName);\n xlsxDataList.add(student);\n }\n }", "private void createRowWithData(HSSFSheet sheet, int i, ReconciliationViewVO reconViewVO) {\r\n\r\n\t\tHSSFRow row;\r\n\t\trow = sheet.createRow((short) i);\r\n\t\trow.createCell((short) 0).setCellValue(\"\");\r\n\t\trow.createCell((short) 1).setCellValue(\"\");\r\n\t\trow.createCell((short) 2).setCellValue(\"\");\r\n\t\trow.createCell((short) 3).setCellValue(reconViewVO.getTransactionType());\r\n\t\trow.createCell((short) 4).setCellValue(reconViewVO.getNumOfRecords());\r\n\t\trow.createCell((short) 5).setCellValue(reconViewVO.getAmount());\r\n\t}", "public LazyHBaseRow(LazySimpleStructObjectInspector oi) {\n super(oi);\n }", "public FececTipoPropuesta mapRow(ResultSet rs, int rowNum) throws SQLException {\n FececTipoPropuesta dto = new FececTipoPropuesta();\n\n dto.setIdTipoPropuesta(rs.getBigDecimal(COLUMN_ID_TIPO_PROPUESTA));\n dto.setDescripcion(rs.getString(COLUMN_DESCRIPCION));\n\n return dto;\n }", "public Table<Integer, Integer, String> getData();", "MemberCell createMemberCell();", "@Nullable\n\t\t\t@Override\n\t\t\tpublic T mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\t\tint id = rs.getInt(\"id\");\n\t\t\t\tString title = rs.getString(\"title\");\n\t\t\t\tString author = rs.getString(\"author\");\n\t\t\t\tint numPages = rs.getInt(\"num_pages\");\n\t\t\t\tDate releaseDate = rs.getDate(\"release_date\");\n\t\t\t\tboolean available = rs.getBoolean(\"available\");\n\n\t\t\t\tClass<T> type = null; // TODO: we need the type\n\t\t\t\tT object = null; // TODO: type.newInstance();\n\n\t\t\t\t/* TODO: create instance and fill properties\n\t\t\t\tbook.setId(id);\n\t\t\t\tbook.setTitle(title);\n\t\t\t\tbook.setAuthor(author);\n\t\t\t\tbook.setNumPages(numPages);\n\t\t\t\tbook.setReleaseDate(releaseDate);\n\t\t\t\tbook.setAvailable(available);\n\t\t\t\t*/\n\n\t\t\t\treturn object;\n\t\t\t}", "UnpivotTable createUnpivotTable();", "private BookData convertRowToBook(ResultSet myRs) throws SQLException {\n\t\t\n\t\tString title = myRs.getString(\"title\");\n\t\t\n\t\tString author = myRs.getString(\"author_name\");\n\t\tString publisher = myRs.getString(\"publisher_name\");\n\t\tint id=myRs.getInt(\"book_id\");\n\t\t\n\t\t\n\t\t\n\t\tBookData tempbook = new BookData(title, author, publisher, id);\n\t\treturn tempbook;\n\n\t}", "public abstract void toProto(SOURCE row, Message.Builder builder);", "private List<DataRow> createRowList(List<gherkin.formatter.model.Row> rows) {\n List<DataRow> exampleRowList = new ArrayList<>(rows.size());\n\n for (Row row : rows) {\n exampleRowList.add(convertDataRow(row, row.getCells()));\n }\n\n return exampleRowList;\n }", "@Override\n\tpublic void createCellStructure() {\n\t\t\n\t}", "Object[] getDataRow(final int index);", "public abstract DynamicDataRow makeUIRowData();", "Row(String name) {\r\n\t\tthis.name = name;\r\n\t\t//this.price = price;\r\n\t\t//this.type = type;\r\n\t}", "@Override\n\t\tpublic Row asRow(TicketCharge data) {\n\t\t\tRow row = new Row(getTableName());\n\t\t\trow.set(TICKETCHARGE.TICKET_ID,data.getTicketID());\n\t\t\trow.set(TICKETCHARGE.EXTRA_ID,data.getExtraID());\n\t\t\trow.set(TICKETCHARGE.QUANTITY,data.getQuantity());\n\t return row;\n\t\t}", "private static List<List<String>> loadSheetDataTable(XSSFSheet sheet) {\n List<List<String>> ret = new ArrayList<List<String>>();\n // Get the first and last sheet row number.\n int firstRowNum = sheet.getFirstRowNum();\n int lastRowNum = sheet.getLastRowNum();\n if (lastRowNum > 0) {\n // Loop in sheet rows.\n for (int i = firstRowNum; i < lastRowNum + 1; i++) {\n // Get current row object.\n Row row = sheet.getRow(i);\n // Get first and last cell number.\n int firstCellNum = row.getFirstCellNum();\n int lastCellNum = row.getLastCellNum();\n // Create a String list to save column data in a row.\n List<String> rowDataList = new ArrayList<String>();\n // Loop in the row cells.\n for (int j = firstCellNum; j < lastCellNum; j++) {\n // Get current cell.\n Cell cell = row.getCell(j);\n // Get cell type.\n CellType cellType = cell.getCellType();\n if (cellType == CellType.NUMERIC) {\n double numberValue = cell.getNumericCellValue();\n // BigDecimal is used to avoid double value is counted use Scientific counting method.\n // For example the original double variable value is 12345678, but jdk translated the value to 1.2345678E7.\n String stringCellValue = BigDecimal.valueOf(numberValue).toPlainString();\n rowDataList.add(stringCellValue);\n } else if (cellType == CellType.STRING) {\n String cellValue = cell.getStringCellValue();\n rowDataList.add(cellValue);\n } else if (cellType == CellType.BOOLEAN) {\n boolean numberValue = cell.getBooleanCellValue();\n String stringCellValue = String.valueOf(numberValue);\n rowDataList.add(stringCellValue);\n } else if (cellType == CellType.BLANK) {\n rowDataList.add(\"\");\n }\n }\n // Add current row data list in the return list.\n ret.add(rowDataList);\n }\n }\n return ret;\n }", "AttributeCell createAttributeCell();", "public abstract Cell createDataCell() throws DailyFollowUpException;", "public HashMap<String, String> readTestData() {\n\t\trequiredRow = getRequiredRow();\n\t\tif(requiredRow!=0) {\n\t\t\tfor(int i = 0 ; i < sheet.getRow(requiredRow).getLastCellNum(); i++) {\n\t\t\t\tif(sheet.getRow(requiredRow).getCell(i)==null)\n\t\t\t\t\tsheet.getRow(requiredRow).createCell(i).setCellType(CellType.STRING);\n\t\t\t\ttestData.put(sheet.getRow(0).getCell(i).toString(),sheet.getRow(requiredRow).getCell(i).toString());\n\t\t\t}\n\t\t}\n\t\treturn testData;\n\t}", "public void prepareObject(PbReturnObject retObj, ArrayList<Integer> viewSequence) {\r\n // long startTime = System.currentTimeMillis();\r\n\r\n try {\r\n\r\n retObj.colCount = retObj.getColumnCount();\r\n\r\n retObj.grandTotals = new BigDecimal[colCount];\r\n retObj.avgTotals = new BigDecimal[colCount];\r\n retObj.max = new BigDecimal[colCount];\r\n retObj.min = new BigDecimal[colCount];\r\n\r\n retObj.columnOverAllMaximums = new TreeMap();\r\n retObj.columnOverAllMinimums = new TreeMap();\r\n retObj.columnAverages = new TreeMap();\r\n retObj.columnGrandTotals = new TreeMap();\r\n retObj.rowGrandTotals = new TreeMap();\r\n\r\n for (int i = 0; i < retObj.colCount; i++) {\r\n\r\n// grandTotals[i] = new BigDecimal(\"0\");\r\n// avgTotals[i] = new BigDecimal(\"0\");\r\n// max[i] = new BigDecimal(\"0\");\r\n// min[i] = new BigDecimal(\"0\");\r\n retObj.grandTotals[i] = BigDecimal.ZERO;\r\n retObj.avgTotals[i] = BigDecimal.ZERO;\r\n retObj.max[i] = BigDecimal.ZERO;\r\n retObj.min[i] = BigDecimal.ZERO;\r\n }\r\n\r\n for (int cnt = 0; cnt < retObj.getViewSequence().size(); cnt++) {\r\n\r\n BigDecimal RowGrandTotal = BigDecimal.ZERO;\r\n for (int i = 0; i < retObj.getColumnCount(); i++) {\r\n {\r\n Object Obj = retObj.getFieldValue(retObj.getViewSequence().get(cnt), i);\r\n\r\n if (retObj.processGT) {\r\n// \r\n if (retObj.columnTypesInt[i] == Types.BIGINT\r\n || retObj.columnTypesInt[i] == Types.DECIMAL || retObj.columnTypesInt[i] == Types.DOUBLE\r\n || retObj.columnTypesInt[i] == Types.FLOAT || retObj.columnTypesInt[i] == Types.INTEGER\r\n || retObj.columnTypesInt[i] == Types.NUMERIC || retObj.columnTypesInt[i] == Types.REAL\r\n || retObj.columnTypesInt[i] == Types.SMALLINT || retObj.columnTypesInt[i] == Types.TINYINT\r\n || retObj.columnTypes[i].equalsIgnoreCase(\"NUMBER\")) {\r\n //code to build max,min,acg and grand total of entire record set\r\n BigDecimal bdecimal = null;\r\n if (Obj != null) {\r\n bdecimal = retObj.getFieldValueBigDecimal(retObj.getViewSequence().get(cnt), i);\r\n } else {\r\n bdecimal = BigDecimal.ZERO;\r\n }\r\n if (cnt == 0) {\r\n retObj.grandTotals[i] = bdecimal;\r\n retObj.max[i] = bdecimal;\r\n retObj.min[i] = bdecimal;\r\n } else {\r\n retObj.grandTotals[i] = retObj.grandTotals[i].add(bdecimal);\r\n retObj.max[i] = retObj.max[i].max(bdecimal);\r\n retObj.min[i] = retObj.min[i].min(bdecimal);\r\n }\r\n //code to buiold row wise grand total\r\n if (i == 0) {\r\n RowGrandTotal = bdecimal;\r\n } else {\r\n RowGrandTotal = RowGrandTotal.add(bdecimal);\r\n }\r\n bdecimal = null;\r\n }\r\n }\r\n }\r\n }\r\n if (retObj.processGT) {\r\n retObj.rowGrandTotals.put(\"RowGrandTotal_\" + retObj.rowCount, RowGrandTotal);\r\n }\r\n /// rowCount++;\r\n }\r\n if (retObj.rowCount != 0 && retObj.processGT) {\r\n BigDecimal dividend = new BigDecimal(String.valueOf(retObj.rowCount));\r\n\r\n for (int colIndex = 0; colIndex < retObj.colCount; colIndex++) {\r\n retObj.columnOverAllMaximums.put(retObj.cols[colIndex], retObj.max[colIndex]);\r\n retObj.columnOverAllMinimums.put(retObj.cols[colIndex], retObj.min[colIndex]);\r\n retObj.columnGrandTotals.put(retObj.cols[colIndex], retObj.grandTotals[colIndex]);\r\n retObj.avgTotals[colIndex] = retObj.grandTotals[colIndex].divide(dividend, MathContext.DECIMAL64);\r\n retObj.columnAverages.put(retObj.cols[colIndex], retObj.avgTotals[colIndex]);\r\n }\r\n dividend = null;\r\n }\r\n //this.initializeViewSequence();\r\n\r\n } catch (Exception ex) {\r\n\r\n logger.error(\"Exception:\", ex);;\r\n }\r\n // long endTime = System.currentTimeMillis();\r\n// \r\n }", "Object getDataValue(String column, int row);", "protected abstract List<?> getRowValues(T dataObject);", "private ArrayList<String[]> getTableRowData() \n {\n int numRow, numCol;\n ArrayList<String[]> data = new ArrayList<>();\n numRow = jtModel.getRowCount(); \n numCol = jtModel.getColumnCount();\n String[] row;\n for(int i = 0; i< numRow; i++)\n {\n row = new String[numCol];\n for(int j = 0; j< numCol; j++)\n {\n row[j] = jtModel.getValueAt(i, j).toString();\n } \n data.add(row);\n } \n return data;\n }", "private void exportTableFromResultSet(String tableName, ResultSet rs, int rowNum) {\n\t\tMap<String, String> columnMetadataMap = sqlMetaExporter.getMetadataMap().get(tableName);\n\t\tList<Map<String, Object>> listData = new ArrayList<Map<String, Object>>();\n\t\tint counter = 0;\n\t\ttry {\n\t\t\twhile (rs.next()) {\n\t\t\t\tcounter++;\n\t\t\t\tMap<String, Object> map = new HashMap<String, Object>();\n\n\t\t\t\tfor (Map.Entry<String, String> columnMap : columnMetadataMap\n\t\t\t\t\t\t.entrySet()) {\n\t\t\t\t\tString columnLabel = columnMap.getKey();\n\t\t\t\t\tObject object = rs.getObject(columnLabel);\n\t\t\t\t\t//convert orcale timestamp to java date.\n\t\t\t\t\tif (object instanceof oracle.sql.TIMESTAMP) {\n\t\t\t\t\t\toracle.sql.TIMESTAMP timeStamp = (oracle.sql.TIMESTAMP) object;\n\t\t\t\t\t\tTimestamp tt = timeStamp.timestampValue();\n\t\t\t\t\t\tDate date = new Date(tt.getTime());\n\t\t\t\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\t\t\t\t\tString timestamp = sdf.format(date);\n\t\t\t\t\t\tmap.put(columnLabel, timestamp);\n\t\t\t\t\t} else \n\t\t\t\t\t\tmap.put(columnLabel, object);\n\t\t\t\t}\n\t\t\t\tlistData.add(map);\n\t\t\t\tif (counter % rowNum == 0) {\n\t\t\t\t\tmigrateDataByBatch(tableName, listData);\n\t\t\t\t\tlistData.clear();\n\t\t\t\t} else continue;\n\t\t\t}\n\n\t\t} catch (SQLException e) {\n\t\t\tlogger.error(e.getMessage());\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tmigrateDataByBatch(tableName, listData);\n\t\t\tlistData.clear();\n\t\t}\n\t}", "public Row createRow(Sheet sheet, int r) {\n Row row = sheet.createRow(r);\n return row;\n }", "io.dstore.engine.procedures.MiCheckPerformanceAd.Response.Row getRow(int index);", "void fill(Row row) {\n if (row == null) return;\n for (Column column : getColumns()) {\n String name = column.getName();\n Object value = row.get(name);\n Classes.setFieldValue(this, name, value);\n }\n }", "private void setDataModel() {\r\n tableData = new Object[resultSet.size()][classFields.length];\r\n // for every object from collection of objects\r\n for (int i = 0; i < resultSet.size(); i++) {\r\n // for every fields from class of object\r\n for (int j = 0; j < classFields.length; j++) {\r\n // for every method from class of object\r\n for (int x = 0; x < classMethods.length; x++) {\r\n // if class name start with 'get' and class method name\r\n // lenght is equal to field name + 3 (becouse of get word)\r\n if ((classMethods[x].getName().startsWith(\"get\"))\r\n && (classMethods[x].getName().length() == (classFields[j].getName().length() + 3))) {\r\n // if class name to lowercase ends with field name to\r\n // lower case\r\n if (classMethods[x].getName().toLowerCase().endsWith(classFields[j].getName().toLowerCase())) {\r\n // then try to invoke that getter\r\n try {\r\n tableData[i][j] = classMethods[x].invoke(resultSet.get(i));\r\n } catch (IllegalAccessException e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n } catch (IllegalArgumentException e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n } catch (InvocationTargetException e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n }\r\n }\r\n }\r\n }\r\n // This is alternative method for obtaining getter for field but\r\n // it will need public fields\r\n // try {\r\n // fieldValue = pola[j].get(resultSet.get(i));\r\n // data[i][j]=fieldValue;\r\n // } catch (IllegalArgumentException e) {\r\n // // TODO Auto-generated catch block\r\n // e.printStackTrace();\r\n // } catch (IllegalAccessException e) {\r\n // // TODO Auto-generated catch block\r\n // e.printStackTrace();\r\n // }\r\n }\r\n }\r\n }", "@Override\n\tpublic FareCalcVO mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\tint i=0;\n\t\tFareCalcVO fareCalcVo=new FareCalcVO();\n\t\tfareCalcVo.setSubLotId(rs.getInt(++i));\n\t\tfareCalcVo.setReceivingDate(rs.getDate(++i));\n\t\tfareCalcVo.setTruckNo(rs.getString(++i));\n\t\tfareCalcVo.setSourceName(rs.getString(++i));\n\t\tfareCalcVo.setAgentDestName(rs.getString(++i));\n\t\tfareCalcVo.setAgentName(rs.getString(++i));\n\t\tfareCalcVo.setAgentMark(rs.getString(++i));\n\t\tfareCalcVo.setItemName(rs.getString(++i));\n\t\tfareCalcVo.setBoxName(rs.getString(++i));\n\t\tfareCalcVo.setBoxWt(rs.getInt(++i));\n\t\tfareCalcVo.setTotQty(rs.getInt(++i));\n\t\tfareCalcVo.setFarePerBox(rs.getDouble(++i));\n\t\t\n\t\treturn fareCalcVo;\n\t}", "public abstract String render (String data, String type, T row);", "public abstract void emitRawRow();", "public abstract void transformReportEntry(ReportRow entry);", "public void createInputRow() throws IOException {\n\t\tStringBuilder fileData = new StringBuilder();\n\t\tfileData.append(\"package dbmsProject;\\n\");\n\t\tfileData.append(\"public class InputRow{\\n\");\n\t\tArrayList<String> list = new ArrayList<String>( Arrays.asList(new String[]{\"cust\", \"prod\", \"day\", \"month\", \"year\", \"state\", \"quant\"}));\n\t\tfor(int i=0;i<list.size();i++ ) {\n\t\t\tString select = list.get(i);\n\t\t\tboolean found=false;\n\t\t\tfor(String str: payload.getselect_variables()) {\n\t\t\t\tif(str.contains(select)) {\n\t\t\t\t\tprojectionVars.add(select);\n\t\t\t\t\tfileData=createrSetterGetter(fileData, helper.columnMapping.get(select), select);\n\t\t\t\t\tfound=true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(found) continue;\n\t\t\tfor(String str: payload.getgrouping_attributes()) {\n\t\t\t\tif(str.contains(select)) {\n\t\t\t\t\tprojectionVars.add(select);\n\t\t\t\t\tfileData=createrSetterGetter(fileData, helper.columnMapping.get(select), select);\n\t\t\t\t\tfound=true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(found) continue;\n\t\t\tfor(String str: payload.getaggregate_functions()) {\n\t\t\t\tif(str.contains(select)) {\n\t\t\t\t\tprojectionVars.add(select);\n\t\t\t\t\tfileData=createrSetterGetter(fileData, helper.columnMapping.get(select), select);\n\t\t\t\t\tfound=true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(found) continue;\n\t\t\tfor(String str: payload.getsuch_that_predicates()) {\n\t\t\t\tif(str.contains(select)) {\n\t\t\t\t\tprojectionVars.add(select);\n\t\t\t\t\tfileData=createrSetterGetter(fileData, helper.columnMapping.get(select), select);\n\t\t\t\t\tfound=true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(found) continue;\n\t\t\tif(payload.isHavingClause() && payload.getHavingClause().contains(select)) {\n\t\t\t\tprojectionVars.add(select);\n\t\t\t\tfileData=createrSetterGetter(fileData, helper.columnMapping.get(select), select);\n\t\t\t\tfound=true;\n\t\t\t}\n\t\t\tif(found) continue;\n\t\t\tif(payload.getIsWhereClause() && payload.getWhereClause().contains(select)) {\n\t\t\t\tprojectionVars.add(select);\n\t\t\t\tfileData=createrSetterGetter(fileData, helper.columnMapping.get(select), select);\n\t\t\t}\n\t\t}\n\t\t\n\t\tfileData.append(\"}\\n\");\n\t\tFileOutputStream fos = new FileOutputStream(\"src/dbmsProject/InputRow.java\");\n\t\tfos.write(fileData.toString().getBytes());\n\t\tfos.flush();\n\t\tfos.close();\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\tprivate GSRow convertSyncInfoToRow(GSRow rowTobeUPdated,SyncInfo syncInfo){\r\n\t\t\r\n\t\tElement syncPayLoad = SyncInfoParser.convertSync2Element(syncInfo.getSync(), RssSyndicationFormat.INSTANCE, this.identityProvider);\r\n\t\r\n\t\trowTobeUPdated.updateCellValue( syncInfo.getSyncId() , SyncColumn.sync_id.toString());\r\n\t\trowTobeUPdated.updateCellValue( syncInfo.getType() ,SyncColumn.entity_name.toString());\r\n\t\trowTobeUPdated.updateCellValue( syncInfo.getId() ,SyncColumn.entity_id.toString());\r\n\t\trowTobeUPdated.updateCellValue( String.valueOf(syncInfo.getVersion()) ,SyncColumn.entity_version.toString());\r\n\t\trowTobeUPdated.updateCellValue(syncPayLoad.asXML() ,SyncColumn.sync_data.toString());\r\n\t\t\r\n\t\treturn rowTobeUPdated;\r\n\t}", "private void addWorkflowSummary(Workbook workBook, Sheet sheet, Job job, Workflow workflow,\n List<DetailedData> detailedData, IntHolder row) throws Exception\n {\n int col = 0;\n Row curRow = getRow(sheet, row.value);\n\n LinkedHashMap<String, ArrayList<String>> hypsegs = new LinkedHashMap<String, ArrayList<String>>();\n LinkedHashMap<String, ArrayList<String>> refsegs = new LinkedHashMap<String, ArrayList<String>>();\n\n // Company\n Cell cell_A = getCell(curRow, col);\n cell_A.setCellValue(getCompanyName(job.getCompanyId()));\n cell_A.setCellStyle(m_style.getContentStyle());\n col++;\n\n // Job ID\n Cell cell_B = getCell(curRow, col);\n cell_B.setCellValue(job.getJobId());\n cell_B.setCellStyle(m_style.getContentStyle());\n col++;\n\n // Job Name\n Cell cell_C = getCell(curRow, col);\n cell_C.setCellValue(job.getJobName());\n cell_C.setCellStyle(m_style.getContentStyle());\n col++;\n\n // Language\n Cell cell_D = getCell(curRow, col);\n cell_D.setCellValue(workflow.getTargetLocale().toString());\n cell_D.setCellStyle(m_style.getContentStyle());\n col++;\n\n // Workflow State\n Cell cell_E = getCell(curRow, col);\n cell_E.setCellValue(workflow.getState());\n cell_E.setCellStyle(m_style.getContentStyle());\n col++;\n\n // MT Word Count\n Cell cell_F = getCell(curRow, col);\n cell_F.setCellValue(workflow.getMtTotalWordCount());\n cell_F.setCellStyle(m_style.getContentStyle());\n col++;\n\n // Perplexity passed word count\n if (usePerplexity)\n {\n Cell cell = getCell(curRow, col);\n cell.setCellValue(workflow.getPerplexityWordCount());\n cell.setCellStyle(m_style.getContentStyle());\n col++;\n }\n\n // Total Word Count\n Cell cell_G = getCell(curRow, col);\n cell_G.setCellValue(workflow.getTotalWordCount());\n cell_G.setCellStyle(m_style.getContentStyle());\n col++;\n\n // Average Edit Distance/char\n int totalLevDistance = 0;\n int totalTargetLength = 0;\n String mtEngineName = null;\n for (DetailedData data : detailedData)\n {\n totalLevDistance += data.getLevenshteinDistance();\n totalTargetLength += data.getTarget().length();\n if (mtEngineName == null)\n {\n mtEngineName = data.getMtEngineName();\n if (mtEngineName != null && mtEngineName.toLowerCase().endsWith(\"_mt\"))\n {\n mtEngineName = mtEngineName.substring(0, mtEngineName.length() - 3);\n }\n }\n\n ArrayList<String> hyps = new ArrayList<String>();\n hyps.add(data.getMt());\n hypsegs.put(String.valueOf(data.getTuId()), hyps);\n\n ArrayList<String> refs = new ArrayList<String>();\n refs.add(data.getTarget());\n refsegs.put(String.valueOf(data.getTuId()), refs);\n }\n float averageEditDistance = ((float) totalLevDistance / (float) totalTargetLength * 100);\n Cell cell_H = getCell(curRow, col);\n cell_H.setCellValue(Double.valueOf(this.get2DigitFormater().format(averageEditDistance)));\n cell_H.setCellStyle(m_style.getContentStyle());\n col++;\n\n // Translation Error Rate (TER)\n Cell cell_I = getCell(curRow, col);\n cell_I.setCellValue(calculateTER(hypsegs, refsegs));\n cell_I.setCellStyle(m_style.getContentStyle());\n col++;\n\n // Engine Name\n Cell cell_J = getCell(curRow, col);\n cell_J.setCellValue(mtEngineName);\n cell_J.setCellStyle(m_style.getContentStyle());\n col++;\n\n row.inc();\n }", "private String addFieldValuesToRow(String row, MapWritable mapw, String columnName) {\n Object valueObj = (Object) mapw.get(new Text(columnName));\n row += valueObj.toString() + \"|\";\n return row;\n }", "public void buildDeacessionRows(XSSFWorkbook xssfWorkbook,XSSFSheet xssfSheet, XSSFCellStyle dateCellStyle,int rowNum,String barcode){\n List<ItemEntity> itemEntityList = itemDetailsRepository.findByBarcode(barcode);\n CellStyle cellStyle = xssfWorkbook.createCellStyle();\n cellStyle.setAlignment(HorizontalAlignment.LEFT);\n if(itemEntityList != null){\n for (ItemEntity itemEntity : itemEntityList) {\n XSSFRow row = xssfSheet.createRow(rowNum);\n createCell(xssfWorkbook, row,cellStyle, itemEntity.getBarcode(), 1);\n createCell(xssfWorkbook, row,cellStyle, itemEntity.getCustomerCode(), 2);\n createCell(xssfWorkbook, row,cellStyle, itemEntity.getInstitutionEntity().getInstitutionCode(), 8);\n createCell(xssfWorkbook, row,cellStyle, itemEntity.getItemStatusEntity().getStatusCode(),10);\n getCreatedAndLastUpdatedDate(dateCellStyle, itemEntity.getCreatedDate(),itemEntity.getLastUpdatedDate(), row);\n }\n }\n\n }", "public String call(Row row){\n ConfigReader confReader = new ConfigReader();\n ConfigModel config = confReader.readConfig();\n // same with linkage\n Linkage linkage = new Linkage(config);\n\n // place holder variables to instanciate an record object\n RecordModel tmpRecord = new RecordModel();\n ArrayList<ColumnRecordModel> tmpRecordColumns = new ArrayList<ColumnRecordModel>();\n \n // convert row to RecordModel\n for(ColumnConfigModel column : config.getColumns()){\n try {\n String tmpValue = row.getAs(column.getIndexB());\n // Remove anything that is not a uppercase letter and a digit\n tmpValue = tmpValue.replaceAll(\"[^A-Z0-9 ]\", \"\").replaceAll(\"\\\\s+\", \" \");\n // if the value is equal to one space, add empty string instead\n if(tmpValue.equals(\" \")){\n tmpValue = \"\";\n }\n //\n String tmpId = column.getId();\n // maybe it is not necessary to have the tipe of the variable replicated\n // FIXME: add function to config that allows for consulting the type of the variable\n // using the ID\n String tmpType = column.getType();\n // add new column \n tmpRecordColumns.add(new ColumnRecordModel(tmpId, tmpType, tmpValue));\n } catch (ArrayIndexOutOfBoundsException e){\n e.printStackTrace();\n }\n }\n // set the column to record\n tmpRecord.setColumnRecordModels(tmpRecordColumns);\n //\n return linkage.linkSpark(tmpRecord);\n }", "public void populate(){\n DefaultTableModel dtms = (DefaultTableModel)ticketTable.getModel();\n dtms.setRowCount(0);\n for(Ticket a:ticket)\n {\n Object[] row = new Object[dtms.getColumnCount()];\n row[0]=a;\n row[1]=a.getAirlineNO();\n row[2]=a.getCustomer();\n row[3]=a.getSeat();\n row[4]=a.getAirlineAgency();\n out.println(a+\" \"+a.getAirlineNO()+\" \"+a.getCustomer()+\" \"+a.getSeat()+\" \"+a.getAirlineAgency());\n dtms.addRow(row);\n }\n }", "public String reformatDBObject(DBObject record);", "private static List<rowdata> readExcelSheet(Sheet sheet) {\n\n List<rowdata> rowdataList = new ArrayList<>();\n\n if (sheet != null) {\n int rowNos = sheet.getLastRowNum();// 得到excel的总记录条数\n\n for (int i = 1; i <= rowNos; i++) {// 遍历行\n try {\n Row row = sheet.getRow(i);\n if (row != null) {\n Cell cell = row.getCell(0);\n if (cell != null) {\n cell.setCellType(CellType.STRING);\n rowdata rda = new rowdata();\n rda.CodeAll = cell.getStringCellValue();\n rda.no1 = rda.CodeAll.substring(0, 2);\n\n String[] allarr = StringUtils.split(rda.CodeAll, \"-\");\n String dotpart = allarr[1];\n\n String[] arr = StringUtils.split(dotpart, \".\");\n rda.no2 = arr[0];\n rda.no3 = arr[1];\n rda.no4 = arr[2];\n if (arr.length > 3)\n rda.no5 = arr[3];\n\n // System.out.print(cell.getStringCellValue() + \" \");\n rowdataList.add(rda);\n System.out.println(\"当前正在处理的记录是\" + i + \"/\" + rowNos + rda.CodeAll + \"分解后的结果\" + rda.no1 + rda.no2 + rda.no3 + rda.no4 + rda.no5);\n }\n }\n }\n catch (Exception ex)\n {\n System.out.println(\"当前正在处理的记录是\" + i );\n }\n }\n }\n\n\n return rowdataList;\n }", "public InventoryOrder transferExcelToObj(){\r\n\t\tList<InventoryOrderProduct> orderProducts = new ArrayList<InventoryOrderProduct>();\r\n\t\t\r\n\t\tHSSFSheet sheet = templateWorkbook.getSheetAt(0);\r\n\t\tint row_start = data_row;\r\n\r\n\t\twhile (true){\r\n\t\t\tHSSFRow row = sheet.getRow(row_start);\r\n\t\t\tif (row == null)\r\n\t\t\t\tbreak;\r\n\t\t\telse {\r\n\t\t\t\tHSSFCell cell = row.getCell(serial_column);\r\n\t\r\n\t\t\t\tif (cell == null)\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\t\tString barcode = getBarcodeFromExcel(row.getCell(barcode_column));\r\n\t\t\t\tloggerLocal.info(\"Import : \" + barcode);\r\n\t\t\t\t\r\n\t\t\t\tint quantity = ExcelUtil.getPuzzleNum(row.getCell(quantity_column)).intValue();\r\n\t\t\t\tdouble salesPriceSelected = ExcelUtil.getPuzzleNum(row.getCell(salePrice_column));\r\n\t\t\t\tdouble wholeSalePrice = ExcelUtil.getPuzzleNum(row.getCell(wholePrice_column));\r\n\t\t\t\tdouble discount = ExcelUtil.getPuzzleNum(row.getCell(discount_column));\r\n\t\t\t\t\r\n\t\t\t\tInventoryOrderProduct orderProduct = new InventoryOrderProduct();\r\n\t\t\t\torderProduct.setQuantity(quantity);\r\n\t\t\t\torderProduct.setWholeSalePrice(wholeSalePrice);\r\n\t\t\t\t//orderProduct.setSalesPrice(salesPrice);\r\n\t\t\t\torderProduct.setSalePriceSelected(salesPriceSelected);\r\n\t\t\t\torderProduct.setDiscount(discount);\r\n\t\t\t\torderProduct.getProductBarcode().setBarcode(barcode);\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\torderProducts.add(orderProduct);\r\n\t\t\t\t\r\n\t\t\t\trow_start++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\torder.setProduct_List(orderProducts);\r\n\t\t\r\n\t\treturn order;\r\n\t}", "io.dstore.engine.procedures.OmModifyCampaignsAd.Response.Row getRow(int index);", "ExpDataClass getDataClass(int rowId);", "private OSPARRecords parseExcelFile(String excelFilePath) {\n\n\t\ttry {\n\n\t\t\tGsonBuilder builder = new GsonBuilder();\n\t\t\tbuilder.setPrettyPrinting();\n\t\t\tGson gson = builder.create();\n\t\t\t\n\t\t\t\n\t\t\tOSPARRecords or = new OSPARRecords();\n\n\t\t\tFile file = new File(excelFilePath);\n\t\t\tFileInputStream inputStream = new FileInputStream(new File(excelFilePath));\n\n\t\t\tWorkbook workbook = new HSSFWorkbook(inputStream);\n\t\t\tSheet firstSheet = workbook.getSheetAt(0);\n\n\t\t\tint row = 0;\n\n\t\t\tDataFormatter formatter = new DataFormatter();\n\t\t\t\n\t\t\t\n\t\t\twhile (true) {\n\t\t\t\tRow nextRow = firstSheet.getRow(row);\n\n\t\t\t\tif (nextRow == null) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tString value=nextRow.getCell(0)+\"\";\n\t\t\t\t\n\t\t\t\tif (value.equals(\"\")) {\n\t\t\t\t\t\n\t\t\t\t\tString v3=nextRow.getCell(3)+\"\";\n\t\t\t\t\t\n\t\t\t\t\tif (!v3.equals(\"Source/Reference\")) {\n\t\t\t\t\t\tSystem.out.println(excelFilePath+\"\\t\"+or.CasNo+\"\\t\"+v3+\"\\t\"+value);\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\trow++;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (value.equals(\"null\")) break;\n\t\t\t\t\n\t\t\t\tfloat fvalue=Float.parseFloat(value);\n\t\t\t\tDecimalFormat decform=new DecimalFormat(\"0.0\");\n\t\t\t\tString svalue=decform.format(fvalue);\n\t\t\t\t\n//\t\t\t\tSystem.out.println(or.CasNo+\"\\t\"+svalue);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tdata_field df = createDataField(nextRow);\n\t\t\t\t\n\t\t\t\tif (df.Value.equals(\"\") && df.Source_Reference.equals(\"\")) {\n\t\t\t\t\trow++;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\n\t\t\t\tif (svalue.equals(\"0.0\")) \n\t\t\t\t\tor.Name=df.Value;\n\t\t\t\tif (svalue.equals(\"1.1\"))\n\t\t\t\t\tor.CasNo=convertCAS(df.Value);\n\t\t\t\tif (svalue.equals(\"1.2\"))\n\t\t\t\t\tor.EINECS=df.Value;\n\t\t\t\tif (svalue.equals(\"1.3\"))\n\t\t\t\t\tor.Synonym=df.Value;\n\t\t\t\tif (svalue.equals(\"1.4\"))\n\t\t\t\t\tor.Group_Function=df.Value;\n\t\t\t\tif (svalue.equals(\"1.5\"))\n\t\t\t\t\tor.Initial_Selection=df.Value;\n\t\t\t\tif (svalue.equals(\"1.6\"))\n\t\t\t\t\tor.Prioritized_For_Action=df.Value;\n\n\t\t\t\tif (svalue.equals(\"2.1\"))\n\t\t\t\t\tor.Molecular_weight.add(df);\n\t\t\t\tif (svalue.equals(\"2.2\"))\n\t\t\t\t\tor.Water_Solubility.add(df);\n\t\t\t\tif (svalue.equals(\"2.3\"))\n\t\t\t\t\tor.Vapor_Pressure.add(df);\n\n\t\t\t\tif (svalue.equals(\"3.1\"))\n\t\t\t\t\tor.Abiotic_OH_Oxidation_t1_2_d.add(df);\n\t\t\t\tif (svalue.equals(\"3.2\"))\n\t\t\t\t\tor.Photolysis_t1_2_d.add(df);\n\t\t\t\tif (svalue.equals(\"3.3\"))\n\t\t\t\t\tor.Ready_Biodegradability.add(df);\n\t\t\t\tif (svalue.equals(\"3.4\"))\n\t\t\t\t\tor.Halflife.add(df);\n\t\t\t\tif (svalue.equals(\"3.5\"))\n\t\t\t\t\tor.Inherent_Biodegradability.add(df);\n\t\t\t\tif (svalue.equals(\"3.6\"))\n\t\t\t\t\tor.Biodeg_QSAR.add(df);\n\t\t\t\t\n\t\t\t\tif (svalue.equals(\"4.1\"))\n\t\t\t\t\tor.logKow.add(df);\n\t\t\t\tif (svalue.equals(\"4.2\"))\n\t\t\t\t\tor.Bcf.add(df);\n\n\t\t\t\tif (svalue.equals(\"5.1\"))\n\t\t\t\t\tor.Acute_toxicity_algae.add(df);\n\t\t\t\tif (svalue.equals(\"5.2\"))\n\t\t\t\t\tor.Acute_toxicity_daphnia.add(df);\n\t\t\t\tif (svalue.equals(\"5.3\"))\n\t\t\t\t\tor.Acute_toxicity_fish.add(df);\n\t\t\t\tif (svalue.equals(\"5.4\"))\n\t\t\t\t\tor.Chronic_toxicity_daphnia.add(df);\n\t\t\t\tif (svalue.equals(\"5.5\"))\n\t\t\t\t\tor.Chronic_toxicity_fish.add(df);\n\t\t\t\tif (svalue.equals(\"5.6\"))\n\t\t\t\t\tor.Aquatox_QSAR.add(df);\n\t\t\t\tif (svalue.equals(\"5.7\"))\n\t\t\t\t\tor.Aquatic_toxicity_Other.add(df);\n\n\n\t\t\t\tif (svalue.equals(\"6.1\"))\n\t\t\t\t\tor.Acute_toxicity.add(df);\n\t\t\t\tif (svalue.equals(\"6.2\"))\n\t\t\t\t\tor.Carcinogenicity.add(df);\n\t\t\t\tif (svalue.equals(\"6.3\"))\n\t\t\t\t\tor.Chronic_toxicity.add(df);\n\t\t\t\tif (svalue.equals(\"6.4\"))\n\t\t\t\t\tor.Mutagenicity.add(df);\n\t\t\t\tif (svalue.equals(\"6.5\"))\n\t\t\t\t\tor.Reprotoxicity.add(df);\n\n\n\t\t\t\tif (svalue.equals(\"7.1\"))\n\t\t\t\t\tor.Production_Volume.add(df);\n\t\t\t\tif (svalue.equals(\"7.2\"))\n\t\t\t\t\tor.Use_Industry_Category.add(df);\n\t\t\t\tif (svalue.equals(\"7.3\"))\n\t\t\t\t\tor.Use_in_articles.add(df);\n\t\t\t\tif (svalue.equals(\"7.4\"))\n\t\t\t\t\tor.Environm_Occur_Measured.add(df);\n\t\t\t\tif (svalue.equals(\"7.5\"))\n\t\t\t\t\tor.Environm_Occur_Modelled.add(df);\n\n\t\t\t\tif (svalue.equals(\"8.1\"))\n\t\t\t\t\tor.Dir_67_548_EEC_Classification.add(df);\n\t\t\t\tif (svalue.equals(\"8.2\"))\n\t\t\t\t\tor.Reg_793_93_EEC_Existing_substances.add(df);\n\t\t\t\tif (svalue.equals(\"8.3\"))\n\t\t\t\t\tor.Dir_2000_60_EEC_WFD.add(df);\n\t\t\t\tif (svalue.equals(\"8.4\"))\n\t\t\t\t\tor.Dir_76_769_EEC_M_U.add(df);\n\t\t\t\tif (svalue.equals(\"8.5\"))\n\t\t\t\t\tor.Dir_76_464_EEC_water.add(df);\n\t\t\t\tif (svalue.equals(\"8.6\"))\n\t\t\t\t\tor.Dir_91_414_EEC_ppp.add(df);\n\t\t\t\tif (svalue.equals(\"8.7\"))\n\t\t\t\t\tor.Dir_98_8_EEC_biocid.add(df);\n\n\t\t\t\tif (svalue.equals(\"9.1\"))\n\t\t\t\t\tor.Hazard_assessment_OECD.add(df);\n\t\t\t\tif (svalue.equals(\"9.2\"))\n\t\t\t\t\tor.Other_risk_assessments.add(df);\n\n\t\t\t\trow++;\n\n\t\t\t}\n\n\t\t\tinputStream.close();\n\t\t\treturn or;\n\t\t\t\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}", "private static void populateRecord(Student student, ResultSet res)\n\t\t\tthrows SQLException {\n\t\tstudent.setChildid(res.getString(1));\n\t\tstudent.setC1r4rtsc(res.getFloat(2));\n\t\tstudent.setC2r4rtsc(res.getFloat(3));\n\t\tstudent.setC3r4rtsc(res.getFloat(4));\n\t\tstudent.setC4r4rtsc(res.getFloat(5));\n\t\tstudent.setC5r4rtsc(res.getFloat(6));\n\t\tstudent.setC6r4rtsc(res.getFloat(7));\n\t\tstudent.setC7r4rtsc(res.getFloat(8));\n\t\tstudent.setC1r4mtsc(res.getFloat(9));\n\t\tstudent.setC2r4mtsc(res.getFloat(10));\n\t\tstudent.setC3r4mtsc(res.getFloat(11));\n\t\tstudent.setC4r4mtsc(res.getFloat(12));\n\t\tstudent.setC5r4mtsc(res.getFloat(13));\n\t\tstudent.setC6r4mtsc(res.getFloat(14));\n\t\tstudent.setC7r4mtsc(res.getFloat(15));\n\t\tstudent.setC5r2stsc(res.getFloat(16));\n\t\tstudent.setC6r2stsc(res.getFloat(17));\n\t\tstudent.setC7r2stsc(res.getFloat(18));\n\t\tstudent.setP1chlboo(res.getFloat(19));\n\t\tstudent.setP2librar(res.getFloat(20));\n\t\tstudent.setP3sthlib(res.getFloat(21));\n\t\tstudent.setP4clbcrd(res.getFloat(22));\n\t\tstudent.setP5rlbcrd(res.getFloat(23));\n\t\tstudent.setP6chlboo(res.getFloat(24));\n\t\tstudent.setA2gotoli(res.getFloat(25));\n\t\tstudent.setA2borrow(res.getFloat(26));\n\t\tstudent.setA4gotoli(res.getFloat(27));\n\t\tstudent.setA4kborro(res.getFloat(28));\n\t\tstudent.setA5gotoli(res.getFloat(29));\n\t\tstudent.setA5borrow(res.getFloat(30));\n\t\tstudent.setG6gotoli(res.getFloat(31));\n\t\tstudent.setG6borrow(res.getFloat(32));\n\t\tstudent.setK2q1c_a(res.getFloat(33));\n\t\tstudent.setK2q1c_c(res.getFloat(34));\n\t\tstudent.setK2q1c_f(res.getFloat(35));\n\t\tstudent.setK4q1a_c(res.getFloat(36));\n\t\tstudent.setK4q2a_c(res.getFloat(37));\n\t\tstudent.setK4q2d_c(res.getFloat(38));\n\t}", "public void acceptRow( Object[] row ) {\n nrow_++;\n\n /* Get values using the column lookup table.\n * In fact we know what sequence the columns are in so we could\n * hard code the colum indices in here, but doing it like this\n * reduces the chance of programming error. */\n final String ivoid = getString( row, \"ivoid\" );\n final String shortName = getString( row, \"short_name\" );\n final String title = getString( row, \"res_title\" );\n final String refUrl = getString( row, \"reference_url\" );\n final String baseRole = getString( row, \"base_role\" );\n final String roleName = getString( row, \"role_name\" );\n final String email = getString( row, \"email\" );\n final Object intfIndex = getEntry( row, \"intf_index\" );\n final String accessUrl = getString( row, \"access_url\" );\n final String standardId = getString( row, \"standard_id\" );\n final String capType = getString( row, \"cap_type\" );\n final String capDescription = getString( row, \"cap_description\" );\n final String stdVersion = getString( row, \"std_version\" );\n final String subjectTxt = getString( row, \"res_subjects\" );\n\n /* Update this object's data structures in accordance with the\n * information received from this row. */\n if ( ! resMap_.containsKey( ivoid ) ) {\n String[] subjects = subjectTxt == null\n ? new String[ 0 ]\n : subjectTxt.split( SUBJECT_DELIM );\n resMap_.put( ivoid,\n new RegTapResource( ivoid, shortName, title,\n refUrl, subjects ) );\n }\n RegTapResource resource = resMap_.get( ivoid );\n if ( \"contact\".equals( baseRole ) ) {\n resource.contactName_ = roleName;\n resource.contactEmail_ = email;\n }\n else if ( \"publisher\".equals( baseRole ) ) {\n resource.publisherName_ = roleName;\n }\n if ( intfIndex != null ) {\n if ( ! resource.capMap_.containsKey( intfIndex ) ) {\n resource.capMap_.put( intfIndex,\n new RegCapabilityInterface() {\n public String getAccessUrl() {\n return accessUrl;\n }\n public String getStandardId() {\n return standardId;\n }\n public String getXsiType() {\n return capType;\n }\n public String getDescription() {\n return capDescription;\n }\n public String getVersion() {\n return stdVersion;\n }\n } );\n }\n }\n }", "public void newRow();", "static OVRF fromSTRUCT(STRUCT input) throws SQLException {\n\n\t\tif (input == null) {\n\t\t\treturn null;\n\t\t}\n\n\t\tOVRF v = new OVRF();\n\t\tObject[] val = input.getAttributes();\n\t\tv.id = Helpers.integerOrNull((BigDecimal)val[0]);\n\t\tv.rt = (String)val[1];\n\t\tv.name = (String)val[2];\n\t\tv.description = (String)val[3];\n\n\t\treturn v;\n\n\t}", "DataRow rowFromFlatRow(DataRow flatRow) {\n DataRow row = new DataRow(rowCapacity);\n\n // extract subset of flat row columns, recasting to the target keys\n for (ColumnDescriptor column : columns) {\n row.put(column.getName(), flatRow.get(column.getDataRowKey()));\n }\n\n // since JDBC row reader won't inject JOINED entity name, we have to detect it here...\n ClassDescriptor descriptor = resolver.getDescriptor();\n ObjEntity entity = descriptor.getEntityInheritanceTree().entityMatchingRow(row);\n row.setEntityName(entity == null ? null : entity.getName());\n return row;\n }", "@Override\n protected List<Map<String, Object>> getInputRecords() {\n Map[] simpleStructs = new Map[]{\n null, createStructInput(\"structString\", \"abc\", \"structLong\", 1000L, \"structDouble\", 5.99999),\n createStructInput(\"structString\", \"def\", \"structLong\", 2000L, \"structDouble\", 6.99999),\n createStructInput(\"structString\", \"ghi\", \"structLong\", 3000L, \"structDouble\", 7.99999)\n };\n\n // complex struct - contains a string and nested struct of int and long\n Map[] complexStructs = new Map[]{\n createStructInput(\"structString\", \"abc\", \"nestedStruct\",\n createStructInput(\"nestedStructInt\", 4, \"nestedStructLong\", 4000L)),\n createStructInput(\"structString\", \"def\", \"nestedStruct\",\n createStructInput(\"nestedStructInt\", 5, \"nestedStructLong\", 5000L)), null,\n createStructInput(\"structString\", \"ghi\", \"nestedStruct\",\n createStructInput(\"nestedStructInt\", 6, \"nestedStructLong\", 6000L))\n };\n\n // complex list element - each element contains a struct of int and double\n List[] complexLists = new List[]{\n Arrays.asList(createStructInput(\"complexListInt\", 10, \"complexListDouble\", 100.0),\n createStructInput(\"complexListInt\", 20, \"complexListDouble\", 200.0)), null,\n Collections.singletonList(createStructInput(\"complexListInt\", 30, \"complexListDouble\", 300.0)),\n Arrays.asList(createStructInput(\"complexListInt\", 40, \"complexListDouble\", 400.0),\n createStructInput(\"complexListInt\", 50, \"complexListDouble\", 500.0))\n };\n\n // single value integer\n Integer[] userID = new Integer[]{1, 2, null, 4};\n\n // single value string\n String[] firstName = new String[]{null, \"John\", \"Ringo\", \"George\"};\n\n // collection of integers\n List[] bids = new List[]{Arrays.asList(10, 20), null, Collections.singletonList(1), Arrays.asList(1, 2, 3)};\n\n // single value double\n double[] cost = new double[]{10000, 20000, 30000, 25000};\n\n // single value long\n long[] timestamp = new long[]{1570863600000L, 1571036400000L, 1571900400000L, 1574000000000L};\n\n // simple map with string keys and integer values\n Map[] simpleMaps = new Map[]{\n createStructInput(\"key1\", 10, \"key2\", 20), null, createStructInput(\"key3\", 30),\n createStructInput(\"key4\", 40, \"key5\", 50)\n };\n\n // complex map with struct values - struct contains double and string\n Map[] complexMap = new Map[]{\n createStructInput(\"key1\", createStructInput(\"doubleField\", 2.0, \"stringField\", \"abc\")), null,\n createStructInput(\"key1\", createStructInput(\"doubleField\", 3.0, \"stringField\", \"xyz\"), \"key2\",\n createStructInput(\"doubleField\", 4.0, \"stringField\", \"abc123\")),\n createStructInput(\"key1\", createStructInput(\"doubleField\", 3.0, \"stringField\", \"xyz\"), \"key2\",\n createStructInput(\"doubleField\", 4.0, \"stringField\", \"abc123\"), \"key3\",\n createStructInput(\"doubleField\", 4.0, \"stringField\", \"asdf\"))\n };\n\n List<Map<String, Object>> inputRecords = new ArrayList<>(4);\n for (int i = 0; i < 4; i++) {\n Map<String, Object> record = new HashMap<>();\n record.put(\"userID\", userID[i]);\n record.put(\"firstName\", firstName[i]);\n record.put(\"bids\", bids[i]);\n record.put(\"cost\", cost[i]);\n record.put(\"timestamp\", timestamp[i]);\n record.put(\"simpleStruct\", simpleStructs[i]);\n record.put(\"complexStruct\", complexStructs[i]);\n record.put(\"complexList\", complexLists[i]);\n record.put(\"simpleMap\", simpleMaps[i]);\n record.put(\"complexMap\", complexMap[i]);\n\n inputRecords.add(record);\n }\n return inputRecords;\n }", "public void render(Row row, Object data)\n {\n String pduType = \"Unknown\";\n String timestamp = \"Unknown\";\n String content = \"...\";\n Pdu pdu;\n EntityID eid;\n \n // It needs to be a PDU\n if(!(data instanceof Pdu))\n {\n return;\n }\n \n pdu = (Pdu)data;\n \n // First column: the pdu type. this needs to be handled less verbosely \n // in the dis-xml package\n short pduShortType = pdu.getPduType();\n switch(pduShortType)\n {\n case 1: pduType = \"ESPDU\";\n EntityStatePdu espdu = (EntityStatePdu)pdu;\n content = \"Source ID:\";\n eid = espdu.getEntityID();\n content = content + \"(\" + new Integer(eid.getSite()).toString() + \",\" +\n new Integer(eid.getApplication()).toString() + \",\" +\n new Integer(eid.getEntity()).toString() + \")\";\n\n break;\n \n case 2: pduType = \"Fire\";\n break;\n \n case 3: pduType = \"Detonation\";\n break;\n \n default:\n pduType = pdu.getClass().getName();\n }\n \n \n // Second column: the timestamp\n timestamp = new Long(pdu.getTimestamp()).toString();\n \n \n // Create new Label objects to be placed in the row.\n new Label(pduType).setParent(row);\n new Label(timestamp).setParent(row);\n new Label(content).setParent(row);\n \n return; \n }", "DataSet toDataSet(Object adaptee);", "public static JSONObject constructEmpyTable(JSONObject obj) {\n JSONObject data = new JSONObject();\n data.put(\"repo\", obj.get(\"repo_name\")); // name of the repository associated with this file\n data.put(\"classes\", new JSONObject());\n return data;\n }", "private Object columnToRow(Column column, Schema schema) {\n String columnName = column.getQualifier().toStringUtf8();\n Schema.FieldType columnType = schema.getField(columnName).getType();\n List<Cell> cells = column.getCellsList();\n switch (columnType.getTypeName()) {\n case ARRAY:\n Schema.FieldType collectionElementType = columnType.getCollectionElementType();\n if (collectionElementType != null) {\n return cells.stream()\n .map(cell -> getCellValue(cell, collectionElementType))\n .collect(toList());\n } else {\n throw new NullPointerException(\"Null collectionElementType at column \" + columnName);\n }\n case ROW:\n @Nullable Schema rowSchema = columnType.getRowSchema();\n if (rowSchema == null) {\n throw new NullPointerException(\"Null row schema at column \" + columnName);\n } else {\n return cellToRow(getLastCell(cells), rowSchema);\n }\n default:\n return getCellValue(getLastCell(cells), columnType);\n }\n }", "private Object getCellData(Cell cell) {\n\n if (cell == null)\n return \"\";\n else\n switch (cell.getCellTypeEnum()) {\n case STRING:\n return cell.getStringCellValue();\n\n case BOOLEAN:\n return cell.getBooleanCellValue();\n\n case NUMERIC:\n return cell.getNumericCellValue();\n\n //case _NONE:\n // return cell.getDateCellValue();\n\n default:\n return \"\";\n }\n }", "@Override\r\n\t\t\t\t\t public Object mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\t\t\t\tStudentVO vo=new StudentVO();\r\n\t\t\t\t\t\tvo.setName(rs.getString(1));\r\n\t\t\t\t\t\tvo.setKor(rs.getInt(2));\r\n\t\t\t\t\t\tvo.setEng(rs.getInt(3));\r\n\t\t\t\t\t\tvo.setMath(rs.getInt(4));\r\n\t\t\t\t\t\tvo.setTotal(rs.getInt(5));\r\n\t\t\t\t\t\tvo.setAvg(rs.getDouble(6));\r\n\t\t\t\t\t\treturn vo;\r\n\t\t\t\t\t }", "public String[][] fill_table()\n {\n int j=0;\n String[][] data = new String[0][];\n for (Map.Entry<String,Descriptor> entry :parms.getDescriptors().entrySet()) {\n\n data[j][0]=entry.getValue().getId();\n data[j][1]= String.valueOf(entry.getValue().getType());\n data[j][2]= String.valueOf(entry.getValue().getCapacity());\n data[j][3]= String.valueOf(entry.getValue().getState());\n data[j][4]= String.valueOf(entry.getValue().getNbRequest());\n data[j][5]= String.valueOf(entry.getValue().getRequest());\n data[j][6]= String.valueOf(entry.getValue().getRange());\n data[j][7]= String.valueOf(entry.getValue().getService());\n Point p=entry.getValue().getPosition();\n data[j][8]= String.valueOf(p.getX());\n data[j][9]= String.valueOf(p.getY());\n j++;\n }\n return data;\n }", "@Override\n\t\tpublic TicketCharge asBean(Row row) {\n\t\t\t TicketCharge ticketCharge=new TicketCharge((Long)row.get(TICKETCHARGE.TICKET_CHARGE_ID),(Long)row.get(TICKETCHARGE.TICKET_ID),(Long)row.get(TICKETCHARGE.EXTRA_ID),(Integer)row.get(TICKETCHARGE.QUANTITY));\n\t\t\t return ticketCharge;\n }", "int addRow(RowData row_data) throws IOException;", "String[][] packData();", "private void getExcelData21ZV() throws Exception {\n\t\tlistHeader = new ArrayList<ExcelPromotionHeader>();\n\t\tlistDetail = new ArrayList<ExcelPromotionDetail>();\n\t\tlistUnit = new ArrayList<ExcelPromotionUnit>();\n\t\tmapHeader = new HashMap<String, ExcelPromotionHeader>();\n\t\tmapUnit = new HashMap<String, ExcelPromotionUnit>();\n\t\tmapErrorPromotion = new HashMap<String, String>();\n\t\tmapType = new HashMap<String, String>();\n\t\tmapPromotionMua = new HashMap<String, ListGroupMua>();\n\t\tmapPromotionKM = new HashMap<String, ListGroupKM>();\n\t\tmapMuaKM = new MapMuaKM();\n\t\tmapPromotionTypeCheck = new HashMap<String, String>();\n\t\tlstHeaderError = new ArrayList<CellBean>();\n\t\tlstDetailError = new ArrayList<CellBean>();\n\t\tlistUnitError = new ArrayList<CellBean>();\n\t\tMap<String, Integer> mapCheckHeaderDuplicate = new HashMap<String, Integer>();\n\t\tMap<String, String> mapCheckType = apParamMgr.getMapPromotionType();\n\t\tWorkbook myWorkBook = null;\n\t\tInputStream is = new FileInputStream(excelFile);\n\t\tint MAX_ARRAY = 10000;\n\t\tfinal int NUM_SHEETS = 2;\n\n\t\tif (!is.markSupported()) {\n\t\t\tis = new PushbackInputStream(is, 8);\n\t\t}\n\t\tif (POIFSFileSystem.hasPOIFSHeader(is)) {\n\t\t\tmyWorkBook = new HSSFWorkbook(is);\n\t\t} else if (POIXMLDocument.hasOOXMLHeader(is)) {\n\t\t\tmyWorkBook = new XSSFWorkbook(OPCPackage.open(is));\n\t\t}\n\t\tif (myWorkBook != null) {\n\t\t\tif (myWorkBook.getNumberOfSheets() < NUM_SHEETS) {\n\t\t\t\tthrow new Exception(ERR_NUM_SHEET);\n\t\t\t}\n\t\t\tSheet headerSheet = myWorkBook.getSheetAt(0);\n\t\t\tSheet detailSheet = myWorkBook.getSheetAt(1);\n\t\t\tSheet unitSheet = myWorkBook.getSheetAt(2);\n\t\t\tint iRun = 0;\n\t\t\ttotalItem = 0;\n\t\t\tint maxSizeSheet1 = 12;\n\t\t\tif (headerSheet != null) {\n\t\t\t\tIterator<?> rowIter = headerSheet.rowIterator();\n\t\t\t\twhile (rowIter.hasNext()) {\n\t\t\t\t\tRow myRow = (Row) rowIter.next();\n\t\t\t\t\tif (iRun == 0) {\n\t\t\t\t\t\tiRun++;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tboolean isContinue = true;\n\t\t\t\t\t//Kiem tra su hop le cua Row Import\n\t\t\t\t\tfor (int i = 0; i < maxSizeSheet1; i++) {\n\t\t\t\t\t\tif (myRow.getCell(i) != null && !StringUtil.isNullOrEmpty(getCellValueToString(myRow.getCell(i)))) {\n\t\t\t\t\t\t\tisContinue = false;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (isContinue) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tExcelPromotionHeader header = new ExcelPromotionHeader();\n\t\t\t\t\tCellBean errRow = new CellBean();\n\t\t\t\t\tString messageError = \"\";\n\t\t\t\t\ttotalItem++;\n\t\t\t\t\t//0\tget promotionCode\n\t\t\t\t\tString promotionCode = \"\";\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellPromotionCode = myRow.getCell(0);\n\t\t\t\t\t\tif (cellPromotionCode != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\t//\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t//\t\t\t\t\t\t\tpromotionCode = cellPromotionCode.getStringCellValue();\n\t\t\t\t\t\t\t//\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t//\t\t\t\t\t\t\tpromotionCode = String.valueOf(cellPromotionCode.getNumericCellValue());\n\t\t\t\t\t\t\t//\t\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t\t\t//\t\t\t\t\t\t}\n\t\t\t\t\t\t\tpromotionCode = getCellValueToString(cellPromotionCode);\n\t\t\t\t\t\t\tpromotionCode = promotionCode != null ? promotionCode.toUpperCase().trim() : \"\";\n\t\t\t\t\t\t\theader.promotionCode = promotionCode;\n\t\t\t\t\t\t\terrRow.setContent1(promotionCode);\n\t\t\t\t\t\t\tif (StringUtil.isNullOrEmpty(promotionCode)) {\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.column.null\", \"Mã CTKM\");\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tmessageError += ValidateUtil.validateField(promotionCode, \"catalog.promotion.import.column.progcode\", 50, ConstantManager.ERR_REQUIRE, ConstantManager.ERR_MAX_LENGTH, ConstantManager.ERR_EXIST_SPECIAL_CHAR_IN_CODE);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (mapCheckHeaderDuplicate.get(promotionCode) != null) {\n\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.product.import.duplicate\", mapCheckHeaderDuplicate.get(promotionCode));\n\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tmapCheckHeaderDuplicate.put(promotionCode, myRow.getRowNum());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tPromotionProgram existPromotion = promotionProgramMgr.getPromotionProgramByCode(promotionCode);\n\t\t\t\t\t\t\tif (existPromotion != null && !ActiveType.WAITING.equals(existPromotion.getStatus())) {\n\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.program.exists\");\n\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.get.promotion.error\", promotionCode);\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t\t//\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.string\", iRun, \"ProgCode\");\n\t\t\t\t\t}\n\t\t\t\t\t//1\tget description\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellDescription = myRow.getCell(1);\n\t\t\t\t\t\tif (cellDescription != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tString description = getCellValueToString(cellDescription);\n\t\t\t\t\t\t\theader.description = description;\n\t\t\t\t\t\t\terrRow.setContent2(description);\n\t\t\t\t\t\t\tmessageError += ValidateUtil.validateField(description, \"catalog.promotion.import.column.progpescr\", 100, ConstantManager.ERR_REQUIRE, ConstantManager.ERR_MAX_LENGTH, ConstantManager.ERR_EXIST_SPECIAL_CHAR_IN_NAME);\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.string\", iRun, \"ProgDescr\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t//2\tget release\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (myRow.getCell(2) != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\terrRow.setContent3(getCellValueToString(myRow.getCell(2)));\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.number\", iRun, \"Release\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t//3\tget promotion type\n\t\t\t\t\tString type = null;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellPromotionType = myRow.getCell(3);\n\t\t\t\t\t\tif (cellPromotionType != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\ttype = getCellValueToString(cellPromotionType);\n\t\t\t\t\t\t\ttype = type != null ? type.toUpperCase().trim() : \"\";\n\t\t\t\t\t\t\theader.type = type;\n\t\t\t\t\t\t\terrRow.setContent4(type);\n\t\t\t\t\t\t\tif (StringUtil.isNullOrEmpty(type)) {\n\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"common.required\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.type\"));\n\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (mapCheckType.get(type) == null) {\n\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.exists.before\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.type\"));\n\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tmapType.put(header.promotionCode, type);\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.string\", iRun, \"ConditionTypeCode\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t//4 get format\n\t\t\t\t\t//try {\n\t\t\t\t\t//\tCell cellFormat = myRow.getCell(4);\n\t\t\t\t\t//\tif (cellFormat != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t//\t\tString format = cellFormat.getStringCellValue();\n\t\t\t\t\t//\t\theader.format = format;\n\t\t\t\t\t//\t\terrRow.setContent5(format);\n\t\t\t\t\t//\t}\n\t\t\t\t\t//} catch (Exception e) {\n\t\t\t\t\t//\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.string\", iRun, \"User1\");\n\t\t\t\t\t//}\n\t\t\t\t\t//4 get fromDate\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellFromDate = myRow.getCell(4);\n\t\t\t\t\t\tif (cellFromDate != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tif (cellFromDate.getCellType() == Cell.CELL_TYPE_NUMERIC && cellFromDate.getCellStyle() != null && DateUtil.HSSF_DATE_FORMAT_M_D_YY.equals(cellFromDate.getCellStyle().getDataFormatString())) {\n\t\t\t\t\t\t\t\tif (cellFromDate.getDateCellValue() != null || !StringUtil.isNullOrEmpty(cellFromDate.getStringCellValue())) {\n\t\t\t\t\t\t\t\t\tString __fromDate = DateUtil.toDateString(cellFromDate.getDateCellValue(), DateUtil.DATE_FORMAT_DDMMYYYY);\n\t\t\t\t\t\t\t\t\tDate fromDate = DateUtil.toDate(__fromDate, DateUtil.DATE_FORMAT_DDMMYYYY);\n\t\t\t\t\t\t\t\t\theader.fromDate = fromDate;\n\t\t\t\t\t\t\t\t\terrRow.setContent5(__fromDate);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"common.required\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"imp.epx.tuyen.clmn.tuNgay\"));\n\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else if (cellFromDate.getCellType() == Cell.CELL_TYPE_NUMERIC && cellFromDate.getCellStyle() != null && DateUtil.DATE_FORMAT_VISIT.equals(cellFromDate.getCellStyle().getDataFormatString())) {\n\t\t\t\t\t\t\t\tif (cellFromDate.getDateCellValue() != null || !StringUtil.isNullOrEmpty(cellFromDate.getStringCellValue())) {\n\t\t\t\t\t\t\t\t\tString __fromDate = DateUtil.toDateString(cellFromDate.getDateCellValue(), DateUtil.DATE_FORMAT_VISIT);\n\t\t\t\t\t\t\t\t\tDate fromDate = DateUtil.toDate(__fromDate, DateUtil.DATE_FORMAT_VISIT);\n\t\t\t\t\t\t\t\t\theader.fromDate = fromDate;\n\t\t\t\t\t\t\t\t\terrRow.setContent5(__fromDate);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"common.required\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"imp.epx.tuyen.clmn.tuNgay\"));\n\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tif (!StringUtil.isNullOrEmpty(cellFromDate.getStringCellValue())) {\n\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\tString __fromDate = cellFromDate.getStringCellValue();\n\t\t\t\t\t\t\t\t\t\tif (DateUtil.checkInvalidFormatDate(__fromDate)) {\n\t\t\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"common.invalid.format.date\", R.getResource(\"imp.epx.tuyen.clmn.tuNgay\"));\n\t\t\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t\t\t\terrRow.setContent5(__fromDate);\n\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\tDate fromDate = DateUtil.toDate(__fromDate, DateUtil.DATE_FORMAT_DDMMYYYY);\n\t\t\t\t\t\t\t\t\t\t\theader.fromDate = fromDate;\n\t\t\t\t\t\t\t\t\t\t\terrRow.setContent5(__fromDate);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t} catch (Exception e1) {\n\t\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"common.invalid.format.date\", R.getResource(\"imp.epx.tuyen.clmn.tuNgay\"));\n\t\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t\t\terrRow.setContent5(cellFromDate.getStringCellValue());\n\t\t\t\t\t\t\t\t\t\tLogUtility.logError(e1, e1.getMessage());\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"common.required\", R.getResource(\"imp.epx.tuyen.clmn.tuNgay\"));\n\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.cant.read.cell.date\", iRun, \"FromDate\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t//5 get toDate\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellToDate = myRow.getCell(5);\n\t\t\t\t\t\tif (cellToDate != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tif (cellToDate.getCellType() == Cell.CELL_TYPE_NUMERIC && cellToDate.getCellStyle() != null && DateUtil.HSSF_DATE_FORMAT_M_D_YY.equals(cellToDate.getCellStyle().getDataFormatString())) {\n\t\t\t\t\t\t\t\tif (cellToDate.getDateCellValue() != null || !StringUtil.isNullOrEmpty(cellToDate.getStringCellValue())) {\n\t\t\t\t\t\t\t\t\tString __toDate = DateUtil.toDateString(cellToDate.getDateCellValue(), DateUtil.DATE_FORMAT_DDMMYYYY);\n\t\t\t\t\t\t\t\t\tDate toDate = DateUtil.toDate(__toDate, DateUtil.DATE_FORMAT_DDMMYYYY);\n\t\t\t\t\t\t\t\t\theader.toDate = toDate;\n\t\t\t\t\t\t\t\t\terrRow.setContent6(__toDate);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else if (cellToDate.getCellType() == Cell.CELL_TYPE_NUMERIC && cellToDate.getCellStyle() != null && DateUtil.DATE_FORMAT_VISIT.equals(cellToDate.getCellStyle().getDataFormatString())) {\n\t\t\t\t\t\t\t\tif (cellToDate.getDateCellValue() != null || !StringUtil.isNullOrEmpty(cellToDate.getStringCellValue())) {\n\t\t\t\t\t\t\t\t\tString __toDate = DateUtil.toDateString(cellToDate.getDateCellValue(), DateUtil.DATE_FORMAT_VISIT);\n\t\t\t\t\t\t\t\t\tDate toDate = DateUtil.toDate(__toDate, DateUtil.DATE_FORMAT_VISIT);\n\t\t\t\t\t\t\t\t\theader.toDate = toDate;\n\t\t\t\t\t\t\t\t\terrRow.setContent6(__toDate);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else if (!StringUtil.isNullOrEmpty(cellToDate.getStringCellValue())) {\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tString __toDate = cellToDate.getStringCellValue();\n\t\t\t\t\t\t\t\t\tif (DateUtil.checkInvalidFormatDate(__toDate)) {\n\t\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"common.invalid.format.date\", R.getResource(\"imp.epx.tuyen.clmn.denNgay\"));\n\t\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t\t\terrRow.setContent6(__toDate);\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tDate toDate = DateUtil.toDate(__toDate, DateUtil.DATE_FORMAT_DDMMYYYY);\n\t\t\t\t\t\t\t\t\t\theader.toDate = toDate;\n\t\t\t\t\t\t\t\t\t\terrRow.setContent6(__toDate);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} catch (Exception e1) {\n\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"common.invalid.format.date\", R.getResource(\"imp.epx.tuyen.clmn.denNgay\"));\n\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t\terrRow.setContent6(cellToDate.getStringCellValue());\n\t\t\t\t\t\t\t\t\tLogUtility.logError(e1, e1.getMessage());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (header.fromDate != null && header.toDate != null) {\n\t\t\t\t\t\t\tif (DateUtil.compareDateWithoutTime(header.fromDate, header.toDate) > 0) {\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"common.fromdate.greater.todate\") + \"\\n\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.cant.read.cell.date\", iRun, \"ToDate\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\n\t\t\t\t\t//6 Số thông báo CTKM\n\t\t\t\t\t/*\n\t\t\t\t\t * String description =\n\t\t\t\t\t * getCellValueToString(cellDescription); header.description\n\t\t\t\t\t * = description; errRow.setContent2(description);\n\t\t\t\t\t * messageError += ValidateUtil.validateField(description,\n\t\t\t\t\t * \"catalog.promotion.import.column.progpescr\", 100,\n\t\t\t\t\t * ConstantManager.ERR_REQUIRE,\n\t\t\t\t\t * ConstantManager.ERR_MAX_LENGTH,\n\t\t\t\t\t * ConstantManager.ERR_EXIST_SPECIAL_CHAR_IN_NAME);\n\t\t\t\t\t */\n\t\t\t\t\t\n\t\t\t\t\t/*errMsg = ValidateUtil.validateField(promotionName, \"catalog.promotion.name\", 500, ConstantManager.ERR_REQUIRE, ConstantManager.ERR_EXIST_SPECIAL_CHAR_IN_SPECIAL, ConstantManager.ERR_MAX_LENGTH);\n\t\t\t\t\tif (StringUtil.isNullOrEmpty(errMsg)) {\n\t\t\t\t\t\terrMsg = ValidateUtil.validateField(description, \"common.description\", null, ConstantManager.ERR_EXIST_SPECIAL_CHAR_IN_SPECIAL);\n\t\t\t\t\t}*/\n\t\t\t\t\t\n\t\t\t\t\t// 6 Số thông báo\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellNoticeCode = myRow.getCell(6);\n\t\t\t\t\t\tif (cellNoticeCode != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tString noticeCode = getCellValueToString(cellNoticeCode);\n\t\t\t\t\t\t\tif(noticeCode != null){\n\t\t\t\t\t\t\t\tnoticeCode = noticeCode.trim();\n\t\t\t\t\t\t\t\tnoticeCode = noticeCode.toUpperCase();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tmessageError = ValidateUtil.validateField(noticeCode, \"catalog.promotion.noticecode\", 100, ConstantManager.ERR_EXIST_SPECIAL_CHAR_IN_SPECIAL);\n\t\t\t\t\t\t\t/*if(noticeCode.length() > 100){\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.notice.code.over.length\")+\"\\n\";\n\t\t\t\t\t\t\t}else*/ \n\t\t\t\t\t\t\tif(StringUtil.isNullOrEmpty(noticeCode)) {\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.notice.code.obligate\") + \"\\n\";\n\t\t\t\t\t\t\t}else if(noticeCode != null && noticeCode.trim().length() > 100){\n\t\t\t\t\t\t\t\t//messageError += R.getResource(\"catalog.promotion.import.notice.code.incorrect.format\");\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.over.max.length\") + \"\\n\";\n\t\t\t\t\t\t\t\tmessageError = messageError.replaceAll(\"%max%\", \"100\");\n\t\t\t\t\t\t\t\tmessageError = messageError.replaceAll(\"%colName%\", \"Số thông báo\");\n\t\t\t\t\t\t\t}else if(StringUtil.isNullOrEmpty(messageError)){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\theader.noticeCode = noticeCode;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\terrRow.setContent7(noticeCode);\n\t\t\t\t\t\t}else if (cellNoticeCode == null) {\n\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.notice.code.obligate\") + \"\\n\";\n\t\t\t\t\t\t} \n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.cant.read.cell.string\", iRun, \"NoticeCode\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t// 7 Nhóm/Tên SP hàng bán\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellDesProduct = myRow.getCell(7);\n\t\t\t\t\t\tif (cellDesProduct != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tString descProduct = getCellValueToString(cellDesProduct);\n\t\t\t\t\t\t\tif(descProduct != null){\n\t\t\t\t\t\t\t\tdescProduct = descProduct.trim();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//descProduct = descProduct.trim();\n\t\t\t\t\t\t\tmessageError = ValidateUtil.validateField(descProduct, \"catalog.promotion.descriptionproduct\", 1000, ConstantManager.ERR_EXIST_SPECIAL_CHAR_IN_SPECIAL);\n\t\t\t\t\t\t\t/*if(descProduct.length() > 1000){\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.desc.product.over.length\")+\"\\n\";\n\t\t\t\t\t\t\t}else*/ \n\t\t\t\t\t\t\tif(StringUtil.isNullOrEmpty(descProduct)) {\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.description.product.obligate\") + \"\\n\";\n\t\t\t\t\t\t\t}else if(descProduct.trim().length() > 1000){\n\t\t\t\t\t\t\t\t//messageError += R.getResource(\"catalog.promotion.import.description.product.incorrect.format\") + \"\\n\";\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.over.max.length\") + \"\\n\";\n\t\t\t\t\t\t\t\tmessageError = messageError.replaceAll(\"%max%\", \"1000\");\n\t\t\t\t\t\t\t\tmessageError = messageError.replaceAll(\"%colName%\", \"Nhóm/Tên SP hàng bán\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if(StringUtil.isNullOrEmpty(messageError)){\n\t\t\t\t\t\t\t\tdescProduct = descProduct.trim();\n\t\t\t\t\t\t\t\theader.decriptionProduct = descProduct;\n\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\n\t\t\t\t\t\t\terrRow.setContent8(descProduct);\n\t\t\t\t\t\t}else if(cellDesProduct == null) {\n\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.description.product.obligate\") + \"\\n\";\n\t\t\t\t\t\t} \n\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.cant.read.cell.string\", iRun, \"DescProduct\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\n\t\t\t\t\t// 8 Mô tả chương trình\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellDescription = myRow.getCell(8);\n\t\t\t\t\t\tif (cellDescription != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tString description = getCellValueToString(cellDescription);\n\t\t\t\t\t\t\tif(description != null){\n\t\t\t\t\t\t\t\tdescription = description.trim();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif(description != null && description.trim().length() > 1000){\n\t\t\t\t\t\t\t\t//messageError += R.getResource(\"catalog.promotion.import.description.program.incorrect.format\") + \"\\n\";\n\t\t\t\t\t\t\t\t//messageError += R.getResource(\"\", iRun, \"Description\");\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.over.max.length\") + \"\\n\";\n\t\t\t\t\t\t\t\tmessageError = messageError.replaceAll(\"%max%\", \"1000\");\n\t\t\t\t\t\t\t\tmessageError = messageError.replaceAll(\"%colName%\", \"Mô tả chương trình\");\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tdescription = description.trim();\n\t\t\t\t\t\t\t\theader.descriptionProgram = description;\n\t\t\t\t\t\t\t\terrRow.setContent9(description);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t/*else if(cellDescription != null){\n\t\t\t\t\t\t\tString description = getCellValueToString(cellDescription);\n\t\t\t\t\t\t\terrRow.setContent9(description);\n\t\t\t\t\t\t}*/\n\t\t\t\t\t\t\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.cant.read.cell.string\", iRun, \"Description\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t//9 Bội số\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellMultiple = myRow.getCell(9);\n\t\t\t\t\t\theader.multiple = 0; \n\t\t\t\t\t\tif (cellMultiple != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tString multiple = getCellValueToString(cellMultiple);\n\t\t\t\t\t\t\tApParam apParam = apParamMgr.getApParamByCode(\"LIST_PROMO_ALLOW_MULTIPLE\", ApParamType.LIST_PROMO_ALLOW_MULTIPLE);\n\t\t\t\t\t\t\tString strListPromo = apParam != null?apParam.getValue() : \"ZV02,ZV03,ZV05,ZV06,ZV08,ZV09,ZV11,ZV12,ZV13,ZV14,ZV15,ZV16,ZV17,ZV18,ZV20,ZV21,ZV23,ZV24\";\n\t\t\t\t\t\t\tif ((Constant.IS_MULTIPLE.equals(multiple) || Constant.NON_MULTIPLE.equals(multiple)) \n\t\t\t\t\t\t\t\t\t&& strListPromo != null) {\n\t\t\t\t\t\t\t\tstrListPromo = strListPromo.replace(\" \", \"\");\n\t\t\t\t\t\t\t\tstrListPromo = strListPromo.toUpperCase();\n\t\t\t\t\t\t\t\tString[] ListPromoAllow = strListPromo.split(\",\");\n\t\t\t\t\t\t\t\tif (Constant.IS_MULTIPLE.equals(multiple) \n\t\t\t\t\t\t\t\t\t &&\t!Arrays.asList(ListPromoAllow).contains(header.type.toUpperCase())) {\n\t\t\t\t\t\t\t\t\tSystem.out.println(header.type.toUpperCase());\n\t\t\t\t\t\t\t\t\tSystem.out.println(strListPromo);\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.multiple.not.use\") + \"\\n\";\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\theader.multiple = Integer.parseInt(multiple.trim());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.multiple.incorrect.format\") + \"\\n\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\terrRow.setContent10(multiple);\n\t\t\t\t\t\t}/*else if(cellMultiple != null){\n\t\t\t\t\t\t\tString multiple = getCellValueToString(cellMultiple);\n\t\t\t\t\t\t\terrRow.setContent10(multiple);\n\t\t\t\t\t\t}*/\n\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.number\", iRun, \"Multiple\", \"['','X']\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t// 10 Tối ưu\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellRecursive = myRow.getCell(10);\n\t\t\t\t\t\theader.recursive = 0;\n\t\t\t\t\t\tif (cellRecursive != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tString recursive = getCellValueToString(cellRecursive);\n\t\t\t\t\t\t\tApParam apParam = apParamMgr.getApParamByCode(\"LIST_PROMO_ALLOW_RECURSIVE\", ApParamType.LIST_PROMO_ALLOW_RECURSIVE);\n\t\t\t\t\t\t\tString strListPromo = apParam == null? \"ZV02,ZV03,ZV05,ZV06,ZV08,ZV09,ZV11,ZV12,ZV13,ZV14,ZV15,ZV16,ZV17,ZV18,ZV20,ZV21,ZV23,ZV24\":apParam.getValue();\n\t\t\t\t\t\t\tif ((Constant.IS_RECURSIVE.equals(recursive) || Constant.NON_RECURSIVE.equals(recursive)) \n\t\t\t\t\t\t\t\t\t&& strListPromo != null) {\n\t\t\t\t\t\t\t\tstrListPromo = strListPromo.replace(\" \", \"\");\n\t\t\t\t\t\t\t\tString[] listPromoAllow = strListPromo.split(\",\");\n\t\t\t\t\t\t\t\tif (Constant.IS_RECURSIVE.equals(recursive)\t\t\t\n\t\t\t\t\t\t\t\t\t &&\t!Arrays.asList(listPromoAllow).contains(header.type.toUpperCase())) {\n\t\t\t\t\t\t\t\t/*\tSystem.out.println(header.type.toUpperCase());\n\t\t\t\t\t\t\t\t\tSystem.out.println(strListPromo);*/\n\t\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.recursive.not.use\") + \"\\n\";\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\theader.recursive = Integer.parseInt(recursive.trim());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.recursive.incorrect.format\") + \"\\n\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\terrRow.setContent11(recursive);\n\t\t\t\t\t\t}/*else if(cellRecursive != null){\n\t\t\t\t\t\t\tString recursive = getCellValueToString(cellRecursive);\n\t\t\t\t\t\t\terrRow.setContent11(recursive);\n\t\t\t\t\t\t}*/\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.number\", iRun, \"Recursive\", \"['','X']\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t// 9 Loại trả thưởng\n\t\t\t\t/*\ttry {\n\t\t\t\t\t\tCell cellRewardType = myRow.getCell(9);\n\t\t\t\t\t\tApParam apParam = apParamMgr.getApParamByCode(\"LIST_ALLOW_REWARD_TYPE\", ApParamType.LIST_ALLOW_REWARD_TYPE);\n\t\t\t\t\t\tString strListAllowReward = apParam.getApParamName();\n\t\t\t\t\t\tstrListAllowReward = strListAllowReward.replace(\" \", \"\");\n\t\t\t\t\t\tString[] listAllowReward = strListAllowReward.split(\",\");\n\t\t\t\t\t\tif (cellRewardType != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tString strRewardType = getCellValueToString(cellRewardType);\n\t\t\t\t\t\t\tif (strRewardType != null \n\t\t\t\t\t\t\t\t\t&& (Constant.DISCOUNT_MONEY.equals(strRewardType) || Constant.VOUCHER.equals(strRewardType)) \n\t\t\t\t\t\t\t\t\t&& Arrays.asList(listAllowReward).contains(header.type)) {\n\t\t\t\t\t\t\t\theader.rewardType = Integer.parseInt(strRewardType.trim());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\terrRow.setContent10(strRewardType);\n\t\t\t\t\t\t}else if(cellRewardType != null){\n\t\t\t\t\t\t\tString strRewardType = getCellValueToString(cellRewardType);\n\t\t\t\t\t\t\terrRow.setContent10(strRewardType);\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.cant.read.cell.number\", iRun, \"RewardType\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t// 10 Từ ngày trả thưởng\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellFromDateReward = myRow.getCell(10);\n\t\t\t\t\t\tif (Constant.VOUCHER.equals(header.rewardType+\"\")) {\n\t\t\t\t\t\t\tif (cellFromDateReward != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\t\tif (cellFromDateReward.getCellType() == Cell.CELL_TYPE_NUMERIC && cellFromDateReward.getCellStyle() != null && DateUtil.HSSF_DATE_FORMAT_M_D_YY.equals(cellFromDateReward.getCellStyle().getDataFormatString())) {\n\t\t\t\t\t\t\t\t\tif (cellFromDateReward.getDateCellValue() != null || !StringUtil.isNullOrEmpty(cellFromDateReward.getStringCellValue())) {\n\t\t\t\t\t\t\t\t\t\tString _fromDateReward = DateUtil.toDateString(cellFromDateReward.getDateCellValue(), DateUtil.DATE_FORMAT_DDMMYYYY);\n\t\t\t\t\t\t\t\t\t\tDate fromDateReward = DateUtil.toDate(_fromDateReward, DateUtil.DATE_FORMAT_DDMMYYYY);\n\t\t\t\t\t\t\t\t\t\theader.fromApplyDate = fromDateReward;\n\t\t\t\t\t\t\t\t\t\terrRow.setContent11(_fromDateReward);\n\t\t\t\t\t\t\t\t\t} else if (cellFromDateReward.getCellType() == Cell.CELL_TYPE_NUMERIC && cellFromDateReward.getCellStyle() != null && DateUtil.DATE_FORMAT_VISIT.equals(cellFromDateReward.getCellStyle().getDataFormatString())) {\n\t\t\t\t\t\t\t\t\t\tif (cellFromDateReward.getDateCellValue() != null || StringUtil.isNullOrEmpty(cellFromDateReward.getStringCellValue())) {\n\t\t\t\t\t\t\t\t\t\t\tString _fromDateReward = DateUtil.toDateString(cellFromDateReward.getDateCellValue(), DateUtil.DATE_FORMAT_VISIT);\n\t\t\t\t\t\t\t\t\t\t\tDate fromDateReward = DateUtil.toDate(_fromDateReward, DateUtil.DATE_FORMAT_VISIT);\n\t\t\t\t\t\t\t\t\t\t\theader.fromApplyDate = fromDateReward;\n\t\t\t\t\t\t\t\t\t\t\terrRow.setContent11(_fromDateReward);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t} else if (!StringUtil.isNullOrEmpty(cellFromDateReward.getStringCellValue())) {\n\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\tString _fromDateReward = cellFromDateReward.getStringCellValue();\n\t\t\t\t\t\t\t\t\t\t\tif (DateUtil.checkInvalidFormatDate(_fromDateReward)) {\n\t\t\t\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"common.invalid.format.date\", R.getResource(\"imp.epx.tuyen.clmn.tuNgay.traThuong\"));\n\t\t\t\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t\t\t\t\terrRow.setContent11(_fromDateReward);\n\t\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t\tDate fromDateReward = DateUtil.toDate(_fromDateReward, DateUtil.DATE_FORMAT_DDMMYYYY);\n\t\t\t\t\t\t\t\t\t\t\t\theader.fromApplyDate = fromDateReward;\n\t\t\t\t\t\t\t\t\t\t\t\terrRow.setContent11(_fromDateReward);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t} catch (Exception e1) {\n\t\t\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"common.invalid.format.date\", R.getResource(\"imp.epx.tuyen.clmn.tuNgay.traThuong\"));\n\t\t\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t\t\t\terrRow.setContent11(cellFromDateReward.getStringCellValue());\n\t\t\t\t\t\t\t\t\t\t\tLogUtility.logError(e1, e1.getMessage());\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tif(header.fromApplyDate != null && header.fromDate != null){\n\t\t\t\t\t\t\t\t\t\tint sub = DateUtil.compareDateWithoutTime(header.fromDate,header.fromApplyDate);\n\t\t\t\t\t\t\t\t\t\tif(DateUtil.compareDateWithoutTime(header.fromDate,header.fromApplyDate) > 0){\n\t\t\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"common.fromdate.reward.greater.fromdate\")+\"\\n\";\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}else if(cellFromDateReward != null){\n\t\t\t\t\t\t\tString _fromDateReward = getCellValueToString(cellFromDateReward); \n\t\t\t\t\t\t\terrRow.setContent11(_fromDateReward);\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.cant.read.cell.date\", iRun, \"FromDateReward\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\n\t\t\t\t\t// 11 Đến ngày trả thưởng\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellToDateReward = myRow.getCell(11);\n\t\t\t\t\t\tif (Constant.VOUCHER.equals(header.rewardType+\"\")) {\n\t\t\t\t\t\t\tif (cellToDateReward != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\t\tif (cellToDateReward.getCellType() == Cell.CELL_TYPE_NUMERIC && cellToDateReward.getCellStyle() != null && DateUtil.HSSF_DATE_FORMAT_M_D_YY.equals(cellToDateReward.getCellStyle().getDataFormatString())) {\n\t\t\t\t\t\t\t\t\tif (cellToDateReward.getDateCellValue() != null || !StringUtil.isNullOrEmpty(cellToDateReward.getStringCellValue())) {\n\t\t\t\t\t\t\t\t\t\tString _toDateReward = DateUtil.toDateString(cellToDateReward.getDateCellValue(), DateUtil.DATE_FORMAT_DDMMYYYY);\n\t\t\t\t\t\t\t\t\t\tDate toDateReward = DateUtil.toDate(_toDateReward, DateUtil.DATE_FORMAT_DDMMYYYY);\n\t\t\t\t\t\t\t\t\t\theader.toApplyDate = toDateReward;\n\t\t\t\t\t\t\t\t\t\terrRow.setContent12(_toDateReward);\n\t\t\t\t\t\t\t\t\t} else if (cellToDateReward.getCellType() == Cell.CELL_TYPE_NUMERIC && cellToDateReward.getCellStyle() != null && DateUtil.DATE_FORMAT_VISIT.equals(cellToDateReward.getCellStyle().getDataFormatString())) {\n\t\t\t\t\t\t\t\t\t\tif (cellToDateReward.getDateCellValue() != null || StringUtil.isNullOrEmpty(cellToDateReward.getStringCellValue())) {\n\t\t\t\t\t\t\t\t\t\t\tString _toDateReward = DateUtil.toDateString(cellToDateReward.getDateCellValue(), DateUtil.DATE_FORMAT_VISIT);\n\t\t\t\t\t\t\t\t\t\t\tDate toDateReward = DateUtil.toDate(_toDateReward, DateUtil.DATE_FORMAT_VISIT);\n\t\t\t\t\t\t\t\t\t\t\theader.toApplyDate = toDateReward;\n\t\t\t\t\t\t\t\t\t\t\terrRow.setContent12(_toDateReward);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t} else if (!StringUtil.isNullOrEmpty(cellToDateReward.getStringCellValue())) {\n\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\tString _todateReward = cellToDateReward.getStringCellValue();\n\t\t\t\t\t\t\t\t\t\t\tif (DateUtil.checkInvalidFormatDate(_todateReward)) {\n\t\t\t\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"common.invalid.format.date\", R.getResource(\"imp.epx.tuyen.clmn.denNgay.traThuong \"));\n\t\t\t\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t\t\t\t\terrRow.setContent12(_todateReward);\n\t\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t\tDate toDate = DateUtil.toDate(_todateReward, DateUtil.DATE_FORMAT_DDMMYYYY);\n\t\t\t\t\t\t\t\t\t\t\t\theader.toApplyDate = toDate;\n\t\t\t\t\t\t\t\t\t\t\t\terrRow.setContent12(_todateReward);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t} catch (Exception e1) {\n\t\t\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"common.invalid.format.date\", R.getResource(\"imp.epx.tuyen.clmn.denNgay.traThuong\"));\n\t\t\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t\t\t\terrRow.setContent12(cellToDateReward.getStringCellValue());\n\t\t\t\t\t\t\t\t\t\t\tLogUtility.logError(e1, e1.getMessage());\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif (header.fromApplyDate != null && header.toApplyDate != null) {\n\t\t\t\t\t\t\t\t\t\tif (DateUtil.compareDateWithoutTime(header.fromApplyDate, header.toApplyDate) > 0) {\n\t\t\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"common.fromdate.greater.todate.reward\") + \"\\n\";\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else if(cellToDateReward != null){\n\t\t\t\t\t\t\tString _todateReward = getCellValueToString(cellToDateReward); \n\t\t\t\t\t\t\terrRow.setContent12(_todateReward);\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.cant.read.cell.date\", iRun, \"ToDateReward\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}*/\n\t\t\t\t\t// 11 Loại trả thưởng\n\t\t\t\t\ttry {\n\t\t\t\t\t\t\tCell cellRewardType = myRow.getCell(11);\n\t\t\t\t\t\t\tApParam apParam = apParamMgr.getApParamByCode(\"LIST_ALLOW_REWARD_TYPE\", ApParamType.LIST_ALLOW_REWARD_TYPE);\n\t\t\t\t\t\t\tString strListAllowReward = apParam.getApParamName();\n\t\t\t\t\t\t\tstrListAllowReward = strListAllowReward.replace(\" \", \"\");\n\t\t\t\t\t\t\tString[] listAllowReward = strListAllowReward.split(\",\");\n\t\t\t\t\t\t\tif (cellRewardType != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\t\tString strRewardType = getCellValueToString(cellRewardType);\n\t\t\t\t\t\t\t\tif (strRewardType != null \n\t\t\t\t\t\t\t\t\t&& (Constant.DISCOUNT_MONEY.equals(strRewardType) || Constant.VOUCHER.equals(strRewardType)) \n\t\t\t\t\t\t\t\t\t&& Arrays.asList(listAllowReward).contains(header.type)) \n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tif(Constant.DISCOUNT_MONEY.equals(strRewardType) || Constant.VOUCHER.equals(strRewardType)) \n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\theader.rewardType = Integer.parseInt(strRewardType.trim());\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\terrRow.setContent12(strRewardType);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tString strRewardType = getCellValueToString(cellRewardType);\n\t\t\t\t\t\t\t\terrRow.setContent12(strRewardType);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.cant.read.cell.number\", iRun, \"RewardType\");\n\t\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// 12 Từ ngày trả thưởng\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellFromDateReward = myRow.getCell(12);\n\t\t\t\t\t\tif (Constant.VOUCHER.equals(header.rewardType+\"\")) {\n\t\t\t\t\t\t\tif (cellFromDateReward != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\t\tif (StringUtil.isNullOrEmpty(cellFromDateReward.getStringCellValue()))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.column.null\", R.getResource(\"imp.epx.tuyen.clmn.tuNgay.traThuong\"));\n\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tif (cellFromDateReward.getCellType() == Cell.CELL_TYPE_NUMERIC && cellFromDateReward.getCellStyle() != null && DateUtil.HSSF_DATE_FORMAT_M_D_YY.equals(cellFromDateReward.getCellStyle().getDataFormatString())) {\n\t\t\t\t\t\t\t\t\tif (cellFromDateReward.getDateCellValue() != null || !StringUtil.isNullOrEmpty(cellFromDateReward.getStringCellValue())) {\n\t\t\t\t\t\t\t\t\t\tString _fromDateReward = DateUtil.toDateString(cellFromDateReward.getDateCellValue(), DateUtil.DATE_FORMAT_DDMMYYYY);\n\t\t\t\t\t\t\t\t\t\tDate fromDateReward = DateUtil.toDate(_fromDateReward, DateUtil.DATE_FORMAT_DDMMYYYY);\n\t\t\t\t\t\t\t\t\t\theader.fromApplyDate = fromDateReward;\n\t\t\t\t\t\t\t\t\t\terrRow.setContent13(_fromDateReward);\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse if (cellFromDateReward.getCellType() == Cell.CELL_TYPE_NUMERIC && cellFromDateReward.getCellStyle() != null && DateUtil.DATE_FORMAT_VISIT.equals(cellFromDateReward.getCellStyle().getDataFormatString())) {\n\t\t\t\t\t\t\t\t\t\tif (cellFromDateReward.getDateCellValue() != null || StringUtil.isNullOrEmpty(cellFromDateReward.getStringCellValue())) {\n\t\t\t\t\t\t\t\t\t\t\tString _fromDateReward = DateUtil.toDateString(cellFromDateReward.getDateCellValue(), DateUtil.DATE_FORMAT_VISIT);\n\t\t\t\t\t\t\t\t\t\t\tDate fromDateReward = DateUtil.toDate(_fromDateReward, DateUtil.DATE_FORMAT_VISIT);\n\t\t\t\t\t\t\t\t\t\t\theader.fromApplyDate = fromDateReward;\n\t\t\t\t\t\t\t\t\t\t\terrRow.setContent13(_fromDateReward);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t} else if (!StringUtil.isNullOrEmpty(cellFromDateReward.getStringCellValue())) {\n\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\tString _fromDateReward = cellFromDateReward.getStringCellValue();\n\t\t\t\t\t\t\t\t\t\t\tif (DateUtil.checkInvalidFormatDate(_fromDateReward)) {\n\t\t\t\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"common.invalid.format.date\", R.getResource(\"imp.epx.tuyen.clmn.tuNgay.traThuong\"));\n\t\t\t\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t\t\t\t\terrRow.setContent13(_fromDateReward);\n\t\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t\tDate fromDateReward = DateUtil.toDate(_fromDateReward, DateUtil.DATE_FORMAT_DDMMYYYY);\n\t\t\t\t\t\t\t\t\t\t\t\theader.fromApplyDate = fromDateReward;\n\t\t\t\t\t\t\t\t\t\t\t\terrRow.setContent13(_fromDateReward);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t} catch (Exception e1) {\n\t\t\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"common.invalid.format.date\", R.getResource(\"imp.epx.tuyen.clmn.tuNgay.traThuong\"));\n\t\t\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t\t\t\terrRow.setContent13(cellFromDateReward.getStringCellValue());\n\t\t\t\t\t\t\t\t\t\t\tLogUtility.logError(e1, e1.getMessage());\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tif(header.fromApplyDate != null && header.fromDate != null){\n//\t\t\t\t\t\t\t\t\t\tint sub = DateUtil.compareDateWithoutTime(header.fromDate,header.fromApplyDate);\n\t\t\t\t\t\t\t\t\t\tif(DateUtil.compareDateWithoutTime(header.fromDate,header.fromApplyDate) > 0){\n\t\t\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"common.fromdate.reward.greater.fromdate\")+\"\\n\";\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else if(cellFromDateReward != null){\n\t\t\t\t\t\t\tString _fromDateReward = getCellValueToString(cellFromDateReward); \n\t\t\t\t\t\t\terrRow.setContent13(_fromDateReward);\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.cant.read.cell.date\", iRun, \"FromDateReward\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// 11 Đến ngày trả thưởng\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellToDateReward = myRow.getCell(13);\n\t\t\t\t\t\tif (Constant.VOUCHER.equals(header.rewardType+\"\")) {\n\t\t\t\t\t\t\tif (cellToDateReward != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\t\tif (cellToDateReward.getCellType() == Cell.CELL_TYPE_NUMERIC && cellToDateReward.getCellStyle() != null && DateUtil.HSSF_DATE_FORMAT_M_D_YY.equals(cellToDateReward.getCellStyle().getDataFormatString())) {\n\t\t\t\t\t\t\t\t\tif (cellToDateReward.getDateCellValue() != null || !StringUtil.isNullOrEmpty(cellToDateReward.getStringCellValue())) {\n\t\t\t\t\t\t\t\t\t\tString _toDateReward = DateUtil.toDateString(cellToDateReward.getDateCellValue(), DateUtil.DATE_FORMAT_DDMMYYYY);\n\t\t\t\t\t\t\t\t\t\tDate toDateReward = DateUtil.toDate(_toDateReward, DateUtil.DATE_FORMAT_DDMMYYYY);\n\t\t\t\t\t\t\t\t\t\theader.toApplyDate = toDateReward;\n\t\t\t\t\t\t\t\t\t\terrRow.setContent14(_toDateReward);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t} else if (cellToDateReward.getCellType() == Cell.CELL_TYPE_NUMERIC && cellToDateReward.getCellStyle() != null && DateUtil.DATE_FORMAT_VISIT.equals(cellToDateReward.getCellStyle().getDataFormatString())) {\n\t\t\t\t\t\t\t\t\t\tif (cellToDateReward.getDateCellValue() != null || StringUtil.isNullOrEmpty(cellToDateReward.getStringCellValue())) {\n\t\t\t\t\t\t\t\t\t\t\tString _toDateReward = DateUtil.toDateString(cellToDateReward.getDateCellValue(), DateUtil.DATE_FORMAT_VISIT);\n\t\t\t\t\t\t\t\t\t\t\tDate toDateReward = DateUtil.toDate(_toDateReward, DateUtil.DATE_FORMAT_VISIT);\n\t\t\t\t\t\t\t\t\t\t\theader.toApplyDate = toDateReward;\n\t\t\t\t\t\t\t\t\t\t\terrRow.setContent14(_toDateReward);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t} else if (!StringUtil.isNullOrEmpty(cellToDateReward.getStringCellValue())) {\n\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\tString _todateReward = cellToDateReward.getStringCellValue();\n\t\t\t\t\t\t\t\t\t\t\tif (DateUtil.checkInvalidFormatDate(_todateReward)) {\n\t\t\t\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"common.invalid.format.date\", R.getResource(\"imp.epx.tuyen.clmn.denNgay.traThuong \"));\n\t\t\t\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t\t\t\t\terrRow.setContent14(_todateReward);\n\t\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t\tDate toDate = DateUtil.toDate(_todateReward, DateUtil.DATE_FORMAT_DDMMYYYY);\n\t\t\t\t\t\t\t\t\t\t\t\theader.toApplyDate = toDate;\n\t\t\t\t\t\t\t\t\t\t\t\terrRow.setContent14(_todateReward);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t} catch (Exception e1) {\n\t\t\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"common.invalid.format.date\", R.getResource(\"imp.epx.tuyen.clmn.denNgay.traThuong\"));\n\t\t\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t\t\t\terrRow.setContent14(cellToDateReward.getStringCellValue());\n\t\t\t\t\t\t\t\t\t\t\tLogUtility.logError(e1, e1.getMessage());\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif (header.fromApplyDate != null && header.toApplyDate != null) {\n\t\t\t\t\t\t\t\t\t\tif (DateUtil.compareDateWithoutTime(header.fromApplyDate, header.toApplyDate) > 0) {\n\t\t\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"common.fromdate.greater.todate.reward\") + \"\\n\";\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else if(cellToDateReward != null){\n\t\t\t\t\t\t\tString _todateReward = getCellValueToString(cellToDateReward); \n\t\t\t\t\t\t\terrRow.setContent14(_todateReward);\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.cant.read.cell.date\", iRun, \"ToDateReward\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\tlistHeader.add(header);\n\t\t\t\t\t\tmapHeader.put(header.promotionCode, header);\n\t\t\t\t\t} else {\n\t\t\t\t\t\terrRow.setErrMsg(messageError);\n\t\t\t\t\t\tlstHeaderError.add(errRow);\n\t\t\t\t\t\tif (mapErrorPromotion.get(header.promotionCode) == null) {\n\t\t\t\t\t\t\tmapErrorPromotion.put(header.promotionCode, messageError);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tiRun++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//Sheet Don vi tham gia\n\t\t\tif (unitSheet != null) {\n\t\t\t\tIterator<?> rowIter = unitSheet.rowIterator();\n\t\t\t\tiRun = 0;\n\t\t\t\tint maxSizeSheet3 = 5;\n\t\t\t\tList<Shop> listShopChild;\n\t\t\t\twhile (rowIter.hasNext()) {\n\t\t\t\t\tRow myRow = (Row) rowIter.next();\n\t\t\t\t\tif (iRun == 0) {\n\t\t\t\t\t\tiRun++;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tboolean isContinue = true;\n\t\t\t\t\tfor (int i = 0; i < maxSizeSheet3; i++) {\n\t\t\t\t\t\tif (myRow.getCell(i) != null) {\n\t\t\t\t\t\t\tisContinue = false;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (isContinue) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tExcelPromotionUnit unitPromo = new ExcelPromotionUnit();\n\t\t\t\t\tCellBean errRow = new CellBean();\n\t\t\t\t\tString messageError = \"\";\n\t\t\t\t\tBoolean isHasData = false;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tString promotionCode = getCellValueToString(myRow.getCell(0));\n\t\t\t\t\t\tString shopCode = getCellValueToString(myRow.getCell(1));\n\t\t\t\t\t\tString quality = getCellValueToString(myRow.getCell(2));\n\t\t\t\t\t\tString totalAmount = getCellValueToString(myRow.getCell(3));\n\t\t\t\t\t\tString amount = getCellValueToString(myRow.getCell(4));\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (!StringUtil.isNullOrEmpty(promotionCode) || !StringUtil.isNullOrEmpty(shopCode) || !StringUtil.isNullOrEmpty(quality)\n\t\t\t\t\t\t\t\t|| !StringUtil.isNullOrEmpty(totalAmount) || !StringUtil.isNullOrEmpty(amount)) {\n\t\t\t\t\t\t\tisHasData = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t// 1 Mã CTKM\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellPromotionCode = myRow.getCell(0);\n\t\t\t\t\t\tif (cellPromotionCode != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tif(isHasData){\n\t\t\t\t\t\t\t\tString promoCode = getCellValueToString(cellPromotionCode);\n\t\t\t\t\t\t\t\tPromotionProgram newPromotionProgram;\n\t\t\t\t\t\t\t\tif (StringUtil.isNullOrEmpty(promoCode)) {\n\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.promotion.code.obligate\") + \"\\n\";\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tnewPromotionProgram = promotionProgramMgr.getPromotionProgramByCode(promoCode);\n\t\t\t\t\t\t\t\t\tif(newPromotionProgram == null \n\t\t\t\t\t\t\t\t\t\t\t&& mapHeader.get(promoCode) == null){\n\t\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.not.init\") + \"\\n\";\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tunitPromo.promotionCode = promoCode;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\terrRow.setContent1(promoCode);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.string\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"Mã CTKM\"));\n\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t// 2 Mã đơn vị\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellUnitCode = myRow.getCell(1);\n\t\t\t\t\t\tif (cellUnitCode != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tif(isHasData){\n\t\t\t\t\t\t\t\tString unitCode = getCellValueToString(cellUnitCode);\n\t\t\t\t\t\t\t\t// Kiem tra ma don vi empty\n\t\t\t\t\t\t\t\tif(StringUtil.isNullOrEmpty(unitCode)){\n\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.unit.code.obligate\") + \"\\n\";\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t// Kiem tra don vi ton tai trong he thong\n\t\t\t\t\t\t\t\t\tif(shopMgr.getShopByCode(unitCode) == null){\n\t\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.unit.code.not.permission\") + \"\\n\";\n\t\t\t\t\t\t\t\t\t} else if (currentUser != null && currentUser.getShopRoot() != null){ // kiem tra don vi co thuoc quyen quan ly cua user\n\t\t\t\t\t\t\t\t\t\tlistShopChild = promotionProgramMgr.getListChildByShopId(currentUser.getShopRoot().getShopId());\n\t\t\t\t\t\t\t\t\t\t// Kiem tra shop co thuoc quen quan ly cua user dang nhap\n\t\t\t\t\t\t\t\t\t\tboolean isShopMapWithUser = false;\n\t\t\t\t\t\t\t\t\t\tfor(Shop shop: listShopChild){\n\t\t\t\t\t\t\t\t\t\t\t if(unitCode.toLowerCase().equals(shop.getShopCode().toLowerCase())){\n\t\t\t\t\t\t\t\t\t\t\t\t isShopMapWithUser = true;\n\t\t\t\t\t\t\t\t\t\t\t\t break;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tif(!isShopMapWithUser){\n\t\t\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.unit.code.not.permission.by.current.user\") + \"\\n\";\n\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\tunitPromo.unitCode = unitCode;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\terrRow.setContent2(unitCode);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.string\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"Mã CTKM\"));\n\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t// 3 Số suất \n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellQuantityMax = myRow.getCell(2);\n\t\t\t\t\t\tif (cellQuantityMax != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tString quantityMax = getCellValueToString(cellQuantityMax);\n\t\t\t\t\t\t\tif(quantityMax != null){\n\t\t\t\t\t\t\t\tquantityMax = quantityMax.trim().replace(\",\", \"\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (quantityMax != null && quantityMax.trim().length() <= 9 \n\t\t\t\t\t\t\t\t\t&& StringUtil.isFloat(quantityMax) && Double.parseDouble(quantityMax.trim()) > 0\n\t\t\t\t\t\t\t\t\t&& quantityMax.contains(\".\") == false) {\n\t\t\t\t\t\t\t\tunitPromo.quantityMax = Integer.parseInt(quantityMax.trim().replace(\",\", \"\"));\n\t\t\t\t\t\t\t} else if(quantityMax != null && quantityMax.length() > 9 ){\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.over.max.length\") + \"\\n\";\n\t\t\t\t\t\t\t\tmessageError = messageError.replaceAll(\"%max%\", \"9\");\n\t\t\t\t\t\t\t\tmessageError = messageError.replaceAll(\"%colName%\", \"Số suất\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if (StringUtil.isNullOrEmpty(quantityMax) == false) {\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.quantity.max.incorrect.format\") + \"\\n\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\terrRow.setContent3(quantityMax);\n\t\t\t\t\t\t}else if(cellQuantityMax != null){\n\t\t\t\t\t\t\t// String quantityMax = getCellValueToString(cellQuantityMax);\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.number\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"Số suất\"));\n\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t// 4 Số tiền amountMax\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellAmountMax = myRow.getCell(3);\n\t\t\t\t\t\tif (cellAmountMax != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tString amountMax = getCellValueToString(cellAmountMax);\n\t\t\t\t\t\t\tif(amountMax != null){\n\t\t\t\t\t\t\t\tamountMax = amountMax.trim().replace(\",\", \"\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (amountMax != null && amountMax.length() <= 9 && StringUtil.isFloat(amountMax) \n\t\t\t\t\t\t\t\t\t&& Double.parseDouble(amountMax.trim()) > 0 && amountMax.contains(\".\") == false) {\n\t\t\t\t\t\t\t\tunitPromo.amountMax = new BigDecimal(amountMax.trim().replace(\",\", \"\"));\n\t\t\t\t\t\t\t} else if(amountMax != null && amountMax.length() > 9){\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.over.max.length\") + \"\\n\";\n\t\t\t\t\t\t\t\tmessageError = messageError.replaceAll(\"%max%\", \"9\");\n\t\t\t\t\t\t\t\tmessageError = messageError.replaceAll(\"%colName%\", \"Số tiền\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if (StringUtil.isNullOrEmpty(amountMax) == false) {\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.amount.max.incorrect.format\") + \"\\n\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\terrRow.setContent4(amountMax);\n\t\t\t\t\t\t}else if(cellAmountMax != null){\n\t\t\t\t\t\t\tString amountMax = getCellValueToString(cellAmountMax);\n\t\t\t\t\t\t\terrRow.setContent4(amountMax);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.number\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"Số tiền\"));\n\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t// 5 Số lượng numMax\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellNumMax = myRow.getCell(4);\n\t\t\t\t\t\tif (cellNumMax != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tString numMax = getCellValueToString(cellNumMax);\n\t\t\t\t\t\t\tnumMax = numMax.trim().replace(\",\", \"\");\n\t\t\t\t\t\t\tif (numMax != null && numMax.length() <= 9 \n\t\t\t\t\t\t\t\t\t&& StringUtil.isFloat(numMax) \n\t\t\t\t\t\t\t\t\t&& Double.parseDouble(numMax.trim()) > 0\n\t\t\t\t\t\t\t\t\t&& numMax.contains(\".\") == false) {\n\t\t\t\t\t\t\t\tunitPromo.numMax = new BigDecimal(numMax.trim().replace(\",\", \"\"));\n\t\t\t\t\t\t\t} else if(numMax != null && numMax.length() > 9){\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.over.max.length\") + \"\\n\";\n\t\t\t\t\t\t\t\tmessageError = messageError.replaceAll(\"%max%\", \"9\");\n\t\t\t\t\t\t\t\tmessageError = messageError.replaceAll(\"%colName%\", \"Số lượng\");\n\t\t\t\t\t\t\t}else if (StringUtil.isNullOrEmpty(numMax) == false) {\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.num.max.incorrect.format\") + \"\\n\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\terrRow.setContent5(numMax);\n\t\t\t\t\t\t}else if(cellNumMax != null){\n\t\t\t\t\t\t\tString numMax = getCellValueToString(cellNumMax);\n\t\t\t\t\t\t\terrRow.setContent5(numMax);\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.number\",\n\t\t\t\t\t\t\t\tConfiguration.getResourceString(ConstantManager.VI_LANGUAGE, \"Số lượng\"));\n\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\tif (StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\tlistUnit.add(unitPromo);\n\t\t\t\t\t\tmapUnit.put(unitPromo.promotionCode, unitPromo);\n\t\t\t\t\t}else{\n\t\t\t\t\t\terrRow.setContent6(messageError);\n\t\t\t\t\t\tlistUnitError.add(errRow);\n//\t\t\t\t\t\tif(mapErrorUnit.get(unitPromo.promotionCode) == null){\n//\t\t\t\t\t\t\tmapErrorUnit.put(unitPromo.promotionCode, messageError);\n//\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t/*if (StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\tlistHeader.add(header);\n\t\t\t\t\t\tmapHeader.put(header.promotionCode, header);\n\t\t\t\t\t} else {\n\t\t\t\t\t\terrRow.setContent13(messageError);\n\t\t\t\t\t\tlstHeaderError.add(errRow);\n\t\t\t\t\t\tif (mapErrorPromotion.get(header.promotionCode) == null) {\n\t\t\t\t\t\t\tmapErrorPromotion.put(header.promotionCode, messageError);\n\t\t\t\t\t\t}\n\t\t\t\t\t}*/\n\n\t\t\t\t\tiRun++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//Sheet Co cau KM\n\t\t\t/////\n\t\t\tif (detailSheet != null) {\t\n\t\t\t\tIterator<?> rowIter = detailSheet.rowIterator();\n\t\t\t\tString previousPromotionCode = null;\n\t\t\t\tint typeKM;\n\t\t\t\tMap<String, Integer> mapPromotionType = new HashMap<String, Integer>();\n\t\t\t\tiRun = 0;\n\t\t\t\tMap<String, String[]> mapArrayProduct = new HashMap<String, String[]>();\n\t\t\t\tMap<String, BigDecimal[]> mapArraySaleQuantity = new HashMap<String, BigDecimal[]>();\n\t\t\t\tMap<String, BigDecimal[]> mapArraySaleAmount = new HashMap<String, BigDecimal[]>();\n\t\t\t\tMap<String, BigDecimal[]> mapArrayDiscountAmount = new HashMap<String, BigDecimal[]>();\n\t\t\t\tMap<String, Float[]> mapArrayDiscountPercent = new HashMap<String, Float[]>();\n\t\t\t\tMap<String, Integer[]> mapArrayQuantityUnit = new HashMap<String, Integer[]>();\n\t\t\t\tMap<String, String[]> mapArrayFreeProduct = new HashMap<String, String[]>();\n\t\t\t\tMap<String, BigDecimal[]> mapArrayFreeQuantity = new HashMap<String, BigDecimal[]>();\n\t\t\t\tMap<String, Integer[]> mapArrayFreeQuantityUnit = new HashMap<String, Integer[]>();\n\t\t\t\tMap<String, Boolean[]> mapArrayAndOr = new HashMap<String, Boolean[]>();\n\t\t\t\tMap<String, String[]> mapPromoGroupCode = new HashMap<String, String[]>();\n\t\t\t\tMap<String, String[]> mapPromoGroupName = new HashMap<String, String[]>();\n\t\t\t\tMap<String, String[]> mapPromoLevelCode = new HashMap<String, String[]>();\n//\t\t\t\tMap<String, Integer[]> mapMultiple = new HashMap<String, Integer[]>();\n//\t\t\t\tMap<String, Integer[]> mapRecursive = new HashMap<String, Integer[]>();\n//\t\t\t\tMap<String, Integer[]> mapDkgh = new HashMap<String,Integer[]>();\n\t\t\t\t\n\t\t\t\tLinkedHashMap<String, Integer> lstProductPromo = new LinkedHashMap<String, Integer>();\n\t\t\t\tMap<String, List<Row>> lstRow = new HashMap<String, List<Row>>();\n\t\t\t\tint indexProductPromo = 0;\n\t\t\t\tint maxSizeSheet2 = 12;\n\t\t\t\tPromotionProgram existPromotion = null;\n\t\t\t\twhile (rowIter.hasNext()) {\n\t\t\t\t\tRow myRow = (Row) rowIter.next();\n\t\t\t\t\tif (iRun == 0) {\n\t\t\t\t\t\tiRun++;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tboolean isContinue = true;\n\t\t\t\t\t//Kiem tra su hop le cua Row Import\n\t\t\t\t\tfor (int i = 0; i < maxSizeSheet2; i++) {\n\t\t\t\t\t\tif (myRow.getCell(i) != null) {\n\t\t\t\t\t\t\tisContinue = false;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (isContinue) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tExcelPromotionDetail detail = new ExcelPromotionDetail();\n\t\t\t\t\tCellBean errRow = new CellBean();\n\t\t\t\t\tString messageError = \"\";\n\t\t\t\t\t//0 get promotionCode\n\t\t\t\t\tString promotionCode = null;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellPromotionCode = myRow.getCell(0);\n\t\t\t\t\t\tif (cellPromotionCode != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\t//\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t//\t\t\t\t\t\t\tpromotionCode = cellPromotionCode.getStringCellValue();\n\t\t\t\t\t\t\t//\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t//\t\t\t\t\t\t\tpromotionCode = String.valueOf(cellPromotionCode.getNumericCellValue());\n\t\t\t\t\t\t\t//\t\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t\t\t//\t\t\t\t\t\t}\n\t\t\t\t\t\t\tpromotionCode = getCellValueToString(cellPromotionCode);\n\t\t\t\t\t\t\tpromotionCode = promotionCode != null ? promotionCode.trim().toUpperCase().trim() : \"\";\n\t\t\t\t\t\t\tif (StringUtil.isNullOrEmpty(promotionCode)) {\n\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tmessageError += ValidateUtil.validateField(promotionCode, \"catalog.promotion.import.column.progcode\", 50, ConstantManager.ERR_REQUIRE, ConstantManager.ERR_MAX_LENGTH, ConstantManager.ERR_EXIST_SPECIAL_CHAR_IN_CODE);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\texistPromotion = promotionProgramMgr.getPromotionProgramByCode(promotionCode);\n\t\t\t\t\t\t\tif (existPromotion == null && mapHeader.get(promotionCode) == null) {\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.not.init\") + \"\\n\";\n\t\t\t\t\t\t\t\t//messageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.program.not.exists\");\n\t\t\t\t\t\t\t\t//messageError += \"\\n\";\n\t\t\t\t\t\t\t\t//else if(existPromotion != null && mapHeader.get(promotionCode) == null){\n\t\t\t\t\t\t\t} else if(existPromotion != null && ActiveType.RUNNING.equals(existPromotion.getStatus())){\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.program.exists\") + \"\\n\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tdetail.promotionCode = promotionCode;\n\t\t\t\t\t\t\terrRow.setContent1(promotionCode);\n\t\t\t\t\t\t\tif (StringUtil.isNullOrEmpty(promotionCode)) {\n\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"common.required\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.code\"));\n\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.string\", iRun, \"Mã CTKM\") + \"\\n\";\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t//1 get type\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (myRow.getCell(1) != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\t//\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t//\t\t\t\t\t\t\tdetail.type = myRow.getCell(1).getStringCellValue();\n\t\t\t\t\t\t\t//\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t//\t\t\t\t\t\t\tdetail.type = String.valueOf(myRow.getCell(1).getNumericCellValue());\n\t\t\t\t\t\t\t//\t\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t\t\t//\t\t\t\t\t\t}\n\t\t\t\t\t\t\tdetail.type = getCellValueToString(myRow.getCell(1));\n\t\t\t\t\t\t\tdetail.type = detail.type != null ? detail.type.trim().toUpperCase().trim() : \"\";\n\t\t\t\t\t\t\tif (StringUtil.isNullOrEmpty(detail.type)) {\n\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tif (mapCheckType.get(detail.type) == null) {\n\t\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.exists.before\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.type\"));\n\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t} else if (mapType.get(promotionCode) == null) {\n\t\t\t\t\t\t\t\t\tif (null != existPromotion && existPromotion.getType().equalsIgnoreCase(detail.type)) {\n\t\t\t\t\t\t\t\t\t\tmapType.put(detail.promotionCode, detail.type);\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.type.is.not.same2\") + \"\\n\";\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else if (!mapType.get(promotionCode).equals(detail.type)) {\n\t\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.type.is.not.same2\") + \"\\n\";\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\terrRow.setContent2(getCellValueToString(myRow.getCell(1)));\n\t\t\t\t\t\t}else if(myRow.getCell(1) != null){\n\t\t\t\t\t\t\terrRow.setContent2(getCellValueToString(myRow.getCell(1)));\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.string\", iRun, \"Loại CTKM\") + \"\\n\";\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t//2 Mã nhóm\n\t\t\t\t\t/*try {\n\t\t\t\t\t\tCell cellGroupCode = myRow.getCell(2);\n\t\t\t\t\t\tString groupCode = null;\n\t\t\t\t\t\tif (cellGroupCode != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tgroupCode = getCellValueToString(cellGroupCode);\n\t\t\t\t\t\t\tmessageError = ValidateUtil.validateField(noticeCode, \"catalog.promotion.noticecode\", 100, ConstantManager.ERR_EXIST_SPECIAL_CHAR_IN_SPECIAL);\n\t\t\t\t\t\t\tif (StringUtil.isNullOrEmpty(groupCode)) {\n\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.promotion.group.code.obligate\") + \"\\n\";\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tdetail.promoGroupCode = groupCode;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\terrRow.setContent3(groupCode);\n\t\t\t\t\t\t}else if (cellGroupCode != null) {\n\t\t\t\t\t\t\tgroupCode = getCellValueToString(cellGroupCode);\n\t\t\t\t\t\t\terrRow.setContent3(groupCode);\n\t\t\t\t\t\t}else if (cellGroupCode == null) {\n\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.promotion.group.code.obligate\") + \"\\n\";\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.string\", iRun, \"Mã nhóm\") + \"\\n\";\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t// 3 Tên nhóm\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellGroupName = myRow.getCell(3);\n\t\t\t\t\t\tString groupName = null;\n\t\t\t\t\t\tif (cellGroupName != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tgroupName = getCellValueToString(cellGroupName);\n\t\t\t\t\t\t\tif (StringUtil.isNullOrEmpty(groupName)) {\n\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.promotion.group.name.obligate\") + \"\\n\";\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tdetail.promoGroupName = groupName;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\terrRow.setContent4(groupName);\n\t\t\t\t\t\t}else if (cellGroupName != null) {\n\t\t\t\t\t\t\tgroupName = getCellValueToString(cellGroupName);\n\t\t\t\t\t\t\terrRow.setContent4(groupName);\n\t\t\t\t\t\t}else if (cellGroupName == null) {\n\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.promotion.group.name.obligate\") + \"\\n\";\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.string\", iRun, \"Tên nhóm\") + \"\\n\";\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t// 4 Mã mức\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellLevelCode = myRow.getCell(4);\n\t\t\t\t\t\tString levelCode = null;\n\t\t\t\t\t\tif (cellLevelCode != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tlevelCode = getCellValueToString(cellLevelCode);\n\t\t\t\t\t\t\tif (StringUtil.isNullOrEmpty(levelCode)) {\n\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.promotion.level.code.obligate\") + \"\\n\";\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tdetail.promoLevelCode = levelCode;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\terrRow.setContent5(levelCode);\n\t\t\t\t\t\t} else if (cellLevelCode != null) {\n\t\t\t\t\t\t\tlevelCode = getCellValueToString(cellLevelCode);\n\t\t\t\t\t\t\terrRow.setContent5(levelCode);\n\t\t\t\t\t\t}else if (cellLevelCode == null) {\n\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.promotion.level.code.obligate\") + \"\\n\";\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.string\", iRun, \"Tên nhóm\") + \"\\n\";\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}*/\n\t\t\t\t\t//5 Tên mức\n\t\t\t\t\t/*try {\n\t\t\t\t\t\tCell cellLevelName = myRow.getCell(5);\n\t\t\t\t\t\tString levelName = null;\n\t\t\t\t\t\tif (cellLevelName != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tlevelName = getCellValueToString(cellLevelName);\n\t\t\t\t\t\t\tif (StringUtil.isNullOrEmpty(levelName)) {\n\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.promotion.level.name.obligate \") + \"\\n\";\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tdetail.promoLevelName = levelName;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\terrRow.setContent6(levelName);\n\t\t\t\t\t\t} else if (cellLevelName == null) {\n\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.promotion.level.name.obligate \") + \"\\n\";\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.string\", iRun, \"Tên nhóm\") + \"\\n\";\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}*/\n\t\t\t\t\t//2 get productCode\n\t\t\t\t\tString productCode = \"\";\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (checkColumnNecessary(detail.type, 2) && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tCell cellProductCode = myRow.getCell(2);\n\t\t\t\t\t\t\tif (cellProductCode != null) {\n\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\tproductCode = cellProductCode.getStringCellValue();\n\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\tproductCode = String.valueOf(cellProductCode.getNumericCellValue());\n\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\tLogUtility.logError(ex, ex.getMessage());\n\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tproductCode = getCellValueToString(cellProductCode);\n\t\t\t\t\t\t\t\tif (!StringUtil.isNullOrEmpty(productCode)) {\n\t\t\t\t\t\t\t\t\tProduct product = productMgr.getProductByCode(productCode.trim());\n\t\t\t\t\t\t\t\t\tif (product == null) {\n\t\t\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"common.not.exist.in.db\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.buyproduct.code\"));\n\t\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tdetail.productCode = productCode.toUpperCase().trim();\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.column.null\", \"Mã Sản Phẩm Mua\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.column.null\", \"Mã Sản Phẩm Mua\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (myRow.getCell(2) != null) {\n\t\t\t\t\t\t\terrRow.setContent3(getCellValueToString(myRow.getCell(2)));\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.get.product.error\", productCode);\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t//3 getQuantity\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (checkColumnNecessary(detail.type, 3) && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tCell cellQuantity = myRow.getCell(3);\n\t\t\t\t\t\t\tif (cellQuantity != null && cellQuantity.getCellType() != Cell.CELL_TYPE_BLANK) {\n\t\t\t\t\t\t\t\tif (cellQuantity.getCellType() == Cell.CELL_TYPE_NUMERIC) {\n\t\t\t\t\t\t\t\t\tBigDecimal quantity = new BigDecimal(cellQuantity.getNumericCellValue());\n\t\t\t\t\t\t\t\t\tif (quantity == null || quantity.compareTo(BigDecimal.ZERO) <= 0) {\n\t\t\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"common.not.date\", \"SL Sản Phẩm Mua\");\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tdetail.saleQuantity = quantity;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.column.invalid.format.number\", \"SL Sản Phẩm Mua\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.column.null\", \"SL Sản Phẩm Mua\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (myRow.getCell(3) != null) {\n\t\t\t\t\t\t\terrRow.setContent4(getCellValueToString(myRow.getCell(3)));\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.number\", iRun, \"SL Sản Phẩm Mua\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t//4 get UOM\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (checkColumnNecessary(detail.type, 4) && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tCell cellProductUnit = myRow.getCell(4);\n\t\t\t\t\t\t\tif (cellProductUnit != null && cellProductUnit.getCellType() != Cell.CELL_TYPE_BLANK) {\n\t\t\t\t\t\t\t\tif (cellProductUnit.getCellType() == Cell.CELL_TYPE_STRING) {\n\t\t\t\t\t\t\t\t\tString unit = cellProductUnit.getStringCellValue();\n\t\t\t\t\t\t\t\t\tif (unit == null || StringUtil.isNullOrEmpty(unit)) {\n\t\t\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"common.not.date\", \"Đơn Vị Tính Cho SP Mua\");\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif (unit.trim().toLowerCase().equals(\"LẺ\".toLowerCase())) {\n\t\t\t\t\t\t\t\t\t\tdetail.productUnit = 1;\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tdetail.productUnit = 2;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.column.invalid.format.number\", \"Đơn Vị Tính Cho SP Mua\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.column.null\", \"Đơn Vị Tính Cho SP Mua\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (myRow.getCell(4) != null) {\n\t\t\t\t\t\t\terrRow.setContent5(getCellValueToString(myRow.getCell(4)));\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.string\", iRun, \"Đơn Vị Tính Cho SP Mua\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t//5 getAmount\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (checkColumnNecessary(detail.type, 5) && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tCell cellAmount = myRow.getCell(5);\n\t\t\t\t\t\t\tif (cellAmount != null && cellAmount.getCellType() != Cell.CELL_TYPE_BLANK) {\n\t\t\t\t\t\t\t\tif (cellAmount.getCellType() == Cell.CELL_TYPE_NUMERIC) {\n\t\t\t\t\t\t\t\t\tBigDecimal amount = BigDecimal.valueOf(cellAmount.getNumericCellValue());\n\t\t\t\t\t\t\t\t\tif (amount == null || amount.compareTo(BigDecimal.ZERO) < 0) {\n\t\t\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"common.not.date\", \"Số Tiền SP Mua\");\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tdetail.saleAmount = amount;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.column.invalid.format.number\", \"Số Tiền SP Mua\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.column.null\", \"Số Tiền SP Mua\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (myRow.getCell(5) != null) {\n\t\t\t\t\t\t\terrRow.setContent6(getCellValueToString(myRow.getCell(5)));\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.number\", iRun, \"Số Tiền SP Mua\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t//6 getDiscount Amount\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (checkColumnNecessary(detail.type, 6) && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tCell cellDiscountAmount = myRow.getCell(6);\n\t\t\t\t\t\t\tif (cellDiscountAmount != null && cellDiscountAmount.getCellType() != Cell.CELL_TYPE_BLANK) {\n\t\t\t\t\t\t\t\tif (cellDiscountAmount.getCellType() == Cell.CELL_TYPE_NUMERIC) {\n\t\t\t\t\t\t\t\t\tBigDecimal discountAmount = BigDecimal.valueOf(cellDiscountAmount.getNumericCellValue());\n\t\t\t\t\t\t\t\t\tif (discountAmount == null || discountAmount.compareTo(BigDecimal.ZERO) < 0) {\n\t\t\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"common.not.date\", \"Số Tiền SP KM\");\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tdetail.discountAmount = discountAmount;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.column.invalid.format.number\", \"Số Tiền SP KM\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.column.null\", \"Số Tiền SP KM\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (myRow.getCell(6) != null) {\n\t\t\t\t\t\t\terrRow.setContent7(getCellValueToString(myRow.getCell(6)));\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.number\", iRun, \"Số Tiền SP KM\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t//7 get discount percent\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (checkColumnNecessary(detail.type, 7) && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tCell cellDiscountPercent = myRow.getCell(7);\n\t\t\t\t\t\t\tif (cellDiscountPercent != null && cellDiscountPercent.getCellType() != Cell.CELL_TYPE_BLANK) {\n\t\t\t\t\t\t\t\tif (cellDiscountPercent.getCellType() == Cell.CELL_TYPE_NUMERIC) {\n\t\t\t\t\t\t\t\t\tFloat discountPercent = (float) cellDiscountPercent.getNumericCellValue();\n\t\t\t\t\t\t\t\t\tif (discountPercent == null || discountPercent < 0 || discountPercent > 100) {\n\t\t\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"common.not.date\", \"% KM\");\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tdetail.discountPercent = discountPercent;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.column.invalid.format.float\", \"% KM\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.column.null\", \"% KM\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (myRow.getCell(7) != null) {\n\t\t\t\t\t\t\terrRow.setContent8(getCellValueToString(myRow.getCell(7)));\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.number\", iRun, \"DiscPer\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t//8 get Free product code\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (checkColumnNecessary(detail.type, 8) && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tCell cellFreeProductCode = myRow.getCell(8);\n\t\t\t\t\t\t\tif (cellFreeProductCode != null) {\n\t\t\t\t\t\t\t\tString freeProductCode = getCellValueToString(cellFreeProductCode);\n\t\t\t\t\t\t\t\tif (!StringUtil.isNullOrEmpty(freeProductCode)) {\n\t\t\t\t\t\t\t\t\tProduct freeProduct = productMgr.getProductByCode(freeProductCode.trim());\n\t\t\t\t\t\t\t\t\tif (freeProduct == null) {\n\t\t\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"common.not.exist.in.db\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.disproduct.code\"));\n\t\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tdetail.freeProductCode = freeProductCode.toUpperCase().trim();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.column.null\", \"Mã SP KM\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (myRow.getCell(8) != null) {\n\t\t\t\t\t\t\terrRow.setContent9(getCellValueToString(myRow.getCell(8)));\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.string\", iRun, \"Mã SP KM\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t//9 get free Quantity\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (checkColumnNecessary(detail.type, 9) && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tCell cellFreeQuantity = myRow.getCell(9);\n\t\t\t\t\t\t\tif (cellFreeQuantity != null && cellFreeQuantity.getCellType() != Cell.CELL_TYPE_BLANK) {\n\t\t\t\t\t\t\t\tif (cellFreeQuantity.getCellType() == Cell.CELL_TYPE_NUMERIC) {\n\t\t\t\t\t\t\t\t\tBigDecimal freeQuantity = new BigDecimal(cellFreeQuantity.getNumericCellValue());\n\t\t\t\t\t\t\t\t\tif (freeQuantity == null || freeQuantity.compareTo(BigDecimal.ZERO) < 0) {\n\t\t\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"common.not.date\", \"Số Lượng KM\");\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tdetail.freeQuantity = freeQuantity;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.column.invalid.format.number\", \"Số Lượng KM\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.column.null\", \"Số Lượng KM\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (myRow.getCell(9) != null) {\n\t\t\t\t\t\t\terrRow.setContent10(getCellValueToString(myRow.getCell(9)));\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.number\", iRun, \"Số Lượng KM\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t//10 get Free UOM\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (checkColumnNecessary(detail.type, 10) && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tCell cellProductUnit = myRow.getCell(10);\n\t\t\t\t\t\t\tif (cellProductUnit != null && cellProductUnit.getCellType() != Cell.CELL_TYPE_BLANK) {\n\t\t\t\t\t\t\t\tif (cellProductUnit.getCellType() == Cell.CELL_TYPE_STRING) {\n\t\t\t\t\t\t\t\t\tString unit = cellProductUnit.getStringCellValue();\n\t\t\t\t\t\t\t\t\tif (unit == null || StringUtil.isNullOrEmpty(unit)) {\n\t\t\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"common.not.date\", \"Đơn Vị Tính cho SP KM\");\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif (unit.trim().toLowerCase().equals(\"LẺ\".toLowerCase())) {\n\t\t\t\t\t\t\t\t\t\tdetail.freeProductUnit = 1;\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tdetail.freeProductUnit = 2;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.column.invalid.format.number\", \"Đơn Vị Tính cho SP KM\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (myRow.getCell(10) != null) {\n\t\t\t\t\t\t\terrRow.setContent11(getCellValueToString(myRow.getCell(10)));\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.string\", iRun, \"Đơn Vị Tính cho SP KM\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t//11 get And Or\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (checkColumnNecessary(detail.type, 11) && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tCell cellAndOrCell = myRow.getCell(11);\n\t\t\t\t\t\t\tif (cellAndOrCell != null) {\n\t\t\t\t\t\t\t\tString value;\n\t\t\t\t\t\t\t\tif (cellAndOrCell.getCellType() != Cell.CELL_TYPE_NUMERIC) {\n\t\t\t\t\t\t\t\t\tvalue = cellAndOrCell.getStringCellValue();\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tvalue = String.valueOf((float) cellAndOrCell.getNumericCellValue());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (\"X\".equals(value.trim().toUpperCase())) {\n\t\t\t\t\t\t\t\t\tdetail.andOr = true;\n\t\t\t\t\t\t\t\t\terrRow.setContent12(value);\n\t\t\t\t\t\t\t\t} else if (\"\".equals(value.trim().toUpperCase())) {\n\t\t\t\t\t\t\t\t\tdetail.andOr = false;\n\t\t\t\t\t\t\t\t\terrRow.setContent12(value);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\terrRow.setContent13(value);\n\t\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.read.cell.format.invalid\", iRun, \"AllFreeItemcode\", \"['','X']\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tdetail.andOr = false;\n\t\t\t\t\t\t\t\terrRow.setContent12(\"\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.read.cell.format.invalid\", iRun, \"AllFreeItemcode\", \"['','X']\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// 12 ĐKGH\n\t\t\t\t\t/*try{\n\t\t\t\t\t\tApParam apParam = apParamMgr.getApParamByCode(\"LIST_ALLOW_DKGH\", ApParamType.LIST_ALLOW_DKGH);\n\t\t\t\t\t\tString strListPromo = apParam.getApParamName();\n\t\t\t\t\t\tCell cellDKGH = myRow.getCell(17);\n\t\t\t\t\t\tString[] ListAllow = strListPromo.split(\",\");\n\t\t\t\t\t\tif(Arrays.asList(ListAllow).contains(detail.type)){\n\t\t\t\t\t\t\tif(cellDKGH != null && StringUtil.isNullOrEmpty(messageError)){\n\t\t\t\t\t\t\t\tString dkgh = getCellValueToString(cellDKGH);\n\t\t\t\t\t\t\t\tif(dkgh != null \n\t\t\t\t\t\t\t\t\t\t&& (Constant.HAVE_CONDITION.equals(dkgh) || (Constant.NON_CONDITION.equals(dkgh)))){\n\t\t\t\t\t\t\t\t\tdetail.dkgh = Integer.parseInt(dkgh.trim());\n\t\t\t\t\t\t\t\t}else if(dkgh != null){\n\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.dkgh.incorrect.format\")+\"\\n\";\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\terrRow.setContent18(dkgh);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else if(cellDKGH != null){\n\t\t\t\t\t\t\tString dkgh = getCellValueToString(cellDKGH);\n\t\t\t\t\t\t\terrRow.setContent18(dkgh);\n\t\t\t\t\t\t}\n\t\t\t\t\t}catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.number\", iRun, \"DKGH\", \"['','X']\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}*/\n\t\t\t\t\tif (mapPromotionTypeCheck.get(detail.promotionCode) == null) {\n\t\t\t\t\t\tmapPromotionTypeCheck.put(detail.promotionCode, detail.type);\n\t\t\t\t\t}\n\t\t\t\t\tif (!promotionCode.equals(previousPromotionCode)) {\n\t\t\t\t\t\tif (mapPromotionType.get(detail.promotionCode) != null) {//da ton tai ctkm nay truoc do roi\n\t\t\t\t\t\t\t//typeKM = mapPromotionType.get(detail.promotionCode);//=> lay ra loai cua no thoi\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif (!StringUtil.isNullOrEmpty(detail.productCode) && detail.saleQuantity != null && detail.saleQuantity.compareTo(BigDecimal.ZERO) > 0 && !StringUtil.isNullOrEmpty(detail.freeProductCode) && detail.freeQuantity != null\n\t\t\t\t\t\t\t\t\t&& detail.freeQuantity.compareTo(BigDecimal.ZERO) > 0) {\n\t\t\t\t\t\t\t\ttypeKM = 1;//ZV03\n\t\t\t\t\t\t\t} else if (!StringUtil.isNullOrEmpty(detail.productCode) && detail.saleQuantity != null && detail.saleQuantity.compareTo(BigDecimal.ZERO) > 0 && detail.discountAmount != null && detail.discountAmount.compareTo(\n\t\t\t\t\t\t\t\t\tBigDecimal.ZERO) > 0) {\n\t\t\t\t\t\t\t\ttypeKM = 2;//ZV02\n\t\t\t\t\t\t\t} else if (!StringUtil.isNullOrEmpty(detail.productCode) && detail.saleQuantity != null && detail.saleQuantity.compareTo(BigDecimal.ZERO) > 0 && detail.discountPercent != null && detail.discountPercent > 0) {\n\t\t\t\t\t\t\t\ttypeKM = 3;//ZV01\n\t\t\t\t\t\t\t} else if (!StringUtil.isNullOrEmpty(detail.productCode) && detail.saleAmount != null && detail.saleAmount.compareTo(BigDecimal.ZERO) > 0 && !StringUtil.isNullOrEmpty(detail.freeProductCode) && detail.freeQuantity != null\n\t\t\t\t\t\t\t\t\t&& detail.freeQuantity.compareTo(BigDecimal.ZERO) > 0) {\n\t\t\t\t\t\t\t\ttypeKM = 4;\n\t\t\t\t\t\t\t} else if (!StringUtil.isNullOrEmpty(detail.productCode) && detail.saleAmount != null && detail.saleAmount.compareTo(BigDecimal.ZERO) > 0 && detail.discountAmount != null && detail.discountAmount.compareTo(\n\t\t\t\t\t\t\t\t\tBigDecimal.ZERO) > 0) {\n\t\t\t\t\t\t\t\ttypeKM = 5;\n\t\t\t\t\t\t\t} else if (!StringUtil.isNullOrEmpty(detail.productCode) && detail.saleAmount != null && detail.saleAmount.compareTo(BigDecimal.ZERO) > 0 && detail.discountPercent != null && detail.discountPercent > 0) {\n\t\t\t\t\t\t\t\ttypeKM = 6;\n\t\t\t\t\t\t\t} else if (detail.saleAmount != null && detail.saleAmount.compareTo(BigDecimal.ZERO) > 0 && !StringUtil.isNullOrEmpty(detail.freeProductCode) && detail.freeQuantity != null && detail.freeQuantity.compareTo(\n\t\t\t\t\t\t\t\t\tBigDecimal.ZERO) > 0) {\n\t\t\t\t\t\t\t\ttypeKM = 7;\n\t\t\t\t\t\t\t} else if (detail.saleAmount != null && detail.saleAmount.compareTo(BigDecimal.ZERO) > 0 && detail.discountAmount != null && detail.discountAmount.compareTo(BigDecimal.ZERO) > 0) {\n\t\t\t\t\t\t\t\ttypeKM = 8;\n\t\t\t\t\t\t\t} else if (detail.saleAmount != null && detail.saleAmount.compareTo(BigDecimal.ZERO) > 0 && detail.discountPercent != null && detail.discountPercent > 0) {\n\t\t\t\t\t\t\t\ttypeKM = 9;\n\t\t\t\t\t\t\t} else if (detail.saleQuantity != null && detail.saleQuantity.compareTo(BigDecimal.ZERO) > 0 && !StringUtil.isNullOrEmpty(detail.freeProductCode) && detail.freeQuantity != null && detail.freeQuantity.compareTo(\n\t\t\t\t\t\t\t\t\tBigDecimal.ZERO) > 0) {\n\t\t\t\t\t\t\t\ttypeKM = 10;//ZV24\n\t\t\t\t\t\t\t} else if (detail.saleQuantity != null && detail.saleQuantity.compareTo(BigDecimal.ZERO) > 0 && detail.discountAmount != null && detail.discountAmount.compareTo(BigDecimal.ZERO) > 0) {\n\t\t\t\t\t\t\t\ttypeKM = 11;//ZV23\n\t\t\t\t\t\t\t} else if (detail.saleQuantity != null && detail.saleQuantity.compareTo(BigDecimal.ZERO) > 0 && detail.discountPercent != null && detail.discountPercent > 0) {\n\t\t\t\t\t\t\t\ttypeKM = 12;//ZV22\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\ttypeKM = -1;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tmapPromotionType.put(detail.promotionCode, typeKM);\n\t\t\t\t\t\t\tpreviousPromotionCode = detail.promotionCode;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\t//typeKM = mapPromotionType.get(detail.promotionCode);\n\t\t\t\t\t}\n\n\t\t\t\t\tif (StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\tList<Row> lstR = lstRow.get(detail.promotionCode);\n\t\t\t\t\t\tif (lstR == null) {\n\t\t\t\t\t\t\tlstR = new ArrayList<Row>();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tmessageError = checkDuplicate(mapType.get(detail.promotionCode), lstR, myRow);\n\t\t\t\t\t\tif(StringUtil.isNullOrEmpty(messageError)){\n\t\t\t\t\t\t\tlistDetail.add(detail);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tlstR.add(myRow);\n\t\t\t\t\t\tlstRow.put(detail.promotionCode, lstR);\n\t\t\t\t\t}\n\t\t\t\t\tif (StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\tif (mapArrayProduct.get(detail.promotionCode) == null) {\n\t\t\t\t\t\t\tString[] arrProduct = new String[MAX_ARRAY];\n\t\t\t\t\t\t\tarrProduct[iRun] = detail.productCode;\n\t\t\t\t\t\t\tmapArrayProduct.put(detail.promotionCode, arrProduct);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tString[] arrProduct = mapArrayProduct.get(detail.promotionCode);\n\t\t\t\t\t\t\tarrProduct[iRun] = detail.productCode;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (mapArraySaleQuantity.get(detail.promotionCode) == null) {\n\t\t\t\t\t\t\tBigDecimal[] arrSaleQuantity = new BigDecimal[MAX_ARRAY];\n\t\t\t\t\t\t\tarrSaleQuantity[iRun] = detail.saleQuantity;\n\t\t\t\t\t\t\tmapArraySaleQuantity.put(detail.promotionCode, arrSaleQuantity);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tBigDecimal[] arrSaleQuantity = mapArraySaleQuantity.get(detail.promotionCode);\n\t\t\t\t\t\t\tarrSaleQuantity[iRun] = detail.saleQuantity;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (mapArrayQuantityUnit.get(detail.promotionCode) == null) {\n\t\t\t\t\t\t\tInteger[] arrUnit = new Integer[MAX_ARRAY];\n\t\t\t\t\t\t\tarrUnit[iRun] = detail.productUnit;\n\t\t\t\t\t\t\tmapArrayQuantityUnit.put(detail.promotionCode, arrUnit);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tInteger[] arrUnit = mapArrayQuantityUnit.get(detail.promotionCode);\n\t\t\t\t\t\t\tarrUnit[iRun] = detail.productUnit;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (mapArraySaleAmount.get(detail.promotionCode) == null) {\n\t\t\t\t\t\t\tBigDecimal[] arrSaleAmount = new BigDecimal[MAX_ARRAY];\n\t\t\t\t\t\t\tarrSaleAmount[iRun] = detail.saleAmount;\n\t\t\t\t\t\t\tmapArraySaleAmount.put(detail.promotionCode, arrSaleAmount);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tBigDecimal[] arrSaleAmount = mapArraySaleAmount.get(detail.promotionCode);\n\t\t\t\t\t\t\tarrSaleAmount[iRun] = detail.saleAmount;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (mapArrayFreeProduct.get(detail.promotionCode) == null) {\n\t\t\t\t\t\t\tString[] arrFreeProduct = new String[MAX_ARRAY];\n\t\t\t\t\t\t\tarrFreeProduct[iRun] = detail.freeProductCode;\n\t\t\t\t\t\t\tmapArrayFreeProduct.put(detail.promotionCode, arrFreeProduct);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tString[] arrFreeProduct = mapArrayFreeProduct.get(detail.promotionCode);\n\t\t\t\t\t\t\tarrFreeProduct[iRun] = detail.freeProductCode;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (mapArrayFreeQuantityUnit.get(detail.promotionCode) == null) {\n\t\t\t\t\t\t\tInteger[] arrUnit = new Integer[MAX_ARRAY];\n\t\t\t\t\t\t\tarrUnit[iRun] = detail.freeProductUnit;\n\t\t\t\t\t\t\tmapArrayFreeQuantityUnit.put(detail.promotionCode, arrUnit);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tInteger[] arrUnit = mapArrayFreeQuantityUnit.get(detail.promotionCode);\n\t\t\t\t\t\t\tarrUnit[iRun] = detail.freeProductUnit;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (mapArrayFreeQuantity.get(detail.promotionCode) == null) {\n\t\t\t\t\t\t\tBigDecimal[] arrFreeQuantity = new BigDecimal[MAX_ARRAY];\n\t\t\t\t\t\t\tarrFreeQuantity[iRun] = detail.freeQuantity;\n\t\t\t\t\t\t\tmapArrayFreeQuantity.put(detail.promotionCode, arrFreeQuantity);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tBigDecimal[] arrFreeProduct = mapArrayFreeQuantity.get(detail.promotionCode);\n\t\t\t\t\t\t\tarrFreeProduct[iRun] = detail.freeQuantity;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (mapArrayDiscountAmount.get(detail.promotionCode) == null) {\n\t\t\t\t\t\t\tBigDecimal[] arrDiscountAmount = new BigDecimal[MAX_ARRAY];\n\t\t\t\t\t\t\tarrDiscountAmount[iRun] = detail.discountAmount;\n\t\t\t\t\t\t\tmapArrayDiscountAmount.put(detail.promotionCode, arrDiscountAmount);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tBigDecimal[] arrDiscountAmount = mapArrayDiscountAmount.get(detail.promotionCode);\n\t\t\t\t\t\t\tarrDiscountAmount[iRun] = detail.discountAmount;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (mapArrayDiscountPercent.get(detail.promotionCode) == null) {\n\t\t\t\t\t\t\tFloat[] arrDiscountPercent = new Float[MAX_ARRAY];\n\t\t\t\t\t\t\tarrDiscountPercent[iRun] = detail.discountPercent;\n\t\t\t\t\t\t\tmapArrayDiscountPercent.put(detail.promotionCode, arrDiscountPercent);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tFloat[] arrDiscountPercent = mapArrayDiscountPercent.get(detail.promotionCode);\n\t\t\t\t\t\t\tarrDiscountPercent[iRun] = detail.discountPercent;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (mapArrayAndOr.get(detail.promotionCode) == null) {\n\t\t\t\t\t\t\tBoolean[] arrAndOr = new Boolean[MAX_ARRAY];\n\t\t\t\t\t\t\tarrAndOr[iRun] = detail.andOr;\n\t\t\t\t\t\t\tmapArrayAndOr.put(detail.promotionCode, arrAndOr);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tBoolean[] arrAndOr = mapArrayAndOr.get(detail.promotionCode);\n\t\t\t\t\t\t\tarrAndOr[iRun] = detail.andOr;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// map Ma nhom\n\t\t\t\t\t\tif(mapPromoGroupCode.get(detail.promotionCode) == null){\n\t\t\t\t\t\t\tString[] arrPromoGroupCode = new String[MAX_ARRAY];\n\t\t\t\t\t\t\tarrPromoGroupCode[iRun] = detail.promoGroupCode;\n\t\t\t\t\t\t\tmapPromoGroupCode.put(detail.promotionCode, arrPromoGroupCode);\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tString[] arrPromoGroupCode = mapPromoGroupCode.get(detail.promotionCode);\n\t\t\t\t\t\t\tarrPromoGroupCode[iRun] = detail.promoGroupCode;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// map Ten nhom\n\t\t\t\t\t\tif(mapPromoGroupName.get(detail.promotionCode) == null){\n\t\t\t\t\t\t\tString[] arrPromoGroupName = new String[MAX_ARRAY];\n\t\t\t\t\t\t\tarrPromoGroupName[iRun] = detail.promoGroupName;\n\t\t\t\t\t\t\tmapPromoGroupName.put(detail.promotionCode, arrPromoGroupName);\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tString[] arrPromoGroupName = mapPromoGroupName.get(detail.promotionCode);\n\t\t\t\t\t\t\tarrPromoGroupName[iRun] = detail.promoGroupName;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// map Ma muc\n\t\t\t\t\t\tif(mapPromoLevelCode.get(detail.promotionCode) == null){\n\t\t\t\t\t\t\tString[] arrayPromoLevelCode = new String[MAX_ARRAY];\n\t\t\t\t\t\t\tarrayPromoLevelCode[iRun] = detail.promoLevelCode;\n\t\t\t\t\t\t\tmapPromoLevelCode.put(detail.promotionCode, arrayPromoLevelCode);\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tString[] arrayPromoLevelCode = mapPromoLevelCode.get(detail.promotionCode);\n\t\t\t\t\t\t\tarrayPromoLevelCode[iRun] = detail.promoLevelCode;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// map Bội số\n\t\t\t\t\t\t/*if(mapMultiple.get(detail.promotionCode) == null){\n\t\t\t\t\t\t\tInteger[] arrMultiple = new Integer[MAX_ARRAY];\n\t\t\t\t\t\t\tarrMultiple[iRun] = detail.multiple;\n\t\t\t\t\t\t\tmapMultiple.put(detail.promotionCode, arrMultiple);\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tInteger[] arrMultiple = mapMultiple.get(detail.promotionCode);\n\t\t\t\t\t\t\tarrMultiple[iRun] = detail.multiple;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// map Tối ưu\n\t\t\t\t\t\tif(mapRecursive.get(detail.promotionCode) == null){\n\t\t\t\t\t\t\tInteger[] arrRecursive = new Integer[MAX_ARRAY];\n\t\t\t\t\t\t\tarrRecursive[iRun] = detail.recursive;\n\t\t\t\t\t\t\tmapRecursive.put(detail.promotionCode, arrRecursive);\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tInteger[] arrRecursive = mapRecursive.get(detail.promotionCode);\n\t\t\t\t\t\t\tarrRecursive[iRun] = detail.recursive;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// map ĐKGH\n\t\t\t\t\t\tif(mapDkgh.get(detail.promotionCode) == null){\n\t\t\t\t\t\t\tInteger[] arrDkgh = new Integer[MAX_ARRAY];\n\t\t\t\t\t\t\tarrDkgh[iRun] = detail.dkgh;\n\t\t\t\t\t\t\tmapDkgh.put(detail.promotionCode, arrDkgh);\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tInteger[] arrDkgh = mapDkgh.get(detail.promotionCode);\n\t\t\t\t\t\t\tarrDkgh[iRun] = detail.dkgh;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t*/\n\t\t\t\t\t\tif (!StringUtil.isNullOrEmpty(detail.productCode) && lstProductPromo.get(detail.promotionCode + \"-\" + detail.productCode) == null) {\n\t\t\t\t\t\t\tlstProductPromo.put(detail.promotionCode + \"-\" + detail.productCode, indexProductPromo++);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\t//error\n\t\t\t\t\t\terrRow.setContent13(messageError);\n\t\t\t\t\t\tlstDetailError.add(errRow);\n\t\t\t\t\t\tif (mapErrorPromotion.get(detail.promotionCode) == null) {\n\t\t\t\t\t\t\tmapErrorPromotion.put(detail.promotionCode, messageError);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t// totalItem++;\n\t\t\t\t\tiRun++;\n\t\t\t\t}\n\t\t\t\t/**\n\t\t\t\t * put vao group level\n\t\t\t\t */\n\t\t\t\tString messageError = \"\";\n\t\t\t\tCellBean errRow = new CellBean();\n\t\t\t\t\n\t\t\t\tfor (String promotionProgramCode : mapPromotionType.keySet()) {\n\t\t\t\t\tInteger unit = -1;\n\t\t\t\t\tString[] arrPromoGroupCode = mapPromoGroupCode.get(promotionProgramCode);\n\t\t\t\t\tString[] arrPromoGroupName = mapPromoGroupName.get(promotionProgramCode);\n\t\t\t\t/*\tString[] arrPromoLevelCode = mapPromoLevelCode.get(promotionProgramCode);\n\t\t\t\t\tInteger[] arrMultiple = mapMultiple.get(promotionProgramCode);\n\t\t\t\t\tInteger[] arrRecursive = mapRecursive.get(promotionProgramCode);\t\t*/\t\t\t\n//\t\t\t\t\tInteger[] arrDkgh = mapDkgh.get(promotionProgramCode);\n\t\t\t\t\t\n\t\t\t\t\tif (mapPromotionType.get(promotionProgramCode) == 1) {\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * mua A(1), B(1) dc km ... C(1), D(1)\n\t\t\t\t\t\t */\n\t\t\t\t\t\tString[] arrProduct = mapArrayProduct.get(promotionProgramCode);\n\t\t\t\t\t\tInteger[] arrProductUnit = mapArrayQuantityUnit.get(promotionProgramCode);\n\t\t\t\t\t\tBigDecimal[] arrSaleQuantity = mapArraySaleQuantity.get(promotionProgramCode);\n\t\t\t\t\t\tBoolean[] arrAndOr = mapArrayAndOr.get(promotionProgramCode);\n\t\t\t\t\t\tString[] arrFreeProduct = mapArrayFreeProduct.get(promotionProgramCode);\n\t\t\t\t\t\tInteger[] arrFreeProductUnit = mapArrayFreeQuantityUnit.get(promotionProgramCode);\n\t\t\t\t\t\tBigDecimal[] arrFreeQuantity = mapArrayFreeQuantity.get(promotionProgramCode);\n\t\t\t\t\t\t//Sort theo saleQuantity\n\t\t\t\t\t\tsortQuantityProduct(arrProduct, arrProductUnit, arrSaleQuantity, arrAndOr, arrFreeProduct, arrFreeProductUnit, arrFreeQuantity, null, null);\n\t\t\t\t\t\tfor (int i = 0; arrProduct != null && i < arrProduct.length; i++) {\n\t\t\t\t\t\t\tif (!StringUtil.isNullOrEmpty(arrProduct[i]) && arrSaleQuantity[i] != null && !StringUtil.isNullOrEmpty(arrFreeProduct[i]) && arrFreeQuantity[i] != null) {\n\t\t\t\t\t\t\t\tGroupMua groupMua;\n\t\t\t\t\t\t\t\tGroupKM groupKM;\n\t\t\t\t\t\t\t\tunit = arrProductUnit[i];\n\t\t\t\t\t\t\t\tif (mapPromotionMua.get(promotionProgramCode) != null && mapPromotionKM.get(promotionProgramCode) != null) {\n\t\t\t\t\t\t\t\t\tgroupMua = mapPromotionMua.get(promotionProgramCode).get(mapPromotionMua.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t\tgroupKM = mapPromotionKM.get(promotionProgramCode).get(mapPromotionKM.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tListGroupMua lstGroupMua = new ListGroupMua();\n\t\t\t\t\t\t\t\t\tListGroupKM lstGroupKM = new ListGroupKM();\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tgroupMua.groupCode = \"N\" + (lstGroupMua.size() + 1);\n\t\t\t\t\t\t\t\t\tgroupMua.qttUnit = unit;\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t//groupMua.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupMua.groupName = arrPromoGroupName[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.multiple = arrMultiple[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.recursive = arrRecursive[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.dkgh = arrDkgh[i];\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tgroupKM.groupCode = \"N\" + (lstGroupKM.size() + 1);\n\t\t\t\t\t\t\t\t\tgroupKM.qttUnit = arrFreeProductUnit[i];\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t//groupKM.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupKM.groupName = arrPromoGroupName[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.multiple = arrMultiple[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.recursive = arrRecursive[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.dkgh = arrDkgh[i];\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupMua.order = lstGroupMua.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupKM.order = lstGroupKM.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tmapPromotionMua.put(promotionProgramCode, lstGroupMua);\n\t\t\t\t\t\t\t\t\tmapPromotionKM.put(promotionProgramCode, lstGroupKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tGroupSP groupSPMua = groupMua.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrProduct[i], unit, arrSaleQuantity[i], indexMua++, i, arrProduct, arrSaleQuantity, arrFreeProduct, arrFreeQuantity);\n\t\t\t\t\t\t\t\tif (groupSPMua == null) {\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tList<GroupMua> lstGroupMua = mapPromotionMua.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupSPMua = groupMua.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrProduct[i], unit, arrSaleQuantity[i], indexMua++, i, arrProduct, arrSaleQuantity, arrFreeProduct, arrFreeQuantity);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tList<Long> lstIndex = mapMuaKM.get(groupSPMua.index);//lay danh sach cac index muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tList<GroupSP> lstLevelKM = groupKM.searchIndex(lstIndex);//lay danh sach cac muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tGroupSP groupSPKM = groupKM.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrFreeProduct[i], unit, arrFreeQuantity[i], arrAndOr[i], indexKM++, i, arrFreeProduct, arrFreeQuantity, lstLevelKM);\n\t\t\t\t\t\t\t\tif (groupSPKM == null) {\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tList<GroupKM> lstGroupKM = mapPromotionKM.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tgroupSPKM = groupKM.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrFreeProduct[i], unit, arrFreeQuantity[i], arrAndOr[i], indexKM++, i, arrFreeProduct, arrFreeQuantity, null);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tmapMuaKM.put(groupSPMua.index, groupSPKM.index);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (mapPromotionType.get(promotionProgramCode) == 2) {\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * mua A(1), B(1) dc km ... 10.000\n\t\t\t\t\t\t */\n\t\t\t\t\t\tString[] arrProduct = mapArrayProduct.get(promotionProgramCode);\n\t\t\t\t\t\tInteger[] arrProductUnit = mapArrayQuantityUnit.get(promotionProgramCode);\n\t\t\t\t\t\tBigDecimal[] arrSaleQuantity = mapArraySaleQuantity.get(promotionProgramCode);\n\t\t\t\t\t\tBoolean[] arrAndOr = mapArrayAndOr.get(promotionProgramCode);\n\t\t\t\t\t\tBigDecimal[] arrFreeAmount = mapArrayDiscountAmount.get(promotionProgramCode);\n\t\t\t\t\t\t//Sort theo saleQuantity\n\t\t\t\t\t\tsortQuantityProduct(arrProduct, arrProductUnit, arrSaleQuantity, arrAndOr, null, null, null, arrFreeAmount, null);\n\t\t\t\t\t\tfor (int i = 0; arrProduct != null && i < arrProduct.length; i++) {\n\t\t\t\t\t\t\tif (!StringUtil.isNullOrEmpty(arrProduct[i]) && arrSaleQuantity[i] != null && arrFreeAmount[i] != null) {\n\t\t\t\t\t\t\t\tGroupMua groupMua;\n\t\t\t\t\t\t\t\tGroupKM groupKM;\n\t\t\t\t\t\t\t\tunit = arrProductUnit[i];\n\t\t\t\t\t\t\t\tif (mapPromotionMua.get(promotionProgramCode) != null && mapPromotionKM.get(promotionProgramCode) != null) {\n\t\t\t\t\t\t\t\t\tgroupMua = mapPromotionMua.get(promotionProgramCode).get(mapPromotionMua.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t\tgroupKM = mapPromotionKM.get(promotionProgramCode).get(mapPromotionKM.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tListGroupMua lstGroupMua = new ListGroupMua();\n\t\t\t\t\t\t\t\t\tListGroupKM lstGroupKM = new ListGroupKM();\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tgroupMua.groupCode = \"N\" + (lstGroupMua.size() + 1);\n\t\t\t\t\t\t\t\t\tgroupMua.qttUnit = unit;\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t//groupMua.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupMua.groupName = arrPromoGroupName[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.multiple = arrMultiple[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.recursive = arrRecursive[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.dkgh = arrDkgh[i];\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tgroupKM.groupCode = \"N\" + (lstGroupKM.size() + 1);\n\t\t\t\t\t\t\t\t\t//groupKM.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupKM.groupName = arrPromoGroupName[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.multiple = arrMultiple[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.recursive = arrRecursive[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.dkgh = arrDkgh[i];\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupMua.order = lstGroupMua.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupKM.order = lstGroupKM.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tmapPromotionMua.put(promotionProgramCode, lstGroupMua);\n\t\t\t\t\t\t\t\t\tmapPromotionKM.put(promotionProgramCode, lstGroupKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tGroupSP groupSPMua = groupMua.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrProduct[i], unit, arrSaleQuantity[i], indexMua++, i, arrProduct, arrSaleQuantity, null, null);\n\t\t\t\t\t\t\t\tif (groupSPMua == null) {\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tList<GroupMua> lstGroupMua = mapPromotionMua.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupSPMua = groupMua.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrProduct[i], unit, arrSaleQuantity[i], indexMua++, i, arrProduct, arrSaleQuantity, null, null);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tList<Long> lstIndex = mapMuaKM.get(groupSPMua.index);//lay danh sach cac index muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tList<GroupSP> lstLevelKM = groupKM.searchIndex(lstIndex);//lay danh sach cac muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tGroupSP groupSPKM = groupKM.add2Level(arrFreeAmount[i], indexKM++, i, arrFreeAmount, lstLevelKM);\n\t\t\t\t\t\t\t\tif (groupSPKM == null) {\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tList<GroupKM> lstGroupKM = mapPromotionKM.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tgroupSPKM = groupKM.add2Level(arrFreeAmount[i], indexKM++, i, arrFreeAmount, lstLevelKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tmapMuaKM.put(groupSPMua.index, groupSPKM.index);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (mapPromotionType.get(promotionProgramCode) == 3) {\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * mua A(1), B(1) dc km ... 10%\n\t\t\t\t\t\t */\n\t\t\t\t\t\tString[] arrProduct = mapArrayProduct.get(promotionProgramCode);\n\t\t\t\t\t\tInteger[] arrProductUnit = mapArrayQuantityUnit.get(promotionProgramCode);\n\t\t\t\t\t\tBigDecimal[] arrSaleQuantity = mapArraySaleQuantity.get(promotionProgramCode);\n\t\t\t\t\t\tBoolean[] arrAndOr = mapArrayAndOr.get(promotionProgramCode);\n\t\t\t\t\t\tFloat[] arrPercent = mapArrayDiscountPercent.get(promotionProgramCode);\n\t\t\t\t\t\t//Sort theo saleQuantity\n\t\t\t\t\t\tsortQuantityProduct(arrProduct, arrProductUnit, arrSaleQuantity, arrAndOr, null, null, null, null, arrPercent);\n\t\t\t\t\t\tfor (int i = 0; arrProduct != null && i < arrProduct.length; i++) {\n\t\t\t\t\t\t\tif (!StringUtil.isNullOrEmpty(arrProduct[i]) && arrSaleQuantity[i] != null && arrPercent[i] != null) {\n\t\t\t\t\t\t\t\tGroupMua groupMua;\n\t\t\t\t\t\t\t\tGroupKM groupKM;\n\t\t\t\t\t\t\t\tunit = arrProductUnit[i];\n\t\t\t\t\t\t\t\tif (mapPromotionMua.get(promotionProgramCode) != null && mapPromotionKM.get(promotionProgramCode) != null) {\n\t\t\t\t\t\t\t\t\tgroupMua = mapPromotionMua.get(promotionProgramCode).get(mapPromotionMua.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t\tgroupKM = mapPromotionKM.get(promotionProgramCode).get(mapPromotionKM.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tListGroupMua lstGroupMua = new ListGroupMua();\n\t\t\t\t\t\t\t\t\tListGroupKM lstGroupKM = new ListGroupKM();\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tgroupMua.groupCode = \"N\" + (lstGroupMua.size() + 1);\n\t\t\t\t\t\t\t\t\tgroupMua.qttUnit = unit;\n\t\t\t\t\t\t\t\t\t//groupMua.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupMua.groupName = arrPromoGroupName[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.multiple = arrMultiple[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.recursive = arrRecursive[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.dkgh = arrDkgh[i];\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tgroupKM.groupCode = \"N\" + (lstGroupKM.size() + 1);\n\t\t\t\t\t\t\t\t\t//groupKM.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupKM.groupName = arrPromoGroupName[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.multiple = arrMultiple[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.recursive = arrRecursive[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.dkgh = arrDkgh[i];\n//\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupMua.order = lstGroupMua.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupKM.order = lstGroupKM.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tmapPromotionMua.put(promotionProgramCode, lstGroupMua);\n\t\t\t\t\t\t\t\t\tmapPromotionKM.put(promotionProgramCode, lstGroupKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tGroupSP groupSPMua = groupMua.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrProduct[i], unit, arrSaleQuantity[i], indexMua++, i, arrProduct, arrSaleQuantity, null, null);\n\t\t\t\t\t\t\t\tif (groupSPMua == null) {\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tList<GroupMua> lstGroupMua = mapPromotionMua.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupSPMua = groupMua.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrProduct[i], unit, arrSaleQuantity[i], indexMua++, i, arrProduct, arrSaleQuantity, null, null);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tList<Long> lstIndex = mapMuaKM.get(groupSPMua.index);//lay danh sach cac index muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tList<GroupSP> lstLevelKM = groupKM.searchIndex(lstIndex);//lay danh sach cac muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tGroupSP groupSPKM = groupKM.add2Level(arrPercent[i], indexKM++, i, arrPercent, lstLevelKM);\n\t\t\t\t\t\t\t\tif (groupSPKM == null) {\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tList<GroupKM> lstGroupKM = mapPromotionKM.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tgroupSPKM = groupKM.add2Level(arrPercent[i], indexKM++, i, arrPercent, lstLevelKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tmapMuaKM.put(groupSPMua.index, groupSPKM.index);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (mapPromotionType.get(promotionProgramCode) == 4) {\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * mua A(10.000), B(10.000) dc km ... C(1), D(1)\n\t\t\t\t\t\t */\n\t\t\t\t\t\tString[] arrProduct = mapArrayProduct.get(promotionProgramCode);\n\t\t\t\t\t\tInteger[] arrProductUnit = mapArrayQuantityUnit.get(promotionProgramCode);\n\t\t\t\t\t\tBigDecimal[] arrSaleAmount = mapArraySaleAmount.get(promotionProgramCode);\n\t\t\t\t\t\tBoolean[] arrAndOr = mapArrayAndOr.get(promotionProgramCode);\n\t\t\t\t\t\tString[] arrFreeProduct = mapArrayFreeProduct.get(promotionProgramCode);\n\t\t\t\t\t\tInteger[] arrFreeProductUnit = mapArrayFreeQuantityUnit.get(promotionProgramCode);\n\t\t\t\t\t\tBigDecimal[] arrFreeQuantity = mapArrayFreeQuantity.get(promotionProgramCode);\n\t\t\t\t\t\t//Sort theo saleQuantity\n\t\t\t\t\t\tsortAmountProduct(arrProduct, arrProductUnit, arrSaleAmount, arrAndOr, arrFreeProduct, arrFreeProductUnit, arrFreeQuantity, null, null);\n\t\t\t\t\t\tfor (int i = 0; arrProduct != null && i < arrProduct.length; i++) {\n\t\t\t\t\t\t\tif (!StringUtil.isNullOrEmpty(arrProduct[i]) && arrSaleAmount[i] != null && !StringUtil.isNullOrEmpty(arrFreeProduct[i]) && arrFreeQuantity[i] != null) {\n\t\t\t\t\t\t\t\tGroupMua groupMua;\n\t\t\t\t\t\t\t\tGroupKM groupKM;\n\t\t\t\t\t\t\t\tunit = arrProductUnit[i];\n\t\t\t\t\t\t\t\tif (mapPromotionMua.get(promotionProgramCode) != null && mapPromotionKM.get(promotionProgramCode) != null) {\n\t\t\t\t\t\t\t\t\tgroupMua = mapPromotionMua.get(promotionProgramCode).get(mapPromotionMua.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t\tgroupKM = mapPromotionKM.get(promotionProgramCode).get(mapPromotionKM.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tListGroupMua lstGroupMua = new ListGroupMua();\n\t\t\t\t\t\t\t\t\tListGroupKM lstGroupKM = new ListGroupKM();\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tgroupMua.groupCode = \"N\" + (lstGroupMua.size() + 1);\n\t\t\t\t\t\t\t\t\tgroupMua.qttUnit = unit;\n\t\t\t\t\t\t\t\t\t//groupMua.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupMua.groupName = arrPromoGroupName[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.multiple = arrMultiple[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.recursive = arrRecursive[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.dkgh = arrDkgh[i];\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tgroupKM.groupCode = \"N\" + (lstGroupKM.size() + 1);\n\t\t\t\t\t\t\t\t\t//groupKM.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupKM.groupName = arrPromoGroupName[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.multiple = arrMultiple[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.recursive = arrRecursive[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.dkgh = arrDkgh[i];\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupMua.qttUnit = arrFreeProductUnit[i];\n\t\t\t\t\t\t\t\t\tgroupMua.order = lstGroupMua.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupKM.order = lstGroupKM.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tmapPromotionMua.put(promotionProgramCode, lstGroupMua);\n\t\t\t\t\t\t\t\t\tmapPromotionKM.put(promotionProgramCode, lstGroupKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tGroupSP groupSPMua = groupMua.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrProduct[i], arrSaleAmount[i], indexMua++, i, arrProduct, arrSaleAmount, arrFreeProduct, arrFreeQuantity);\n\t\t\t\t\t\t\t\tif (groupSPMua == null) {\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tList<GroupMua> lstGroupMua = mapPromotionMua.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupSPMua = groupMua.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrProduct[i], arrSaleAmount[i], indexMua++, i, arrProduct, arrSaleAmount, arrFreeProduct, arrFreeQuantity);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tList<Long> lstIndex = mapMuaKM.get(groupSPMua.index);//lay danh sach cac index muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tList<GroupSP> lstLevelKM = groupKM.searchIndex(lstIndex);//lay danh sach cac muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tGroupSP groupSPKM = groupKM.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrFreeProduct[i], unit, arrFreeQuantity[i], arrAndOr[i], indexKM++, i, arrFreeProduct, arrFreeQuantity, lstLevelKM);\n\t\t\t\t\t\t\t\tif (groupSPKM == null) {\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tList<GroupKM> lstGroupKM = mapPromotionKM.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tgroupSPKM = groupKM.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrFreeProduct[i], unit, arrFreeQuantity[i], arrAndOr[i], indexKM++, i, arrFreeProduct, arrFreeQuantity, null);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tmapMuaKM.put(groupSPMua.index, groupSPKM.index);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (mapPromotionType.get(promotionProgramCode) == 5) {\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * mua A(10.000), B(10.000) dc km ... 10.000\n\t\t\t\t\t\t */\n\t\t\t\t\t\tString[] arrProduct = mapArrayProduct.get(promotionProgramCode);\n\t\t\t\t\t\tInteger[] arrProductUnit = mapArrayQuantityUnit.get(promotionProgramCode);\n\t\t\t\t\t\tBigDecimal[] arrSaleAmount = mapArraySaleAmount.get(promotionProgramCode);\n\t\t\t\t\t\tBoolean[] arrAndOr = mapArrayAndOr.get(promotionProgramCode);\n\t\t\t\t\t\tBigDecimal[] arrFreeAmount = mapArrayDiscountAmount.get(promotionProgramCode);\n\t\t\t\t\t\t//Sort theo saleQuantity\n\t\t\t\t\t\tsortAmountProduct(arrProduct, arrProductUnit, arrSaleAmount, arrAndOr, null, null, null, arrFreeAmount, null);\n\t\t\t\t\t\tfor (int i = 0; arrProduct != null && i < arrProduct.length; i++) {\n\t\t\t\t\t\t\tif (!StringUtil.isNullOrEmpty(arrProduct[i]) && arrSaleAmount[i] != null && arrFreeAmount[i] != null) {\n\t\t\t\t\t\t\t\tGroupMua groupMua;\n\t\t\t\t\t\t\t\tGroupKM groupKM;\n\t\t\t\t\t\t\t\tunit = arrProductUnit[i];\n\t\t\t\t\t\t\t\tif (mapPromotionMua.get(promotionProgramCode) != null && mapPromotionKM.get(promotionProgramCode) != null) {\n\t\t\t\t\t\t\t\t\tgroupMua = mapPromotionMua.get(promotionProgramCode).get(mapPromotionMua.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t\tgroupKM = mapPromotionKM.get(promotionProgramCode).get(mapPromotionKM.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tListGroupMua lstGroupMua = new ListGroupMua();\n\t\t\t\t\t\t\t\t\tListGroupKM lstGroupKM = new ListGroupKM();\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tgroupMua.groupCode = \"N\" + (lstGroupMua.size() + 1);\n\t\t\t\t\t\t\t\t\tgroupMua.qttUnit = unit;\n\t\t\t\t\t\t\t\t\t//groupMua.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupMua.groupName = arrPromoGroupName[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.multiple = arrMultiple[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.recursive = arrRecursive[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.dkgh = arrDkgh[i];\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tgroupKM.groupCode = \"N\" + (lstGroupKM.size() + 1);\n\t\t\t\t\t\t\t\t\t//groupKM.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupKM.groupName = arrPromoGroupName[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.multiple = arrMultiple[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.recursive = arrRecursive[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.dkgh = arrDkgh[i];\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupMua.order = lstGroupMua.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupKM.order = lstGroupKM.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tmapPromotionMua.put(promotionProgramCode, lstGroupMua);\n\t\t\t\t\t\t\t\t\tmapPromotionKM.put(promotionProgramCode, lstGroupKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tGroupSP groupSPMua = groupMua.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrProduct[i], arrSaleAmount[i], indexMua++, i, arrProduct, arrSaleAmount, null, null);\n\t\t\t\t\t\t\t\tif (groupSPMua == null) {\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tList<GroupMua> lstGroupMua = mapPromotionMua.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupSPMua = groupMua.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrProduct[i], arrSaleAmount[i], indexMua++, i, arrProduct, arrSaleAmount, null, null);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tList<Long> lstIndex = mapMuaKM.get(groupSPMua.index);//lay danh sach cac index muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tList<GroupSP> lstLevelKM = groupKM.searchIndex(lstIndex);//lay danh sach cac muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tGroupSP groupSPKM = groupKM.add2Level(arrFreeAmount[i], indexKM++, i, arrFreeAmount, lstLevelKM);\n\t\t\t\t\t\t\t\tif (groupSPKM == null) {\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tList<GroupKM> lstGroupKM = mapPromotionKM.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tgroupSPKM = groupKM.add2Level(arrFreeAmount[i], indexKM++, i, arrFreeAmount, lstLevelKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tmapMuaKM.put(groupSPMua.index, groupSPKM.index);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (mapPromotionType.get(promotionProgramCode) == 6) {\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * mua A(10.000), B(10.000) dc km ... 10%\n\t\t\t\t\t\t */\n\t\t\t\t\t\tString[] arrProduct = mapArrayProduct.get(promotionProgramCode);\n\t\t\t\t\t\tInteger[] arrProductUnit = mapArrayQuantityUnit.get(promotionProgramCode);\n\t\t\t\t\t\tBigDecimal[] arrSaleAmount = mapArraySaleAmount.get(promotionProgramCode);\n\t\t\t\t\t\tBoolean[] arrAndOr = mapArrayAndOr.get(promotionProgramCode);\n\t\t\t\t\t\tFloat[] arrPercent = mapArrayDiscountPercent.get(promotionProgramCode);\n\t\t\t\t\t\t//Sort theo saleQuantity\n\t\t\t\t\t\tsortAmountProduct(arrProduct, arrProductUnit, arrSaleAmount, arrAndOr, null, null, null, null, arrPercent);\n\t\t\t\t\t\tfor (int i = 0; arrProduct != null && i < arrProduct.length; i++) {\n\t\t\t\t\t\t\tif (!StringUtil.isNullOrEmpty(arrProduct[i]) && arrSaleAmount[i] != null && arrPercent[i] != null) {\n\t\t\t\t\t\t\t\tGroupMua groupMua;\n\t\t\t\t\t\t\t\tGroupKM groupKM;\n\t\t\t\t\t\t\t\tunit = arrProductUnit[i];\n\t\t\t\t\t\t\t\tif (mapPromotionMua.get(promotionProgramCode) != null && mapPromotionKM.get(promotionProgramCode) != null) {\n\t\t\t\t\t\t\t\t\tgroupMua = mapPromotionMua.get(promotionProgramCode).get(mapPromotionMua.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t\tgroupKM = mapPromotionKM.get(promotionProgramCode).get(mapPromotionKM.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tListGroupMua lstGroupMua = new ListGroupMua();\n\t\t\t\t\t\t\t\t\tListGroupKM lstGroupKM = new ListGroupKM();\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tgroupMua.groupCode = \"N\" + (lstGroupMua.size() + 1);\n\t\t\t\t\t\t\t\t\t//groupMua.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupMua.groupName = arrPromoGroupName[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.multiple = arrMultiple[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.recursive = arrRecursive[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.dkgh = arrDkgh[i];\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupMua.qttUnit = unit;\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tgroupKM.groupCode = \"N\" + (lstGroupKM.size() + 1);\n\t\t\t\t\t\t\t\t\t//groupKM.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupKM.groupName = arrPromoGroupName[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.multiple = arrMultiple[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.recursive = arrRecursive[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.dkgh = arrDkgh[i];\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupMua.order = lstGroupMua.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupKM.order = lstGroupKM.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tmapPromotionMua.put(promotionProgramCode, lstGroupMua);\n\t\t\t\t\t\t\t\t\tmapPromotionKM.put(promotionProgramCode, lstGroupKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tGroupSP groupSPMua = groupMua.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrProduct[i], arrSaleAmount[i], indexMua++, i, arrProduct, arrSaleAmount, null, null);\n\t\t\t\t\t\t\t\tif (groupSPMua == null) {\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tList<GroupMua> lstGroupMua = mapPromotionMua.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupSPMua = groupMua.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrProduct[i], arrSaleAmount[i], indexMua++, i, arrProduct, arrSaleAmount, null, null);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tList<Long> lstIndex = mapMuaKM.get(groupSPMua.index);//lay danh sach cac index muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tList<GroupSP> lstLevelKM = groupKM.searchIndex(lstIndex);//lay danh sach cac muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tGroupSP groupSPKM = groupKM.add2Level(arrPercent[i], indexKM++, i, arrPercent, lstLevelKM);\n\t\t\t\t\t\t\t\tif (groupSPKM == null) {\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tList<GroupKM> lstGroupKM = mapPromotionKM.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tgroupSPKM = groupKM.add2Level(arrPercent[i], indexKM++, i, arrPercent, lstLevelKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tmapMuaKM.put(groupSPMua.index, groupSPKM.index);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (mapPromotionType.get(promotionProgramCode) == 7) {\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * mua 10000 dc km ... C(1), D(1)\n\t\t\t\t\t\t */\n\t\t\t\t\t\tBigDecimal[] arrSaleAmount = mapArraySaleAmount.get(promotionProgramCode);\n\t\t\t\t\t\tString[] arrFreeProduct = mapArrayFreeProduct.get(promotionProgramCode);\n\t\t\t\t\t\tInteger[] arrFreeProductUnit = mapArrayFreeQuantityUnit.get(promotionProgramCode);\n\t\t\t\t\t\tBigDecimal[] arrFreeQuantity = mapArrayFreeQuantity.get(promotionProgramCode);\n\t\t\t\t\t\tBoolean[] arrAndOr = mapArrayAndOr.get(promotionProgramCode);\n\t\t\t\t\t\tsortAmount(arrSaleAmount, arrAndOr, arrFreeProduct, arrFreeProductUnit, arrFreeQuantity, null, null);\n\t\t\t\t\t\tfor (int i = 0; arrSaleAmount != null && i < arrSaleAmount.length; i++) {\n\t\t\t\t\t\t\tif (arrSaleAmount[i] != null && !StringUtil.isNullOrEmpty(arrFreeProduct[i]) && arrFreeQuantity[i] != null) {\n\t\t\t\t\t\t\t\tGroupMua groupMua;\n\t\t\t\t\t\t\t\tGroupKM groupKM;\n\t\t\t\t\t\t\t\tif (mapPromotionMua.get(promotionProgramCode) != null && mapPromotionKM.get(promotionProgramCode) != null) {\n\t\t\t\t\t\t\t\t\tgroupMua = mapPromotionMua.get(promotionProgramCode).get(mapPromotionMua.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t\tgroupKM = mapPromotionKM.get(promotionProgramCode).get(mapPromotionKM.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tListGroupMua lstGroupMua = new ListGroupMua();\n\t\t\t\t\t\t\t\t\tListGroupKM lstGroupKM = new ListGroupKM();\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tgroupMua.groupCode = \"N\" + (lstGroupMua.size() + 1);\n\t\t\t\t\t\t\t\t\t//groupMua.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupMua.groupName = arrPromoGroupName[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.multiple = arrMultiple[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.recursive = arrRecursive[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.dkgh = arrDkgh[i];\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tgroupKM.groupCode = \"N\" + (lstGroupKM.size() + 1);\n\t\t\t\t\t\t\t\t\t//groupKM.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupKM.groupName = arrPromoGroupName[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.multiple = arrMultiple[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.recursive = arrRecursive[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.dkgh = arrDkgh[i];\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupKM.qttUnit = arrFreeProductUnit[i];\n\t\t\t\t\t\t\t\t\tgroupMua.order = lstGroupMua.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupKM.order = lstGroupKM.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tmapPromotionMua.put(promotionProgramCode, lstGroupMua);\n\t\t\t\t\t\t\t\t\tmapPromotionKM.put(promotionProgramCode, lstGroupKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tGroupSP groupSPMua = groupMua.add2Level(2, arrSaleAmount[i], null, indexMua++, i, arrSaleAmount, arrFreeProduct, arrFreeQuantity);\n\t\t\t\t\t\t\t\tif (groupSPMua == null) {\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tList<GroupMua> lstGroupMua = mapPromotionMua.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupSPMua = groupMua.add2Level(2, arrSaleAmount[i], null, indexMua++, i, arrSaleAmount, arrFreeProduct, arrFreeQuantity);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tList<Long> lstIndex = mapMuaKM.get(groupSPMua.index);//lay danh sach cac index muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tList<GroupSP> lstLevelKM = groupKM.searchIndex(lstIndex);//lay danh sach cac muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tGroupSP groupSPKM = groupKM.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrFreeProduct[i], unit, arrFreeQuantity[i], arrAndOr[i], indexKM++, i, arrFreeProduct, arrFreeQuantity, lstLevelKM);\n\t\t\t\t\t\t\t\tif (groupSPKM == null) {\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tList<GroupKM> lstGroupKM = mapPromotionKM.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tgroupSPKM = groupKM.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrFreeProduct[i], unit, arrFreeQuantity[i], arrAndOr[i], indexKM++, i, arrFreeProduct, arrFreeQuantity, null);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tmapMuaKM.put(groupSPMua.index, groupSPKM.index);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (mapPromotionType.get(promotionProgramCode) == 8) {\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * mua 10000 dc km ... 10.000\n\t\t\t\t\t\t */\n\t\t\t\t\t\tBigDecimal[] arrSaleAmount = mapArraySaleAmount.get(promotionProgramCode);\n\t\t\t\t\t\tBigDecimal[] arrFreeAmount = mapArrayDiscountAmount.get(promotionProgramCode);\n\t\t\t\t\t\tsortAmount(arrSaleAmount, null, null, null, null, arrFreeAmount, null);\n\t\t\t\t\t\tfor (int i = 0; arrSaleAmount != null && i < arrSaleAmount.length; i++) {\n\t\t\t\t\t\t\tif (arrSaleAmount[i] != null && arrFreeAmount[i] != null) {\n\t\t\t\t\t\t\t\tGroupMua groupMua;\n\t\t\t\t\t\t\t\tGroupKM groupKM;\n\t\t\t\t\t\t\t\tif (mapPromotionMua.get(promotionProgramCode) != null && mapPromotionKM.get(promotionProgramCode) != null) {\n\t\t\t\t\t\t\t\t\tgroupMua = mapPromotionMua.get(promotionProgramCode).get(mapPromotionMua.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t\tgroupKM = mapPromotionKM.get(promotionProgramCode).get(mapPromotionKM.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tListGroupMua lstGroupMua = new ListGroupMua();\n\t\t\t\t\t\t\t\t\tListGroupKM lstGroupKM = new ListGroupKM();\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tgroupMua.groupCode = \"N\" + (lstGroupMua.size() + 1);\n\t\t\t\t\t\t\t\t\t//groupMua.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupMua.groupName = arrPromoGroupName[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.multiple = arrMultiple[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.recursive = arrRecursive[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.dkgh = arrDkgh[i];\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tgroupKM.groupCode = \"N\" + (lstGroupKM.size() + 1);\n\t\t\t\t\t\t\t\t\t//groupKM.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupKM.groupName = arrPromoGroupName[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.multiple = arrMultiple[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.recursive = arrRecursive[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.dkgh = arrDkgh[i];\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupMua.order = lstGroupMua.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupKM.order = lstGroupKM.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tmapPromotionMua.put(promotionProgramCode, lstGroupMua);\n\t\t\t\t\t\t\t\t\tmapPromotionKM.put(promotionProgramCode, lstGroupKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tGroupSP groupSPMua = groupMua.add2Level(2, arrSaleAmount[i], null, indexMua++, i, arrSaleAmount, null, null);\n\t\t\t\t\t\t\t\tif (groupSPMua == null) {\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tList<GroupMua> lstGroupMua = mapPromotionMua.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupSPMua = groupMua.add2Level(2, arrSaleAmount[i], null, indexMua++, i, arrSaleAmount, null, null);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tList<Long> lstIndex = mapMuaKM.get(groupSPMua.index);//lay danh sach cac index muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tList<GroupSP> lstLevelKM = groupKM.searchIndex(lstIndex);//lay danh sach cac muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tGroupSP groupSPKM = groupKM.add2Level(arrFreeAmount[i], indexKM++, i, arrFreeAmount, lstLevelKM);\n\t\t\t\t\t\t\t\tif (groupSPKM == null) {\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tList<GroupKM> lstGroupKM = mapPromotionKM.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tgroupSPKM = groupKM.add2Level(arrFreeAmount[i], indexKM++, i, arrFreeAmount, lstLevelKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tmapMuaKM.put(groupSPMua.index, groupSPKM.index);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (mapPromotionType.get(promotionProgramCode) == 9) {\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * mua 10000 dc km ... 10%\n\t\t\t\t\t\t */\n\t\t\t\t\t\tBigDecimal[] arrSaleAmount = mapArraySaleAmount.get(promotionProgramCode);\n\t\t\t\t\t\tFloat[] arrPercent = mapArrayDiscountPercent.get(promotionProgramCode);\n\t\t\t\t\t\tsortAmount(arrSaleAmount, null, null, null, null, null, arrPercent);\n\t\t\t\t\t\tfor (int i = 0; arrSaleAmount != null && i < arrSaleAmount.length; i++) {\n\t\t\t\t\t\t\tif (arrSaleAmount[i] != null && arrPercent[i] != null) {\n\t\t\t\t\t\t\t\tGroupMua groupMua;\n\t\t\t\t\t\t\t\tGroupKM groupKM;\n\t\t\t\t\t\t\t\tif (mapPromotionMua.get(promotionProgramCode) != null && mapPromotionKM.get(promotionProgramCode) != null) {\n\t\t\t\t\t\t\t\t\tgroupMua = mapPromotionMua.get(promotionProgramCode).get(mapPromotionMua.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t\tgroupKM = mapPromotionKM.get(promotionProgramCode).get(mapPromotionKM.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tListGroupMua lstGroupMua = new ListGroupMua();\n\t\t\t\t\t\t\t\t\tListGroupKM lstGroupKM = new ListGroupKM();\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tgroupMua.groupCode = \"N\" + (lstGroupMua.size() + 1);\n\t\t\t\t\t\t\t\t\t//groupMua.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupMua.groupName = arrPromoGroupName[i];\n\t\t\t\t\t\t\t\t\t/*groupMua.multiple = arrMultiple[i];\n\t\t\t\t\t\t\t\t\tgroupMua.recursive = arrRecursive[i];\n\t\t\t\t\t\t\t\t\tgroupMua.dkgh = arrDkgh[i];*/\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tgroupKM.groupCode = \"N\" + (lstGroupKM.size() + 1);\n\t\t\t\t\t\t\t\t\t//groupKM.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupKM.groupName = arrPromoGroupName[i];\n\t\t\t\t\t\t\t\t/*\tgroupKM.multiple = arrMultiple[i];\n\t\t\t\t\t\t\t\t\tgroupKM.recursive = arrRecursive[i];\n\t\t\t\t\t\t\t\t\tgroupKM.dkgh = arrDkgh[i];*/\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupMua.order = lstGroupMua.size() + 1;\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupKM.order = lstGroupKM.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tmapPromotionMua.put(promotionProgramCode, lstGroupMua);\n\t\t\t\t\t\t\t\t\tmapPromotionKM.put(promotionProgramCode, lstGroupKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tGroupSP groupSPMua = groupMua.add2Level(2, arrSaleAmount[i], null, indexMua++, i, arrSaleAmount, null, null);\n\t\t\t\t\t\t\t\tif (groupSPMua == null) {\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tList<GroupMua> lstGroupMua = mapPromotionMua.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupSPMua = groupMua.add2Level(2, arrSaleAmount[i], null, indexMua++, i, arrSaleAmount, null, null);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tList<Long> lstIndex = mapMuaKM.get(groupSPMua.index);//lay danh sach cac index muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tList<GroupSP> lstLevelKM = groupKM.searchIndex(lstIndex);//lay danh sach cac muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tGroupSP groupSPKM = groupKM.add2Level(arrPercent[i], indexKM++, i, arrPercent, lstLevelKM);\n\t\t\t\t\t\t\t\tif (groupSPKM == null) {\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tList<GroupKM> lstGroupKM = mapPromotionKM.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tgroupSPKM = groupKM.add2Level(arrPercent[i], indexKM++, i, arrPercent, lstLevelKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tmapMuaKM.put(groupSPMua.index, groupSPKM.index);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (mapPromotionType.get(promotionProgramCode) == 10) {\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * ZV24\n\t\t\t\t\t\t */\n\t\t\t\t\t\tBigDecimal[] arrSaleQuantity = mapArraySaleQuantity.get(promotionProgramCode);\n\t\t\t\t\t\tInteger[] arrProductUnit = mapArrayQuantityUnit.get(promotionProgramCode);\n\t\t\t\t\t\tString[] arrFreeProduct = mapArrayFreeProduct.get(promotionProgramCode);\n\t\t\t\t\t\tBigDecimal[] arrFreeQuantity = mapArrayFreeQuantity.get(promotionProgramCode);\n\t\t\t\t\t\tBoolean[] arrAndOr = mapArrayAndOr.get(promotionProgramCode);\n\t\t\t\t\t\tInteger[] arrFreeProductUnit = mapArrayFreeQuantityUnit.get(promotionProgramCode);\n\t\t\t\t\t\tsortQuantity(arrSaleQuantity, arrAndOr, arrFreeProduct, arrFreeProductUnit, arrFreeQuantity, null, null);\n\n\t\t\t\t\t\tfor (int i = 0; arrSaleQuantity != null && i < arrSaleQuantity.length; i++) {\n\t\t\t\t\t\t\tif (arrSaleQuantity[i] != null && !StringUtil.isNullOrEmpty(arrFreeProduct[i]) && arrFreeQuantity[i] != null) {\n\t\t\t\t\t\t\t\tGroupMua groupMua;\n\t\t\t\t\t\t\t\tGroupKM groupKM;\n\t\t\t\t\t\t\t\tunit = arrProductUnit[i];\n\t\t\t\t\t\t\t\tif (mapPromotionMua.get(promotionProgramCode) != null && mapPromotionKM.get(promotionProgramCode) != null) {\n\t\t\t\t\t\t\t\t\tgroupMua = mapPromotionMua.get(promotionProgramCode).get(mapPromotionMua.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t\tgroupKM = mapPromotionKM.get(promotionProgramCode).get(mapPromotionKM.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tListGroupMua lstGroupMua = new ListGroupMua();\n\t\t\t\t\t\t\t\t\tListGroupKM lstGroupKM = new ListGroupKM();\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tgroupMua.groupCode = \"N\" + (lstGroupMua.size() + 1);\n\t\t\t\t\t\t\t\t\t//groupMua.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupMua.groupName = arrPromoGroupName[i];\n\t\t\t\t\t\t\t\t\t/*groupMua.multiple = arrMultiple[i];\n\t\t\t\t\t\t\t\t\tgroupMua.recursive = arrRecursive[i];\n\t\t\t\t\t\t\t\t\tgroupMua.dkgh = arrDkgh[i];*/\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupMua.qttUnit = unit;\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tgroupKM.groupCode = \"N\" + (lstGroupKM.size() + 1);\n\t\t\t\t\t\t\t\t\t//groupKM.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupKM.groupName = arrPromoGroupName[i];\n\t\t\t\t\t\t/*\t\t\tgroupKM.multiple = arrMultiple[i];\n\t\t\t\t\t\t\t\t\tgroupKM.recursive = arrRecursive[i];\n\t\t\t\t\t\t\t\t\tgroupKM.dkgh = arrDkgh[i];*/\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupKM.qttUnit = arrFreeProductUnit[i];\n\t\t\t\t\t\t\t\t\tgroupMua.order = lstGroupMua.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupKM.order = lstGroupKM.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tmapPromotionMua.put(promotionProgramCode, lstGroupMua);\n\t\t\t\t\t\t\t\t\tmapPromotionKM.put(promotionProgramCode, lstGroupKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tGroupSP groupSPMua = groupMua.add2Level(1, arrSaleQuantity[i], arrProductUnit[i], indexMua++, i, arrSaleQuantity, arrFreeProduct, arrFreeQuantity);\n\t\t\t\t\t\t\t\tif (groupSPMua == null) {\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tList<GroupMua> lstGroupMua = mapPromotionMua.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupSPMua = groupMua.add2Level(1, arrSaleQuantity[i], null, indexMua++, i, arrSaleQuantity, arrFreeProduct, arrFreeQuantity);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tList<Long> lstIndex = mapMuaKM.get(groupSPMua.index);//lay danh sach cac index muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tList<GroupSP> lstLevelKM = groupKM.searchIndex(lstIndex);//lay danh sach cac muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tGroupSP groupSPKM = groupKM.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrFreeProduct[i], unit, arrFreeQuantity[i], arrAndOr[i], indexKM++, i, arrFreeProduct, arrFreeQuantity, lstLevelKM);\n\t\t\t\t\t\t\t\tif (groupSPKM == null) {\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tList<GroupKM> lstGroupKM = mapPromotionKM.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tgroupSPKM = groupKM.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrFreeProduct[i], unit, arrFreeQuantity[i], arrAndOr[i], indexKM++, i, arrFreeProduct, arrFreeQuantity, null);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tmapMuaKM.put(groupSPMua.index, groupSPKM.index);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (mapPromotionType.get(promotionProgramCode) == 11) {\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * ZV23\n\t\t\t\t\t\t */\n\t\t\t\t\t\tBigDecimal[] arrSaleQuantity = mapArraySaleQuantity.get(promotionProgramCode);\n\t\t\t\t\t\tInteger[] arrProductUnit = mapArrayQuantityUnit.get(promotionProgramCode);\n\t\t\t\t\t\tBigDecimal[] arrFreeAmount = mapArrayDiscountAmount.get(promotionProgramCode);\n\t\t\t\t\t\tsortQuantity(arrSaleQuantity, null, null, null, null, arrFreeAmount, null);\n\t\t\t\t\t\tfor (int i = 0; arrSaleQuantity != null && i < arrSaleQuantity.length; i++) {\n\t\t\t\t\t\t\tif (arrSaleQuantity[i] != null && arrFreeAmount[i] != null) {\n\t\t\t\t\t\t\t\tGroupMua groupMua;\n\t\t\t\t\t\t\t\tGroupKM groupKM;\n\t\t\t\t\t\t\t\tunit = arrProductUnit[i];\n\t\t\t\t\t\t\t\tif (mapPromotionMua.get(promotionProgramCode) != null && mapPromotionKM.get(promotionProgramCode) != null) {\n\t\t\t\t\t\t\t\t\tgroupMua = mapPromotionMua.get(promotionProgramCode).get(mapPromotionMua.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t\tgroupKM = mapPromotionKM.get(promotionProgramCode).get(mapPromotionKM.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tListGroupMua lstGroupMua = new ListGroupMua();\n\t\t\t\t\t\t\t\t\tListGroupKM lstGroupKM = new ListGroupKM();\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tgroupMua.groupCode = \"N\" + (lstGroupMua.size() + 1);\n\t\t\t\t\t\t\t\t\t//groupMua.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupMua.groupName = arrPromoGroupName[i];\n\t\t\t\t\t\t\t\t/*\tgroupMua.multiple = arrMultiple[i];\n\t\t\t\t\t\t\t\t\tgroupMua.recursive = arrRecursive[i];\n\t\t\t\t\t\t\t\t\tgroupMua.dkgh = arrDkgh[i];*/\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupMua.qttUnit = unit;\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tgroupKM.groupCode = \"N\" + (lstGroupKM.size() + 1);\n\t\t\t\t\t\t\t\t\t//groupKM.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupKM.groupName = arrPromoGroupName[i];\n\t\t\t\t\t\t\t/*\t\tgroupKM.multiple = arrMultiple[i];\n\t\t\t\t\t\t\t\t\tgroupKM.recursive = arrRecursive[i];\n\t\t\t\t\t\t\t\t\tgroupKM.dkgh = arrDkgh[i];*/\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupMua.order = lstGroupMua.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupKM.order = lstGroupKM.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tmapPromotionMua.put(promotionProgramCode, lstGroupMua);\n\t\t\t\t\t\t\t\t\tmapPromotionKM.put(promotionProgramCode, lstGroupKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tGroupSP groupSPMua = groupMua.add2Level(1, arrSaleQuantity[i], arrProductUnit[i], indexMua++, i, arrSaleQuantity, null, null);\n\t\t\t\t\t\t\t\tif (groupSPMua == null) {\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tList<GroupMua> lstGroupMua = mapPromotionMua.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupSPMua = groupMua.add2Level(1, arrSaleQuantity[i], arrProductUnit[i], indexMua++, i, arrSaleQuantity, null, null);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tList<Long> lstIndex = mapMuaKM.get(groupSPMua.index);//lay danh sach cac index muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tList<GroupSP> lstLevelKM = groupKM.searchIndex(lstIndex);//lay danh sach cac muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tGroupSP groupSPKM = groupKM.add2Level(arrFreeAmount[i], indexKM++, i, arrFreeAmount, lstLevelKM);\n\t\t\t\t\t\t\t\tif (groupSPKM == null) {\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tList<GroupKM> lstGroupKM = mapPromotionKM.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tgroupSPKM = groupKM.add2Level(arrFreeAmount[i], indexKM++, i, arrFreeAmount, lstLevelKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tmapMuaKM.put(groupSPMua.index, groupSPKM.index);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (mapPromotionType.get(promotionProgramCode) == 12) {\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * \n\t\t\t\t\t\t */\n\t\t\t\t\t\tBigDecimal[] arrSaleQuantity = mapArraySaleQuantity.get(promotionProgramCode);\n\t\t\t\t\t\tInteger[] arrProductUnit = mapArrayQuantityUnit.get(promotionProgramCode);\n\t\t\t\t\t\tFloat[] arrPercent = mapArrayDiscountPercent.get(promotionProgramCode);\n\t\t\t\t\t\t//Sort theo saleQuantity\n\t\t\t\t\t\tsortQuantity(arrSaleQuantity, null, null, null, null, null, arrPercent);\n\t\t\t\t\t\tfor (int i = 0; arrSaleQuantity != null && i < arrSaleQuantity.length; i++) {\n\t\t\t\t\t\t\tif (arrSaleQuantity[i] != null && arrPercent[i] != null) {\n\t\t\t\t\t\t\t\tGroupMua groupMua;\n\t\t\t\t\t\t\t\tGroupKM groupKM;\n\t\t\t\t\t\t\t\tunit = arrProductUnit[i];\n\t\t\t\t\t\t\t\tif (mapPromotionMua.get(promotionProgramCode) != null && mapPromotionKM.get(promotionProgramCode) != null) {\n\t\t\t\t\t\t\t\t\tgroupMua = mapPromotionMua.get(promotionProgramCode).get(mapPromotionMua.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t\tgroupKM = mapPromotionKM.get(promotionProgramCode).get(mapPromotionKM.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tListGroupMua lstGroupMua = new ListGroupMua();\n\t\t\t\t\t\t\t\t\tListGroupKM lstGroupKM = new ListGroupKM();\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tgroupMua.groupCode = \"N\" + (lstGroupMua.size() + 1);\n\t\t\t\t\t\t\t\t\t//groupMua.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupMua.groupName = arrPromoGroupName[i];\n\t\t\t\t\t\t\t\t\t/*groupMua.multiple = arrMultiple[i];\n\t\t\t\t\t\t\t\t\tgroupMua.recursive = arrRecursive[i];\n\t\t\t\t\t\t\t\t\tgroupMua.dkgh = arrDkgh[i];*/\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupMua.qttUnit = unit;\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\t//groupKM.groupCode = \"N\" + (lstGroupKM.size() + 1);\n\t\t\t\t\t\t\t\t\tgroupKM.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupKM.groupName = arrPromoGroupName[i];\n\t\t\t\t\t\t\t\t\t/*groupKM.multiple = arrMultiple[i];\n\t\t\t\t\t\t\t\t\tgroupKM.recursive = arrRecursive[i];\n\t\t\t\t\t\t\t\t\tgroupKM.dkgh = arrDkgh[i];*/\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupMua.order = lstGroupMua.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupKM.order = lstGroupKM.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tmapPromotionMua.put(promotionProgramCode, lstGroupMua);\n\t\t\t\t\t\t\t\t\tmapPromotionKM.put(promotionProgramCode, lstGroupKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tGroupSP groupSPMua = groupMua.add2Level(1, arrSaleQuantity[i], arrProductUnit[i], indexMua++, i, arrSaleQuantity, null, null);\n\t\t\t\t\t\t\t\tif (groupSPMua == null) {\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tList<GroupMua> lstGroupMua = mapPromotionMua.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupSPMua = groupMua.add2Level(1, arrSaleQuantity[i], arrProductUnit[i], indexMua++, i, arrSaleQuantity, null, null);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tList<Long> lstIndex = mapMuaKM.get(groupSPMua.index);//lay danh sach cac index muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tList<GroupSP> lstLevelKM = groupKM.searchIndex(lstIndex);//lay danh sach cac muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tGroupSP groupSPKM = groupKM.add2Level(arrPercent[i], indexKM++, i, arrPercent, lstLevelKM);\n\t\t\t\t\t\t\t\tif (groupSPKM == null) {\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tList<GroupKM> lstGroupKM = mapPromotionKM.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tgroupSPKM = groupKM.add2Level(arrPercent[i], indexKM++, i, arrPercent, lstLevelKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tmapMuaKM.put(groupSPMua.index, groupSPKM.index);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (!StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\terrRow.setContent14(messageError);\n\t\t\t\t\tlstDetailError.add(errRow);\n\t\t\t\t}\n\t\t\t\tfor (String promotionProgramCode : mapPromotionType.keySet()) {\n\t\t\t\t\tsplitGroup(mapPromotionMua.get(promotionProgramCode), mapPromotionKM.get(promotionProgramCode), mapMuaKM, promotionProgramCode, lstProductPromo);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic EmployeeData mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\tEmployeeData ed = new EmployeeData();\n\t\ted.setEmpId(rs.getInt(\"EMPID\"));\n\t\ted.setEmpName(rs.getString(\"EMPNAME\"));\n\t\ted.setSalary(rs.getString(\"SALARY\"));\n\t\tDepartmentData dd = new DepartmentData();\n\t\tdd.setDeptId(rs.getInt(\"DEPTID\"));\n\t\tdd.setDeptName(rs.getString(\"DEPTNAME\"));\n\t\ted.setDepartmentData(dd);\n\t\treturn ed;\n\t}", "protected abstract void buildRowImpl(T rowValue, int absRowIndex);", "@VTID(41)\n com.exceljava.com4j.excel.ListObject getListObject();", "protected abstract Object mapRow(ResultSet rs) throws SQLException;", "public static byte[] writeExcel(List<Object[]> objectList) throws IOException {\n\n String sheetName = \"Sheet1\";//name of sheet\n\n XSSFWorkbook wb = new XSSFWorkbook();\n XSSFSheet sheet = wb.createSheet(sheetName);\n Map<String, CellStyle> styles = createStyles(wb);\n int contRow = 0;\n for (Object[] obj : objectList) {\n XSSFRow row = sheet.createRow(contRow);\n int contCell = 0;\n\n for (Object s : obj) {\n\n XSSFCell cell = row.createCell(contCell);\n\n /*if (contCell == 0 && contRow > 0) {\n nomAct = s.toString();\n }*/\n \n /*if (contCell == 1 && contRow > 0) {\n descripAct = s.toString();\n }*/\n\n if (contRow == 0) {\n cell.setCellValue(s.toString());\n cell.setCellStyle(styles.get(\"header\"));\n } else {\n /*if (nomAct.equals(nomAnt) && contCell == 0) {\n cell.setCellValue(\"\");\n cell.setCellStyle(styles.get(\"cell_normal_rol\"));\n }\n if (descripAct.equals(descripAnt) && contCell == 1) {\n cell.setCellValue(\"\");\n cell.setCellStyle(styles.get(\"cell_normal_rol\"));\n } else {*/\n cell.setCellValue(s.toString());\n /* if (contCell == 0 || contCell==1) {\n cell.setCellStyle(styles.get(\"cell_normal_rol\"));\n nomAnt = nomAct;\n descripAnt = descripAct;\n } else {\n cell.setCellStyle(styles.get(\"cell_normal\"));\n }*/\n //}\n }\n\n contCell++;\n }\n contRow++;\n }\n\n/*\n sheet.addMergedRegion(new CellRangeAddress(1, contRow - 1, 0, 0));\n sheet.addMergedRegion(new CellRangeAddress(1, contRow - 1, 1, 1));*/\n\n\n /*//iterating r number of rows\n for (int r = 0; r < 5; r++) {\n XSSFRow row = sheet.createRow(r);\n\n //iterating c number of columns\n for (int c = 0; c < 5; c++) {\n for (int c = 0; c < 5; c++) {\n XSSFCell cell = row.createCell(c);\n\n cell.setCellValue(\"Cell \" + r + \" \" + c);\n }\n }*/\n\n // FileOutputStream fileOut = new FileOutputStream(excelFileName);\n ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n wb.write(byteArrayOutputStream);\n return byteArrayOutputStream.toByteArray();\n\n //write this workbook to an Outputstream.\n/* wb.write(fileOut);\n fileOut.flush();\n fileOut.close();*/\n }", "@Override\r\n\tpublic void addRow(Object[] rowData) {\r\n\t\ttry{\r\n\t\t\tPersona newRecord = new Persona();\r\n\t\t\tnewRecord.setNome((String)rowData[0]);\r\n\t\t\tnewRecord.setCognome((String)rowData[1]);\r\n\t\t\tnewRecord.setTelefono((String)rowData[2]);\r\n\t\t\tnewRecord.setIndirizzo((String)rowData[3]);\r\n\t\t\tnewRecord.setEta(Integer.parseInt((String)rowData[4]));\r\n\t\t\tlista.create(newRecord);\r\n\t\t\tsuper.addRow(rowData);\r\n\t\t}\r\n\t\tcatch (NumberFormatException nfe) {\r\n\t\t\tJOptionPane.showMessageDialog(null, NFE_MESSAGE);\r\n\t\t}\r\n\t}", "public FececEmpleado mapRow(ResultSet rs, int rowNum) throws SQLException {\n FececEmpleado dto = new FececEmpleado();\n\n dto.setIdEmpleado(rs.getBigDecimal(COLUMN_ID_EMPLEADO));\n dto.setNombre(rs.getString(COLUMN_NOMBRE));\n dto.setRfc(rs.getString(COLUMN_RFC));\n dto.setCorreo(rs.getString(COLUMN_CORREO));\n dto.setIdEstatusEmpleado(rs.getBigDecimal(COLUMN_ID_ESTATUS_EMPLEADO));\n dto.setFechaCreacion(rs.getTimestamp(COLUMN_FECHA_CREACION));\n dto.setFechaBaja(rs.getTimestamp(COLUMN_FECHA_BAJA));\n\n return dto;\n }", "public void addRow(String data){//adds a new row of data to the table\n\t\t\t\tif(row_count<100){//checks to see if there is space left in the current datum for an additional rows\n\t\t\t\t\tif(row_count<50){//halvs the data for more efficiant row insertion\n\t\t\t\t\t\tif(row_count<10){//checks to see if it is in the first inner datum\n\t\t\t\t\t\t\tif(dataarr!=null){//makes suhure there is an innerdatum to send the data to\n\t\t\t\t\t\t\t\tdataarr[0].addRow(data);\n\t\t\t\t\t\t\t}else{//if there is not an inner datum in the current spot this adds a new one\n\t\t\t\t\t\t\t\tdataarr[0]=new InnerDatum();\n\t\t\t\t\t\t\t\tdataarr[0].addRow(data);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else if(row_count<20){//checks to see if it is in the second inner datum\n\t\t\t\t\t\t\tf(dataarr!=null){//makes suhure there is an innerdatum to send the data to\n\t\t\t\t\t\t\t\tdataarr[1].addRow(data);\n\t\t\t\t\t\t\t}else{//if there is not an inner datum in the current spot this adds a new one\n\t\t\t\t\t\t\t\tdataarr[1]=new InnerDatum();\n\t\t\t\t\t\t\t\tdataarr[1].addRow(data);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else if(row_count<30){//checks to see if it is in the third inner datum\n\t\t\t\t\t\t\tif(dataarr!=null){//makes suhure there is an innerdatum to send the data to\n\t\t\t\t\t\t\t\tdataarr[2].addRow(data);\n\t\t\t\t\t\t\t}else{//if there is not an inner datum in the current spot this adds a new one\n\t\t\t\t\t\t\t\tdataarr[2]=new InnerDatum();\n\t\t\t\t\t\t\t\tdataarr[2].addRow(data);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else if(row_count<40){//checks to see if it is in the fourth inner datum\n\t\t\t\t\t\t\tif(dataarr!=null){//makes suhure there is an innerdatum to send the data to\n\t\t\t\t\t\t\t\tdataarr[3].addRow(data);\n\t\t\t\t\t\t\t}else{//if there is not an inner datum in the current spot this adds a new one\n\t\t\t\t\t\t\t\tdataarr[3]=new InnerDatum();\n\t\t\t\t\t\t\t\tdataarr[3].addRow(data);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else{//checks to see if it is in the fifth inner datum\n\t\t\t\t\t\t\tif(dataarr!=null){//makes suhure there is an innerdatum to send the data to\n\t\t\t\t\t\t\t\tdataarr[4].addRow(data);\n\t\t\t\t\t\t\t}else{//if there is not an inner datum in the current spot this adds a new one\n\t\t\t\t\t\t\t\tdataarr[4]=new InnerDatum();\n\t\t\t\t\t\t\t\tdataarr[4].addRow(data);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else{\t\n\t\t\t\t\t\tif(row_count<60){//checks to see if it is in the sixth inner datum\n\t\t\t\t\t\t\tif(dataarr!=null){//makes suhure there is an innerdatum to send the data to\n\t\t\t\t\t\t\t\tdataarr[5].addRow(data);\n\t\t\t\t\t\t\t}else{//if there is not an inner datum in the current spot this adds a new one\n\t\t\t\t\t\t\t\tdataarr[5]=new InnerDatum();\n\t\t\t\t\t\t\t\tdataarr[5].addRow(data);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else if(row_count<70){//checks to see if it is in the seventh inner datum\n\t\t\t\t\t\t\tif(dataarr!=null){//makes suhure there is an innerdatum to send the data to\n\t\t\t\t\t\t\t\tdataarr[6].addRow(data);\n\t\t\t\t\t\t\t}else{//if there is not an inner datum in the current spot this adds a new one\n\t\t\t\t\t\t\t\tdataarr[6]=new InnerDatum();\n\t\t\t\t\t\t\t\tdataarr[6].addRow(data);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else if(row_count<80){//checks to see if it is in the eighth inner datum\n\t\t\t\t\t\t\tif(dataarr!=null){//makes suhure there is an innerdatum to send the data to\n\t\t\t\t\t\t\t\tdataarr[7].addRow(data);\n\t\t\t\t\t\t\t}else{//if there is not an inner datum in the current spot this adds a new one\n\t\t\t\t\t\t\t\tdataarr[7]=new InnerDatum();\n\t\t\t\t\t\t\t\tdataarr[7].addRow(data);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else if(row_count<90){//checks to see if it is in the ninth inner datum\n\t\t\t\t\t\t\tif(dataarr!=null){//makes suhure there is an innerdatum to send the data to\n\t\t\t\t\t\t\t\tdataarr[8].addRow(data);\n\t\t\t\t\t\t\t}else{//if there is not an inner datum in the current spot this adds a new one\n\t\t\t\t\t\t\t\tdataarr[8]=new InnerDatum();\n\t\t\t\t\t\t\t\tdataarr[8].addRow(data);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else{//checks to see if it is in the tenth inner datum\n\t\t\t\t\t\t\tif(dataarr!=null){//makes suhure there is an innerdatum to send the data to\n\t\t\t\t\t\t\t\tdataarr[9].addRow(data);\n\t\t\t\t\t\t\t}else{//if there is not an inner datum in the current spot this adds a new one\n\t\t\t\t\t\t\t\tdataarr[9]=new InnerDatum();\n\t\t\t\t\t\t\t\tdataarr[9].addRow(data);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}else{//acctivated when there is no room left in the current outer datum}\n\t\t\t\t\tif(next==null){//checks to see if there is a next outer datum\n\t\t\t\t\t\tnext=new OuterDatum();\t\n\t\t\t\t\t}\n\t\t\t\t\tnext.addRow(data);\n\t\t\t\t}\n\t\t\t}", "public void addRow (ArrayList<Object> l, int index)\n\t{\n\t\tm_data.rows.add(index, l);\n\t\tm_data.rowsMeta.add(index, null);\n\t}", "@DataProvider(name=\"excle\")\n\tpublic static Object[][] createaccountTest() throws IOException {\n\t\tObject content[][];\n\t\tFileInputStream file = new FileInputStream(\n\t\t\t\t\"D:\\\\Java_Workspace\\\\FinalKDDFramework\\\\Input\\\\Account.xlsx\");\n\t\tXSSFWorkbook book = new XSSFWorkbook(file);\n\t\tXSSFSheet sheet = book.getSheet(\"Sheet1\");\n\t\tint rows = sheet.getLastRowNum();\n\t\tcontent = new Object[(sheet.getLastRowNum())-1][sheet.getRow(1)\n\t\t\t\t.getLastCellNum()];\n\t\tRow row;\n\t\tSystem.out.println(\"total no of rows \" + rows);\n\t\tfor (int i = 1; i <rows; i++) \n\t\t{\n\t\t\trow = sheet.getRow(i);\n\t\t\tint cells = row.getLastCellNum();\n\t\t\tfor (int j = 0; j < cells; j++) \n\t\t\t{\n\t\t\t\tCell cell = row.getCell(j);\n\t\t\t\tif (cell.getCellTypeEnum().name().equals(\"NUMERIC\")) \n\t\t\t\t{\n\t\t\t\t\tcontent[i-1][j] = cell.getNumericCellValue();\t\n\t\t\t\t\n\t\t\t\t} \n\t\t\t\telse if (cell.getCellTypeEnum().name().equals(\"STRING\")) \n\t\t\t\t{\n\t\t\t\t\tcontent[i-1][j] = cell.getStringCellValue();\t\n\t\t\t\t\n\t\t\t\t}\t\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\t/*\n\t\t * catch (FileNotFoundException e) {\n\t\t * System.out.println(\"file not found\"); e.printStackTrace(); }\n\t\t */\n\t\treturn content;\n\t}", "public T3_row_structure(String name, String startRank, String startYear, String endRank, String endYear, String trend){\n this.name = new SimpleStringProperty(name);\n this.startRank = new SimpleStringProperty(startRank);\n this.startYear = new SimpleStringProperty(startYear);\n this.endRank = new SimpleStringProperty(endRank);\n this.endYear = new SimpleStringProperty(endYear);\n this.trend = new SimpleStringProperty(trend);\n }", "@Override\n\t\t\t\tpublic StudentBO mapRow(ResultSet rs, int pos) throws SQLException {\n\t\t\t\t\tStudentBO sbo=new StudentBO();\n\t\t\t\t\tList<StudentBO> lbo=new ArrayList<StudentBO>();\n\t\t\t\t\tResultSetMetaData rsmd=(ResultSetMetaData) rs.getMetaData();\n\t\t\t\t\tint columnCount=rsmd.getColumnCount();\n\t\t\t\n\t\t\t\t\tif(columnCount>1) {\n\t\t\t\t\t\n\t\t\t\t\t\tsbo.setName(rs.getString(\"name\"));\n\t\t\t\t\t\tsbo.setRollNumber(rs.getString(\"rollNumber\"));\n\t\t\t\t\t\tsbo.setMaths(rs.getInt(\"Maths\"));\n\t\t\t\t\t\tsbo.setEnglish(rs.getInt(\"English\"));\n\t\t\t\t\t\tsbo.setScience(rs.getInt(\"Science\"));\n\t\t\t\t\t\tlbo.add(sbo);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\treturn sbo;\n\t\t\t\t}", "private void generarListaData() throws FileStructureException {\n CarmasTimbresTemp timbre = null;\n HSSFWorkbook workbook = null;\n HSSFSheet sheet = null;\n Iterator<Row> rowIterator = null;\n Row row = null;\n DataFormatter formatter = new DataFormatter(Locale.getDefault());\n listaData.clear();\n InputStream inputStream = null;\n try {\n if (this.file != null) {\n inputStream = this.file.getInputStream();\n workbook = new HSSFWorkbook(inputStream);\n sheet = workbook.getSheetAt(0);\n rowIterator = sheet.iterator();\n while (rowIterator.hasNext()) {\n row = rowIterator.next();\n if (row.getRowNum() == 0) {\n validarEstructura(row);\n } else if (row != null) {\n if (!isEmptyRow(row)) {\n timbre = new CarmasTimbresTemp();\n timbre.setCajero(formatter.formatCellValue(row.getCell(0)).replaceAll(\"\\\\D+\", \"\"));\n timbre.setProvdiasgteMaq(formatter.formatCellValue(row.getCell(1)).replaceAll(\"\\\\D+\", \"\"));\n timbre.setProvdiasgteLin(formatter.formatCellValue(row.getCell(2)).replaceAll(\"\\\\D+\", \"\"));\n timbre.setDiferencias(formatter.formatCellValue(row.getCell(3)).replaceAll(\"\\\\D+\", \"\"));\n timbre.setObservacion(row.getCell(4) == null ? \"\" : row.getCell(4).toString().toUpperCase().replaceAll(\"\\\\^[a-zA-Z0-9]+$\", \"\"));\n timbre.setOcca(formatter.formatCellValue(row.getCell(5)).replaceAll(\"\\\\D+\", \"\"));\n timbre.setAumento(formatter.formatCellValue(row.getCell(6)).replaceAll(\"\\\\D+\", \"\"));\n timbre.setDisminucion(formatter.formatCellValue(row.getCell(7)).replaceAll(\"\\\\D+\", \"\"));\n timbre.setSobrante(formatter.formatCellValue(row.getCell(8)).replaceAll(\"\\\\D+\", \"\"));\n timbre.setFaltante(formatter.formatCellValue(row.getCell(9)).replaceAll(\"\\\\D+\", \"\"));\n timbre.setNovedad(row.getCell(10) == null ? \"\" : row.getCell(10).toString().toUpperCase().replaceAll(\"\\\\^[a-zA-Z0-9]+$\", \"\"));\n timbre.setAsignadoA(row.getCell(11) == null ? \"\" : row.getCell(11).toString().toUpperCase().replaceAll(\"\\\\^[a-zA-Z0-9]+$\", \"\"));\n timbre.setProveedor(row.getCell(12) == null ? \"\" : row.getCell(12).toString().toUpperCase().replaceAll(\"\\\\^[a-zA-Z0-9]+$\", \"\"));\n timbre.setClasificacion(row.getCell(13) == null ? \"\" : row.getCell(13).toString().toUpperCase().replaceAll(\"\\\\^[a-zA-Z0-9]+$\", \"\"));\n timbre.setTipificacionTransportadora(row.getCell(14) == null ? \"\" : row.getCell(14).toString().toUpperCase().replaceAll(\"\\\\^[a-zA-Z0-9]+$\", \"\"));\n listaData.add(timbre);\n }\n }\n }\n }\n } catch (OfficeXmlFileException ex) {\n abrirModal(\"SARA\", \"Formato Invalido\", ex);\n } catch (IOException ex) {\n abrirModal(\"SARA\", \"Seleccione archivo\", ex);\n } finally {\n if (inputStream != null) {\n try {\n inputStream.close();\n } catch (IOException ex) {\n Logger.getLogger(CargarTimbresMasivosBean.class.getName()).log(Level.SEVERE, null, ex);\n inputStream = null;\n }\n }\n }\n }" ]
[ "0.68541896", "0.65909517", "0.6204782", "0.61426616", "0.60087246", "0.5902246", "0.5807535", "0.56694394", "0.5579946", "0.55062354", "0.543986", "0.5432554", "0.5430943", "0.541545", "0.541368", "0.53946555", "0.5248956", "0.5236386", "0.52333564", "0.52285475", "0.5216889", "0.51634777", "0.5116159", "0.5090058", "0.50716496", "0.5052826", "0.50508606", "0.50321114", "0.50049007", "0.49961486", "0.4984777", "0.49778712", "0.49745664", "0.4945336", "0.4942455", "0.49329594", "0.49290612", "0.49142885", "0.49119136", "0.49029014", "0.48879588", "0.4872448", "0.4872355", "0.48624963", "0.48595145", "0.4845841", "0.48453698", "0.48418272", "0.48392594", "0.48365512", "0.48343942", "0.4833159", "0.48261663", "0.48180458", "0.48080528", "0.480032", "0.4790779", "0.47874725", "0.47851926", "0.47797513", "0.47786474", "0.4772419", "0.4764077", "0.47632465", "0.4761742", "0.4761265", "0.47580013", "0.47552013", "0.47531244", "0.47511667", "0.47440216", "0.4735657", "0.4716141", "0.47149813", "0.47100887", "0.4703123", "0.4696118", "0.46940398", "0.46912947", "0.46895486", "0.46885478", "0.46846527", "0.46845788", "0.46749127", "0.46733198", "0.46719733", "0.4668443", "0.46631315", "0.4658788", "0.46563727", "0.46545503", "0.46515343", "0.46512607", "0.4651027", "0.46496263", "0.46478435", "0.46361938", "0.46354115", "0.46346784", "0.46304542" ]
0.58721757
6
create a data sheet with the array of the only column in that
private DataSheet arrayToDs(Object[] row) throws SQLException { String[] columnNames = { this.name }; ValueType vt = this.getValueType(); if (row.length == 0) { ValueType[] types = { this.dataTypeObject.getValueType() }; return new MultiRowsSheet(columnNames, types); } Value[][] values = { vt.toValues(row) }; return new MultiRowsSheet(columnNames, values); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Object[][] getData(File file, String sheetName, int maxColumn ) throws IOException {\n Object data[][] = null;\n\n // tao ra input tu file\n FileInputStream ExcelFile = new FileInputStream(file);\n // tao 1 workbook moi\n xf = new XSSFWorkbook(ExcelFile);\n // lay ten sheet\n sheet = xf.getSheet(sheetName);\n // lay column\n //mang \n data = new Object[sheet.getLastRowNum()][maxColumn - 1];\n for (int i = 1; i < sheet.getLastRowNum() + 1; i++) { // lap theo hang\n\n for (int j = 1; j < maxColumn; j++) { // lap theo cot\n\n cell = sheet.getRow(i).getCell(j); // lay du lieu\n int dataType = cell.getCellType(); // lay kieu du lieu\n\n if (dataType == 1) {\n cell.setCellType(Cell.CELL_TYPE_STRING);\n data[i - 1][j - 1] = cell.getStringCellValue();\n\n }\n if (dataType == 0) {\n cell.setCellType(Cell.CELL_TYPE_NUMERIC);\n data[i - 1][j - 1] = (int) cell.getNumericCellValue();\n }\n if (dataType == 4) {\n cell.setCellType(Cell.CELL_TYPE_BOOLEAN);\n\n data[i - 1][j - 1] = cell.getBooleanCellValue();\n\n }\n if (dataType == 3) {\n cell.setCellType(Cell.CELL_TYPE_BLANK);\n\n data[i - 1][j - 1] = \"\";\n }\n\n }\n\n }\n\n return data;\n }", "@Test\n public void test(){\n ExcelUtil qa3Sheet = new ExcelUtil(\"src/test/resources/Vytrack testusers.xlsx\", \"QA3-short\");\n // 1 based , not 0 based\n int rowCount = qa3Sheet.rowCount();\n // 1 based, not 0 based\n int colCount = qa3Sheet.columnCount();\n System.out.println(\"rowCount = \" + rowCount);\n System.out.println(\"colCount = \" + colCount);\n\n List<String> columnsNames = qa3Sheet.getColumnsNames();\n System.out.println(\"columnsNames = \" + columnsNames);\n // 0 based, get specific cell value based on index\n String cellData = qa3Sheet.getCellData(2, 3);\n System.out.println(\"cellData = \" + cellData);\n\n // get all table values in a list\n List<Map<String, String>> dataList = qa3Sheet.getDataList();\n\n System.out.println(dataList.get(5).get(\"firstname\"));\n\n String[][] dataArray = qa3Sheet.getDataArray();\n\n System.out.println(dataArray[1][1]);\n\n }", "@DataProvider(name = \"DataProviderFactory\")\n public Object[][] factoryDataProvider() throws IOException {\n LinkedHashSet<LinkedHashSet<String>> tableSet = new LinkedHashSet();\n File f = new File(\"C:\\\\Users\\\\Mahesh_Bhosale\\\\Documents\\\\Projects\\\\Assignment-Git\\\\src\\\\test\\\\java\\\\com\\\\cleartrip\\\\testsuite\\\\factory\\\\data.xlsx\");\n FileInputStream fis = new FileInputStream(f);\n XSSFWorkbook wb = new XSSFWorkbook(fis);\n XSSFSheet sh = wb.getSheetAt(0);\n int rowNum = sh.getPhysicalNumberOfRows();\n int cellNum = 0;\n for (int i = 0; i<rowNum; i++) {\n XSSFRow rw = sh.getRow(i);\n cellNum = rw.getLastCellNum();\n LinkedHashSet<String> rowSet = new LinkedHashSet();\n for (int j = 0; j<cellNum; j++) {\n XSSFCell cl = rw.getCell(j);\n// cell value is return in type Object. Convert it to the string.\n rowSet.add(String.valueOf(cl));\n }\n tableSet.add(rowSet);\n }\n Object[][] o = new Object[tableSet.size()][cellNum];\n Iterator<LinkedHashSet<String>> itr = tableSet.iterator();\n for (int i = 0; itr.hasNext(); i++) {\n LinkedHashSet<String> lhs = itr.next();\n// convert set to Array\n o[i] = lhs.toArray();\n }\n// logger.trace(tableSet);\n tableSet.clear();\n return o;\n }", "public Object[][] getSheetData() {\n\n List<Object[]> rows = new ArrayList<>();\n\n int rowCount = currentSheet.getPhysicalNumberOfRows();\n\n for (int rowIdx = hasHeaderRow ? 1 : 0; rowIdx < rowCount; rowIdx++)\n rows.add(getRowData(rowIdx));\n\n return removeSkippedHeaderColumns( rows );\n\n }", "private void createColumn1() {\r\n\t\tint y = 560;\r\n\t\tfor (int i = 46; i < 60; i++) {\r\n\t\t\tarray[i] = createButton(0, y);\r\n\t\t\ty -= 40;\r\n\r\n\t\t}\r\n\t}", "private String[] getColumas(){\n String columna[]={\"Tipo Usuario \",\"Nombre\",\"Empleado ID\",\"Asignar\"};\n return columna;\n }", "private ArrayList<String[]> getTableRowData() \n {\n int numRow, numCol;\n ArrayList<String[]> data = new ArrayList<>();\n numRow = jtModel.getRowCount(); \n numCol = jtModel.getColumnCount();\n String[] row;\n for(int i = 0; i< numRow; i++)\n {\n row = new String[numCol];\n for(int j = 0; j< numCol; j++)\n {\n row[j] = jtModel.getValueAt(i, j).toString();\n } \n data.add(row);\n } \n return data;\n }", "private static List<List<String>> loadSheetDataTable(XSSFSheet sheet) {\n List<List<String>> ret = new ArrayList<List<String>>();\n // Get the first and last sheet row number.\n int firstRowNum = sheet.getFirstRowNum();\n int lastRowNum = sheet.getLastRowNum();\n if (lastRowNum > 0) {\n // Loop in sheet rows.\n for (int i = firstRowNum; i < lastRowNum + 1; i++) {\n // Get current row object.\n Row row = sheet.getRow(i);\n // Get first and last cell number.\n int firstCellNum = row.getFirstCellNum();\n int lastCellNum = row.getLastCellNum();\n // Create a String list to save column data in a row.\n List<String> rowDataList = new ArrayList<String>();\n // Loop in the row cells.\n for (int j = firstCellNum; j < lastCellNum; j++) {\n // Get current cell.\n Cell cell = row.getCell(j);\n // Get cell type.\n CellType cellType = cell.getCellType();\n if (cellType == CellType.NUMERIC) {\n double numberValue = cell.getNumericCellValue();\n // BigDecimal is used to avoid double value is counted use Scientific counting method.\n // For example the original double variable value is 12345678, but jdk translated the value to 1.2345678E7.\n String stringCellValue = BigDecimal.valueOf(numberValue).toPlainString();\n rowDataList.add(stringCellValue);\n } else if (cellType == CellType.STRING) {\n String cellValue = cell.getStringCellValue();\n rowDataList.add(cellValue);\n } else if (cellType == CellType.BOOLEAN) {\n boolean numberValue = cell.getBooleanCellValue();\n String stringCellValue = String.valueOf(numberValue);\n rowDataList.add(stringCellValue);\n } else if (cellType == CellType.BLANK) {\n rowDataList.add(\"\");\n }\n }\n // Add current row data list in the return list.\n ret.add(rowDataList);\n }\n }\n return ret;\n }", "public static String[][] getTableData(){\n int row=getRowCount();//jgets total number of non empty rows\n String TableData[][]=new String[row][6]; \n for(int i=0; i<row;i++){\n for(int j=0; j<6; j++){\n TableData[i][j]=(String)jTable1.getValueAt(i, j);\n }\n }\n return TableData; //returns table data\n }", "@DataProvider(name=\"excle\")\n\tpublic static Object[][] createaccountTest() throws IOException {\n\t\tObject content[][];\n\t\tFileInputStream file = new FileInputStream(\n\t\t\t\t\"D:\\\\Java_Workspace\\\\FinalKDDFramework\\\\Input\\\\Account.xlsx\");\n\t\tXSSFWorkbook book = new XSSFWorkbook(file);\n\t\tXSSFSheet sheet = book.getSheet(\"Sheet1\");\n\t\tint rows = sheet.getLastRowNum();\n\t\tcontent = new Object[(sheet.getLastRowNum())-1][sheet.getRow(1)\n\t\t\t\t.getLastCellNum()];\n\t\tRow row;\n\t\tSystem.out.println(\"total no of rows \" + rows);\n\t\tfor (int i = 1; i <rows; i++) \n\t\t{\n\t\t\trow = sheet.getRow(i);\n\t\t\tint cells = row.getLastCellNum();\n\t\t\tfor (int j = 0; j < cells; j++) \n\t\t\t{\n\t\t\t\tCell cell = row.getCell(j);\n\t\t\t\tif (cell.getCellTypeEnum().name().equals(\"NUMERIC\")) \n\t\t\t\t{\n\t\t\t\t\tcontent[i-1][j] = cell.getNumericCellValue();\t\n\t\t\t\t\n\t\t\t\t} \n\t\t\t\telse if (cell.getCellTypeEnum().name().equals(\"STRING\")) \n\t\t\t\t{\n\t\t\t\t\tcontent[i-1][j] = cell.getStringCellValue();\t\n\t\t\t\t\n\t\t\t\t}\t\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\t/*\n\t\t * catch (FileNotFoundException e) {\n\t\t * System.out.println(\"file not found\"); e.printStackTrace(); }\n\t\t */\n\t\treturn content;\n\t}", "public interface DataSheet\n{\n /** @return the names of the columns in this table or an empty list if no columns have been defined, never null */\n List<String> getColumns();\n\n /** @return the names of the columns in this table or an empty array if no columns have been defined, never null */\n String[] getHeaders();\n\n /**\n * Determine the name of a column if the position is known.\n *\n * @param index the position in the header starting with 0\n * @return the column name at the given position, null if unknown\n */\n String getColumn(int index);\n\n /**\n * Determine the index of a column if the name is known.\n *\n * @param column the case insensitive name of the respective column\n * @return the index of the column in the headings, -1 if the column is unknown\n */\n int indexOf(String column);\n\n /**\n * Access the given row.\n *\n * @param index the row number, the first row is 0\n * @return the data of the row or an empty array if the row is out of bounds, never null\n */\n Object[] getDataRow(final int index);\n\n /**\n * Access all rows.\n *\n * @return the data of all rows or an empty array no row exist, never null\n */\n Object[][] getDataRows();\n\n /**\n * Retrieve the value of the given row and column.\n *\n * If the row is out of bounds or the column is unknown will simply return <code>null</code> to indicate that no value\n * has been set.\n *\n * @param column the column name in the table\n * @param row the row number in the table starting with 0\n * @return the associated value of that cell, can be null\n */\n Object getDataValue(String column, int row);\n\n /**\n * Retrieve the value of the given row and column.\n *\n * If row or column are out of bounds will simply return <code>null</code> to indicate that no value has been set.\n *\n * @param row the row number in the table starting with 0\n * @param column the column number in the table starting with 0\n * @return the associated value of that cell, can be null\n */\n Object getDataValue(final int row, final int column);\n\n /** @return the number of current rows of this table */\n int size();\n}", "void createWorkSheet() {\n wb = new HSSFWorkbook();\n for (int SheetNumber = 0; SheetNumber < keywords.length - 1; SheetNumber++) {\n sheet[SheetNumber] = wb.createSheet(keywords[SheetNumber]);\n // Create row at index zero ( Top Row)\n HSSFRow row = sheet[SheetNumber].createRow((short) 0);\n String[] headers = {\"Title\", \"Category\", \"Developer\", \"Description\", \"Release Date\", \"currentVersionReleaseDate\", \"Version\", \"Website\", \"Rating Counts\", \"Average User Rating\", \"Average User Rating For Current Version\", \"Market URL\", \"Size\"};\n for (int i = 0; i <= 12; i++) {\n\n HSSFCell cell = row.createCell((short) i);\n cell.setCellType(HSSFCell.CELL_TYPE_STRING);\n cell.setCellValue(headers[i]);\n excelFileCreated = false;\n }\n }\n }", "public Object[][] getSheetData(List<Integer> rows) {\n\n List<Object[]> rowData = new ArrayList<>();\n for (Integer row : rows) {\n rowData.add(getRowData(row));\n }\n\n return removeSkippedHeaderColumns( rowData );\n }", "public static String[][] getData(){\n\t\t\tint rowCount, colCount;\n\t\t\trowCount=xlsFile.getRowCount(testName);\n\t\t\tcolCount=xlsFile.getColCount(testName);\n\t\t\t\n\t\t\ttabArray=new String[rowCount-1][colCount];\n\t\t\t\n\t\t\tnewRowIndex=0;\n\t\t\tfor(int cellRow=1;cellRow<rowCount;cellRow++)\n\t\t\t{\n\t\t\t\ttry {\n\t\t\t\t\t\n\t\t\t\t\tif(xlsFile.readCell(testName,cellRow,0).equals(className))\n\t\t\t\t\t{\n\t\t\t\t\t\tfor(int cellColoumn=0;cellColoumn<colCount;cellColoumn++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\n\t\t\t\ttabArray[newRowIndex][cellColoumn]=xlsFile.readCell(testName,cellRow,cellColoumn);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\tnewRowIndex+=1;\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t//\tlogger.log(LogStatus.INFO, \"Excel Data Read Successfully\");\n\t\t\t\n\t\t\t\n\t\tString[][] newTabArray=new String[newRowIndex][colCount];\n\t\t\n\t\tfor(int cellRow=0;cellRow<newRowIndex;cellRow++){\n\t\t\tfor(int cellColoumn=0;cellColoumn<colCount;cellColoumn++){\n\t\t\t\tnewTabArray[cellRow][cellColoumn]=tabArray[cellRow][cellColoumn];\t\n\t\t\t}\n\t\t}\n\t\t//logger.log(LogStatus.INFO, \"Returing 2 dimentional data for \"+className);\n\t\treturn (newTabArray);\n\t\t}", "PivotColumns createPivotColumns();", "@DataProvider(name = \"dpExcelData\")\n\tpublic static Object[][] getXLData()throws Exception\n\t{\n\t\t\t\t\n\t\tString[][] xlTableArr = null;\n\t\t\n\t\tint totalRowArrSize = 0;\n\t\t\n\t\t//row and colmn indexes....\n\t\tint ri = 0, ci;\n\t\ttry{\n\t\t\t\n\t\t\tlogger.debug(\"set excel file path and sheet\");\n\t\t\t//set file path and sheet name....\n\t\t\tExcelUtils.setExcelFile(Constant.pathTestData+Constant.fileTestData, Constant.fileShName);\n\t\t\tlogger.info(\"done setting up filepath and sheet name successfully\");;\n\t\t\t\n\t\t\tlogger.debug(\"get test case name\");\n\t\t\tString tcsName = ExcelUtils.getTestCaseName(rnTestName);\n\t\t\t\n\t\t\tint tcsNameColmn = 0;\n\t\t\t\n\t\t\tlogger.debug(\"get test case row number\");\n\t\t\tint tcsRowNum = ExcelUtils.getTestCaseRowNums(tcsName,tcsNameColmn);\n\t\t\t\n\t\t\t//int totalRowsUsed = ExcelUtils.getRowUsed();\n\t\t\tlogger.debug(\"get total column used for running test cases\");\n\t\t\tint totalColmnUsed = ExcelUtils.getColmnUsed(tcsRowNum);\n\t\t\t\n\t\t\tlogger.debug(\"get row count for multiple data for tcs\");\n\t\t\tint tcsMatchRows = ExcelUtils.getTestCaseMatchingRows(tcsName, tcsNameColmn);\n\t\t\t\n\t\t\t//number of data per test cases\n\t\t\tlogger.debug(\"check number of rows\");\n\t\t\tif(tcsRowNum == tcsMatchRows)\n\t\t\t{\n\t\t\t\tlogger.info(\"found single data for this tcs\");\n\t\t\t}else\n\t\t\t{\n\t\t\t\tlogger.info(\"found multiple data for this tcs\");\n\t\t\t\ttotalRowArrSize = tcsMatchRows - tcsRowNum;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t//set array size....\n\t\t\t\n\t\t\t//row counting based on 0, so set add 1 to set arraysize.....\n\t\t\tint addOneInRowArr = 1;\n\t\t\t//we start reading data from 2nd column.\n\t\t\tint minusFirstColmn = 1;\n\t\t\tlogger.info(\"set array size for array table\");\n\t\t\txlTableArr = new String[totalRowArrSize+addOneInRowArr][totalColmnUsed-minusFirstColmn];\n\t\t\t\n\t\t\tlogger.info(\"Data reading and fetching started...\");\n\t\t\tfor(int rwNum = tcsRowNum; rwNum<=tcsMatchRows; rwNum++,ri++ )\n\t\t\t{\n\t\t\t\tci =0;\n\t\t\t\tfor(int clNum = 1; clNum<totalColmnUsed; clNum++,ci++)\n\t\t\t\t{\n\t\t\t\t\t\n\t\t\t\t\txlTableArr[ri][ci] = ExcelUtils.getCellData(rwNum, clNum);\n\t\t\t\t\tlogger.debug(\"data fecting is : \" + xlTableArr[ri][ci]);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\n\t\t}catch(FileNotFoundException e)\n\t\t{\n\t\t\tlogger.error(\"file not found\", e);\n\t\t\te.printStackTrace();\n\t\t\t\n\t\t}catch(IOException e)\n\t\t{\n\t\t\tlogger.error(\"IO exception\", e);\n\t\t\te.printStackTrace();\n\t\t}catch(Exception e)\n\t\t{\n\t\t\tlogger.error(\"exception is occured\", e);\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tlogger.info(\"Data feteched and stored successfully in arraytable\" );\n\t\treturn (xlTableArr);\n\t}", "public static Object[][] getExcelData1(String fileName, String sheetName) {\n Object[][] data = null;\n XSSFWorkbook wb = null;// creating workbook object\n try {\n wb = new XSSFWorkbook(Constants1.RESOURCES_PATH + \"/tests-data1/\" + fileName);//giving the path.\n XSSFSheet sheet = wb.getSheet(sheetName);//after workbook we are going to get access for sheet.\n int rowsIndex = sheet.getLastRowNum();//here we are going to get how many rows.\n log.info(\"total rows:\" + rowsIndex);\n data = new Object[rowsIndex][];\n for (int i = 1; i <= rowsIndex; i++) {//we start from 1 as index 0 will have headings.\n XSSFRow row = sheet.getRow(i);\n int cols = row.getLastCellNum();//getting number of columns\n log.info(\"total cols:\" + cols);\n Object[] colData = new Object[cols];\n for (int j = 0; j < cols; j++) {\n colData[j] = row.getCell(j).toString();// we are trying to get access to cell Data\n\n }\n data[i - 1] = colData;\n }\n } catch (IOException e) {\n log.error(\"ExcelHelper exception:\"+ e);\n\n } finally {\n try {\n wb.close();\n } catch (IOException e) {\n log.error(e);\n }\n\n }\n return data;\n }", "public static String[][] writeXL(String fPathe, String fSheet) throws Exception{\n\t\n\t\tFile outFile = new File(fPath);\n\t\tHSSFWorkbook WB = new HSSFWorkbook();\n\t\tHSSFSheet osSheet = WB.createSheet(fSheet);\n\t\tint xR_TS = xData.length;\n\t\tint xC_TS = xData[0].length;\n\t\tfor (int myrow =0; myrow < xR_TS; myrow++) {\n\t\t\tHSSFRow row = osheet.createRow(myrow);\n\t\t}\n\t\t//System.out.println(\"Total Rows in Excel are \" + xRows);)\n}", "public String[][] fill_table()\n {\n int j=0;\n String[][] data = new String[0][];\n for (Map.Entry<String,Descriptor> entry :parms.getDescriptors().entrySet()) {\n\n data[j][0]=entry.getValue().getId();\n data[j][1]= String.valueOf(entry.getValue().getType());\n data[j][2]= String.valueOf(entry.getValue().getCapacity());\n data[j][3]= String.valueOf(entry.getValue().getState());\n data[j][4]= String.valueOf(entry.getValue().getNbRequest());\n data[j][5]= String.valueOf(entry.getValue().getRequest());\n data[j][6]= String.valueOf(entry.getValue().getRange());\n data[j][7]= String.valueOf(entry.getValue().getService());\n Point p=entry.getValue().getPosition();\n data[j][8]= String.valueOf(p.getX());\n data[j][9]= String.valueOf(p.getY());\n j++;\n }\n return data;\n }", "private ArrayList<Integer> columns() {\r\n ArrayList<Integer> header = new ArrayList<>();\r\n for (int ii = 0; ii < totalBeats; ii += 4) {\r\n header.add(ii);\r\n }\r\n return header;\r\n }", "public Object[] getColumn(int c) {\n// Object[] dta = new Object[data.rows];\n// for (int i = 0; i < data.rows; i++)\n// dta[i] = data.values[c][c];\n return data.values[c];\n }", "Column[] getColumns() { return columns; }", "@Test\n public void testFillInDataToTemplate() throws IOException {\n List<List<Object>> rows = new ArrayList<List<Object>>();\n\n List<String> communeStrs = Arrays.asList(\"Aclens\", \"Allaman\", \"Aubonne\", \"Apples\", \"Bière\", \"Bremblens\",\n \"Bougy-Villars\", \"Berolle\", \"Chevilly\");\n List<String> typeStrs = Arrays.asList(\"Résidence Secondaire\", \"Location\", \"Hotel\", \"Chambre\", \"Camping\",\n \"Institut\");\n\n for (int i = 0; i < 25; i++) {\n List<Object> row = new ArrayList<Object>();\n row.add(new Long(900000L + i));\n row.add(i + 1);\n row.add(communeStrs.get(i % communeStrs.size()));\n row.add(typeStrs.get(i % typeStrs.size()));\n row.add(new Long(25000L * i));\n row.add(BooleanUtils.toBoolean(i % 2));\n row.add(new Date());\n row.add(DateUtils.addDays(new Date(), i + 1));\n row.add(String.format(\"%d piéces ou moins\", i + 1));\n row.add(i + 1);\n row.add((i % 7 == 0 ? i : null));\n row.add((i % 7 == 1 ? i : null));\n row.add((i % 7 == 2 ? i : null));\n row.add((i % 7 == 3 ? i : null));\n row.add((i % 7 == 4 ? i : null));\n row.add((i % 7 == 5 ? i : null));\n row.add((i % 7 == 6 ? i : null));\n row.add(10 * i);\n row.add(200 * i);\n row.add(25 * i);\n row.add(i % 5 + 1);\n row.add(i % 6 + 1);\n row.add(BigDecimal.ZERO);\n row.add(1500 * (i + 1));\n row.add(null);\n\n rows.add(row);\n }\n\n SheetDataDto sheet1 = ExcelExportingUtil.convert2DListToSheetDto(rows, false);\n sheet1.setName(\"Data\");\n sheet1.setOverriden(true);\n // re-assign the index of the rows in the sheet to fill in the template: ignore the first two rows\n for (int i = 2; i < 2 + sheet1.getRows().size(); i++) {\n RowDataDto row = sheet1.getRows().get(i - 2);\n row.setRowNum(i);\n for (int j = 0; j < row.getCells().size(); j++) {\n CellDataDto cell = row.getCells().get(j);\n cell.setCellNum(j);\n }\n }\n\n // specify the format for col 7 and 8 (0-based)\n for (int i = 0; i < sheet1.getRows().size(); i++) {\n switch (i) {\n case 7:\n CellFormatter formatter = new CellFormatter(\"dd-MMM-yyyy\");\n formatter.setAlignment(CellStyle.ALIGN_CENTER);\n sheet1.getFormatters().add(formatter);\n break;\n\n case 8:\n CellFormatter formatter1 = new CellFormatter();\n formatter1.setWrapText(false);\n sheet1.getFormatters().add(formatter1);\n break;\n\n default:\n sheet1.getFormatters().add(null);\n break;\n }\n }\n\n InputStream input = getClass().getResourceAsStream(\"/exportData/Statistics_v0.1.xls\");\n ByteArrayOutputStream out = new ByteArrayOutputStream();\n excelExportingService.exportToExcel(input, out, Arrays.asList(sheet1), ExcelFormatTypeEnum.XLS);\n\n FileUtils.writeByteArrayToFile(new File(\"output-template.xls\"), out.toByteArray());\n }", "private void generateColumns() {\n\t\tSquare[] squareArr=new Square[squares.length];\n\t\tfor (int i=0; i<squares.length; i++) {\n\t\t\tfor (int j=0; j<squares.length; j++) {\n\t\t\t\tsquareArr[j]=squares[j][i];\n\t\t\t}\n\t\t\tcolumns[i]=new Column(squareArr);\n\t\t}\n\t}", "DataTable createDataTable();", "public com.walgreens.rxit.ch.cda.StrucDocCol[] getColArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n java.util.List targetList = new java.util.ArrayList();\n get_store().find_all_element_users(COL$2, targetList);\n com.walgreens.rxit.ch.cda.StrucDocCol[] result = new com.walgreens.rxit.ch.cda.StrucDocCol[targetList.size()];\n targetList.toArray(result);\n return result;\n }\n }", "private Object[] buildEmptyRow() {\n Object[] rowData = RowDataUtil.allocateRowData( data.outputRowMeta.size() );\n\n return rowData;\n }", "private static void showExelData(List sheetData) {\n\t\t// Iterates the data and print it out to the console.\n\t\t//\n\t\tmatriz = new int[sheetData.size()][3];\n\t\tfila = sheetData.size();\n\t\tfor (int i = 1; i < sheetData.size(); i++) {\n\t\t\t// fila\n\t\t\t// System.out.println(sheetData.size());\n\t\t\tList list = (List) sheetData.get(i);\n\t\t\tfor (int j = 0; j < list.size(); j++) {\n\t\t\t\tCell cell = (Cell) list.get(j);\n\t\t\t\tif (cell.getCellType() == Cell.CELL_TYPE_NUMERIC) {\n\t\t\t\t\t// System.out.print(cell.getNumericCellValue());\n\n\t\t\t\t\tmatriz[i][j] = (int) cell.getNumericCellValue();\n\n\t\t\t\t} else if (cell.getCellType() == Cell.CELL_TYPE_STRING) {\n\t\t\t\t\t// System.out.print(cell.getRichStringCellValue());\n\t\t\t\t} else if (cell.getCellType() == Cell.CELL_TYPE_BOOLEAN) {\n\t\t\t\t\t// System.out.print(cell.getBooleanCellValue());\n\t\t\t\t}\n\t\t\t\tif (j < list.size() - 1) {\n\t\t\t\t\t// System.out.print(\", \");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private String[][] getTableData (JTable table,int[] dim) {\n\t DefaultTableModel model = (DefaultTableModel) table.getModel();\n\t int rowNo = model.getRowCount(), colNo = model.getColumnCount();\n\t dim[0] = rowNo;\n\t dim[1] = colNo;\n\t logInfo(\"rowNo:\"+rowNo+\" colNo:\"+colNo);\n\t String[][] tableData = new String[rowNo][colNo];\n\t for (int i = 0 ; i < rowNo ; i++) {\n\t for (int j = 0 ; j < colNo ; j++) {\n\t tableData[i][j] = model.getValueAt(i, j) != null ? model.getValueAt(i,j).toString() : \"\\\"\\\"\";\n\t logInfo(\"i:\"+i+\" j:\" + j + \" \" + tableData[i][j]);\n\t }\n\t }\n\t return tableData;\n\t}", "pcols createpcols();", "@Parameterized.Parameters\n public static Collection<Object[]> data() {\n Object[][] data = new Object[][] {\n { \"Jack\" , \"Temperature\"},\n { \"Jack\" , \"AQI\"},\n { \"Jack\" , \"Location\"},\n { \"David\", \"Temperature\"},\n { \"David\", \"AQI\"},\n { \"David\", \"Location\"},\n };\n return Arrays.asList(data);\n }", "private Object[][] getTableData() {\n Object[][] lclArray = null;\n\n if (articles.size() == 0) {\n lclArray = new Object[1][NUM_COLS];\n lclArray[0][0] = \"\";\n lclArray[0][1] = \"\";\n lclArray[0][2] = \"\";\n return lclArray;\n } // no articles yet !!!!\n if (articles != null) {\n lclArray = new Object[articles.size()][NUM_COLS];\n }\n for (int i = 0; i < articles.size(); i++) {\n NewsArticle article = (NewsArticle) articles.elementAt(i);\n\n lclArray[i][0] = article.getSubject();\n lclArray[i][1] = String.valueOf(article.getScore(filterType));\n lclArray[i][2] = article.getUserRating();\n }\n return lclArray;\n }", "private void createNewSheet(SXSSFSheet sheet, int rowNum, int countColumns, ResultSet result, SXSSFWorkbook workbook) throws SQLException {\n ResultSetMetaData metaDataColumns = result.getMetaData();\n sheet.setAutobreaks(true);\n sheet.setAutoFilter(new CellRangeAddress(0, rowNum, 0, countColumns - 1));\n// sheet.autoSizeColumn(0);\n sheet.setFitToPage(true);\n // Creamos un nuevo ROW para el header\n SXSSFRow header = sheet.createRow(rowNum);\n System.out.println(\"Add Header\");\n for (int colHeader = 1; colHeader <= countColumns; colHeader++) {\n // Creamos una nueva celda para cada una de las celdas\n SXSSFCell cellHeader = header.createCell(colHeader - 1);\n // agregamos el valor de la celda\n cellHeader.setCellValue(metaDataColumns.getColumnName(colHeader).toUpperCase());\n }\n rowNum++;\n // Verificamos si hay datos\n System.out.println(\"Add Row Data\");\n while (result.next()) {\n // Creamos un nuevo ROW para los cada nueva fila del resultSet\n SXSSFRow data = sheet.createRow(rowNum);\n // Recorremos los datos de las columnas\n for (int rowdata = 1; rowdata <= countColumns; rowdata++) {\n // Creamos una nueva celda para cada una de las celdas\n SXSSFCell cellData = data.createCell(rowdata - 1);\n // agregamos el valor de la celda\n Object object = result.getObject(rowdata);\n if (object == null) {\n cellData.setCellValue(\"\");\n } else {\n switch (metaDataColumns.getColumnType(rowdata)) {\n case Types.BOOLEAN:\n cellData.setCellValue((boolean) object);\n break;\n case Types.DATE:\n cellData.setCellValue((Date) object);\n case Types.TIMESTAMP_WITH_TIMEZONE:\n cellData.setCellValue((Date) object);\n break;\n case Types.NUMERIC:\n cellData.setCellValue(((BigDecimal) object).doubleValue());\n break;\n case Types.FLOAT:\n cellData.setCellValue(((Float) object).doubleValue());\n break;\n case Types.INTEGER:\n cellData.setCellValue(((Integer) object).doubleValue());\n break;\n case Types.SMALLINT:\n cellData.setCellValue(((Integer) object).doubleValue());\n break;\n case Types.BIGINT:\n cellData.setCellValue(((Long) object).doubleValue());\n break;\n default:\n cellData.setCellValue(object + \"\");\n break;\n }\n }\n }\n // Incrementamos el contador de registros\n rowNum++;\n // Imprimimos cada 10000 registros procesados\n if ((rowNum % 10000) == 0) {\n System.out.println(\"Procesando \" + rowNum);\n }\n // Validamos el maximo de registros que soporta excel 2007\n // Creamos una nueva hoja para los siguinetes registros\n if ((rowNum % 1048570) == 0) {\n // creamos una nueva hoja\n sheet = workbook.createSheet(name + (workbook.getNumberOfSheets() + 1));\n // enviamos a llenar la hoja\n createNewSheet(sheet, 0, countColumns, result, workbook);\n }\n }\n }", "private RecordSet getRecordSet(String arg[]){\n RecordSet datos = new RecordSet();\n datos.addColumn(\"CODIGO\");\n\t\tdatos.addColumn(\"VALOR\"); \n\n for(int j=0;j<arg.length;j++) { \n datos.addRow(new Object[] { arg[j], arg[j] }); \n }\n return datos;\n }", "public String[] addColumn(String date) {\r\n\t\tdateColCount++;\r\n\r\n\t\t//initailizing variables\r\n\t\tint newSize = headerRow.length + 1;\r\n\t\tString[] temp = new String[newSize];\r\n\r\n\t\t//for loop to copy info from column and add date to temp\r\n\t\tfor(int i = 0; i < newSize; i++) {\r\n\t\t\tif( i < headerRow.length) {\r\n\t\t\t\ttemp[i] = headerRow[i];\r\n\t\t\t}else {\r\n\t\t\t\ttemp[i] = date;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t//save new column info\r\n\t\tsetColumninfo(temp);\r\n\t\treturn temp;\r\n\t}", "@DataProvider\n\tpublic String[][] getData() {\n\t\treturn readExcel.getExcelData(\"Sheet1\");\n\t}", "public Column[] toArray() {\n return toArray(new Column[subColumnSize()]);\n }", "@DataProvider(name=\"Booksdata\")\n public Object[][] data()\n {\n\t return new Object[][] { {\"teste11\",\"011\"},{\"teset22\",\"022\"},{\"teset33\",\"033\"} };\n }", "public Column[] getColumns() {return columns;}", "private void initDataset() {\r\n CollGestDBHelper collGestDBHelper = new CollGestDBHelper(activityContext);\r\n List<CollGestItem> listAllItems = collGestDBHelper.getAllGestItem();\r\n\r\n mDataset = new String[listAllItems.size()][7];\r\n System.out.println(\"+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +++++++++++++++++++++++++++++++++++++++++++++++++++++++++\");\r\n System.out.println(listAllItems.size());\r\n System.out.println(listAllItems.toString());\r\n System.out.println(\"+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +++++++++++++++++++++++++++++++++++++++++++++++++++++++++\");\r\n for (int i = 0; i < listAllItems.size(); i++) {\r\n mDataset[i][0] = listAllItems.get(i).getItemName();\r\n mDataset[i][1] = Integer.toString(listAllItems.get(i).getItemMinJoueurs());\r\n mDataset[i][2] = Integer.toString(listAllItems.get(i).getItemMaxJoueurs());\r\n mDataset[i][3] = Integer.toString(listAllItems.get(i).getItemDuration());\r\n mDataset[i][4] = listAllItems.get(i).getItemTypes();\r\n mDataset[i][5] = listAllItems.get(i).getItemCheckedOut();\r\n mDataset[i][6] = listAllItems.get(i).getItemLastPlayed();\r\n }\r\n System.out.println(mDataset);\r\n }", "public int[] getCol() { return _col; }", "@Parameters\n\tpublic static Collection<Object[]> data() {\n\t\tObject[][] data = new Object[][] { \n\t\t\t{null, null, null, null, null},\n\t\t\t{null, \"\", null, null, null},\n\t\t\t{null, troppoLunga, null, null, null},\n\t\t};\n\t\treturn Arrays.asList(data);\n\t}", "public double[] getColumnPackedCopy() {\n double[] vals = new double[m*n];\n for (int i = 0; i < m; i++) {\n for (int j = 0; j < n; j++) {\n vals[i+j*m] = data[i][j];\n }\n }\n return vals;\n }", "public String[][] excelData(String fileName) throws IOException {\n\t\tXSSFWorkbook wb= new XSSFWorkbook(\"./data/\"+fileName+\".xlsx\");\r\n\t\t\r\n\t\t\r\n\t\t//Step2-Get in to the worksheet\r\n\t\t\r\n\t\tXSSFSheet ws=wb.getSheet(\"Sheet1\");\r\n\t\t\r\n\t\t\r\n\t\tint rowcount=ws.getLastRowNum();//excluding first row\r\n\t\tSystem.out.println(rowcount);\r\n\t\t\r\n\t\t//int incFR=ws.getPhysicalNumberOfRows();//includes first row\r\n\t\t\r\n\t\tshort cellCount = ws.getRow(0).getLastCellNum();\r\n\t\tString[][] data=new String[rowcount][cellCount];\r\n\t\t\r\n\t\tfor(int i=1;i<=rowcount;i++) {//rows\r\n\t\t\tfor(int j=0;j<cellCount;j++) {//column\r\n\t\t\t\t\r\n\t\t\t\tString cellValue = ws.getRow(i).getCell(j).getStringCellValue();\r\n\t\t\t\tdata[i-1][j]=cellValue;\r\n\t\t\t\t//System.out.println(cellValue);\r\n\t\t\t\t\r\n\t\t\t}\t\r\n\t\t}\r\n\t\t\r\n\t\twb.close();\r\n\t\treturn data;\r\n\r\n\t}", "public void getTableData() {\n MSApptIDCol.setCellValueFactory(new PropertyValueFactory<Appointment, Integer>(\"appointmentID\"));\n MSCustIDCol.setCellValueFactory(new PropertyValueFactory<Appointment, Integer>(\"customerID\"));\n MSTitleCol.setCellValueFactory(new PropertyValueFactory<Appointment, String>(\"appointmentTitle\"));\n MSDescriptionCol.setCellValueFactory(new PropertyValueFactory<Appointment, String>(\"description\"));\n MSContactCol.setCellValueFactory(new PropertyValueFactory<Appointment, String>(\"contactName\"));\n MSLocationCol.setCellValueFactory(new PropertyValueFactory<Appointment, String>(\"location\"));\n MSTypeCol.setCellValueFactory(new PropertyValueFactory<Appointment, String>(\"appointmentType\"));\n MSStartTimeCol.setCellValueFactory(new PropertyValueFactory<Appointment, LocalDateTime>(\"appointmentStart\"));\n MSEndTimeCol.setCellValueFactory(new PropertyValueFactory<Appointment, LocalDateTime>(\"appointmentEnd\"));\n }", "String[][] packData();", "public com.guidewire.datamodel.ColumnDocument.Column[] getColumnArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n java.util.List targetList = new java.util.ArrayList();\r\n get_store().find_all_element_users(COLUMN$0, targetList);\r\n com.guidewire.datamodel.ColumnDocument.Column[] result = new com.guidewire.datamodel.ColumnDocument.Column[targetList.size()];\r\n targetList.toArray(result);\r\n return result;\r\n }\r\n }", "@DataProvider(name = \"test1\")\n\tpublic Object[][] createData1() {\n\t return new Object[][] {\n\t { \"Cedric\", new Integer(36) },\n\t { \"Anne\", new Integer(37)},\n\t };\n\t}", "private static String[][] sudokuByIDSheetInit(String[][] sudokuByID_table) {\n\t//======================================================================================================================//\n\t//======================================================================================================================//\n\t//======================================================================================================================//\n\t\t\n\t\t\t\t\t\t\t\t\t/*----------------- sudokuByID SHEET ------------------------*/\n\t\t\t\n\t//======================================================================================================================//\n\t//======================================================================================================================//\n\t//======================================================================================================================//\n\t//======================================================================================================================//\n\t\t\n\t\t\n\t\treturn sudokuByID_table;\n\t\t\n}", "public String[][] rowData(){\n\t\t int n=(int) ((endeInterval-startInterval)/schritt);\n\t\t String[][] Data = new String[n+1][2];\n\t\t for(int i = 0;i<=n;i++){\n\t\t\t Data[i][0] = String.valueOf(startInterval + i*schritt);\n\t\t\t Data[i][1] = String.valueOf(Auswerten.plotter((startInterval + i*schritt),funcString));\n\t\t }\n\t\treturn Data ; \n\t }", "public void testCreateNewFile() {\n List<SheetDataDto> data = new ArrayList<SheetDataDto>();\n RowDataDto headerRow = new RowDataDto();\n headerRow.getCells().add(new CellDataDto(\"Col 1\", CellDataTypeEnum.TEXT));\n headerRow.getCells().add(new CellDataDto(\"Col 2\", CellDataTypeEnum.TEXT));\n headerRow.getCells().add(new CellDataDto(\"Col 3\", CellDataTypeEnum.TEXT));\n headerRow.getCells().add(new CellDataDto(\"Col 4\", CellDataTypeEnum.TEXT));\n\n SheetDataDto sheet1 = new SheetDataDto();\n sheet1.setName(\"First sheet\");\n sheet1.setHeaderRow(headerRow);\n\n RowDataDto row1 = new RowDataDto();\n row1.getCells().add(new CellDataDto(1d, CellDataTypeEnum.NUMBER));\n row1.getCells().add(new CellDataDto(\"IF(A2 > 0, \\\"1\\\", \\\"0\\\")\", CellDataTypeEnum.FORMULAR));\n row1.getCells().add(new CellDataDto(\"123456789\", CellDataTypeEnum.NUMBER));\n row1.getCells().add(new CellDataDto(new Date(), CellDataTypeEnum.DATE));\n\n sheet1.getRows().add(row1);\n data.add(sheet1);\n\n excelExportingService.exportToExcel(\"t1.xls\", data, false, ExcelFormatTypeEnum.XLS);\n excelExportingService.exportToExcel(\"t1.xlsx\", data, false, ExcelFormatTypeEnum.XLSX);\n }", "public String[] getColumns() {\r\n\t\tlogger.trace(\"Enter getColumns\");\r\n\t\tlogger.trace(\"Exit getColumns\");\r\n\t\treturn columns;\r\n\t}", "public void createXLS(String fileName){\r\n FileOutputStream fo = null;\r\n int totalColumns;\r\n try {\r\n WorkBookHandle h=new WorkBookHandle();\r\n WorkSheetHandle sheet1 = h.getWorkSheet(\"Sheet1\");\r\n \r\n int currentRow=1;\r\n char currentColumn;\r\n int underSessions;\r\n for(StudentResult i:(List<StudentResult>)results){\r\n if(results.indexOf(i)==0){\r\n sheet1.add(\"Register No.\", \"A1\");\r\n sheet1.add(\"Name of Student\", \"B1\");\r\n currentColumn='C';\r\n for(ExamResult j:i.subjectResults){\r\n sheet1.add(j.subCode, String.valueOf(currentColumn)+String.valueOf(currentRow));\r\n currentColumn++;\r\n }\r\n sheet1.add(\"SGPA\", String.valueOf(currentColumn)+String.valueOf(currentRow));\r\n currentColumn++;\r\n sheet1.add(\"No. of Under-sessions\", String.valueOf(currentColumn)+String.valueOf(currentRow));\r\n totalColumns=currentColumn;\r\n }\r\n \r\n currentRow++;\r\n sheet1.add(i.regNo,\"A\"+String.valueOf(currentRow));\r\n sheet1.add(i.studentName,\"B\"+String.valueOf(currentRow));\r\n currentColumn='C';\r\n underSessions=0;\r\n for(ExamResult j:i.subjectResults){\r\n sheet1.add(j.grade, String.valueOf(currentColumn)+String.valueOf(currentRow));\r\n if(MainFrame1.UNDER_SESION_GRADES.contains(j.grade)){\r\n underSessions++;\r\n } \r\n currentColumn++;\r\n }\r\n sheet1.add(i.averageGradePoint, String.valueOf(currentColumn)+String.valueOf(currentRow));\r\n currentColumn++;\r\n sheet1.add(underSessions, String.valueOf(currentColumn)+String.valueOf(currentRow)); \r\n }\r\n fo = new FileOutputStream(\"Result.xls\");\r\n h.writeBytes(fo);\r\n fo.close();\r\n } catch (IOException ex) {\r\n Logger.getLogger(SpreadSheetCreator.class.getName()).log(Level.SEVERE, null, ex);\r\n } catch (WorkSheetNotFoundException ex) {\r\n Logger.getLogger(SpreadSheetCreator.class.getName()).log(Level.SEVERE, null, ex);\r\n } finally {\r\n try {\r\n fo.close();\r\n } catch (IOException ex) {\r\n Logger.getLogger(SpreadSheetCreator.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n }", "public Sheet createSheet() {\n\t\treturn null;\n\t}", "@Override\n\tpublic IColumns createColumns() {\n\t\treturn null;\n\t}", "@Override\n\tpublic IColumns createColumns() {\n\t\treturn null;\n\t}", "@Parameters\r\n public static Collection<Object[]> data() {\r\n Object[][] data = new Object[][] { { -1 }, { 0 }, { 1 } };\r\n return Arrays.asList(data);\r\n }", "private void cargarColumnasTabla(){\n \n modeloTabla.addColumn(\"Nombre\");\n modeloTabla.addColumn(\"Telefono\");\n modeloTabla.addColumn(\"Direccion\");\n }", "@DataProvider(name=\"empDataProviderExcel\")\n\tString [][]getEmpDataFromExcel() throws IOException{\n\t\tString dataSheetPath = System.getProperty(\"user.dir\")+\"/testDataAndTestCases/API_TestCases.xlsx\";\n\t\tString sheetName = \"EmployeeTestData\";\n\t\t\n\t\tint rowCount = XLUtills.getRowCount(dataSheetPath, sheetName);\n\t\tint colCount = XLUtills.getCellCount(dataSheetPath, sheetName, rowCount);\n\t\t\t\t\n\t\tString [][]empData = new String[rowCount][colCount];\n\t\t\n\t\tfor(int i = 1; i <= rowCount; i++) {\n\t\t\tfor(int j = 0; j < colCount; j++) {\n\t\t\t\tempData[i-1][j] = XLUtills.getCellData(dataSheetPath, sheetName, i, j);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn empData;\n\t}", "@Override\r\n\tpublic void exportExcel(SapDataCollection sapDataCollection,\r\n\t\t\tJSONObject json, HttpServletResponse response) throws IOException,\r\n\t\t\tSecurityException, NoSuchMethodException, IllegalArgumentException,\r\n\t\t\tIllegalAccessException, InvocationTargetException,\r\n\t\t\tURISyntaxException {\n\t\tString path = \"\";\r\n\t\tList<RuntimeColumnInfo> kna1cols = runtime_ColumnInfo_Service.findAllActiveData(sapDataCollection, SjlxTypeName.TYPE_CUSTOMER_KNA1);\r\n\t\tList<RuntimeColumnInfo> knb1cols = runtime_ColumnInfo_Service.findAllActiveData(sapDataCollection, SjlxTypeName.TYPE_CUSTOMER_KNB1);\r\n\t\tList<RuntimeColumnInfo> knvvcols = runtime_ColumnInfo_Service.findAllActiveData(sapDataCollection, SjlxTypeName.TYPE_CUSTOMER_KNVV);\r\n\t\tlong kna1totalNum = commonService.findTotalNum(sapDataCollection,\"Kna1\", json);\r\n\t\tlong knb1totalNum = commonService.findTotalNum(sapDataCollection,\"Knb1\", json);\r\n\t\tlong knvvtotalNum = commonService.findTotalNum(sapDataCollection,\"Knvv\", json);\r\n\t\tString[] kna1titles = new String[kna1cols.size()],kna1fields=new String[kna1cols.size()];\r\n\t\tString[] knb1titles = new String[kna1cols.size()],knb1fields=new String[knb1cols.size()];\r\n\t\tString[] knvvtitles = new String[kna1cols.size()],knvvfields=new String[knvvcols.size()];\r\n\t\tint k=0;\r\n\t\tfor(RuntimeColumnInfo col : kna1cols){\r\n\t\t\tkna1titles[k]=col.getTargetColumnName()+\"(\"+col.getTargetColumn()+\")\";\r\n\t\t\tkna1fields[k]=col.getTargetColumn();\r\n\t\t\tk++;\r\n\t\t}\r\n\t\tk=0;\r\n\t\tfor(RuntimeColumnInfo col : knb1cols){\r\n\t\t\tknb1titles[k]=col.getTargetColumnName()+\"(\"+col.getTargetColumn()+\")\";\r\n\t\t\tknb1fields[k]=col.getTargetColumn();\r\n\t\t\tk++;\r\n\t\t}\r\n\t\tk=0;\r\n\t\tfor(RuntimeColumnInfo col : knvvcols){\r\n\t\t\tknvvtitles[k]=col.getTargetColumnName()+\"(\"+col.getTargetColumn()+\")\";\r\n\t\t\tknvvfields[k]=col.getTargetColumn();\r\n\t\t\tk++;\r\n\t\t}\r\n\t\tCalendar c = Calendar.getInstance();\r\n\t\tSimpleDateFormat sf = new SimpleDateFormat(\"yyyyMMdd\");\r\n\t\tString today = sf.format(c.getTime());\r\n\t\tString frefixOfFileName = \"customer_\"+today;\r\n\t\tif(kna1totalNum>0){\r\n\t\t\tlong pages = kna1totalNum%PERSIZE==0?kna1totalNum/PERSIZE:kna1totalNum/PERSIZE+1;\r\n\t\t\tif(pages>1){\r\n\t\t\t\tfor(int i=1;i<=pages;i++){\r\n\t\t\t\t\tList<Kna1> datas = commonService.findByPage(sapDataCollection,\"Kna1\", json, PERSIZE, i,null,null);\r\n\t\t\t\t\tString filename = frefixOfFileName+\"_kna1_\"+i;\r\n\t\t\t\t\tpath = excelService.generateExcel(kna1titles,kna1fields, datas,Kna1.class, sapDataCollection, SjlxTypeName.TYPE_CUSTOMER, filename);\r\n\t\t\t\t}\r\n\t\t\t}else{\r\n\t\t\t\tString filename = frefixOfFileName+\"_kna1\";\r\n\t\t\t\tList<Kna1> datas = commonService.findByPage(sapDataCollection,\"Kna1\", json, PERSIZE, 1,null,null);\r\n\t\t\t\tpath = excelService.generateExcel(kna1titles,kna1fields, datas,Kna1.class, sapDataCollection, SjlxTypeName.TYPE_CUSTOMER, filename);\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(knb1totalNum>0){\r\n\t\t\tlong pages = knb1totalNum%PERSIZE==0?knb1totalNum/PERSIZE:knb1totalNum/PERSIZE+1;\r\n\t\t\tif(pages>1){\r\n\t\t\t\tfor(int i=1;i<=pages;i++){\r\n\t\t\t\t\tList<Knb1> datas = commonService.findByPage(sapDataCollection,\"Knb1\", json, PERSIZE, i,null,null);\r\n\t\t\t\t\tString filename = frefixOfFileName+\"_knb1_\"+i;\r\n\t\t\t\t\tpath = excelService.generateExcel(knb1titles,knb1fields, datas,Knb1.class, sapDataCollection, SjlxTypeName.TYPE_CUSTOMER, filename);\r\n\t\t\t\t}\r\n\t\t\t}else{\r\n\t\t\t\tString filename = frefixOfFileName+\"_knb1\";\r\n\t\t\t\tList<Knb1> datas = commonService.findByPage(sapDataCollection,\"Knb1\", json, PERSIZE, 1,null,null);\r\n\t\t\t\tpath = excelService.generateExcel(knb1titles,knb1fields, datas,Knb1.class, sapDataCollection, SjlxTypeName.TYPE_CUSTOMER, filename);\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(knvvtotalNum>0){\r\n\t\t\tlong pages = knvvtotalNum%PERSIZE==0?knvvtotalNum/PERSIZE:knvvtotalNum/PERSIZE+1;\r\n\t\t\tif(pages>1){\r\n\t\t\t\tfor(int i=1;i<=pages;i++){\r\n\t\t\t\t\tList<Knvv> datas = commonService.findByPage(sapDataCollection,\"Knvv\", json, PERSIZE, i,null,null);\r\n\t\t\t\t\tString filename = frefixOfFileName+\"_knvv_\"+i;\r\n\t\t\t\t\tpath = excelService.generateExcel(knvvtitles,knvvfields, datas,Knvv.class, sapDataCollection, SjlxTypeName.TYPE_CUSTOMER, filename);\r\n\t\t\t\t}\r\n\t\t\t}else{\r\n\t\t\t\tString filename = frefixOfFileName+\"_knvv\";\r\n\t\t\t\tList<Knvv> datas = commonService.findByPage(sapDataCollection,\"Knvv\", json, PERSIZE, 1,null,null);\r\n\t\t\t\tpath = excelService.generateExcel(knvvtitles,knvvfields, datas,Knvv.class, sapDataCollection, SjlxTypeName.TYPE_CUSTOMER, filename);\r\n\t\t\t}\r\n\t\t}\r\n\t\tString zipname = frefixOfFileName;\r\n\t\texcelService.downloadZip(path, zipname, response);\r\n\t\texcelService.deleteByFilePath(path);\r\n\t}", "List<String> getColumns();", "public void loadData(Object[] columnData);", "@DataProvider\n public Object[][] getData()\n {\n\t Object[][] data=new Object[1][6];\n\t //0th row\n\t data[0][0]=\"Arun Raja\";\n\t data[0][1]=\"A\";\n\t data[0][2]=\"[email protected]\";\n\t data[0][3]=\"Test Lead\";\n\t data[0][4]=\"8971970444\";\n\t data[0][5]=\"Attra\";\n\t return data;\n }", "@DataProvider(name=\"BookData\")\n public Object[][] getData()\n {\n\n return new Object[][] {{\"once\", \"1111\"},{\"twice\",\"2222\"},{\"thrice\",\"3333\"}};\n }", "Rows createRows();", "public static String[][] create_table_data(final int col_count, final String query){\n\t\n\t\tfinal Runnable runnable = new Runnable(){\n\t\t\tpublic void run(){\n\t\t\t\t\n\t\t\t\tConnection conn;\n\t\t\t\ttry {\n\t\t\t\t\tconn = Connection_pooling.cpds.getConnection();\n\t\t\t\t\t\n\t\t\t\t\tStatement stmt = conn.createStatement();\n\t\t\t\t\tint size=0;\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tconn.setAutoCommit(false);\n\t\t\t\t\tResultSet rst = stmt.executeQuery(query);\n\t\t\t\t\tconn.commit();\n\t\t\t\t\tconn.setAutoCommit(true);\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tif (rst.last()) {\n\t\t\t\t\t\t size = rst.getRow();\n\t\t\t\t\t\t rst.beforeFirst();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tdata = new String[size][col_count];\n\t\t\t\t\tString tmp;\n\t\t\t\t\tfor(int i=0; rst.next(); i++){\n\t\t\t\t\t\t\n\t\t\t\t\t\tfor(int j=0;j<col_count; j++){\n\t\t\t\t\t\t\ttmp = rst.getString(j+1);\n\t\t\t\t\t\t\tdata[i][j]= tmp==null?\"\":tmp;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tconn.close();\n\t\t\t\t\trst.close();\n\t\t\t\t\tstmt.close();\n\t\t\t\t\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t};\n\t\tFuture<?> ft = MakeTheLink.core.MakeTheLinkMain.threadPool.submit(runnable);\n\t\ttry {\n\t\t\tft.get();\n\t\t} catch (InterruptedException e) {\n\n\t\t\te.printStackTrace();\n\t\t} catch (ExecutionException e) {\n\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn data;\n\t}", "@DataProvider(name = \"test1\")\n\tpublic Object [][] createData1() {\n\t\treturn new Object [][] {\n\t\t\tnew Object [] { 0, 0 },\n\t\t\tnew Object [] { 9, 2 },\n\t\t\tnew Object [] { 15, 0 },\n\t\t\tnew Object [] { 32, 0 },\n\t\t\tnew Object [] { 529, 4 },\n\t\t\tnew Object [] { 1041, 5 },\n\t\t\tnew Object [] { 65536, 0 },\n\t\t\tnew Object [] { 65537, 15 },\n\t\t\tnew Object [] { 100000, 4 }, \n\t\t\tnew Object [] { 2147483, 5 },\n\t\t\tnew Object [] { 2147483637, 1 }, //max - 10\n\t\t\tnew Object [] { 2147483646, 0 }, //max - 1\n\t\t\tnew Object [] { 2147483647, 0 } //max\n\t\t};\n\t}", "ColumnNames createColumnNames();", "public abstract List<String> newReportColumns();", "private int FuncFillColumnList(ArrayList list,int sheetinput) {\n\t\tFileInputStream fis = null;\n\t\ttry {\n\t\t\tfis = new FileInputStream(new File(filename));\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tint columns=0;\n\t\tif(type==0){\n\t\t//create wrokbook xls\n\t\tHSSFWorkbook wb = null;\n\t\ttry {\n\t\t\twb = new HSSFWorkbook(fis);\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t//create sheet object to retrieve the sheet\n\t\tHSSFSheet sheet=wb.getSheetAt(sheetinput);\n\t\t//that is for evaluate the cell type\n\t\tFormulaEvaluator formulaeva=wb.getCreationHelper().createFormulaEvaluator();\n\t\t\n\t\tboolean donerow=false;\n\t\tfor(Row row : sheet)\n\t\t{\n\t\t\tif(!donerow)\n\t\t\tfor(Cell cell : row)\n\t\t\t{\n\t\t\t\tswitch(formulaeva.evaluateInCell(cell).getCellType())\n\t\t\t\t{\n\t\t\t\t//if cell is numeric format\n\t\t\t\tcase Cell.CELL_TYPE_NUMERIC:\n\t\t\t\t\tlist.add(cell.getNumericCellValue());\n\t\t\t\t\tbreak;\n\t\t\t\t//if cell is numeric format\n\t\t\t\tcase Cell.CELL_TYPE_STRING:\n\t\t\t\t\tlist.add(cell.getStringCellValue());\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tcolumns++;\n\t\t\tdonerow=true;\n\n\t\t}\n\t\t}\n\t\tif(type==1){\n\t\t//create wrokbook xlsx\n\t\tXSSFWorkbook wb = null;\n\t\ttry {\n\t\t\twb = new XSSFWorkbook(fis);\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t//create sheet object to retrieve the sheet\n\t\tXSSFSheet sheet=wb.getSheetAt(sheetinput);\n\t\t//that is for evaluate the cell type\n\t\tFormulaEvaluator formulaeva=wb.getCreationHelper().createFormulaEvaluator();\n\t\tboolean donerow=false;\n\t\tfor(Row row : sheet)\n\t\t{\n\t\t\tif(!donerow)\n\t\t\tfor(Cell cell : row)\n\t\t\t{\n\t\t\t\tswitch(formulaeva.evaluateInCell(cell).getCellType())\n\t\t\t\t{\n\t\t\t\t//if cell is numeric format\n\t\t\t\tcase Cell.CELL_TYPE_NUMERIC:\n\t\t\t\t\tlist.add(cell.getNumericCellValue());\n\t\t\t\t\tbreak;\n\t\t\t\t//if cell is numeric format\n\t\t\t\tcase Cell.CELL_TYPE_STRING:\n\t\t\t\t\tlist.add(cell.getStringCellValue());\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tcolumns++;\n\t\t\tdonerow=true;\n\n\t\t}\n\t\t}\n\t\treturn columns-1;\n\t}", "private void populateHeaders (String[] entries) {\n header.clear();\n\n if (entries != null) {\n for (String entry : entries) {\n header.add(entry);\n }\n\n/* for (int i = header.size(); i < nbOfColumns; i++) {\n header.add(\"\");\n }*/\n } else {\n for (int i = 1; i < nbOfColumns + 1; i++) {\n header.add(\"Column\" + i);\n }\n }\n }", "private void calcDataInTable() {\n Calendar tempCal = (Calendar) cal.clone();\n\n tempCal.set(Calendar.DAY_OF_MONTH, 1);\n int dayOfWeek;\n\n if (tempCal.get(Calendar.DAY_OF_WEEK) == Calendar.SUNDAY) {\n dayOfWeek = 7;\n } else {\n dayOfWeek = tempCal.get(Calendar.DAY_OF_WEEK) - 1;\n }\n\n int dayOfMonth = tempCal.get(Calendar.DAY_OF_MONTH);\n\n for (int j = 0; j < 6; j++) {\n\n for (int i = 0; i < 7; i++) {\n\n if (j != 0) {\n if (dayOfMonth < 32) {\n parsedData[j][i] = Integer.toString(dayOfMonth);\n }\n\n if (dayOfMonth > cal.getActualMaximum(Calendar.DAY_OF_MONTH)) {\n parsedData[j][i] = \"\";\n }\n\n dayOfMonth++;\n\n } else {\n\n if ((j == 0) && (i >= dayOfWeek - 1)) {\n parsedData[j][i] = Integer.toString(dayOfMonth);\n dayOfMonth++;\n } else {\n parsedData[j][i] = \"\";\n }\n\n\n }\n\n }\n\n }\n}", "public String[][] loadData(String fileName)\n{\n String[] rows = loadStrings(fileName);\n String[][] dataa = new String [24][7];\n int i = 0;\n for (String row : rows) \n {\n String[] columns = row.split(\",\");\n if (columns.length >= 7) \n {\n for (int j = 0; j < 7; j=j+1)\n {\n dataa [i][j]=columns[j];\n }\n i = i +1;\n }\n }\n return dataa;\n}", "public void crearTabla() {\n\t\tthis.tabla= new String[palabras.length+1][4];\t\n\t}", "public void addColumns(Column[] cols) {\n\n\t\t//\t\t\tAllocate a new array.\n\t\tint number = cols.length;\n\t\tint cnt = columns.length + number;\n\t\tColumn[] newColumns = new Column[cnt];\n\n\t\t// copy current columns.\n\t\tSystem.arraycopy(columns, 0, newColumns, 0, columns.length);\n\n\t\t//\t\t\tANCA: need to expand the Column[] cols\n\n\t\tfor (int k = 0; k < cols.length; k++) {\n\n\t\t\tString columnClass = (cols[k].getClass()).getName();\n\t\t\tColumn expandedColumn = null;\n\n\t\t\t//if col is the first column in the table add it as is and initialize subset\n\t\t\tint numRows = super.getNumRows();\n\t\t\tif (columns.length == 0) {\n\t\t\t\tif (subset.length == 0) {\n\t\t\t\t\tnumRows = cols[k].getNumRows();\n\t\t\t\t\tsubset = new int[numRows];\n\t\t\t\t\tfor (int i = 0; i < this.getNumRows(); i++) {\n\t\t\t\t\t\tsubset[i] = i;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// LAM-tlr, I moved this down from inside the above condition. If it is\n\t\t\t\t// inside the condition above, after the first column is added, the rest of\n\t\t\t\t// the columns are empty.\n\t\t\t\texpandedColumn = cols[k];\n\t\t\t} else {\n\t\t\t\t// LAM-tlr, I moved this down from above. If we are to use the column\n\t\t\t\t// as is, we don't need to reallocate it.\n\t\t\t\ttry {\n\t\t\t\t\texpandedColumn =\n\t\t\t\t\t\t(Column) Class.forName(columnClass).newInstance();\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tSystem.out.println(e);\n\t\t\t\t}\n\t\t\t\texpandedColumn.addRows(numRows);\n\t\t\t\texpandedColumn.setLabel(cols[k].getLabel());\n\t\t\t\texpandedColumn.setComment(cols[k].getComment());\n\t\t\t\texpandedColumn.setIsScalar(cols[k].getIsScalar());\n\t\t\t\texpandedColumn.setIsNominal(cols[k].getIsNominal());\n\n\t\t\t\t//initialize all values as missing for the beginning\n\t\t\t\tfor (int j = 0; j < numRows; j++)\n\t\t\t\t\texpandedColumn.setValueToMissing(true, j);\n\n\t\t\t\t//set the elements of the column where appropriate as determined by subset\n\t\t\t\tObject el;\n\t\t\t\tfor (int i = 0; i < subset.length; i++) {\n\t\t\t\t\tel = cols[k].getObject(i);\n\t\t\t\t\texpandedColumn.setObject(el, subset[i]);\n\t\t\t\t\texpandedColumn.setValueToMissing(false, subset[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tnewColumns[columns.length + k] = expandedColumn;\n\t\t}\n\t\tcolumns = newColumns;\n\n\t}", "public static ArrayList<String> getData3() throws Exception {\n\t\tString filepath = \"F:\\\\Selenium Practice\\\\Framework\\\\TestData\\\\TestData.xlsx\";\n\t\tFile f = new File(filepath);\n\t\tFileInputStream str = new FileInputStream(f);\n\t\tWorkbook w = new XSSFWorkbook(str);\n\t\tArrayList<String> a = new ArrayList<String>();\n\t\tString name = \"\";\n\t\tint nos = w.getNumberOfSheets();\n\t\tfor (int i = 0; i < nos; i++) {\n\t\t\tif (w.getSheetName(i).equalsIgnoreCase(\"TestData\")) {\n\t\t\t\tSheet sh = w.getSheetAt(i);\n\t\t\t\tIterator<Row> rt1 = sh.rowIterator();\n\t\t\t\tRow r1 = rt1.next();\n\t\t\t\tIterator<Cell> ct1 = r1.cellIterator();\n\t\t\t\tint column = 0, k = 0;\n\t\t\t\twhile (ct1.hasNext()) {\n\t\t\t\t\tCell c1 = ct1.next();\n\t\t\t\t\tif (c1.getStringCellValue().equalsIgnoreCase(\"TestCase\")) {\n\t\t\t\t\t\tcolumn = k;\n\t\t\t\t\t}\n\t\t\t\t\tk++;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"TestCase Column Index: \" + column);\n\t\t\t\twhile (rt1.hasNext()) {\n\t\t\t\t\tRow r2 = rt1.next();\n\t\t\t\t\tif (r2.getCell(column).getStringCellValue().equalsIgnoreCase(\"TC01\")) {\n\t\t\t\t\t\tIterator<Cell> ct2 = r2.cellIterator();\n\t\t\t\t\t\twhile (ct2.hasNext()) {\n\t\t\t\t\t\t\tCell c3 = ct2.next();\n\t\t\t\t\t\t\tint ct = c3.getCellType();\n\t\t\t\t\t\t\tswitch (ct) {\n\t\t\t\t\t\t\tcase Cell.CELL_TYPE_NUMERIC:\n\t\t\t\t\t\t\t\tif (ct == 0) {\n\t\t\t\t\t\t\t\t\tif (DateUtil.isCellDateFormatted(c3)) {\n\t\t\t\t\t\t\t\t\t\tSimpleDateFormat form = new SimpleDateFormat(\"dd-MMM-yy\");\n\t\t\t\t\t\t\t\t\t\tname = form.format(c3.getDateCellValue());\n\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tdouble d = c3.getNumericCellValue();\n\t\t\t\t\t\t\t\t\t\tlong l = (long) d;\n\t\t\t\t\t\t\t\t\t\tname = String.valueOf(l);\n\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase Cell.CELL_TYPE_STRING:\n\t\t\t\t\t\t\t\tif (ct == 1) {\n\t\t\t\t\t\t\t\t\tname = c3.getStringCellValue();\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\ta.add(name);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\t\treturn a;\n\t}", "public Object[][] retrieveDataBasedOnViewSeq(ArrayList<String> columns) {\n Object cellData;\r\n Object[][] data = new Object[this.viewSequence.size()][columns.size()];\r\n int j;\r\n int columnType;\r\n\r\n for (int i = 0; i < this.viewSequence.size(); i++) {\r\n j = 0;\r\n for (String column : columns) {\r\n columnType = this.getColumnType(column);\r\n\r\n if (isNumberColumn(columnType)) {\r\n cellData = this.getMeasureColumnData(column, this.viewSequence.get(i));//this.getFieldValueBigDecimal(i,column);\r\n } else {\r\n cellData = this.getDimensionColumnData(column, this.viewSequence.get(i)); //hardcoding not good assuming C is Dimension\r\n }\r\n data[i][j] = cellData;\r\n j++;\r\n }\r\n }\r\n // long endTime = System.currentTimeMillis();\r\n// \r\n return data;\r\n }", "public String getDatacolumn(String sheetName){\n\t\t\r\n\t\tfor (int i = 0; i < row.getLastCellNum(); i++) {\r\n\t\t\t//System.out.print(data[i][colNum]);\r\n\t\t\tfor (int j = 0; j < i; j++) {\r\n\t\t\t\tString valuString= sheet.getRow(i ).getCell(j).toString();\r\n\t\t\t\tSystem.out.println(\"[\"+i+\"]\"+\"[\"+j+\"]\"+\" =\"+ valuString);\r\n\t\t\t\t//start\r\n\t\t\t\t\r\n\t\t\t\ttry {\r\n\t\t\t\t\tsheet=workbook.getSheet(sheetName);\r\n\t\t\t\t\trow=sheet.getRow(i);\r\n\t\t\t\t\tcell=row.getCell(j);\r\n\t\t\t\t\tif (cell.getCellTypeEnum()==CellType.STRING) {\r\n\t\t\t\t\treturn cell.getStringCellValue();\t\r\n\t\t\t\t\t}else if (cell.getCellTypeEnum()==CellType.NUMERIC || cell.getCellTypeEnum()==CellType.FORMULA) {\r\n\t\t\t\t\tString cellValue =String.valueOf(cell.getNumericCellValue());\r\n\t\t\t\t\tif (HSSFDateUtil.isCellDateFormatted(cell)) {\r\n\t\t\t\t\tDateFormat dt=\tnew SimpleDateFormat(\"dd/MM/yy\");\r\n\t\t\t\t\tDate date =cell.getDateCellValue();\r\n\t\t\t\t\tcellValue =dt.format(date);\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn cellValue;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (cell.getCellTypeEnum()==CellType.BLANK)\r\n\t\t\t\t\t\treturn\" \";\r\n\t\t\t\t\telse \r\n\t\t\t\t\t\treturn String.valueOf(cell.getBooleanCellValue());\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t\treturn \"No Match Value Found\";\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//finish\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t\treturn sheetName;\r\n\r\n\t\t//return data;\r\n\r\n\t}", "public FileData export() {\n\t\ttry(Workbook workbook = createWorkbook();\n\t\t\tByteArrayOutputStream outputStream = new ByteArrayOutputStream();) {\n\t\t\tsheet = workbook.createSheet();\n\t\t\tcreateRows();\n\t\t\tworkbook.write(outputStream);\n\t\t\treturn getExportedFileData(outputStream.toByteArray());\n\t\t} catch (IOException ex) {\n\t\t\tthrow new RuntimeException(\"error while exporting file\",ex);\n\t\t}\n\t}", "public void generateChart(){\n String[][] contents = retrieveFields();\n\n// String msg = \"test - \";\n// printCells(contents);\n\n String[] houseDisplay = new String[12];\n houseDisplay = new String[]{\"6\",\"4\",\"2\",\"1\",\"4\",\"6\",\"3\",\"5\",\"7/8\",\"\",\"5\",\"3\"};\n display(houseDisplay);\n }", "@DataProvider(name = \"DataForNewComputerAllFields\")\r\n\tpublic Object[][] testDataFromExcel() throws Exception {\n\t\tExcelUtils.setExcelFile(Constant.Path_TestData + Constant.File_TestData, \"Sheet1\");\r\n\t\t// Getting the Test Case name to get the TestCase row from the Test Data\r\n\t\t// Excel sheet\r\n\t\tiTestCaseRow = ExcelUtils.getRowContains(\"Delete_Computer\", 0);\r\n\t\tObject[][] testObjArray = ExcelUtils.getTableArray(Constant.Path_TestData + Constant.File_TestData, \"Sheet1\",\r\n\t\t\t\tiTestCaseRow);\r\n\t\treturn (testObjArray);\r\n\t}", "@DataProvider(name=\"datagenerator\")\n\tpublic String[][] providedate() {\n\t\tString[][] s= {{\"a\",\"b\"}};\n\t\t\n\t\tfor(Object s1:s) {\n\t\t\tSystem.out.println(s1);\n\t\t}\n\t\t\n\t\treturn s;\n\t\t\n\t\t\n\t}", "@DataProvider(name = \"data\")\n\tpublic Object[][] testDataSupplier() throws Exception {\n\t\tString filePath = \"C:\\\\Users\\\\rekha\\\\OneDrive\\\\Desktop\\\\CP- SAT\\\\Screenshot\\\\Rediffdata.xlsx\";\n\n\t\t// read excel file using file input stream, using Apache POI\n\t\tFileInputStream fis = new FileInputStream(new File(filePath));\n\t\tXSSFWorkbook wb = new XSSFWorkbook(fis);\n\t\tXSSFSheet sheet = wb.getSheet(\"Sheet1\");\n\n\t\t// calculate total number of rows and columns so that we can iterate over it.\n\t\tint totalNumberOfRows = sheet.getLastRowNum()+1 ;\n\t\tint totalNumberOfCols = sheet.getRow(0).getLastCellNum();\n\n\t\t// create an object array. which will store the test data from excel file\n\t\tObject[][] testdata1 = new Object[totalNumberOfRows][totalNumberOfCols];\n\n\t\tfor (int i = 1; i < totalNumberOfRows; i++) {\n\t\t\tfor (int j = 0; j < totalNumberOfCols; j++) {\n\n\t\t\t\ttestdata1[i][j] = sheet.getRow(i).getCell(j).toString();\n\t\t\t}\n\t\t}\n\t\treturn testdata1;\n\t}", "@DataProvider\n\tpublic Object[][] getData()\n\t{\n\t\tObject[][] data = new Object[3][2];\n\t\t\n\t\t//1st set\n\t\tdata[0][0] = \"firstsetusername\";\n\t\tdata[0][1] = \"firstpassword\";\n\t\t//couloumns in the row are nothing but values for that particualar combination(row)\n\t\t\n\t\t//2nd set\n\t\tdata[1][0] = \"secondsetisername\";\n\t\tdata[1][1] = \"second password\";\n\t\t\n\t\t//3rd set\n\t\tdata[2][0] = \"thirdsetusername\";\n\t\tdata[2][1] = \"thirdpassword\";\n\t\treturn data;\n\t\t\n\t}", "@DataProvider(name =\"excel-data\")\n \tpublic Object[][] excelDP() throws IOException{\n \tObject[][] arrObj = getExcelData(\"C:\\\\Users\\\\kalpe\\\\eclipse-workspace\\\\DataProvider\\\\DataFiles\\\\loginData.xlsx\",\"Sheet1\");\n \treturn arrObj;\n \t}", "public void readValuesfromtableWithoutHeadings()\n\t {\n\t\t open();\n\t\t List<Map<Object, String>> tab1= withColumns(\"Last Name \" ,\"First Name\",\"Email\", \"Due\" , \"Web Site\" , \"My Test\") \n\t\t\t\t .readRowsFrom(table);\n\t\t System.out.println(tab1);\n\t }", "private static String [] getColumnName(){\r\n\t\tString [] columnNames = { DBSAResourceBundle.res.getString(\"no\"), DBSAResourceBundle.res.getString(\"title\"), \r\n\t\t\t\tDBSAResourceBundle.res.getString(\"authors\"), DBSAResourceBundle.res.getString(\"link\"),\r\n\t\t\t\tDBSAResourceBundle.res.getString(\"year\"),DBSAResourceBundle.res.getString(\"abstract\"), \r\n\t\t\t\tDBSAResourceBundle.res.getString(\"publisher\"),(\"X\"), \r\n\t\t\t\t(\"duplicate\"), \"id\"};\r\n\t\t\t\r\n\t\treturn columnNames;\r\n\t}", "private void populateData(String seriesName) {\n competitorsList = new ArrayList<>();\n {\n Cursor cursor = DB.readSeriesResult(seriesName);\n int rankCount = 1;\n while (cursor.moveToNext()) {\n\n int rank = rankCount;\n String bClass = cursor.getString(0);\n int sailNo = Integer.parseInt(cursor.getString(1));\n String helmName = cursor.getString(2);\n String crewName = cursor.getString(3) == null ? \"\" :cursor.getString(3) ;\n int PY = Integer.parseInt(cursor.getString(4));\n int points = cursor.getString(5) == null ? -1 : Integer.parseInt(cursor.getString(5));\n rankCount++;\n FinalCompetitorData competitor = new FinalCompetitorData(rank, bClass, sailNo, helmName, crewName, PY, points);\n competitorsList.add(competitor);\n }\n records = new String[competitorsList.size()][columnHeaders.length];\n for (int i = 0; i < competitorsList.size(); i++) {\n FinalCompetitorData s = competitorsList.get(i);\n\n records[i][0] = String.valueOf(s.getRank());\n records[i][1] = s.getBoatClass();\n records[i][2] = String.valueOf(s.getSailNo());\n records[i][3] = s.getHelmName();\n records[i][4] = s.getCrewName().equals(\"\") ? \"--\" : s.getCrewName();\n records[i][5] = String.valueOf(s.getPY());\n records[i][6] = s.getPoints() == -1 ? \"--\" : String.valueOf(s.getPoints());\n }//for\n }\n }", "int getColumns();", "int getColumns();", "private ObjectColumnWithRowId[] createColumnWithRowId(Object[] dataPage) {\n ObjectColumnWithRowId[] columnWithIndexes =\n new ObjectColumnWithRowId[dataPage.length];\n for (short i = 0; i < columnWithIndexes.length; i++) {\n columnWithIndexes[i] = new ObjectColumnWithRowId(dataPage[i], i, dataType);\n }\n return columnWithIndexes;\n }", "public void setColumns(ArrayList tmp) {\n this.columns = tmp;\n }", "public static byte[] writeExcel(List<Object[]> objectList) throws IOException {\n\n String sheetName = \"Sheet1\";//name of sheet\n\n XSSFWorkbook wb = new XSSFWorkbook();\n XSSFSheet sheet = wb.createSheet(sheetName);\n Map<String, CellStyle> styles = createStyles(wb);\n int contRow = 0;\n for (Object[] obj : objectList) {\n XSSFRow row = sheet.createRow(contRow);\n int contCell = 0;\n\n for (Object s : obj) {\n\n XSSFCell cell = row.createCell(contCell);\n\n /*if (contCell == 0 && contRow > 0) {\n nomAct = s.toString();\n }*/\n \n /*if (contCell == 1 && contRow > 0) {\n descripAct = s.toString();\n }*/\n\n if (contRow == 0) {\n cell.setCellValue(s.toString());\n cell.setCellStyle(styles.get(\"header\"));\n } else {\n /*if (nomAct.equals(nomAnt) && contCell == 0) {\n cell.setCellValue(\"\");\n cell.setCellStyle(styles.get(\"cell_normal_rol\"));\n }\n if (descripAct.equals(descripAnt) && contCell == 1) {\n cell.setCellValue(\"\");\n cell.setCellStyle(styles.get(\"cell_normal_rol\"));\n } else {*/\n cell.setCellValue(s.toString());\n /* if (contCell == 0 || contCell==1) {\n cell.setCellStyle(styles.get(\"cell_normal_rol\"));\n nomAnt = nomAct;\n descripAnt = descripAct;\n } else {\n cell.setCellStyle(styles.get(\"cell_normal\"));\n }*/\n //}\n }\n\n contCell++;\n }\n contRow++;\n }\n\n/*\n sheet.addMergedRegion(new CellRangeAddress(1, contRow - 1, 0, 0));\n sheet.addMergedRegion(new CellRangeAddress(1, contRow - 1, 1, 1));*/\n\n\n /*//iterating r number of rows\n for (int r = 0; r < 5; r++) {\n XSSFRow row = sheet.createRow(r);\n\n //iterating c number of columns\n for (int c = 0; c < 5; c++) {\n for (int c = 0; c < 5; c++) {\n XSSFCell cell = row.createCell(c);\n\n cell.setCellValue(\"Cell \" + r + \" \" + c);\n }\n }*/\n\n // FileOutputStream fileOut = new FileOutputStream(excelFileName);\n ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n wb.write(byteArrayOutputStream);\n return byteArrayOutputStream.toByteArray();\n\n //write this workbook to an Outputstream.\n/* wb.write(fileOut);\n fileOut.flush();\n fileOut.close();*/\n }", "Column getColumns(int index);", "public List<String> getColumns();", "public synchronized ExcelSimpleWriter<?> addData(ExportFunction<Object[]> query) {\n AbstractExcelGenerateTask<Object[]> generateTask = new AbstractExcelGenerateTask<Object[]>(query) {\n @Override\n public void parse(PageResult<Object[]> pageResult) {\n\n List<Object[]> result = pageResult.getData();\n int index = pageResult.getPage();\n if (log.isDebugEnabled()) {\n log.debug(\"parse data of index:\" + index);\n }\n if (indexParse.get() == index) {\n try {\n lock.lock();\n indexParse.incrementAndGet();\n if (log.isDebugEnabled()) {\n log.debug(\"Write data of index:\" + index);\n }\n write(result);\n } catch (Exception e) {\n throw new RuntimeException(e);\n } finally {\n lock.unlock();\n }\n } else {\n peerDataMap.put(index, result);\n if (peerDataMap.containsKey(indexParse.get() + 1)) {\n try {\n lock.lock();\n if (log.isDebugEnabled()) {\n log.debug(\"Write data of index:\" + indexParse.get()+1);\n }\n write(peerDataMap.remove(indexParse.incrementAndGet()));\n } catch (Exception e) {\n throw new RuntimeException(e);\n } finally {\n lock.unlock();\n }\n }\n }\n }\n };\n generateTask.producers(TaraExcelConfig.CONFIG.getCsvProducerThread());\n generateTask.consumers(2);\n generateTask.start();\n return this;\n }", "@DataProvider\n public Object[][] Data() \n {\n return new Object[][]\n {\n {\"a\" ,\"aaaa\" },\n { \"b\" ,\"bbb\"},\n {\"c\" ,\"ccc\"}\n \n };\n }", "public Object[][] testData(String excelPath, String sheetName)\n\t{\t\n\t\tExcelUtils excel = new ExcelUtils(excelPath,sheetName);\n\t\t\n\t\tint rowCount = excel.getRowCount();\n\t\tint colCount = excel.getColumnCount();\n\t\t\n\t\t//Creating an array object. (rowCount-1) because we do not want header\n\t\tObject arr[][] = new Object[rowCount-1][colCount];\n\t\t\n\t\t//We are using i=1 since we want to skip header row. In case of column we will start from 0.\n\t\tfor(int i=1;i<rowCount;i++)\n\t\t{\n\t\t\tfor(int j=0;j<colCount;j++)\n\t\t\t{\n\t\t\t\tString cellData = excel.getCellDataString(i,j);\n\t\t\t\tarr[i-1][j]= cellData;\n\t\t\t}\n\t\t}\n\t\treturn arr;\n\t}", "public SystemColumn[] buildColumnList()\n throws StandardException\n {\n return new SystemColumn[] {\n SystemColumnImpl.getUUIDColumn(\"UUID\", false),\n SystemColumnImpl.getIdentifierColumn(\"ROLEID\", false),\n SystemColumnImpl.getIdentifierColumn(\"GRANTEE\", false),\n SystemColumnImpl.getIdentifierColumn(\"GRANTOR\", false),\n SystemColumnImpl.getIndicatorColumn(\"WITHADMINOPTION\"),\n SystemColumnImpl.getIndicatorColumn(\"ISDEF\"),\n };\n }", "private static DataTable createDataTable() throws Exception {\n DataTable t = new DataTable(\"Items\");\r\n\r\n // Add two columns\r\n DataColumn c;\r\n\r\n // First column\r\n c = t.getColumns().Add(\"id\", TClrType.getType(\"System.Int32\"));\r\n c.setAutoIncrement(true);\r\n\r\n // Second column\r\n t.getColumns().Add(\"item\", TClrType.getType(\"System.String\"));\r\n\r\n // Set primary key\r\n t.setPrimaryKey(new DataColumnArray(new DataColumn[]{t.getColumns().getItem(0)}));\r\n\r\n // Add twelve rows\r\n for (int i = 0; i < 10; i++) {\r\n DataRow row = t.NewRow();\r\n row.setItem(0, i);\r\n row.setItem(1, String.format(\"%s\", i));\r\n t.getRows().Add(row);\r\n }\r\n DataRow row = t.NewRow();\r\n row.setItem(0, 11);\r\n row.setItem(1, \"abc\");\r\n t.getRows().Add(row);\r\n\r\n row = t.NewRow();\r\n row.setItem(0, 15);\r\n row.setItem(1, \"ABC\");\r\n t.getRows().Add(row);\r\n\r\n return t;\r\n }" ]
[ "0.6063507", "0.59883267", "0.59491605", "0.5927502", "0.5749435", "0.5727935", "0.5652354", "0.5617173", "0.5612301", "0.55743235", "0.5542544", "0.55344373", "0.5530834", "0.55259717", "0.551975", "0.5508556", "0.5486929", "0.5467067", "0.5458883", "0.5427157", "0.5425451", "0.54115194", "0.5403896", "0.5385042", "0.5354023", "0.5333225", "0.53317314", "0.5318757", "0.53080845", "0.53068674", "0.5306261", "0.5295241", "0.52905494", "0.5279573", "0.5275406", "0.5257148", "0.52492076", "0.5241165", "0.5234716", "0.5230656", "0.5229901", "0.5227092", "0.52082926", "0.5207434", "0.52063483", "0.5206144", "0.51851094", "0.5173356", "0.517155", "0.5166339", "0.51606566", "0.5158801", "0.5151764", "0.5141074", "0.5140669", "0.5140669", "0.5135557", "0.51301163", "0.5127057", "0.5125881", "0.5120953", "0.5115769", "0.51144767", "0.5110296", "0.5109855", "0.5102971", "0.5091728", "0.5091532", "0.50871545", "0.5086869", "0.50855017", "0.5081469", "0.5068563", "0.5067988", "0.5049038", "0.50285846", "0.50229377", "0.5008835", "0.5004999", "0.49954137", "0.49942204", "0.49892887", "0.49840543", "0.49778232", "0.49744588", "0.49728087", "0.4969158", "0.49682906", "0.49607602", "0.49607602", "0.49577504", "0.49556652", "0.49507096", "0.4950343", "0.4943831", "0.49396655", "0.49243984", "0.49235645", "0.49211425", "0.49174285" ]
0.62251383
0
validate the loaded attributes of this subcomponent
int validate(ValidationContext ctx) { int count = 0; if (this.name == null) { ctx.addError( "Parameter has to have a name. This need not be the same as the one in the db though."); count++; } count += ctx.checkDtExistence(this.dataType, "dataType", false); count += ctx.checkRecordExistence(this.recordName, "recordName", false); if (this.defaultValue != null) { if (this.dataType == null) { this.addError(ctx, " is non-primitive but a default value is specified."); count++; } else { DataType dt = ComponentManager.getDataTypeOrNull(this.dataType); if (dt != null && dt.parseValue(this.defaultValue) == null) { this.addError(ctx, " default value of " + this.defaultValue + " is invalid as per dataType " + this.dataType); } } } if (this.recordName != null) { if (this.dataType != null) { this.addError(ctx, " Both dataType and recordName specified. Use dataType if this is primitive type, or record if it as array or a structure."); count++; } if (this.sqlObjectType == null) { this.addError(ctx, " recordName is specified which means that it is a data-structure. Please specify sqlObjectType as the type of this parameter in the stored procedure"); } } else { if (this.dataType == null) { this.addError(ctx, " No data type or recordName specified. Use dataType if this is primitive type, or record if it as an array or a data-structure."); count++; } else if (this.sqlObjectType != null) { ctx.addError( "sqlObjectType is relevant only if this parameter is non-primitive."); } } if (this.isArray) { if (this.sqlArrayType == null) { this.addError(ctx, " is an array, and hence sqlArrayType must be specified as the type with which this parameter is defined in the stored procedure"); count++; } } return count; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void validate() {\n if (valid) return;\n \n layer = getAttValue(\"layer\").getString();\n hasFrame = getAttValue(\"hasframe\").getBoolean();\n\n valid = true;\n }", "@Override\n\tpublic void validate() {\n\t\tsuper.validate();\n\t}", "@Override\r\n\tpublic void validate() {\n\t\t\r\n\t}", "@Override\r\n public void validate() {\r\n }", "@Override\r\n\tprotected void validate() {\n\t}", "@Override\n\tpublic void validate()\n\t{\n\n\t}", "public void validate() throws org.apache.thrift.TException {\n if (!isSetResourcePlanName()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'resourcePlanName' is unset! Struct:\" + toString());\n }\n\n if (!isSetPoolPath()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'poolPath' is unset! Struct:\" + toString());\n }\n\n // check for sub-struct validity\n }", "@Override\n\tpublic void validate() {\n\t}", "@Override\r\n public boolean validate() {\n return true;\r\n }", "public void validate() throws org.apache.thrift.TException {\n if (classification == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'classification' was not present! Struct: \" + toString());\n }\n // check for sub-struct validity\n }", "public void validate() throws org.apache.thrift.TException {\n if (!is_set_destApp()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'destApp' is unset! Struct:\" + toString());\n }\n\n if (!is_set_destPellet()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'destPellet' is unset! Struct:\" + toString());\n }\n\n if (!is_set_data()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'data' is unset! Struct:\" + toString());\n }\n\n // check for sub-struct validity\n }", "private void validate() {\n\n if (this.clsname == null)\n throw new IllegalArgumentException();\n if (this.dimension < 0)\n throw new IllegalArgumentException();\n if (this.generics == null)\n throw new IllegalArgumentException();\n }", "@Override\r\n\tpublic boolean validate() {\n\t\treturn true;\r\n\t}", "@Override\r\n\tpublic boolean validate() {\n\t\treturn true;\r\n\t}", "public void validateAttributes() {\n if ((totalNumBuckets <= 0)) {\n throw new IllegalStateException(\n String.format(\n \"TotalNumBuckets %s is an illegal value, please choose a value greater than 0\",\n totalNumBuckets));\n }\n if ((redundancy < 0) || (redundancy >= 4)) {\n throw new IllegalStateException(\n String.format(\n \"RedundantCopies %s is an illegal value, please choose a value between 0 and 3\",\n redundancy));\n }\n for (final Object value : getLocalProperties().keySet()) {\n String propName = (String) value;\n if (!PartitionAttributesFactory.LOCAL_MAX_MEMORY_PROPERTY.equals(propName)) {\n throw new IllegalStateException(\n String.format(\"Unknown local property: '%s'\",\n propName));\n }\n }\n for (final Object o : getGlobalProperties().keySet()) {\n String propName = (String) o;\n if (!PartitionAttributesFactory.GLOBAL_MAX_BUCKETS_PROPERTY.equals(propName)\n && !PartitionAttributesFactory.GLOBAL_MAX_MEMORY_PROPERTY.equals(propName)) {\n throw new IllegalStateException(\n String.format(\"Unknown global property: '%s'\",\n propName));\n }\n }\n if (recoveryDelay < -1) {\n throw new IllegalStateException(\"RecoveryDelay \" + recoveryDelay\n + \" is an illegal value, please choose a value that is greater than or equal to -1\");\n }\n if (startupRecoveryDelay < -1) {\n throw new IllegalStateException(\"StartupRecoveryDelay \" + startupRecoveryDelay\n + \" is an illegal value, please choose a value that is greater than or equal to -1\");\n }\n if (fixedPAttrs != null) {\n List<FixedPartitionAttributesImpl> duplicateFPAattrsList =\n new ArrayList<>();\n Set<FixedPartitionAttributes> fpAttrsSet = new HashSet<>();\n for (FixedPartitionAttributesImpl fpa : fixedPAttrs) {\n if (fpa == null || fpa.getPartitionName() == null) {\n throw new IllegalStateException(\n \"Fixed partition name cannot be null\");\n }\n if (fpAttrsSet.contains(fpa)) {\n duplicateFPAattrsList.add(fpa);\n } else {\n fpAttrsSet.add(fpa);\n }\n }\n if (duplicateFPAattrsList.size() != 0) {\n throw new IllegalStateException(\n String.format(\"Partition name %s can be added only once in FixedPartitionAttributes\",\n duplicateFPAattrsList));\n }\n }\n }", "public void validate() throws org.apache.thrift.TException {\n if (institutionID == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'institutionID' was not present! Struct: \" + toString());\n }\n if (productids == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'productids' was not present! Struct: \" + toString());\n }\n // check for sub-struct validity\n }", "public void validateObjectMetier() throws NSValidation.ValidationException {\n\n\t}", "public void validateObjectMetier() throws NSValidation.ValidationException {\n\n\t}", "public void validateObjectMetier() throws NSValidation.ValidationException {\n\n\t}", "private void validateData() {\n }", "@Override\r\n\tpublic void Validate() {\n\r\n\t}", "public void validate() throws org.apache.thrift.TException {\n if (!is_set_inputs()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'inputs' is unset! Struct:\" + toString());\n }\n\n if (!is_set_streams()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'streams' is unset! Struct:\" + toString());\n }\n\n // check for sub-struct validity\n }", "protected void validate() throws Exception{\t\n\t\tsuper.validate();\n\t\tvalidateProperty(PROPERTY_KEY_USERNAME);\n\t}", "public void validate() throws org.apache.thrift.TException {\n if (functionName == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'functionName' was not present! Struct: \" + toString());\n }\n if (className == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'className' was not present! Struct: \" + toString());\n }\n if (resources == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'resources' was not present! Struct: \" + toString());\n }\n // check for sub-struct validity\n }", "@Override\n\tpublic void selfValidate() {\n\t\t\n\t}", "public void validate() throws org.apache.thrift.TException {\n if (!is_set_status()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'status' is unset! Struct:\" + toString());\n }\n\n if (!is_set_data()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'data' is unset! Struct:\" + toString());\n }\n\n if (!is_set_feature()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'feature' is unset! Struct:\" + toString());\n }\n\n if (!is_set_predictResult()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'predictResult' is unset! Struct:\" + toString());\n }\n\n if (!is_set_msg()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'msg' is unset! Struct:\" + toString());\n }\n\n // check for sub-struct validity\n if (feature != null) {\n feature.validate();\n }\n }", "public void validate() throws org.apache.thrift.TException {\n if (!isSetColName()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'colName' is unset! Struct:\" + toString());\n }\n\n if (!isSetColType()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'colType' is unset! Struct:\" + toString());\n }\n\n if (!isSetStatsData()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'statsData' is unset! Struct:\" + toString());\n }\n\n // check for sub-struct validity\n }", "protected void validate() {\n // no implementation.\n }", "public void validate() throws org.apache.thrift.TException {\n if (!isSetId()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'id' is unset! Struct:\" + toString());\n }\n\n // check for sub-struct validity\n }", "protected void validate() {\n // no op\n }", "public void validate() throws org.apache.thrift.TException {\n if (!isSetUuidFicha()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'uuidFicha' is unset! Struct:\" + toString());\n }\n\n // check for sub-struct validity\n if (headerTransport != null) {\n headerTransport.validate();\n }\n }", "public void validate () throws ModelValidationException\n\t\t\t{\n\t\t\t\tkeyClassName = validateKeyClassName(className);\n\t\t\t\t// initilialize keyClass field \n\t\t\t\tkeyClass = getModel().getClass(keyClassName, getClassLoader());\n\t\t\t\tvalidateClass();\n\t\t\t\tvalidateConstructor();\n\t\t\t\tvalidateFields();\n\t\t\t\tvalidateMethods();\n\t\t\t}", "@Override\n\tpublic boolean validate() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean validate() {\n\t\treturn false;\n\t}", "public void check() {\n\t\tif (!hasAnimVal) {\n\t\t\tif (baseVal == null) {\n\t\t\t\tbaseVal = new BaseSVGPointList();\n\t\t\t}\n\t\t\tbaseVal.revalidate();\n\t\t\tif (baseVal.missing) {\n\t\t\t\tthrow new LiveAttributeException(element, localName, LiveAttributeException.ERR_ATTRIBUTE_MISSING,\n\t\t\t\t\t\tnull);\n\t\t\t}\n\t\t\tif (baseVal.malformed) {\n\t\t\t\tthrow new LiveAttributeException(element, localName, LiveAttributeException.ERR_ATTRIBUTE_MALFORMED,\n\t\t\t\t\t\tbaseVal.getValueAsString());\n\t\t\t}\n\t\t}\n\t}", "void validateProperties() {\n super.validateProperties();\n validatePropertySet(\"token\", getToken());\n }", "public void validate() {\n\t\tClass<?> clazz = this.getModelObject().getClass();\n\t\tif (!ArenaUtils.isObservable(clazz)) {\n\t\t\tthrow new RuntimeException(\"La clase \" + clazz.getName() + \" no tiene alguna de estas annotations \" + ArenaUtils.getRequiredAnnotationForModels() + \" que son necesarias para ser modelo de una vista en Arena\");\n\t\t}\n\t\t// TODO: Validate children bindings?\n\t}", "public void validate() throws org.apache.thrift.TException {\n if (partition_exprs == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'partition_exprs' was not present! Struct: \" + toString());\n }\n if (partition_infos == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'partition_infos' was not present! Struct: \" + toString());\n }\n if (rollup_schemas == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'rollup_schemas' was not present! Struct: \" + toString());\n }\n // check for sub-struct validity\n }", "private void checkValid() {\n getSimType();\n getInitialConfig();\n getIsOutlined();\n getEdgePolicy();\n getNeighborPolicy();\n getCellShape();\n }", "public void validate() throws org.apache.thrift.TException {\n if (version == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'version' was not present! Struct: \" + toString());\n }\n if (am_handle == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'am_handle' was not present! Struct: \" + toString());\n }\n if (user == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'user' was not present! Struct: \" + toString());\n }\n if (resources == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'resources' was not present! Struct: \" + toString());\n }\n // alas, we cannot check 'gang' because it's a primitive and you chose the non-beans generator.\n // check for sub-struct validity\n if (am_handle != null) {\n am_handle.validate();\n }\n if (reservation_id != null) {\n reservation_id.validate();\n }\n }", "public void validate() throws org.apache.thrift.TException {\n if (!isSetUserProfileId()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'userProfileId' is unset! Struct:\" + toString());\n }\n\n if (!isSetEntityId()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'entityId' is unset! Struct:\" + toString());\n }\n\n if (!isSetEntityType()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'entityType' is unset! Struct:\" + toString());\n }\n\n // check for sub-struct validity\n }", "public void validate() throws org.apache.thrift.TException {\n if (parseId == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'parseId' was not present! Struct: \" + toString());\n }\n // alas, we cannot check 'constituentIndex' because it's a primitive and you chose the non-beans generator.\n // check for sub-struct validity\n if (parseId != null) {\n parseId.validate();\n }\n }", "protected void validate()\r\n\t{\r\n\t\tif( this.mapper==null )\r\n\t\t\tthrow new IllegalStateException(\"Please specify the Mapper of this dataset.\");\r\n\t\tif( this.input_format==null )\r\n\t\t\tthrow new IllegalStateException(\"Please specify the InputFormat of this dataset.\");\r\n\t\tif( this.inputs==null || this.inputs.size()==0 )\r\n\t\t\tthrow new IllegalStateException(\"Please specify the input path(s) of this dataset\");\r\n\t\tif ( this.getSchema()==null || this.getSchema().size()==0 )\r\n\t\t\tthrow new IllegalStateException(\"Please specify the schema of this dataset first\");\r\n\t}", "public void validateComponent() throws org.apache.ant.common.util.ExecutionException {\n if (name == null) {\n throw new org.apache.ant.common.util.ExecutionException(\"\\\"name\\\" attribute of \" + \"<property> must be supplied\");\n }\n if (value == null) {\n throw new org.apache.ant.common.util.ExecutionException(\"\\\"value\\\" attribute of \" + \"<property> must be supplied\");\n }\n }", "protected void validateEntity() {\n super.validateEntity();\n }", "public void validate() throws org.apache.thrift.TException {\n if (key_column_name == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'key_column_name' was not present! Struct: \" + toString());\n }\n if (key_column_type == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'key_column_type' was not present! Struct: \" + toString());\n }\n // alas, we cannot check 'is_preaggregation' because it's a primitive and you chose the non-beans generator.\n // check for sub-struct validity\n }", "@Override\r\n public void validate() {\n\r\n }", "public void validate() {\n\t\tthis.invalidated = false;\n\t}", "private void checkAttributes() throws JellyTagException\n {\n if (getField() == null)\n {\n throw new MissingAttributeException(\"field\");\n }\n if (getVar() == null)\n {\n if (!(getParent() instanceof ValueSupport))\n {\n throw new JellyTagException(\n \"No target for the resolved value: \"\n + \"Specify the var attribute or place the tag \"\n + \"in the body of a ValueSupport tag.\");\n }\n }\n }", "protected void doExtraValidation(Properties props) {\n /* nothing by default */\n }", "@Override\n\tpublic void validate() {\n\t\tFormFieldValidator.validateStudent(this, student);\n\t\tFormFieldValidator.validateCourseList(this, courseID);\n\t}", "public void validate() {}", "public void validate() {\n transportStats.validate(this);\n\n for (String unitName : produces) {\n Args.validate(!UnitFactory.hasUnitForName(unitName), \"Illegal unit name \" + unitName + \" in build unit stats\");\n }\n\n for (Map.Entry<String, String> entry : buildCities.entrySet()) {\n String terrainName = entry.getKey();\n String cityName = entry.getValue();\n Args.validate(!TerrainFactory.hasTerrainForName(terrainName), \"Illegal terrain \" + terrainName + \" in build cities stats\");\n Args.validate(!CityFactory.hasCityForName(cityName), \"Illegal city \" + cityName + \" in build cities stats\");\n }\n\n for (String unitName : supplyUnits) {\n Args.validate(!UnitFactory.hasUnitForName(unitName), \"Illegal unit \" + unitName + \" in supply units stats\");\n }\n\n for (String unitName : supplyUnitsInTransport) {\n Args.validate(!UnitFactory.hasUnitForName(unitName), \"Illegal unit \" + unitName + \" in supply units in transport stats\");\n }\n\n Args.validate(StringUtil.hasContent(primaryWeaponName) && !WeaponFactory.hasWeapon(primaryWeaponName),\n \"Illegal primary weapon \" + primaryWeaponName + \" for unit \" + name);\n Args.validate(StringUtil.hasContent(secondaryWeaponName) && !WeaponFactory.hasWeapon(secondaryWeaponName),\n \"Illegal secondary weapon \" + secondaryWeaponName + \" for unit \" + name);\n }", "@Override\n public void validateModel() {\n }", "public Set<YValidationAspekt> validateComponent() {\r\n\t\tthis.foundErrors = EnumSet.noneOf(YValidationAspekt.class);\r\n\t\tthis.foundWarnings = EnumSet.noneOf(YValidationAspekt.class);\r\n\r\n\t\tassertModelSpecification();\r\n\t\tassertModelImplementation();\r\n\r\n\t\tassertIdAndVarName();\r\n\t\tassertProperties();\r\n\r\n\t\treturn this.foundErrors;\r\n\t}", "@Override\n public void customValidation() {\n }", "@Override\n public void customValidation() {\n }", "@Override\n public void customValidation() {\n }", "public void validate() throws org.apache.thrift.TException {\n if (levelInfo != null) {\r\n levelInfo.validate();\r\n }\r\n }", "public void validate() throws org.apache.thrift.TException {\n if (version == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'version' was not present! Struct: \" + toString());\n }\n // check for sub-struct validity\n }", "public boolean validate() {\n return true;\n }", "public boolean validate() {\n return true;\n }", "protected boolean isValidData() {\n return true;\n }", "public void checkComponent() {\r\n Component component = ViewToEntityConverter.view2Model(view);\r\n validate(component);\r\n }", "protected abstract boolean populateAttributes();", "public void validate() throws org.apache.thrift.TException {\n if (limb == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'limb' was not present! Struct: \" + toString());\n }\n if (pos == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'pos' was not present! Struct: \" + toString());\n }\n if (ori == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'ori' was not present! Struct: \" + toString());\n }\n if (speed == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'speed' was not present! Struct: \" + toString());\n }\n if (angls == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'angls' was not present! Struct: \" + toString());\n }\n if (mode == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'mode' was not present! Struct: \" + toString());\n }\n if (kin == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'kin' was not present! Struct: \" + toString());\n }\n // check for sub-struct validity\n if (pos != null) {\n pos.validate();\n }\n if (ori != null) {\n ori.validate();\n }\n if (speed != null) {\n speed.validate();\n }\n if (angls != null) {\n angls.validate();\n }\n }", "@Override\n public void validate(ValidationContext vc) {\n Map<String,Property> beanProps = vc.getProperties(vc.getProperty().getBase());\n \n validateKode(vc, (String)beanProps.get(\"idKurikulum\").getValue(), (Boolean)vc.getValidatorArg(\"tambahBaru\")); \n validateDeskripsi(vc, (String)beanProps.get(\"deskripsi\").getValue()); \n }", "private void validate() {\n\n etCardNumber.validate();\n\n etCardExpiryDate.validate();\n\n etCardCvv.validate();\n\n etCardHolderName.validate();\n\n etPhoneNumber.validate();\n\n etCustomerName.validate();\n }", "public void validate() throws org.apache.thrift.TException {\n if (emailId == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'emailId' was not present! Struct: \" + toString());\n }\n // check for sub-struct validity\n }", "@Then(\"^Validate the fields present in the result page$\") // Move to UserStep Definition\r\n\tpublic void attribute_validation(){\r\n\t\tenduser.attri_field();\r\n\t}", "@Override\n public boolean validate() throws ValidationException\n {\n boolean isValid = super.validate();\n return checkAAField() && isValid;\n }", "public void validate() throws org.apache.thrift.TException {\n if (is_null == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'is_null' was not present! Struct: \" + toString());\n }\n // check for sub-struct validity\n }", "public void validate() throws org.apache.thrift.TException {\n if (code == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'code' was not present! Struct: \" + toString());\n }\n // check for sub-struct validity\n }", "public void validate() {\r\n super.validate();\r\n\r\n if (!isReferenced()) {\r\n getReporter().reportProblem(BPEL_PARTNER_LINK_NOT_USED_CODE,\r\n WARNING_PARTNER_LINK_NOT_USED,\r\n new String[]{getDef().getName()}, getDef());\r\n }\r\n\r\n // check that the partner link type exists\r\n if (getPartnerLinkType() == null) {\r\n addTypeNotFoundError(ERROR_PARTNER_LINK_TYPE_NOT_FOUND, getDef().getPartnerLinkTypeName());\r\n return;\r\n }\r\n\r\n // validate the roles, if defined.\r\n if (hasMyRole()) {\r\n IAeRole role = getPartnerLinkType().findRole(getDef().getMyRole());\r\n if (role == null) {\r\n // role not found\r\n getReporter().reportProblem(BPEL_ROLE_NOT_FOUND_CODE,\r\n ERROR_ROLE_NOT_FOUND,\r\n new String[]{getDef().getMyRole(), getPartnerLinkType().getName()},\r\n getDef());\r\n } else {\r\n setMyRolePortTypeDef(findPortType(role));\r\n }\r\n }\r\n\r\n if (hasPartnerRole()) {\r\n IAeRole role = getPartnerLinkType().findRole(getDef().getPartnerRole());\r\n if (role == null) {\r\n // role not found\r\n getReporter().reportProblem(BPEL_ROLE_NOT_FOUND_CODE,\r\n ERROR_ROLE_NOT_FOUND,\r\n new String[]{getDef().getPartnerRole(), getPartnerLinkType().getName()},\r\n getDef());\r\n } else {\r\n setPartnerRolePortTypeDef(findPortType(role));\r\n }\r\n } else {\r\n // if it doesn't have a partner role then it shouldn't have the\r\n // intializePartnerRole attribute\r\n if (getDef().getInitializePartnerRole() != null) {\r\n // role not found\r\n getReporter().reportProblem(BPEL_INIT_PARTNER_ROLE_NOT_ALLOWED_CODE,\r\n ERROR_INIT_PARTNER_ROLE_NOT_ALLOWED,\r\n new String[]{getDef().getName()},\r\n getDef());\r\n }\r\n }\r\n\r\n validatePartnerLinkUsers();\r\n }", "@Override\n public void afterPropertiesSet() {\n validateProperties();\n }", "@Override\r\n\tpublic void validate() {\n\t\tsuper.validate();\r\n\t\tif(nofck == null)\r\n\t\t\tnofck = false;\r\n\t}", "@Override\n\t\tpublic boolean isValid() {\n\t\t\treturn false;\n\t\t}", "public void validate () throws ModelValidationException\n\t\t\t{\n\t\t\t\tif (MappingClassElement.VERSION_CONSISTENCY == \n\t\t\t\t\tmappingClass.getConsistencyLevel())\n\t\t\t\t{\n\t\t\t\t\tMappingFieldElement versionField =\n\t\t\t\t\t\t validateVersionFieldExistence();\n\t\t\t\t\tString className = mappingClass.getName();\n\t\t\t\t\tString fieldName = versionField.getName();\n\t\t\t\t\tString columnName = null;\n\t\t\t\t\tColumnElement column = null;\n\n\t\t\t\t\tif (versionField instanceof MappingRelationshipElement)\n\t\t\t\t\t{\n\t\t\t\t\t\tthrow constructFieldException(fieldName, \n\t\t\t\t\t\t\t\"util.validation.version_field_relationship_not_allowed\");//NOI18N\n\t\t\t\t\t}\n\t\t\t\t\telse if (MappingFieldElement.GROUP_DEFAULT != \n\t\t\t\t\t\tversionField.getFetchGroup()) // must be in DFG\n\t\t\t\t\t{\n\t\t\t\t\t\tthrow constructFieldException(fieldName, \n\t\t\t\t\t\t\t\"util.validation.version_field_fetch_group_invalid\");//NOI18N\n\t\t\t\t\t}\n\n\t\t\t\t\tvalidatePersistenceFieldAttributes(className, fieldName);\n\t\t\t\t\tcolumnName = validateVersionFieldMapping(versionField);\n\t\t\t\t\tcolumn = validateTableMatch(className, fieldName, columnName);\n\t\t\t\t\tvalidateColumnAttributes(className, fieldName, column);\n\t\t\t\t}\n\t\t\t}", "public void validateAfterParse() \r\n\t{\n\t\tValidate.fieldNotBlank(getName(), \"name\");\r\n\t\t\r\n\t\t//Must have columns and they can't be null\r\n\t\tValidate.fieldNotEmptyWithNoNullElements(getColumns(), \"columns\");\r\n\t\t\r\n\t\tint numPrimaryKeysDefined = 0;\r\n\t\t\r\n\t\tfor (ColumnDefinition def : getColumns())\r\n\t\t{\r\n\t\t\tif (def.isPrimaryKey())\r\n\t\t\t{\r\n\t\t\t\tnumPrimaryKeysDefined++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//Can only have 1 PK\r\n\t\tValidate.isTrue(numPrimaryKeysDefined == 1);\r\n\r\n\t\tfor (ColumnDefinition def : getColumns())\r\n\t\t{\r\n\t\t\tdef.validateAfterParse();\r\n\t\t}\r\n\t\t\r\n\t\t//Check over indexes, make sure each column name for the indexes actually exists\r\n\t\tfor(IndexDefinition def : getIndexes())\r\n\t\t{\r\n\t\t\tfor(String idxColName : def.getColumnNames())\r\n\t\t\t{\r\n\t\t\t Validate.isTrue(getColumns().contains(ColumnDefinition.valueOf(idxColName))); //Can't use containsColumn yet as that map gets initialized in postParse()\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void validateProperties() throws BuildException {\r\n if (this.port == null || this.port.length() == 0) {\r\n throw new BuildException(\"Attribute 'port' must be set.\");\r\n }\r\n if (this.depotPath == null || this.depotPath.length() == 0) {\r\n throw new BuildException(\"Attribute 'repositoryUrl' must be set.\");\r\n }\r\n if (this.userName == null || this.userName.length() == 0) {\r\n throw new BuildException(\"Attribute 'userName' must be set.\");\r\n }\r\n if (this.password == null || this.password.length() == 0) {\r\n throw new BuildException(\"Attribute 'password' must be set.\");\r\n }\r\n if (this.depotPath == null || this.depotPath.length() == 0) {\r\n throw new BuildException(\"Attribute 'repositoryUrl' must be set.\");\r\n }\r\n if (this.p4ExecutablePath == null || this.p4ExecutablePath.length() == 0) {\r\n throw new BuildException(\"Attribute 'p4ExecutablePath' must be set.\");\r\n }\r\n File p4Executable = new File(this.p4ExecutablePath);\r\n if (!p4Executable.exists()) {\r\n throw new BuildException(\"Attribute 'p4ExecutablePath' \" + this.p4ExecutablePath +\r\n \" does not appear to point to an actual file.\");\r\n }\r\n \r\n // If default* is specified, then all should be specified. \r\n if (((this.defaultHackystatAccount != null) || \r\n (this.defaultHackystatPassword != null) ||\r\n (this.defaultHackystatSensorbase != null)) &&\r\n ((this.defaultHackystatAccount == null) || \r\n (this.defaultHackystatPassword == null) ||\r\n (this.defaultHackystatSensorbase == null))) {\r\n throw new BuildException (\"If one of default Hackystat account, password, or sensorbase \" +\r\n \"is specified, then all must be specified.\");\r\n }\r\n \r\n // Check to make sure that defaultHackystatAccount looks like a real email address.\r\n if (!ValidateEmailSyntax.isValid(this.defaultHackystatAccount)) {\r\n throw new BuildException(\"Attribute 'defaultHackystatAccount' \" + this.defaultHackystatAccount\r\n + \" does not appear to be a valid email address.\");\r\n }\r\n \r\n // If fromDate and toDate not set, we extract commit information for the previous day.\r\n if (this.fromDateString == null && this.toDateString == null) {\r\n Day previousDay = Day.getInstance().inc(-1);\r\n this.fromDate = new Date(previousDay.getFirstTickOfTheDay() - 1);\r\n this.toDate = new Date(previousDay.getLastTickOfTheDay());\r\n }\r\n else {\r\n try {\r\n if (this.hasSetToAndFromDates()) {\r\n this.fromDate = new Date(Day.getInstance(this.dateFormat.parse(this.fromDateString))\r\n .getFirstTickOfTheDay() - 1);\r\n this.toDate = new Date(Day.getInstance(this.dateFormat.parse(this.toDateString))\r\n .getLastTickOfTheDay());\r\n }\r\n else {\r\n throw new BuildException(\r\n \"Attributes 'fromDate' and 'toDate' must either be both set or both not set.\");\r\n }\r\n }\r\n catch (ParseException ex) {\r\n throw new BuildException(\"Unable to parse 'fromDate' or 'toDate'.\", ex);\r\n }\r\n\r\n if (this.fromDate.compareTo(this.toDate) > 0) {\r\n throw new BuildException(\"Attribute 'fromDate' must be a date before 'toDate'.\");\r\n }\r\n }\r\n }", "public boolean validate(){\n return true;\n }", "@Override\n protected void update(ScanningContext context) {\n validateAttributes(context);\n }", "public void validate()\n\t{\t\t\n\t\t// calculate the corner position\n\t\tsetCorner(\n\t\t\t\tcalculateCornerPosition(\n\t\t\t\t\t\tgetCentrePosition(),\n\t\t\t\t\t\tgetHorizontalSpanVector(),\n\t\t\t\t\t\tgetVerticalSpanVector()\n\t\t\t\t\t)\n\t\t\t);\n\t}", "public void validate() throws org.apache.thrift.TException {\n if (cusPerBase != null) {\n cusPerBase.validate();\n }\n }", "public void validate() throws org.apache.thrift.TException {\n if (op == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'op' was not present! Struct: \" + toString());\n }\n // check for sub-struct validity\n }", "void calculateValidationRequirement() {\n this.elementRequiringJSR303Validation = Util.hasValidation(this.type);\n\n // Check for JSR 303 or @OnValidate annotations in default group\n if (Util.requiresDefaultValidation(this.type)) {\n this.requiresDefaultValidation = true;\n return;\n }\n\n // Check for any simple index uniqueness constraints\n if (!this.uniqueConstraintFields.isEmpty()) {\n this.requiresDefaultValidation = true;\n return;\n }\n\n // Check for any composite index uniqueness constraints\n if (!this.uniqueConstraintCompositeIndexes.isEmpty()) {\n this.requiresDefaultValidation = true;\n return;\n }\n }", "protected void validateAttribute(FactAttribute[] param) {\r\n\r\n }", "public Map<String, Object> validateComponentProperties(boolean isJobImported) {\n\t\tboolean componentHasRequiredValues = Boolean.TRUE;\n\t\thydrograph.ui.common.component.config.Component component = XMLConfigUtil.INSTANCE.getComponent(this.getComponentName());\n\t\tMap<String, Object> properties=this.properties;\n\t\tfor (Property configProperty : component.getProperty()) {\n\t\t\tObject propertyValue = properties.get(configProperty.getName());\n\t\t\t\n\t\t\tList<String> validators = ComponentCacheUtil.INSTANCE.getValidatorsForProperty(this.getComponentName(), configProperty.getName());\n\t\t\t\n\t\t\tIValidator validator = null;\n\t\t\tfor (String validatorName : validators) {\n\t\t\t\ttry {\n\t\t\t\t\tvalidator = (IValidator) Class.forName(Constants.VALIDATOR_PACKAGE_PREFIX + validatorName).newInstance();\n\t\t\t\t} catch (InstantiationException | IllegalAccessException | ClassNotFoundException e) {\n\t\t\t\t\tlogger.error(\"Failed to create validator\", e);\n\t\t\t\t\tthrow new RuntimeException(\"Failed to create validator\", e);\n\t\t\t\t}\n\t\t\t\tboolean status = validator.validate(propertyValue, configProperty.getName(),new SchemaData().getInputSchema(this),\n\t\t\t\t\t\tisJobImported);\n\t\t\t\t//NOTE : here if any of the property is not valid then whole component is not valid \n\t\t\t\tif(status == false){\n\t\t\t\t\tcomponentHasRequiredValues = Boolean.FALSE;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (!componentHasRequiredValues && properties.get(Component.Props.VALIDITY_STATUS.getValue()) == null)\n\t\t\tproperties.put(Component.Props.VALIDITY_STATUS.getValue(), Component.ValidityStatus.WARN.name());\n\t\telse if (!componentHasRequiredValues\n\t\t\t\t&& StringUtils.equals((String) properties.get(Component.Props.VALIDITY_STATUS.getValue()),\n\t\t\t\t\t\tComponent.ValidityStatus.WARN.name()))\n\t\t\tproperties.put(Component.Props.VALIDITY_STATUS.getValue(), Component.ValidityStatus.WARN.name());\n\t\telse if (!componentHasRequiredValues\n\t\t\t\t&& StringUtils.equals((String) properties.get(Component.Props.VALIDITY_STATUS.getValue()),\n\t\t\t\t\t\tComponent.ValidityStatus.ERROR.name()))\n\t\t\tproperties.put(Component.Props.VALIDITY_STATUS.getValue(), Component.ValidityStatus.ERROR.name());\n\t\telse if (!componentHasRequiredValues\n\t\t\t\t&& StringUtils.equals((String) properties.get(Component.Props.VALIDITY_STATUS.getValue()),\n\t\t\t\t\t\tComponent.ValidityStatus.VALID.name()))\n\t\t\tproperties.put(Component.Props.VALIDITY_STATUS.getValue(), Component.ValidityStatus.ERROR.name());\n\t\telse if (componentHasRequiredValues)\n\t\t\tproperties.put(Component.Props.VALIDITY_STATUS.getValue(), Component.ValidityStatus.VALID.name());\n\t\treturn properties;\n\t}", "public void validate() throws org.apache.thrift.TException {\n if (blockMasterInfo != null) {\n blockMasterInfo.validate();\n }\n }", "public void validateComponent() throws org.apache.ant.common.util.ExecutionException {\n if (refId == null) {\n throw new org.apache.ant.common.util.ExecutionException(\"\\\"refid\\\" attribute of \" + \"<reference> must be supplied\");\n }\n }", "@Override\r\n\tpublic boolean isValid() {\n\t\treturn false;\r\n\t}", "private void validateInputParameters(){\n\n }", "protected void validateConfiguration() {}", "private void validation() {\n this.validate();\n this.repaint();\n }", "private boolean validateAttributes(ScanningContext context) {\n // We only need to check if it's a non-framework file (and an XML file; skip .png's)\n if (!isFramework() && SdkUtils.endsWith(getFile().getName(), DOT_XML)) {\n ValidatingResourceParser parser = new ValidatingResourceParser(context, false);\n try {\n IAbstractFile file = getFile();\n return parser.parse(file.getOsLocation(), file.getContents());\n } catch (Exception e) {\n context.needsFullAapt();\n }\n\n return false;\n }\n\n return true;\n }", "public boolean validate() throws edu.mit.coeus.exception.CoeusUIException \r\n {\r\n return false;\r\n }", "@Override\n\tpublic boolean isValid() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isValid() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isValid() {\n\t\treturn false;\n\t}", "@Override\n\tprotected void doValidate() throws InstructionValidationException {\n\t}", "private void validateSAPAttributes(ValidationErrors errors)\n {\n if (position != null)\n {\n if (\n (position.getSapSalesCategory() != null && position.getSapSalesPosition() == null) ||\n (position.getSapSalesCategory() == null && position.getSapSalesPosition() != null)\n )\n {\n errors.addGlobalError(new LocalizableError(\"/admin/ManagePositionTypes.action.missingSAPAttributes\"));\n }\n }\n }" ]
[ "0.68911755", "0.68278253", "0.6612528", "0.65568024", "0.65454775", "0.64583683", "0.64498234", "0.6442942", "0.6416669", "0.64146435", "0.64007294", "0.630677", "0.62715906", "0.62715906", "0.6257582", "0.6256473", "0.6238839", "0.6238839", "0.6238839", "0.6208941", "0.62044084", "0.62035674", "0.618884", "0.6186848", "0.6186458", "0.6158569", "0.6123829", "0.6103808", "0.609855", "0.6087312", "0.605999", "0.6052681", "0.6047692", "0.6047692", "0.60466915", "0.60460705", "0.6044218", "0.60395086", "0.6036148", "0.6032129", "0.6020109", "0.6016768", "0.5990495", "0.5975542", "0.5957261", "0.5925329", "0.5920774", "0.5914229", "0.58990526", "0.5896389", "0.5894733", "0.5894665", "0.5853168", "0.58493483", "0.58480555", "0.5846875", "0.5846875", "0.5846875", "0.58430356", "0.5835087", "0.582504", "0.582504", "0.5820954", "0.579623", "0.5791925", "0.5790914", "0.57850873", "0.5766921", "0.57341707", "0.5719141", "0.5715194", "0.5693447", "0.5652313", "0.5645877", "0.5641834", "0.5626401", "0.56041145", "0.5602408", "0.55793554", "0.55741024", "0.5573688", "0.5566513", "0.55653274", "0.55631655", "0.5558145", "0.5547314", "0.55457", "0.55417156", "0.5528603", "0.5514456", "0.5502026", "0.5497424", "0.54969555", "0.5496015", "0.5494325", "0.54919404", "0.54778504", "0.54778504", "0.54778504", "0.5476173", "0.5473246" ]
0.0
-1
Register listener for MBean registration/unregistration
@Override public Set<ObjectName> doInBackground() { Register listener for MBean registration/unregistration // try { getMBeanServerConnection() .addNotificationListener(MBeanServerDelegate.DELEGATE_NAME, MBeansTab.this, null, null); } catch (InstanceNotFoundException e) { // Should never happen because the MBeanServerDelegate // is always present in any standard MBeanServer // if (JConsole.isDebug()) { e.printStackTrace(); } } catch (IOException e) { if (JConsole.isDebug()) { e.printStackTrace(); } vmPanel.getProxyClient().markAsDead(); return null; } // Retrieve MBeans from MBeanServer // Set<ObjectName> mbeans = null; try { mbeans = getMBeanServerConnection().queryNames(null, null); } catch (IOException e) { if (JConsole.isDebug()) { e.printStackTrace(); } vmPanel.getProxyClient().markAsDead(); return null; } return mbeans; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void registerListeners();", "private void createMBeanNotificationListener(ObjectName mBeanName, NotificationListener listener) {\n log.debug(\"Adding notification listener for JMXClient \" + url.getURLPath());\n try {\n mbsc.addNotificationListener(mBeanName, listener, null, null);\n } catch (InstanceNotFoundException | IOException e) {\n log.error(\"Unable to add notification listener\", e);\n }\n }", "public abstract void registerListeners();", "@Override\n\tpublic void registListener(IListener listener) throws RemoteException {\n\t\tremoteCallbackList.register(listener);\n\t}", "public void registerJMX() {\n Hashtable<String, String> tb = new Hashtable<String, String>();\n tb.put(\"type\", \"statistics\");\n tb.put(\"sessionFactory\", \"HibernateSessionFactory\");\n try {\n ObjectName on = new ObjectName(\"hibernate\", tb);\n MBeanServer mbs = ManagementFactory.getPlatformMBeanServer();\n if (!mbs.isRegistered(on)) {\n StatisticsService stats = new StatisticsService();\n stats.setSessionFactory(getSessionFactory());\n mbs.registerMBean(stats, on);\n ManagementService.registerMBeans(CacheManager.getInstance(),\n mbs, true, true, true, true);\n }\n } catch (Exception e) {\n logger.warn(\"Unable to register Hibernate and EHCache with JMX\");\n }\n\n }", "protected void registerListener() {\r\n\t\t// do nothing\r\n\t}", "public interface IConnectedRegisteredDevicesListenerManager {\n\n boolean addConnectedDevicesListener(ConnectedRegisteredDevicesListener listener);\n\n boolean removeConnectedDevicesListener(ConnectedRegisteredDevicesListener listener);\n\n}", "private static void registerEventListener() {\r\n\r\n log.info(\"Registering event listener for Listeners\"); //$NON-NLS-1$\r\n\r\n try {\r\n ObservationManager observationManager = ContentRepository\r\n .getHierarchyManager(ContentRepository.CONFIG)\r\n .getWorkspace()\r\n .getObservationManager();\r\n\r\n observationManager.addEventListener(new EventListener() {\r\n\r\n public void onEvent(EventIterator iterator) {\r\n // reload everything\r\n reload();\r\n }\r\n }, Event.NODE_ADDED\r\n | Event.NODE_REMOVED\r\n | Event.PROPERTY_ADDED\r\n | Event.PROPERTY_CHANGED\r\n | Event.PROPERTY_REMOVED, \"/\" + CONFIG_PAGE + \"/\" + \"IPConfig\", true, null, null, false); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$\r\n }\r\n catch (RepositoryException e) {\r\n log.error(\"Unable to add event listeners for Listeners\", e); //$NON-NLS-1$\r\n }\r\n }", "public void register(Observer obj);", "public void register(IMessageListener listener) {\r\n registry.register(listener);\r\n }", "public void addNotificationListener(ObjectName name,\r\n ObjectName listener,\r\n NotificationFilter filter,\r\n Object handback) throws InstanceNotFoundException, IOException {\r\n if (logger.isLoggable(BasicLevel.DEBUG))\r\n logger.log(BasicLevel.DEBUG,\r\n \"MBSConnectionDelegate.addNotificationListener(\" + name + \", ..)\");\r\n\r\n throw new IOException(\"Not yet implemented\");\r\n \r\n// NotificationListenerDesc desc = new NotificationListenerDesc(name, null, filter, handback);\r\n// List<NotificationListenerDesc> list = hashTableNotificationListener.get(name);\r\n// if (list == null) {\r\n// // Send the request to the JMX connector server then insert the\r\n// // NotificationListener descriptor in the map.\r\n// list = new Vector();\r\n// desc.key = (Long) poolRequestors.request(new AddNotificationListener(name, qnotid));\r\n// list.add(desc);\r\n// \r\n// hashTableNotificationListener.put(name, list);\r\n// } else {\r\n// // The subscription is already active, just add the NotificationListener\r\n// // descriptor in the map.\r\n// desc.key = list.get(0).key;\r\n// list.add(list.size(), desc);\r\n// }\r\n }", "public void registerListener(IMountServiceListener listener) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeStrongBinder((listener != null ? listener.asBinder() : null));\n mRemote.transact(Stub.TRANSACTION_registerListener, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }", "public void addNotificationListener(ObjectName name,\r\n NotificationListener listener,\r\n NotificationFilter filter,\r\n Object handback) throws InstanceNotFoundException, IOException {\r\n if (logger.isLoggable(BasicLevel.DEBUG))\r\n logger.log(BasicLevel.DEBUG,\r\n \"MBSConnectionDelegate.addNotificationListener(\" + name + \", ..)\");\r\n\r\n NotificationListenerDesc desc = new NotificationListenerDesc(name, listener, filter, handback);\r\n List<NotificationListenerDesc> list = hashTableNotificationListener.get(name);\r\n if (list == null) {\r\n // Send the request to the JMX connector server then insert the\r\n // NotificationListener descriptor in the map.\r\n list = new Vector();\r\n desc.key = (Long) poolRequestors.request(new AddNotificationListener(name, qnotid));\r\n System.out.println(\"addNotificationListener: name=\" + name + \", key=\" + desc.key);\r\n list.add(desc);\r\n \r\n hashTableNotificationListener.put(name, list);\r\n } else {\r\n // The subscription is already active, just add the NotificationListener\r\n // descriptor in the map.\r\n desc.key = list.get(0).key;\r\n System.out.println(\"addNotificationListener: name=\" + name + \", key=\" + desc.key);\r\n list.add(list.size(), desc);\r\n }\r\n }", "public static void register(Object mbean, ObjectName objName) {\n try {\n getMBeanServer().registerMBean(mbean, objName);\n }\n catch (InstanceAlreadyExistsException | MBeanRegistrationException | NotCompliantMBeanException e) {\n throw new RuntimeException(e);\n }\n }", "@Override\n public void registerConnectorListener(RemoteConnectorListener listener) {\n connectorListeners.add(listener);\n }", "public void registerListener(IMountServiceListener listener) throws RemoteException;", "public void register(IObserver obj);", "void addChangeListener( RegistryListener listener );", "public abstract void addListener(RegistryChangeListener listener);", "@Override\r\n public void register(L listener) {\r\n if (weakHandler) {\r\n registerWeak(listener);\r\n return;\r\n }\r\n synchronized (listeners) {\r\n if (!contains(listener)) listeners.put(listener, \"\");\r\n }\r\n }", "public interface NetworkRegistryMBean extends NotificationBroadcaster, MBeanRegistration\n{\n /**\n * return the servers on the network\n *\n * @return\n */\n public NetworkInstance[] getServers();\n\n /**\n * add a server for a given identity that is available on the network\n *\n * @param identity\n * @param invokers\n */\n public void addServer(Identity identity, ServerInvokerMetadata invokers[]);\n\n /**\n * remove a server no longer available on the network\n *\n * @param identity\n */\n public void removeServer(Identity identity);\n\n /**\n * update the invokers for a given server\n *\n * @param identity\n * @param invokers\n */\n public void updateServer(Identity identity, ServerInvokerMetadata invokers[]);\n\n /**\n * returns true if the server with the identity is available\n *\n * @param identity\n * @return\n */\n public boolean hasServer(Identity identity);\n\n /**\n * query the network registry for <tt>0..*</tt> of servers based on a\n * filter\n *\n * @param filter\n * @return\n */\n public NetworkInstance[] queryServers(NetworkFilter filter);\n\n /**\n * change the main domain of the local server\n *\n * @param newDomain\n */\n public void changeDomain(String newDomain);\n}", "@Override\n public void registerObserver(Observer ob) {\n this.observers.add(ob);\n System.out.println(\"** Sistema: Observado \" + this.getClass().getName() + \" - Observador \" + ob.getClass().getName() + \" está registrado.\");\n }", "@Override\n public void registrarObsevador(ObservadorDeMano observador)\n {\n observadoresMano.add(observador);\n }", "@Override\r\n\tpublic void startup() {\n\t\tif(!initialized)\r\n\t\t\tinitOperation();\r\n\t\tregisterMBean();\r\n\t}", "@Override\n public void register(Object subscriber) {\n }", "protected void installListeners() {\n\n\t}", "public void addListener(MoocListener listener) {\n\n\t\ttry {\n\t\t\t logger.info(\"add listener in MoocChannel is called and its \"+handler);\n\t\t\thandler.addListener(listener);\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"failed to add listener\", e);\n\t\t}\n\t}", "protected void installListeners() {\n }", "protected void installListeners() {\n }", "protected abstract void registerObserver();", "public void registerObserver(Observer observer);", "protected void installListeners() {\n\t}", "private void registrarListeners() {\n ventanaAgregarOperador.agregarListenerBotonGuardarNuevoOperador(new VentanaAgregarOperadorBotonGuardarAL());\n ventanaEditarOperador.agregarListenerBotonGuardarDatosModificados(new VentanaEditarOperadorBotonGuardarAL());\n\n }", "@Override\n\tpublic void registerManager(ManagerAppInterface ma) throws RemoteException {\n\t\t\n\t\tthis.ma = ma;\n\t}", "public void register() {\r\n\t\tpanel.setActiveListener(this);\r\n\t\tpanel.setActiveMotionListener(this);\r\n\t}", "public void register(){\n }", "public void registerObserver(Observer ob){\r\n\t\tobservers.add(ob);\r\n\t}", "public void register(Observer or);", "public void registerListener(RMContainerRegistryListener listener)throws IllegalArgumentException{\n \tif(theListener != null && theListener != listener){\n \t\tthrow new IllegalArgumentException(\"Another is already registered. Registration of more listeners is not supported\");\n \t}\n \ttheListener = listener;\n }", "private void initJMX() throws Exception{\n\t\tMap env = new HashMap<String, Object>();\r\n\t\tenv.put(Context.INITIAL_CONTEXT_FACTORY,\"com.sun.jndi.rmi.registry.RegistryContextFactory\");\r\n\t\tenv.put(RMIConnectorServer.JNDI_REBIND_ATTRIBUTE, \"true\");\r\n\t\tJMXServiceURL url = new JMXServiceURL(\"service:jmx:rmi:///jndi/rmi://127.0.0.1:1099/server\");\r\n\t\tObjectName objectName=ObjectName.getInstance(\"test:name=test\");\r\n\t\tManagementFactory.getPlatformMBeanServer().registerMBean(MBeanHandler.createJMXMBean(new AdminAgent(),objectName), objectName);\r\n\t\t\r\n\t\tRegion region=CacheFactory.getAnyInstance().getRegion(\"/CHECK\");\t\r\n\t\tObjectName regionObjectName=ObjectName.getInstance(\"region:name=region\");\r\n\t\tManagementFactory.getPlatformMBeanServer().registerMBean(MBeanHandler.createJMXMBean(new RegionAgent(region),regionObjectName), regionObjectName);\r\n\t\tJMXConnectorServer connectorServer = JMXConnectorServerFactory\r\n\t\t.newJMXConnectorServer(url, env, ManagementFactory.getPlatformMBeanServer());\r\n connectorServer.start();\r\n\t\t\r\n//\t\tMBeanHandler.createJMXMBean(new AdminAgent(), ObjectNameFactory.resolveFromClass(AdminAgent.class));\r\n//\t\tjmxserver.registerMBean(new AdminAgent(), ObjectNameFactory.resolveFromClass(AdminAgent.class));\r\n\t\tSystem.out.println(\"JMX connection is established on: service:jmx:rmi:///jndi/rmi://127.0.0.1:1099/server\");\r\n\t\t\r\n\t}", "public interface ServerRegisterListener {\r\n \r\n /**\r\n * Register server listener.\r\n *\r\n * @param server the server\r\n */\r\n public void registerServerListener(Server server);\r\n \r\n}", "public interface HelloMBean {\r\n\t/**\r\n\t * setting the value of message as userdefined string\r\n\t * @param message\r\n\t */\r\n\tpublic void setMessage(String message);\r\n\t/**\r\n\t * getting the value of message \r\n\t * @return message\r\n\t */\r\n\tpublic String getMessage();\r\n\t/**\r\n\t * To publish the hello statement to user\r\n\t * @param name\r\n\t * @return String\r\n\t */\r\n\tpublic String sayHello(String name);\r\n\t/**\r\n\t * just to say hi\r\n\t */\r\n\tpublic void sayHi();\r\n\r\n}", "public void addDeviceListener(DeviceDriverListener device);", "void registerReceiver(IReceiver receiver);", "public void onServiceRegistered() {\r\n \t// Nothing to do here\r\n }", "void addRefreshListener(RefreshListener listener) throws RemoteException;", "@Override\n public void registerObserver(Observer o){\n this.observers.add(o);\n }", "public static void main(String[] args) throws MalformedObjectNameException, InstanceAlreadyExistsException,\n\t\t\tMBeanRegistrationException, NotCompliantMBeanException, InterruptedException {\n\t\tMBeanServer server = ManagementFactory.getPlatformMBeanServer();\n\t\tObjectName myJmxName = new ObjectName(\"jmxBean:name=myJmx\");\n\t\tserver.registerMBean(new MyJmx(), myJmxName);\n\t\tThread.sleep(60 * 60 * 1000);\n\t}", "@Override\r\n\tpublic void registerObserver(BpmObserver o) {\n\r\n\t}", "public void registerObs(Node obs){\r\n this.listeners.add(obs);\r\n }", "public void registerWithServer();", "public void registerObserver(ModelObserver mo){\n\t\tcontrollers.add(mo);\n\t}", "public abstract void addServiceListener(PhiDiscoverListener listener);", "public interface Lifecycle {\n\n /**\n * Called when an MBean is started\n *\n * @throws Exception if something went wrong.\n */\n void start() throws Exception;\n\n /**\n * Called when an MBean is stopped\n */\n void stop();\n}", "@Override\r\n\tpublic void shutdown() {\n\t\tunRigisterMBean();\r\n\t}", "public interface MainMBean\n{\n // Attributes ---------------------------------------------------\n \n void setRmiPort(int port);\n int getRmiPort();\n \n void setPort(int port);\n int getPort();\n\n void setBindAddress(String host) throws UnknownHostException; \n String getBindAddress();\n\n void setRmiBindAddress(String host) throws UnknownHostException; \n String getRmiBindAddress();\n\n void setBacklog(int backlog); \n int getBacklog();\n\n /** Whether the MainMBean's Naming server will be installed as the NamingContext.setLocal global value */\n void setInstallGlobalService(boolean flag);\n boolean getInstallGlobalService();\n\n /** Get the UseGlobalService which defines whether the MainMBean's\n * Naming server will initialized from the existing NamingContext.setLocal\n * global value.\n * \n * @return true if this should try to use VM global naming service, false otherwise \n */ \n public boolean getUseGlobalService();\n /** Set the UseGlobalService which defines whether the MainMBean's\n * Naming server will initialized from the existing NamingContext.setLocal global\n * value. This allows one to export multiple servers via different transports\n * and still share the same underlying naming service.\n * \n * @return true if this should try to use VM global naming service, false otherwise \n */ \n public void setUseGlobalService(boolean flag);\n\n /** The RMIClientSocketFactory implementation class */\n void setClientSocketFactory(String factoryClassName)\n throws ClassNotFoundException, InstantiationException, IllegalAccessException;\n String getClientSocketFactory();\n \n /** The RMIServerSocketFactory implementation class */\n void setServerSocketFactory(String factoryClassName)\n throws ClassNotFoundException, InstantiationException, IllegalAccessException;\n String getServerSocketFactory();\n\n /** The JNPServerSocketFactory implementation class */\n void setJNPServerSocketFactory(String factoryClassName) \n throws ClassNotFoundException, InstantiationException, IllegalAccessException;\n\n // Operations ----------------------------------------------------\n \n public void start() throws Exception;\n \n public void stop();\n \n}", "@Override\n\tpublic void register(Subscriber m) {\n\t\tsubscribersMessages.put(m,new ConcurrentLinkedQueue<>());\n\t}", "public abstract void unregisterListeners();", "private void regFliter() {\n\t\tIntentFilter filter = new IntentFilter();\r\n\t\tfilter.addAction(OsConstants.JSH.ADD_DEVICES_SUCCES);\r\n\t\tfilter.addAction(OsConstants.JSH.SETTIING_WIFI_SUCCESS);\r\n\t\tregisterReceiver(mReceiver, filter);\r\n\t}", "public interface IResourceRegistrationProvider {\n\n public void addResourceRegisteredListener(\n IResourceRegisteredListener listener);\n\n public void removeResourceRegisteredListener(\n IResourceRegisteredListener listener);\n\n public List<IResourceRegisteredListener> getResourceRegisteredListeners();\n}", "@Override\r\n\tpublic void register() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void registerObservers(Observer o) {\n\t\tobservers.add(o);\r\n\t}", "public interface GCMRegisterListener {\n public void onGCMRegisterComplete(String result);\n}", "protected void register() {\r\n\t\tif ((audioFile != null) && (audioFile instanceof AudioFileURL)) {\r\n\t\t\t((AudioFileURL) audioFile).addListener(this);\r\n\t\t}\r\n\t}", "static void registerInternalMBeans(MBeanServer paramMBeanServer)\n/* */ {\n/* 396 */ addMBean(paramMBeanServer, getHotspotClassLoadingMBean(), \"sun.management:type=HotspotClassLoading\");\n/* */ \n/* 398 */ addMBean(paramMBeanServer, getHotspotMemoryMBean(), \"sun.management:type=HotspotMemory\");\n/* */ \n/* 400 */ addMBean(paramMBeanServer, getHotspotRuntimeMBean(), \"sun.management:type=HotspotRuntime\");\n/* */ \n/* 402 */ addMBean(paramMBeanServer, getHotspotThreadMBean(), \"sun.management:type=HotspotThreading\");\n/* */ \n/* */ \n/* */ \n/* 406 */ if (getCompilationMXBean() != null) {\n/* 407 */ addMBean(paramMBeanServer, getHotspotCompilationMBean(), \"sun.management:type=HotspotCompilation\");\n/* */ }\n/* */ }", "synchronized void registerListener(String connectorId,\n WatchdogGovernanceListener listener,\n List<WatchdogEventType> interestingEventTypes,\n List<String> interestingMetadataTypes,\n String specificInstance) throws InvalidParameterException\n {\n WatchdogListener watchdogListener = listenerMap.get(connectorId);\n\n if (watchdogListener == null)\n {\n watchdogListener = new WatchdogListener();\n }\n\n watchdogListener.setListenerSpec(listener, interestingEventTypes, interestingMetadataTypes, specificInstance);\n\n listenerMap.put(connectorId, watchdogListener);\n }", "void registerUpdateListener(IUpdateListener listener);", "@Override\r\n public void registerWeak(L listener) {\r\n synchronized (listeners) {\r\n weak.put(listener, \"\");\r\n }\r\n }", "public void onObjectRegistration(ObjectContainer container)\n {\n }", "@Override\n public void attach(IObserver observer) {\n listeners.add(observer);\n }", "public void addDirectorToHmiEventListener( DirectorToHmiEventListener listener );", "void unregisterListeners();", "public void register() {\n IntentFilter intentFilter = new IntentFilter();\n intentFilter.addAction(\"android.intent.action.AIRPLANE_MODE\");\n if (this.dispatcher.scansNetworkChanges) {\n intentFilter.addAction(\"android.net.conn.CONNECTIVITY_CHANGE\");\n }\n this.dispatcher.context.registerReceiver(this, intentFilter);\n }", "@Override\n public void register() {\n }", "public void register(RegistrationData d) {}", "private void unRegisterLoggingMBean() throws Exception {\n MBeanServer server = ManagementFactory.getPlatformMBeanServer();\n ObjectName loggerObjectName = new ObjectName(\"com.yammer:type=Logging\");\n if (server.isRegistered(loggerObjectName)) {\n server.unregisterMBean(loggerObjectName);\n }\n }", "public void registerForSimNameChange(Handler h, int what, Object obj) {\n Registrant r = new Registrant (h, what, obj);\n\n synchronized (INSTANCE_LOCK) {\n mMultiSimNamesRegistrants.add(r);\n }\n }", "@Override\r\n\tpublic void registerObserver(Observer observer) {\n\t\t\r\n\t}", "String registerObserver(StreamObserver observer);", "public NewUserMBean() {\r\n }", "private void setListeners() {\n\n }", "public synchronized void addListener(IIpcEventListener listener) {\n\t\tlisteners.add(listener);\n\t}", "public static void main(String[] args) throws MalformedObjectNameException, InstanceAlreadyExistsException,\n\t\t\tMBeanRegistrationException, NotCompliantMBeanException {\n\t\tMBeanServer server = ManagementFactory.getPlatformMBeanServer();\n\t\tObjectName myJmxName = new ObjectName(\"jmxBean:name=myJmx\");\n\t\tserver.registerMBean(new MyJmx(), myJmxName);\n// TODO Auto-generated method stub\n\t\ttry {\n\t\t\tLocateRegistry.createRegistry(9999);\n\t\t\tJMXServiceURL url = new JMXServiceURL(\"service:jmx:rmi:///jndi/rmi://localhost:9999/jmxrmi\");\n\t\t\tJMXConnectorServer jcs = JMXConnectorServerFactory.newJMXConnectorServer(url, null, server);\n\t\t\tSystem.out.println(\"begin rmi start\");\n\t\t\tjcs.start();\n\t\t\tSystem.out.println(\"rmi start\");\n\t\t} catch (RemoteException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "void register(String name, Object bean);", "public interface OnRegistrationListener {\n void onRegistrationSuccess();\n void onRegistrationFailed(String message);\n}", "private static void addMBean(MBeanServer paramMBeanServer, Object paramObject, String paramString)\n/* */ {\n/* */ try\n/* */ {\n/* 342 */ final ObjectName localObjectName = Util.newObjectName(paramString);\n/* */ \n/* */ \n/* 345 */ MBeanServer localMBeanServer = paramMBeanServer;\n/* 346 */ final Object localObject = paramObject;\n/* 347 */ AccessController.doPrivileged(new PrivilegedExceptionAction()\n/* */ {\n/* */ public Void run() throws MBeanRegistrationException, NotCompliantMBeanException {\n/* */ try {\n/* 351 */ this.val$mbs0.registerMBean(localObject, localObjectName);\n/* 352 */ return null;\n/* */ }\n/* */ catch (InstanceAlreadyExistsException localInstanceAlreadyExistsException) {}\n/* */ \n/* */ \n/* 357 */ return null;\n/* */ }\n/* */ });\n/* */ } catch (PrivilegedActionException localPrivilegedActionException) {\n/* 361 */ throw Util.newException(localPrivilegedActionException.getException());\n/* */ }\n/* */ }", "public void registerListener(DataManagerEventListener listener) throws InvalidParameterException,\n ConnectionCheckedException,\n ConnectorCheckedException,\n PropertyServerException,\n UserNotAuthorizedException\n {\n eventClient.registerListener(userId, listener);\n }", "void addListener( ConfigurationListener listener );", "public void registerMBean(final String beanNamePrefix)\n throws InstanceAlreadyExistsException, MBeanRegistrationException, NotCompliantMBeanException, MalformedObjectNameException {\n final MBeanServer mbs = ManagementFactory.getPlatformMBeanServer();\n final StringBuilder mBeanNameBuilder = new StringBuilder(beanNamePrefix);\n mBeanNameBuilder.append(\":type=\").append(this.getClass().getSimpleName());\n mBeanNameBuilder.append(\",id=\").append(UUID.randomUUID());\n mbs.registerMBean(this, new ObjectName(mBeanNameBuilder.toString()));\n mBeanName = mBeanNameBuilder.toString();\n }", "private void createMBeanProxy(Class<? extends MBeanInf> mbeanClass, String objectName) {\n ObjectName mbeanName = null;\n try {\n mbeanName = new ObjectName(objectName);\n } catch (MalformedObjectNameException e) {\n log.error(\"Unable to create object name from \" + objectName, e);\n return;\n }\n\n MBeanInf mBean = JMX.newMBeanProxy(mbsc, mbeanName, mbeanClass, true);\n\n ClientListener listener = new ClientListener(url);\n createMBeanNotificationListener(mbeanName, listener);\n beans.add(mBean);\n }", "@Override\n\tpublic void addListener() {\n\t\t\n\t}", "public void register() {\n unregister();\n Log.d(TAG, \"[register in eventbus]\");\n EventBus.getDefault().register(this);\n }", "public void registerListener() {\n mPhone.listen(mPhoneStateListener,\n PhoneStateListener.LISTEN_SERVICE_STATE\n | PhoneStateListener.LISTEN_SIGNAL_STRENGTHS\n | PhoneStateListener.LISTEN_CALL_STATE\n | PhoneStateListener.LISTEN_DATA_CONNECTION_STATE\n | PhoneStateListener.LISTEN_DATA_ACTIVITY\n | PhoneStateListener.LISTEN_CARRIER_NETWORK_CHANGE);\n mContext.getContentResolver().registerContentObserver(Global.getUriFor(Global.MOBILE_DATA),\n true, mObserver);\n mContext.getContentResolver().registerContentObserver(Global.getUriFor(\n Global.MOBILE_DATA + mSubscriptionInfo.getSubscriptionId()),\n true, mObserver);\n /* SPRD: only show one sim icon after many time hotplug for bug 672530. @{ */\n if (mIsRegImsChange) {// SPRD: Bug 806908 add For VoWiFi icon\n Log.d(mTag, \"registerListener ,mIsVoLteBoard: \" + mIsVoLteBoard + \" address: \"\n + super.toString());\n IntentFilter filter = new IntentFilter();\n filter.addAction(ImsManager.ACTION_IMS_SERVICE_UP);\n filter.addAction(ImsManager.ACTION_IMS_SERVICE_DOWN);\n mContext.registerReceiver(mImsIntentReceiver, filter);\n // SPRD: modify for bug723743\n mIsImsReceiverRegistered = true;\n tryRegisterImsListener();\n }\n /* @} */\n // SPRD: modify for bug693456\n mContext.registerReceiver(mModemStateChangeReciver, new IntentFilter(ACTION_MODEM_CHANGE));\n // SPRD: modify for bug723743\n mIsModemReciverRegistered = true;\n /* SPRD: Dual volte signalStrength display for bug 666045. @{ */\n refreshDualVoLTEListener();\n IntentFilter intentFilter = new IntentFilter();\n intentFilter.addAction(TelephonyIntents.ACTION_DEFAULT_DATA_SUBSCRIPTION_CHANGED);\n intentFilter.addAction(TelephonyIntents.ACTION_SIM_STATE_CHANGED);\n mContext.registerReceiver(mReceiver, intentFilter);\n /* @} */\n }", "public void registerService(Registrant r) {\n namingService.registerService(r);\n }", "private void registerObserver(Intent intent) {\n C2DMObserver observer = C2DMObserver.createFromIntent(intent);\n observers.add(observer);\n C2DMSettings.setObservers(context, observers);\n if (C2DMSettings.hasC2DMRegistrationId(context)) {\n onRegisteredSingleObserver(C2DMSettings.getC2DMRegistrationId(context), observer);\n } else {\n if (!isRegistrationInProcess()) {\n register();\n }\n }\n }", "protected synchronized void register(OnAccelerometerListener listener) {\n if (mOnAccelerometerListeners.isEmpty()) {\n // if was empty – register for system events before adding the listener\n mSensorManager.registerListener(this, mSensor, SensorManager.SENSOR_DELAY_NORMAL);\n }\n mOnAccelerometerListeners.add(listener);\n }", "public void registerObserver(Observer o) {\n observers.add(o);\n }", "private void createListeners() {\n int qa = beanQueryAdapterManager.getRegisterCount();\n int cc = persistControllerManager.getRegisterCount();\n int pl = postLoadManager.getRegisterCount();\n int pc = postConstructManager.getRegisterCount();\n int lc = persistListenerManager.getRegisterCount();\n int fc = beanFinderManager.getRegisterCount();\n log.log(DEBUG, \"BeanPersistControllers[{0}] BeanFinders[{1}] BeanPersistListeners[{2}] BeanQueryAdapters[{3}] BeanPostLoaders[{4}] BeanPostConstructors[{5}]\", cc, fc, lc, qa, pl, pc);\n }", "public interface FilterServiceManagementMBean {\n\n\t/**\n\t * Return all registered filters\n\t * \n\t * @return a list of known filters\n\t */\n\tList<String> getFilters();\n\n\t/**\n\t * Return all active with higher priority filter by service\n\t * \n\t * @return a list of used filters\n\t */\n\tList<String> getActiveFilters();\n\n\t/**\n\t * Launch the reinitialization of the filter list (relaod form disk)\n\t * \n\t * @throws IOException\n\t * if an error while reading the file system\n\t */\n\tvoid reinitFilters() throws IOException;\n\n}", "@Override\n public void registerObserver(Observer o) {\n list.add(o);\n \n }" ]
[ "0.66832024", "0.6650512", "0.6593249", "0.63144296", "0.6246857", "0.6100858", "0.6068028", "0.6013596", "0.6006433", "0.5963576", "0.59157956", "0.5903877", "0.58935004", "0.58886063", "0.58854115", "0.58775777", "0.58603245", "0.5839592", "0.5814793", "0.58117527", "0.5796103", "0.5788775", "0.5770139", "0.5730455", "0.5728619", "0.57209563", "0.56755733", "0.56668353", "0.56668353", "0.566106", "0.56459904", "0.56308126", "0.56261784", "0.5625688", "0.56145054", "0.5608034", "0.55700785", "0.5566394", "0.556585", "0.555693", "0.5543377", "0.55385244", "0.5523604", "0.54876316", "0.5459994", "0.5458935", "0.5446053", "0.54287505", "0.5427447", "0.54122597", "0.5407858", "0.5406022", "0.539184", "0.53914016", "0.53857785", "0.53792197", "0.5369543", "0.535881", "0.53585327", "0.5351296", "0.5351291", "0.5340374", "0.5334183", "0.5329973", "0.53285193", "0.5309708", "0.53078145", "0.5299483", "0.5291007", "0.5290402", "0.5290362", "0.5290297", "0.5289726", "0.52846014", "0.52783823", "0.5273795", "0.5264676", "0.5261999", "0.5261835", "0.52487713", "0.52481735", "0.5243049", "0.5238213", "0.52370614", "0.5232178", "0.5225461", "0.5224904", "0.5223831", "0.521905", "0.5215156", "0.5212495", "0.5211303", "0.52039206", "0.52001125", "0.51996267", "0.51967573", "0.51927453", "0.51873857", "0.51870656", "0.5185667" ]
0.5598559
36
Ping the connection to see if it is still alive. At some point the ProxyClient class should centralize the connection aliveness monitoring and no longer rely on the custom tabs to ping the connections.
@Override public void update() { Ping the connection to see if it is still alive. At // some point the ProxyClient class should centralize // the connection aliveness monitoring and no longer // rely on the custom tabs to ping the connections. // try { getMBeanServerConnection().getDefaultDomain(); } catch (IOException ex) { vmPanel.getProxyClient().markAsDead(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Boolean ping() throws CallError, InterruptedException {\n return (Boolean)service.call(\"ping\").get();\n }", "protected void ping() {\n\t\tpingCount ++;\n\t\tif(pingCount > 5) {\n\t\t\tlog.debug(\"pingCount is exceed, so close this connection.\");\n\t\t\tclose();\n\t\t\treturn;\n\t\t}\n\t\tsendData(\"<ping />\");\n\t}", "public boolean ping();", "public boolean isPing()\n {\n return _isPing;\n }", "public boolean connectionAlive() throws RemoteException;", "private void startPinging() {\n Bukkit.getScheduler().runTaskTimerAsynchronously(plugin, new Runnable() {\n @Override\n public void run() {\n HashSet<Connection> connectionsSet = new HashSet<>(connections); //Create new hashset of connections\n for (Connection connection : connectionsSet) { //Loop thru connections\n boolean stillInConnections = false;\n synchronized (connections) { //Check if connection still in the array\n if (connections.contains(connection)) {\n stillInConnections = true;\n }\n }\n if (stillInConnections) { //If still in array\n try { //Try to ping\n connection.isValid(5);\n } catch (SQLException e) { //If not valid anymore\n synchronized (connections) { //Remove from array\n connections.remove(connection);\n }\n closeConnection(connection); //Close the connection\n }\n }\n }\n }\n }, 17000, 17000);\n }", "public boolean ping() throws RemoteException;", "public boolean IsReachable(Context context) {\n final ConnectivityManager connMgr = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);\n final NetworkInfo netInfo = connMgr.getActiveNetworkInfo();\n boolean isReachable = false;\n\n if (netInfo != null && netInfo.isConnected()) {\n // Some sort of connection is open, check if server is reachable\n try {\n URL url = new URL(\"http://\"+ipAddress);\n HttpURLConnection urlc = (HttpURLConnection) url.openConnection();\n urlc.setRequestProperty(\"User-Agent\", \"Android Application\");\n urlc.setRequestProperty(\"Connection\", \"close\");\n urlc.setConnectTimeout(10 * 2000);\n urlc.connect();\n isReachable = (urlc.getResponseCode() == 200);\n } catch (IOException e) {\n //Log.e(TAG, e.getMessage());\n }\n }\n\n return isReachable;\n }", "private static boolean isServerReachable() {\n\t\treturn new PingRpcExample().pingServer();\n\t}", "@Override\n public String ping() {\n return super.ping();\n }", "public boolean Ping() throws RemoteException;", "public boolean keepAliveEnabled();", "public void ping() throws IOException {\r\n\t\t//Pings the server\r\n\t\tthis.send(\"!ping\");\r\n\t\t//Updates the time since the ping\r\n\t\ttimeSincePing = System.currentTimeMillis();\r\n\t\t//System.out.println(\"Ping!\");\r\n\t}", "public boolean testConnection() {\r\n boolean toReturn = true;\r\n\r\n String[] paramFields = {};\r\n SocketMessage request = new SocketMessage(\"admin\", \"ping\", SocketMessage.PriorityType.EMERGENCY, SocketMessage.TransferType.BI_WAY, \"\", paramFields);\r\n SocketMessage response = handleMessage(request);\r\n if (isSuccessful(response)) {\r\n toReturn = true;\r\n } else {\r\n toReturn = false;\r\n }\r\n\r\n return toReturn;\r\n }", "public Future<Boolean> ping() throws DynamicCallException, ExecutionException {\n return call(\"ping\");\n }", "public boolean getPingOnReuse()\n {\n return _isPing;\n }", "public boolean getPingOnIdle()\n {\n return _isPing;\n }", "public void pingToClient() {\n Thread t = new Thread(() -> {\n while (connected) {\n try {\n Thread.sleep(1000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n try {\n socketOut.writeObject(\"\");\n } catch (IOException e) {\n //e.printStackTrace();\n }\n }\n });\n t.start();\n }", "public boolean hasActiveInternetConnection()\n {\n Runtime runtime = Runtime.getRuntime();\n try {\n Process ipProcess = runtime.exec(\"/system/bin/ping -c 1 8.8.8.8\");\n int exitValue = ipProcess.waitFor();\n return (exitValue == 0);\n } catch (IOException e) {\n e.printStackTrace();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n return false;\n }", "private Callable<Boolean> isReachable() {\n return () -> {\n try {\n if (!isOnline()) {\n return false;\n }\n\n URL url = new URL(\"https://api.vk.com\"); //url for ex.\n HttpURLConnection httpURLConnection = (HttpURLConnection) url.openConnection();\n httpURLConnection.setConnectTimeout(2000);\n httpURLConnection.connect();\n\n return true;\n } catch (Exception e) {\n return false;\n }\n };\n }", "final boolean checkAlive() {\r\n\t\t\r\n\t\tif (this.conn == null) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tif (this.conn.isClosed()) {\r\n\t\t\t\tthis.conn = null;\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\tif (--this.loops < 0 || this.date < System.currentTimeMillis()) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tthis.conn.close();\r\n\t\t\t\t} catch (final Throwable t) {\r\n\t\t\t\t\t// ignore\r\n\t\t\t\t}\r\n\t\t\t\tthis.conn = null;\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\tif (this.databaseType == ConnectionHolder.DT_UNKNOWN) {\r\n\t\t\t\tthis.databaseType = this.conn.getMetaData().getDatabaseProductName().toUpperCase().indexOf(\"ORACLE\") == -1\r\n\t\t\t\t\t? ConnectionHolder.DT_NORMAL\r\n\t\t\t\t\t: ConnectionHolder.DT_ORACLE;\r\n\t\t\t}\r\n\t\t\ttry (final Statement st = this.conn.createStatement()) {\r\n\t\t\t\t/** Do not use it here, may be unsupported? */\r\n\t\t\t\ttry {\r\n\t\t\t\t\tst.setQueryTimeout(10);\r\n\t\t\t\t} catch (final Throwable t) {\r\n\t\t\t\t\t// ignore\r\n\t\t\t\t}\r\n\t\t\t\tst.execute(\r\n\t\t\t\t\t\tthis.databaseType == ConnectionHolder.DT_ORACLE\r\n\t\t\t\t\t\t\t? \"SELECT 5 FROM DUAL\"\r\n\t\t\t\t\t\t\t: \"SELECT 5\");\r\n\t\t\t}\r\n\t\t\treturn true;\r\n\t\t} catch (final SQLException e) {\r\n\t\t\tif (this.conn != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tthis.conn.close();\r\n\t\t\t\t} catch (final Throwable t) {\r\n\t\t\t\t\t// ignore\r\n\t\t\t\t}\r\n\t\t\t\tthis.conn = null;\r\n\t\t\t}\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public Boolean ping() throws DynamicCallException, ExecutionException {\n return (Boolean)call(\"ping\").get();\n }", "public void ping() throws RemoteException{\n return;\n }", "protected synchronized boolean checkConnectivity() {\n return this.connect();\n }", "public void ping() {\n JsonNode rootNode = get(\"ping\");\n\n // TODO verify that the response was \"Pong!\"\n JsonNode dataNode = rootNode.get(\"data\");\n String pong = dataNode.asText();\n }", "public boolean pingServer() {\n WifiMouseApplication.KnownServer selected = WifiMouseApplication.getSelectedServer();\n if(this.server.name != selected.name || this.server.bluetooth != selected.bluetooth)\n return false;\n\n sendStringOverNetwork(\"PING\", true);\n //Log.d(\"Waiting for ping...\", \"count: \"+(++count) +\", sessionIv: \"+sessionIV);\n String response = readStringFromNetwork(true);\n //Log.d(\"PingResponse\", \" \"+response);\n\n return response.equals(\"PING\");\n }", "public ModelApiResponse ping() throws AuthenticationApiException {\n try {\n return authenticationApi.ping();\n } catch (ApiException e) {\n throw new AuthenticationApiException(\"Error during keep alive ping\", e);\n }\n }", "public static void ping() {}", "public static void ping() {}", "private void doPing()\r\n {\r\n requestQueue.add( new ChargerHTTPConn( weakContext,\r\n CHARGE_NODE_JSON_DATA, \r\n PING_URL,\r\n SN_HOST,\r\n null, \r\n cookieData,\r\n false,\r\n token,\r\n secret ) );\r\n }", "public boolean isNetworkReachable();", "public boolean isOnline() {\n Runtime runtime = Runtime.getRuntime();\n try {\n Process ipProcess = runtime.exec(\"/system/bin/ping -c 1 8.8.8.8\");\n int exitValue = ipProcess.waitFor();\n return (exitValue == 0);\n } catch (IOException e) {\n e.printStackTrace();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n return false;\n }", "private void startPingTimer() {\n\n Timer timer = new Timer();\n TimerTask task = new TimerTask() {\n @Override\n public void run() {\n\n if (pong) {\n send(\"<ping/>\");\n pong = false;\n } else {\n System.out.println(\"[CLIENT] No pong received. Client will now be disconnected.\");\n clientController.onMissingPong();\n closeConnection();\n timer.cancel();\n }\n\n }\n };\n timer.scheduleAtFixedRate(task, 0, 20000);\n\n }", "public boolean isKeepAlive()\r\n/* 147: */ {\r\n/* 148: */ try\r\n/* 149: */ {\r\n/* 150:167 */ return this.javaSocket.getKeepAlive();\r\n/* 151: */ }\r\n/* 152: */ catch (SocketException e)\r\n/* 153: */ {\r\n/* 154:169 */ throw new ChannelException(e);\r\n/* 155: */ }\r\n/* 156: */ }", "protected synchronized boolean updateConnection() {\n\t\tif (!this.mEnabled) {\n\t\t\treturn false;\n\t\t}\n\t\tif (this.mMPD == null) {\n\t\t\treturn false;\n\t\t}\n\n\t\tif (!this.mMPD.isConnected()) {\n\t\t\treturn false;\n\t\t}\n\t\tif (this.mServer == null) {\n\t\t\tthis.mServer = this.mMPD.getHostAddress().getHostName();\n\t\t\tthis.mPort = this.mMPD.getHostPort();\n\t\t\tif (!this.load()) {\n\t\t\t\tthis.refresh(true);\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "private synchronized void UI_RefreshConnStatus ()\r\n\t{\r\n\t\tTCPClient used=null;\r\n\t\tsynchronized (this)\r\n\t\t{\r\n\t\t\tused=_roboCOM;\r\n\t\t}\r\n\t\tLog.e(TAG, \"Is conection Active ACCE : \" + isConnectionActive());\r\n\t\t\r\n\t\tif (!isConnecting())\r\n\t\t{\r\n\t\t\tif (old_conn_status==-2) return;\r\n\t\t\told_conn_status=-2;\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (used!=null)\r\n\t\t{\r\n\t\t\tif (old_conn_status!=used.getConnStatus())\r\n\t\t\t{\r\n\t\t\t\told_conn_status=used.getConnStatus();\r\n\t\t\t\tLog.e(TAG,\"Connections Status ACCE : \" + used.getConnStatusStr());\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private boolean isWifiConnected() throws InterruptedException {\n int counter = 10;\n while (--counter > 0) {\n try {\n String mPingSite = String.format(\"http://%s\", DEFAULT_PING_SITE);\n URL url = new URL(mPingSite);\n HttpURLConnection conn = (HttpURLConnection) url.openConnection();\n conn.setRequestMethod(\"GET\");\n conn.setConnectTimeout(mABvtHelper.LONG_TIMEOUT * 12);\n conn.setReadTimeout(mABvtHelper.LONG_TIMEOUT * 12);\n if (conn.getResponseCode() == HttpURLConnection.HTTP_OK) {\n return true;\n }\n Thread.sleep(mABvtHelper.SHORT_TIMEOUT);\n } catch (IOException ex) {\n // Wifi being flaky in the lab, test retries 10 times to connect to google.com\n // as IOException is throws connection isn't made and response stream is null\n // so for retrying purpose, exception hasn't been rethrown\n Log.i(mABvtHelper.TEST_TAG, ex.getMessage());\n }\n }\n return false;\n }", "public boolean checkConnection() {\n\t\ttry {\n\t\t\tif (con.isClosed() || !isAlive) {\n\t\t\t\treturn connect();\n\t\t\t}\n\t\t\treturn true;\n\t\t} catch (SQLException e) {\n\t\t\treturn false;\n\t\t}\n\t}", "private void waitForSuccessfulConnectionToZap() throws Exception {\n int timeoutInMs = CONNECTION_TIMEOUT;\n int connectionTimeoutInMs = timeoutInMs;\n int pollingIntervalInMs = 1000;\n boolean connectionSuccessful = false;\n long startTime = System.currentTimeMillis();\n Socket socket = null;\n do {\n try {\n LogManager.suitLogger.info(\"Attempting to connect to ZAP API on: \" + ZAP_HOSTNAME + \" port: \" +PORT);\n socket = new Socket();\n socket.connect(new InetSocketAddress(ZAP_HOSTNAME, PORT), connectionTimeoutInMs);\n connectionSuccessful = true;\n LogManager.suitLogger.info(\"Connected to ZAP successfully\");\n } catch (SocketTimeoutException ignore) {\n throw new UnicornZapException(\"Unable to connect to ZAP's proxy after \" + timeoutInMs + \" milliseconds.\");\n } catch (IOException ignore) {\n // and keep trying but wait some time first...\n try {\n Thread.sleep(pollingIntervalInMs);\n } catch (InterruptedException e) {\n throw new UnicornZapException(\"The task was interrupted while sleeping between connection polling.\", e);\n }\n\n long ellapsedTime = System.currentTimeMillis() - startTime;\n if (ellapsedTime >= timeoutInMs) {\n throw new UnicornZapException(\"Unable to connect to ZAP's proxy after \" + timeoutInMs + \" milliseconds.\");\n }\n connectionTimeoutInMs = (int) (timeoutInMs - ellapsedTime);\n } finally {\n if (socket != null) {\n try {\n socket.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n } while (!connectionSuccessful);\n }", "public static boolean isConnectedToInternet() {\n String pingServerURL = pingBackUrl.substring(0, pingBackUrl.indexOf(\"/\", \"http://url\".length()));\n try {\n URL url = new URL(pingServerURL);\n HttpURLConnection urlConn = (HttpURLConnection) url.openConnection();\n urlConn.connect();\n return (HttpURLConnection.HTTP_NOT_FOUND != urlConn.getResponseCode());\n } catch (MalformedURLException e) {\n LOG.error(\"LeadCapture : Error creating HTTP connection to the server : \" + pingServerURL);\n \n } catch (IOException e) {\n LOG.error(\"LeadCapture : Error creating HTTP connection to the server : \" + pingServerURL);\n }\n return false;\n }", "boolean hasKeepAlive();", "public Boolean isOnlineNet() {\n\n try {\n Process p = java.lang.Runtime.getRuntime().exec(\"ping -c 1 www.google.es\");\n\n int val = p.waitFor();\n boolean reachable = (val == 0);\n return reachable;\n\n } catch (Exception e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n return false;\n }", "private RealConnection findHealthyConnection(OkHttpClient client, int connectTimeout, int readTimeout, int writeTimeout, int pingIntervalMillis, boolean connectionRetryEnabled, boolean doExtensiveHealthChecks) throws IOException {\n while (true) {\n RealConnection candidate = findConnection(client, connectTimeout, readTimeout, writeTimeout, pingIntervalMillis, connectionRetryEnabled);\n synchronized (this.connectionPool) {\n if (candidate.successCount == 0) {\n return candidate;\n }\n }\n noNewStreams();\n }\n }", "protected boolean isAlive()\n {\n return alive;\n }", "protected boolean isAlive()\n {\n return alive;\n }", "private static boolean pingURL(String url, int timeout) {\n try {\n HttpURLConnection connection = (HttpURLConnection) new URL(url).openConnection();\n connection.setConnectTimeout(timeout);\n connection.setReadTimeout(timeout);\n connection.setRequestMethod(\"HEAD\");\n int responseCode = connection.getResponseCode();\n return (200 <= responseCode && responseCode <= 399);\n } catch (IOException exception) {\n return false;\n }\n }", "boolean stillAlive();", "public boolean isAlive();", "public Thread asyncPing() {\n Gson gson = new Gson();\n PingMessage pingMessage = new PingMessage(\"ping\");\n return new Thread(() -> {\n try {\n while (!socket.isClosed() && !Command.checkError()) {\n Command.sendMessage(gson.toJson(new MessageEnvelope(MessageType.PING, gson.toJson(pingMessage, PingMessage.class)), MessageEnvelope.class));\n Thread.sleep(500);\n }\n } catch (InterruptedException e) {\n view.showError(\"Error ping thread interrupted\");\n }\n });\n }", "private boolean keepAlive(Request request){\n MimeHeaders headers = request.getMimeHeaders();\n\n // Check connection header\n MessageBytes connectionValueMB = headers.getValue(\"connection\");\n if (connectionValueMB != null) {\n ByteChunk connectionValueBC = connectionValueMB.getByteChunk();\n if (findBytes(connectionValueBC, Constants.CLOSE_BYTES) != -1) {\n return false;\n } else if (findBytes(connectionValueBC, \n Constants.KEEPALIVE_BYTES) != -1) {\n return true;\n }\n }\n return false;\n }", "private boolean checkConnection() {\n return isConnected = ConnectionReceiver.isConnected();\n }", "private boolean checkConnection() {\n return isConnected = ConnectionReceiver.isConnected();\n }", "@Override\n\tpublic void ping() {\n\t\t//respond to ping with pong\n\t\tlastPing = System.currentTimeMillis();\n\t\tthis.writeNow(\"type:pong;\");\n\t}", "boolean isAlive() throws RemoteException;", "@WebMethod(operationName = \"CheckConnection\")\n public boolean CheckConnection() {\n return true;\n }", "public boolean isKeepAlive(Env env) {\n return client.isKeepAlive();\n }", "private void onPingingTimerTick()\r\n {\r\n EneterTrace aTrace = EneterTrace.entering();\r\n try\r\n {\r\n try\r\n {\r\n myConnectionManipulatorLock.lock();\r\n try\r\n {\r\n // Send the ping message.\r\n myUnderlyingOutputChannel.sendMessage(myPreserializedPingMessage);\r\n\r\n // Schedule the next ping.\r\n myPingingTimer.change(myPingFrequency);\r\n }\r\n finally\r\n {\r\n myConnectionManipulatorLock.unlock();\r\n }\r\n }\r\n catch (Exception err)\r\n {\r\n // The sending of the ping message failed - the connection is broken.\r\n cleanAfterConnection(true, true);\r\n }\r\n }\r\n finally\r\n {\r\n EneterTrace.leaving(aTrace);\r\n }\r\n }", "public boolean isAlive() throws RemoteException;", "public boolean isAlive() {\n\t\treturn aliveStatus;\n\t}", "@Override\r\n public boolean reconnect()\r\n {\n return state.isConnected();\r\n }", "public final boolean isAlive() { return true; }", "@Override\n public boolean isOnline() {\n if(mSocket != null && mSocket.isConnected())\n return true;\n return false;\n }", "public boolean needsConnectionLeftOpen() {\n return false;\n }", "public boolean connectionActive() {\n\t\tif (socketConnection == null) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn socketConnection.isConnected();\n\t\t}\n\t}", "public void setPing(boolean ping)\n {\n _isPing = ping;\n }", "public void setPingOnIdle(boolean pingOnIdle)\n {\n _isPing = pingOnIdle;\n }", "public boolean isHostReachable(String sIPAddress) {\n try {\n\n Process p1 = java.lang.Runtime.getRuntime().exec(\"ping \" + sIPAddress);\n int iRetVal = p1.waitFor();\n if (iRetVal == 0) {\n return true;\n } else {\n return false;\n }\n\n //InetAddress inet = InetAddress.getByName(sIPAddress);\n //return (inet.isReachable(5000) ? true : false);\n } catch (Exception e) {\n return false;\n }\n }", "public boolean isConnectable(){\n\t\tif((System.currentTimeMillis() - this.lastTry) > retryBackoff){\n\t\t\tthis.lastTry = System.currentTimeMillis();\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "private boolean hasStableConnection() {\n ConnectivityManager cm =\n (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo activeNetwork = cm.getActiveNetworkInfo();\n return activeNetwork != null && activeNetwork.isConnectedOrConnecting();\n }", "public long getPingInterval()\n {\n return _pingInterval;\n }", "@Override\r\n public boolean poll()\r\n {\n return state.isConnected();\r\n }", "public boolean isAlive() { return alive; }", "public boolean isConnected()\n {\n return connectionId != GatewayProcess.NO_CONNECTION_ID;\n }", "@Override\n\tpublic void visit(KeepAlive ka) {\n\t\tSystem.out.println(\"peer keepAlive connection\");\n\t\tph.setAlive(true);\n\t\tthis.lastKeepAlive = System.currentTimeMillis();\n\t}", "public String getPing() {\r\n return ping;\r\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tObjectMapper mapper = new ObjectMapper();\n\t\t\t\t\tObjectNode objectNode = mapper.createObjectNode();\n\t\t\t\t\tobjectNode.put(\"type\", \"PING\");\n\n\t\t\t\t\twebSocket.sendText(mapper.writerWithDefaultPrettyPrinter().writeValueAsString(objectNode));\n\n\t\t\t\t\tlog.debug(\"Send Ping to Twitch PubSub. (Keep-Connection-Alive)\");\n\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\tlog.error(\"Failed to Ping Twitch PubSub. ({})\", ex.getMessage());\n\t\t\t\t\treconnect();\n\t\t\t\t}\n\n\t\t\t}", "public boolean socketStillAlive() {\n if (bluetoothSocket != null)\n return bluetoothSocket.getSocket() != null;\n return false;\n }", "public boolean isConnected() {\n\t\treturn conn != null;\n\t}", "public boolean ConnectionCheck(){\n ConnectivityManager cm =\n (ConnectivityManager)context.getSystemService(Context.CONNECTIVITY_SERVICE);\n\n NetworkInfo activeNetwork = cm.getActiveNetworkInfo();\n isConnected = activeNetwork != null &&\n activeNetwork.isConnectedOrConnecting();\n return isConnected;\n }", "public static boolean keepAlive(){\n return keepAlive;\n }", "boolean isConnectionLost()\n\t{\n\t\tboolean lost = false;\n\n\t\tif (m_session != null && !m_session.isConnected())\n\t\t\tlost = true;\n\n\t\treturn lost;\n\t}", "boolean isAlive();", "boolean isAlive();", "public boolean isAlive() {\n\t\tif (combox == null){\n\t\t\treturn false;\n\t\t}\n\t\tPOPBuffer popBuffer = combox.getBufferFactory().createBuffer();\n\t\tMessageHeader messageHeader = new MessageHeader(0,\n\t\t\t\tMessageHeader.OBJECT_ALIVE_CALL, Semantic.SYNCHRONOUS);\n\t\tmessageHeader.setRequestID(requestID.incrementAndGet());\n\t\tpopBuffer.setHeader(messageHeader);\n\n\t\tpopDispatch(popBuffer);\n\t\tboolean result = false;\n\t\ttry {\n\t\t\tPOPBuffer responseBuffer = combox.getBufferFactory().createBuffer();\n\t\t\tpopResponse(responseBuffer, messageHeader.getRequestID());\n\t\t\tresult = responseBuffer.getBoolean();\n\t\t} catch (POPException e) {\n\t\t\treturn false;\n\t\t}\n\t\treturn result;\n\t}", "public boolean checkConnection() {\n\treturn getBoolean(ATTR_CONNECTION, false);\n }", "boolean getIsAlive();", "public long getPing()\n\t{\n\t\t\n\t\treturn clientPing;\n\t\t\n\t}", "public boolean lockForPing() {\r\n\t\treturn beingPinged.compareAndSet(false, true);\r\n\t}", "public void setPingOnReuse(boolean pingOnReuse)\n {\n _isPing = pingOnReuse;\n }", "public boolean checkConnected() {\n boolean isClosed = true;\n boolean isValid = false;\n boolean exists = (connection != null);\n\n // If we're waiting for server to recover then leave early\n if (nextReconnectTimestamp > 0 && nextReconnectTimestamp > System.nanoTime()) {\n return false;\n }\n\n if (exists) {\n try {\n isClosed = connection.isClosed();\n }\n catch (SQLException e) {\n isClosed = true;\n e.printStackTrace();\n printErrors(e);\n }\n\n if (!isClosed) {\n try {\n isValid = connection.isValid(VALID_TIMEOUT);\n }\n catch (SQLException e) {\n // Don't print stack trace because it's valid to lose idle connections to the server and have to restart them.\n isValid = false;\n }\n }\n }\n\n // Leave if all ok\n if (exists && !isClosed && isValid) {\n // Housekeeping\n nextReconnectTimestamp = 0;\n reconnectAttempt = 0;\n return true;\n }\n\n // Cleanup after ourselves for GC and MySQL's sake\n if (exists && !isClosed) {\n try {\n connection.close();\n }\n catch (SQLException ex) {\n // This is a housekeeping exercise, ignore errors\n }\n }\n\n // Try to connect again\n connect();\n\n // Leave if connection is good\n try {\n if (connection != null && !connection.isClosed()) {\n // Schedule a database save if we really had an outage\n if (reconnectAttempt > 1) {\n new SQLReconnectTask().runTaskLater(Assassin.p, 5);\n }\n nextReconnectTimestamp = 0;\n reconnectAttempt = 0;\n return true;\n }\n }\n catch (SQLException e) {\n // Failed to check isClosed, so presume connection is bad and attempt later\n e.printStackTrace();\n printErrors(e);\n }\n\n reconnectAttempt++;\n nextReconnectTimestamp = (long) (System.nanoTime() + Math.min(MAX_WAIT, (reconnectAttempt * SCALING_FACTOR * MIN_WAIT)));\n return false;\n }", "public final boolean isAlive() {\n return alive;\n }", "public boolean isAlive () {\n return (daemon != null) && daemon.isAlive();\n }", "private boolean isConnect(ConnectionSpec connectionSpec) {\r\n\t\tif (connectionSpec == null) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tJRedis jredis = new JRedisClient(connectionSpec.getAddress().getHostAddress(), connectionSpec.getPort());\r\n\t\ttry {\r\n\t\t\tjredis.ping();\r\n\t\t\tjredis.quit();\r\n\t\t} catch (Exception e) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "private void sendKeepAlive() {\n\t\tlong now = new java.util.Date().getTime() / 1000;\n\t\tif (now - lastKeepAlive > properties.getInt(\"keepAliveInterval\")) {\n\t\t\tfsmTeacher.handleAction(\"tap%\" + properties.get(\"keepAliveX\") + \"#\" + properties.get(\"keepAliveY\"));\n\t\t\tlastKeepAlive = now;\n\t\t\tSystem.out.println(\"Kept alive.\");\n\t\t}\n\t}", "public void ping() {\n\t\tHeader.Builder hb = Header.newBuilder();\n\t\thb.setNodeId(999);\n\t\thb.setTime(System.currentTimeMillis());\n\t\thb.setDestination(-1);\n\n\t\tCommandMessage.Builder rb = CommandMessage.newBuilder();\n\t\trb.setHeader(hb);\n\t\trb.setPing(true);\n\n\t\ttry {\n\t\t\t// direct no queue\n\t\t\t// CommConnection.getInstance().write(rb.build());\n\n\t\t\t// using queue\n\t\t\tCommConnection.getInstance().enqueue(rb.build());\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public boolean isConnectionActive(){\n return this.connectionActive;\n }", "public boolean CheckConnected() {\n return (tcp.Status() == TCP._CONNECTED);\n }", "public static boolean pingIp(String ipAddress) throws IOException, InterruptedException{\n\t String cmd = \"ping \" + ipAddress;\n\t Runtime runTime = Runtime.getRuntime();\n\t Process process = runTime.exec(cmd);\n\t process.waitFor();\n\t return process.exitValue()==0;\n\t }", "public boolean keepAliveEnabled(){\n return false; //TODO codavaj!!\n }", "public boolean isAlive() {\r\n\t\treturn alive;\r\n\t}" ]
[ "0.6522291", "0.6423118", "0.636203", "0.62654716", "0.61783093", "0.6164515", "0.59446526", "0.59213793", "0.5917195", "0.5859219", "0.5847075", "0.5834143", "0.5827577", "0.5820808", "0.5811301", "0.5808533", "0.5793275", "0.5788696", "0.5781533", "0.5772496", "0.57380915", "0.5727417", "0.5722504", "0.57191235", "0.5717943", "0.5697007", "0.5684675", "0.5684596", "0.5684596", "0.5659925", "0.56472784", "0.5628807", "0.56237346", "0.56209177", "0.56099635", "0.55903125", "0.55776083", "0.5574795", "0.5555923", "0.55504894", "0.5529966", "0.5523613", "0.55044484", "0.5470541", "0.5470541", "0.54692", "0.5461072", "0.5445815", "0.54325205", "0.54286766", "0.54189754", "0.54189754", "0.5410157", "0.54092616", "0.5402393", "0.540218", "0.539239", "0.53905845", "0.5386816", "0.53823894", "0.5378281", "0.5363396", "0.53490025", "0.53325534", "0.5330806", "0.5315168", "0.53037167", "0.53024983", "0.5300902", "0.52667063", "0.5265621", "0.5260344", "0.5256509", "0.52549565", "0.52472574", "0.52409804", "0.52228624", "0.52144504", "0.52101433", "0.5188618", "0.5187875", "0.5182884", "0.5182884", "0.5181135", "0.5161174", "0.51595944", "0.5157268", "0.515671", "0.5155301", "0.515513", "0.5152327", "0.51482505", "0.5144359", "0.51419216", "0.5138812", "0.51352334", "0.51271206", "0.51239216", "0.5120559", "0.512053" ]
0.7345656
0
set up the split pane with the MBean tree and MBean sheet panels
private void setupTab() { setLayout(new BorderLayout()); JSplitPane mainSplit = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT); mainSplit.setDividerLocation(160); mainSplit.setBorder(BorderFactory.createEmptyBorder()); // set up the MBean tree panel (left pane) tree = new XTree(this); tree.setCellRenderer(new XTreeRenderer()); tree.getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION); tree.addTreeSelectionListener(this); tree.addTreeWillExpandListener(this); tree.addMouseListener(ml); JScrollPane theScrollPane = new JScrollPane(tree, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); JPanel treePanel = new JPanel(new BorderLayout()); treePanel.add(theScrollPane, BorderLayout.CENTER); mainSplit.add(treePanel, JSplitPane.LEFT, 0); // set up the MBean sheet panel (right pane) viewer = new XDataViewer(this); sheet = new XSheet(this); mainSplit.add(sheet, JSplitPane.RIGHT, 0); add(mainSplit); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initPane() {\n\t\tContainer localContainer = getContentPane();\n\t\tlocalContainer.setLayout(new BorderLayout());\n\t\t\n\t\tsplitpane_left_top.setBorder(BorderFactory.createTitledBorder(\"Training Data\"));\n\t\tsplitpane_left_bottom.setBorder(BorderFactory.createTitledBorder(\"Tree View\"));\n\t\tsplitpane_left.setDividerLocation(400);\n\t\tsplitpane_left.setLastDividerLocation(0);\n\t\tsplitpane_left.setOneTouchExpandable(true);\n\t\tsplitpane_right.setBorder(BorderFactory.createTitledBorder(\"Classifer Output\"));\n\t\tsplitpane_main.setDividerLocation(500);\n\t\tsplitpane_main.setLastDividerLocation(0);\n\t\tsplitpane_main.setOneTouchExpandable(true);\n\t\tlocalContainer.add(splitpane_main, \"Center\");\n\t\tlocalContainer.add(statusPanel,BorderLayout.SOUTH);\n\t}", "private void initComponents() {\n jSplitPane1 = new javax.swing.JSplitPane();\n pnlTree = new javax.swing.JPanel();\n jScrollPane1 = new javax.swing.JScrollPane();\n jtrLocal = new DnDTree();\n pnlTab = new javax.swing.JPanel();\n jtpApps = new javax.swing.JTabbedPane();\n\n jSplitPane1.setDividerLocation(260);\n\n pnlTree.setBorder(javax.swing.BorderFactory.createTitledBorder(\n NbBundle.getMessage(\n EditDistributionVisualPanel2.class,\n \"EditDistributionVisualPanel2.pnlTree.border.title\"))); // NOI18N\n\n jtrLocal.setDragEnabled(true);\n jScrollPane1.setViewportView(jtrLocal);\n\n final javax.swing.GroupLayout pnlTreeLayout = new javax.swing.GroupLayout(pnlTree);\n pnlTree.setLayout(pnlTreeLayout);\n pnlTreeLayout.setHorizontalGroup(\n pnlTreeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(\n jScrollPane1,\n javax.swing.GroupLayout.DEFAULT_SIZE,\n 246,\n Short.MAX_VALUE));\n pnlTreeLayout.setVerticalGroup(\n pnlTreeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(\n jScrollPane1,\n javax.swing.GroupLayout.Alignment.TRAILING,\n javax.swing.GroupLayout.DEFAULT_SIZE,\n 238,\n Short.MAX_VALUE));\n\n jSplitPane1.setLeftComponent(pnlTree);\n\n final javax.swing.GroupLayout pnlTabLayout = new javax.swing.GroupLayout(pnlTab);\n pnlTab.setLayout(pnlTabLayout);\n pnlTabLayout.setHorizontalGroup(\n pnlTabLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(\n jtpApps,\n javax.swing.GroupLayout.Alignment.TRAILING,\n javax.swing.GroupLayout.DEFAULT_SIZE,\n 200,\n Short.MAX_VALUE));\n pnlTabLayout.setVerticalGroup(\n pnlTabLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(\n jtpApps,\n javax.swing.GroupLayout.Alignment.TRAILING,\n javax.swing.GroupLayout.DEFAULT_SIZE,\n 266,\n Short.MAX_VALUE));\n\n jSplitPane1.setRightComponent(pnlTab);\n\n final javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(\n jSplitPane1,\n javax.swing.GroupLayout.Alignment.TRAILING,\n javax.swing.GroupLayout.DEFAULT_SIZE,\n 471,\n Short.MAX_VALUE));\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(\n jSplitPane1,\n javax.swing.GroupLayout.Alignment.TRAILING,\n javax.swing.GroupLayout.DEFAULT_SIZE,\n 270,\n Short.MAX_VALUE));\n }", "private void setupLayoutManager() {\n\n setLayout(new BorderLayout());\n add(directoryChooserPanel, BorderLayout.NORTH);\n add(splitPane, BorderLayout.CENTER);\n\n }", "private void $$$setupUI$$$() {\n panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n rootTabControl = new JTabbedPane();\n panel1.add(rootTabControl, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, new Dimension(200, 200), null, 0, false));\n }", "public void initialize() {\n this.setPreferredSize(new com.ulcjava.base.application.util.Dimension(548, 372));\n this.add(getTitlePane(), new com.ulcjava.base.application.GridBagConstraints(0, 0, 3, 1, -1, -1,\n com.ulcjava.base.application.GridBagConstraints.CENTER, com.ulcjava.base.application.GridBagConstraints.NONE,\n new com.ulcjava.base.application.util.Insets(0, 0, 0, 0), 0, 0));\n this.add(getXpertIvyPane(), new com.ulcjava.base.application.GridBagConstraints(0, 1, 1, 1, -1, -1,\n com.ulcjava.base.application.GridBagConstraints.CENTER, com.ulcjava.base.application.GridBagConstraints.NONE,\n new com.ulcjava.base.application.util.Insets(0, 0, 0, 0), 0, 0));\n this.add(getLicensePane(), new com.ulcjava.base.application.GridBagConstraints(0, 2, 1, 1, -1, -1,\n com.ulcjava.base.application.GridBagConstraints.CENTER, com.ulcjava.base.application.GridBagConstraints.NONE,\n new com.ulcjava.base.application.util.Insets(0, 0, 0, 0), 0, 0));\n this.add(getDatabasePane(), new com.ulcjava.base.application.GridBagConstraints(0, 3, 1, 1, -1, -1,\n com.ulcjava.base.application.GridBagConstraints.CENTER, com.ulcjava.base.application.GridBagConstraints.NONE,\n new com.ulcjava.base.application.util.Insets(0, 0, 0, 0), 0, 0));\n this.add(getJavaPane(), new com.ulcjava.base.application.GridBagConstraints(0, 4, 1, 1, -1, -1,\n com.ulcjava.base.application.GridBagConstraints.CENTER, com.ulcjava.base.application.GridBagConstraints.NONE,\n new com.ulcjava.base.application.util.Insets(0, 0, 0, 0), 0, 0));\n }", "public SplitPaneTest2() {\n initComponents();\n\n horizontalSplitPane.putClientProperty(\"Quaqua.SplitPane.style\", \"bar\");\n horizontalSplitPane.setDividerSize(1);\n verticalSplitPane.putClientProperty(\"Quaqua.SplitPane.style\", \"bar\");\n\n messageScrollPane.setBorder(new EmptyBorder(0, 0, 0, 0));\n messagesScrollPane.setBorder(new EmptyBorder(0, 0, 0, 0));\n foldersScrollPane.setBorder(new EmptyBorder(0, 0, 0, 0));\n /*\n horizontalSplitPane.setContinuousLayout(true);\n verticalSplitPane.setContinuousLayout(true);\n */\n\n }", "private void initComponents() {\n\t\tSplitPane mainSplitPane = new SplitPane(SplitPane.ORIENTATION_VERTICAL_TOP_BOTTOM);\n\t\tmainSplitPane.setSeparatorPosition(new Extent(34));\n\t\tnavigator = new AnyRowNavigator();\n\t\tmainSplitPane.add(navigator);\n\t\tSplitPane splitPane = new SplitPane();\n\t\tsplitPane.setOrientation(SplitPane.ORIENTATION_VERTICAL_TOP_BOTTOM);\n\t\tsplitPane.setSeparatorPosition(new Extent(200));\n\t\tsplitPane.setResizable(true);\n\t\tmainSplitPane.add(splitPane);\n\t\tadd(mainSplitPane);\t\t\n rootLayout = new Grid();\n rootLayout.setWidth(new Extent(100, Extent.PERCENT));\n rootLayout.setSize(8);\n splitPane.add(rootLayout);\n EMPSN_CaptionLabel = new nextapp.echo2.app.Label();\n EMPSN_CaptionLabel.setText(\"N_GET_DATA.EMPSN\");\n rootLayout.add(EMPSN_CaptionLabel);\n GridLayoutData infoLayout = new GridLayoutData();\n infoLayout.setColumnSpan(7);\n Row row = new Row();\n row.setLayoutData(infoLayout);\n EMPSN_DscField1 = new dsc.echo2app.component.DscField();\n EMPSN_DscField1.setWidth(new Extent(60));\n EMPSN_DscField1.setId(\"EMPSN_DscField1\");\n row.add(EMPSN_DscField1);\n lblInfo = new DirectHtml();\n row.add(lblInfo);\n rootLayout.add(row);\n// DEPSN_CaptionLabel = new nextapp.echo2.app.Label();\n// rootLayout.add(DEPSN_CaptionLabel);\n// DEPSN_DscField1 = new dsc.echo2app.component.DscField();\n// DEPSN_DscField1.setWidth(new Extent(60));\n// DEPSN_DscField1.setId(\"DEPSN_DscField1\");\n// rootLayout.add(DEPSN_DscField1);\n MONTHS_CaptionLabel = new nextapp.echo2.app.Label();\n MONTHS_CaptionLabel.setText(\"N_GET_DATA.MONTHS\");\n rootLayout.add(MONTHS_CaptionLabel);\n MONTHS_DscField2 = new dsc.echo2app.component.DscField();\n MONTHS_DscField2.setWidth(new Extent(60));\n MONTHS_DscField2.setId(\"MONTHS_DscField2\");\n rootLayout.add(MONTHS_DscField2);\n YEARS_CaptionLabel = new nextapp.echo2.app.Label();\n YEARS_CaptionLabel.setText(\"N_GET_DATA.YEARS\");\n rootLayout.add(YEARS_CaptionLabel);\n YEARS_DscField3 = new dsc.echo2app.component.DscField();\n YEARS_DscField3.setWidth(new Extent(60));\n YEARS_DscField3.setId(\"YEARS_DscField3\");\n rootLayout.add(YEARS_DscField3);\n DUCLS_CaptionLabel = new nextapp.echo2.app.Label();\n DUCLS_CaptionLabel.setText(\"N_GET_DATA.DUCLS\");\n rootLayout.add(DUCLS_CaptionLabel);\n DUCLS_DscField4 = new dsc.echo2app.component.DscField();\n DUCLS_DscField4.setWidth(new Extent(60));\n DUCLS_DscField4.setDisabledBackground(new Color(0xFBF4D4));\n DUCLS_DscField4.setDisabledForeground(new Color(0x2A7FFF));\n DUCLS_DscField4.setId(\"DUCLS_DscField4\");\n rootLayout.add(DUCLS_DscField4);\n NDUCLS_CaptionLabel = new nextapp.echo2.app.Label();\n NDUCLS_CaptionLabel.setText(\"N_GET_DATA.NDUCLS\");\n rootLayout.add(NDUCLS_CaptionLabel);\n NDUCLS_DscField5 = new dsc.echo2app.component.DscField();\n NDUCLS_DscField5.setWidth(new Extent(60));\n NDUCLS_DscField5.setId(\"NDUCLS_DscField5\");\n rootLayout.add(NDUCLS_DscField5);\n ADDHOL_CaptionLabel = new nextapp.echo2.app.Label();\n ADDHOL_CaptionLabel.setText(\"N_GET_DATA.ADDHOL\");\n rootLayout.add(ADDHOL_CaptionLabel);\n ADDHOL_DscField6 = new dsc.echo2app.component.DscField();\n ADDHOL_DscField6.setWidth(new Extent(60));\n ADDHOL_DscField6.setId(\"ADDHOL_DscField6\");\n rootLayout.add(ADDHOL_DscField6);\n ADDCLS1_CaptionLabel = new nextapp.echo2.app.Label();\n ADDCLS1_CaptionLabel.setText(\"N_GET_DATA.ADDCLS1\");\n rootLayout.add(ADDCLS1_CaptionLabel);\n ADDCLS1_DscField7 = new dsc.echo2app.component.DscField();\n ADDCLS1_DscField7.setWidth(new Extent(60));\n ADDCLS1_DscField7.setId(\"ADDCLS1_DscField7\");\n rootLayout.add(ADDCLS1_DscField7);\n NADDCLS_CaptionLabel = new nextapp.echo2.app.Label();\n NADDCLS_CaptionLabel.setText(\"N_GET_DATA.NADDCLS\");\n rootLayout.add(NADDCLS_CaptionLabel);\n NADDCLS_DscField8 = new dsc.echo2app.component.DscField();\n NADDCLS_DscField8.setWidth(new Extent(60));\n NADDCLS_DscField8.setId(\"NADDCLS_DscField8\");\n rootLayout.add(NADDCLS_DscField8);\n LATE_CaptionLabel = new nextapp.echo2.app.Label();\n LATE_CaptionLabel.setText(\"N_GET_DATA.LATE\");\n rootLayout.add(LATE_CaptionLabel);\n LATE_DscField9 = new dsc.echo2app.component.DscField();\n LATE_DscField9.setWidth(new Extent(60));\n LATE_DscField9.setId(\"LATE_DscField9\");\n rootLayout.add(LATE_DscField9);\n SIGN_CaptionLabel = new nextapp.echo2.app.Label();\n SIGN_CaptionLabel.setText(\"N_GET_DATA.SIGN\");\n rootLayout.add(SIGN_CaptionLabel);\n SIGN_DscField10 = new dsc.echo2app.component.DscField();\n SIGN_DscField10.setWidth(new Extent(60));\n SIGN_DscField10.setId(\"SIGN_DscField10\");\n rootLayout.add(SIGN_DscField10);\n ACN_CaptionLabel = new nextapp.echo2.app.Label();\n ACN_CaptionLabel.setText(\"N_GET_DATA.ACN\");\n rootLayout.add(ACN_CaptionLabel);\n ACN_DscField11 = new dsc.echo2app.component.DscField();\n ACN_DscField11.setWidth(new Extent(60));\n ACN_DscField11.setId(\"ACN_DscField11\");\n rootLayout.add(ACN_DscField11);\n ACNM_CaptionLabel = new nextapp.echo2.app.Label();\n ACNM_CaptionLabel.setText(\"N_GET_DATA.ACNM\");\n rootLayout.add(ACNM_CaptionLabel);\n ACNM_DscField12 = new dsc.echo2app.component.DscField();\n ACNM_DscField12.setWidth(new Extent(60));\n ACNM_DscField12.setId(\"ACNM_DscField12\");\n rootLayout.add(ACNM_DscField12);\n REST_CaptionLabel = new nextapp.echo2.app.Label();\n REST_CaptionLabel.setText(\"N_GET_DATA.REST\");\n rootLayout.add(REST_CaptionLabel);\n REST_DscField13 = new dsc.echo2app.component.DscField();\n REST_DscField13.setWidth(new Extent(60));\n REST_DscField13.setId(\"REST_DscField13\");\n rootLayout.add(REST_DscField13);\n REST_PAY_CaptionLabel = new nextapp.echo2.app.Label();\n REST_PAY_CaptionLabel.setText(\"N_GET_DATA.REST_PAY\");\n rootLayout.add(REST_PAY_CaptionLabel);\n REST_PAY_DscField14 = new dsc.echo2app.component.DscField();\n REST_PAY_DscField14.setWidth(new Extent(60));\n REST_PAY_DscField14.setId(\"REST_PAY_DscField14\");\n rootLayout.add(REST_PAY_DscField14);\n REST_SICK_CaptionLabel = new nextapp.echo2.app.Label();\n REST_SICK_CaptionLabel.setText(\"N_GET_DATA.REST_SICK\");\n rootLayout.add(REST_SICK_CaptionLabel);\n REST_SICK_DscField15 = new dsc.echo2app.component.DscField();\n REST_SICK_DscField15.setWidth(new Extent(60));\n REST_SICK_DscField15.setId(\"REST_SICK_DscField15\");\n rootLayout.add(REST_SICK_DscField15);\n OTHER_CaptionLabel = new nextapp.echo2.app.Label();\n OTHER_CaptionLabel.setText(\"N_GET_DATA.OTHER\");\n rootLayout.add(OTHER_CaptionLabel);\n OTHER_DscField16 = new dsc.echo2app.component.DscField();\n OTHER_DscField16.setWidth(new Extent(60));\n OTHER_DscField16.setId(\"OTHER_DscField16\");\n rootLayout.add(OTHER_DscField16);\n NWHOUR_CaptionLabel = new nextapp.echo2.app.Label();\n NWHOUR_CaptionLabel.setText(\"N_GET_DATA.NWHOUR\");\n rootLayout.add(NWHOUR_CaptionLabel);\n NWHOUR_DscField17 = new dsc.echo2app.component.DscField();\n NWHOUR_DscField17.setWidth(new Extent(60));\n NWHOUR_DscField17.setId(\"NWHOUR_DscField17\");\n rootLayout.add(NWHOUR_DscField17);\n ADDHOLN_CaptionLabel = new nextapp.echo2.app.Label();\n ADDHOLN_CaptionLabel.setText(\"N_GET_DATA.ADDHOLN\");\n rootLayout.add(ADDHOLN_CaptionLabel);\n ADDHOLN_DscField18 = new dsc.echo2app.component.DscField();\n ADDHOLN_DscField18.setWidth(new Extent(60));\n ADDHOLN_DscField18.setId(\"ADDHOLN_DscField18\");\n rootLayout.add(ADDHOLN_DscField18);\n LMATER_CaptionLabel = new nextapp.echo2.app.Label();\n LMATER_CaptionLabel.setText(\"N_GET_DATA.LMATER\");\n rootLayout.add(LMATER_CaptionLabel);\n LMATER_DscField19 = new dsc.echo2app.component.DscField();\n LMATER_DscField19.setWidth(new Extent(60));\n LMATER_DscField19.setId(\"LMATER_DscField19\");\n rootLayout.add(LMATER_DscField19);\n LOCKED_CaptionLabel = new nextapp.echo2.app.Label();\n LOCKED_CaptionLabel.setText(\"N_GET_DATA.LOCKED\");\n rootLayout.add(LOCKED_CaptionLabel);\n LOCKED_DscField20 = new dsc.echo2app.component.DscField();\n LOCKED_DscField20.setWidth(new Extent(60));\n LOCKED_DscField20.setId(\"LOCKED_DscField20\");\n rootLayout.add(LOCKED_DscField20);\n// UP_DATE_CaptionLabel = new nextapp.echo2.app.Label();\n// UP_DATE_CaptionLabel.setText(\"N_GET_DATA.UP_DATE\");\n// rootLayout.add(UP_DATE_CaptionLabel);\n// UP_DATE_DscDateField1 = new dsc.echo2app.component.DscDateField();\n// UP_DATE_DscDateField1.setId(\"UP_DATE_DscDateField1\");\n// rootLayout.add(UP_DATE_DscDateField1);\n// UP_USER_CaptionLabel = new nextapp.echo2.app.Label();\n// UP_USER_CaptionLabel.setText(\"N_GET_DATA.UP_USER\");\n// rootLayout.add(UP_USER_CaptionLabel);\n// UP_USER_DscField22 = new dsc.echo2app.component.DscField();\n// UP_USER_DscField22.setId(\"UP_USER_DscField22\");\n// rootLayout.add(UP_USER_DscField22);\n dailyContent = new DataDailyBrowserContent();\n splitPane.add(dailyContent);\n\t}", "private void init() {\n this.currentStatus = false;\n\n // Instantiate both the left & the right panels.\n leftPanel = new LeftListPanel();\n rightPanel = new RightListPanel();\n // Initialize the splitPane with left & right panels.\n splitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, leftPanel, rightPanel);\n\n }", "private void $$$setupUI$$$() {\n rootPanel = new JPanel();\n rootPanel.setLayout(new BorderLayout(0, 0));\n centerPanel = new JPanel();\n centerPanel.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n rootPanel.add(centerPanel, BorderLayout.CENTER);\n final JSplitPane splitPane1 = new JSplitPane();\n splitPane1.setDividerLocation(240);\n splitPane1.setResizeWeight(0.5);\n centerPanel.add(splitPane1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, new Dimension(200, 200), null, 0, false));\n leftPanel = new JPanel();\n leftPanel.setLayout(new BorderLayout(0, 0));\n splitPane1.setLeftComponent(leftPanel);\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n leftPanel.add(panel1, BorderLayout.NORTH);\n userListTitle = new JLabel();\n userListTitle.setText(\"在线用户\");\n panel1.add(userListTitle, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JPanel panel2 = new JPanel();\n panel2.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n leftPanel.add(panel2, BorderLayout.CENTER);\n JSP_list = new JScrollPane();\n panel2.add(JSP_list, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n rightPanel = new JPanel();\n rightPanel.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n splitPane1.setRightComponent(rightPanel);\n southPanel = new JPanel();\n southPanel.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n rootPanel.add(southPanel, BorderLayout.SOUTH);\n northPanel = new JPanel();\n northPanel.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n rootPanel.add(northPanel, BorderLayout.NORTH);\n }", "private void setupPanels() {\n\t\tsplitPanel.addEast(east, Window.getClientWidth() / 5);\n\t\tsplitPanel.add(battleMatCanvasPanel);\n\t\tpanelsSetup = true;\n\t}", "private void initializeSplitPane() {\n\t\tthis.splitPane = new JSplitPane();\n\t\tthis.splitPane.setOrientation(JSplitPane.VERTICAL_SPLIT);\n\t\tthis.splitPane.setDividerLocation(this.screenDimensions.height / 2);\n\t\tthis.getContentPane().add(this.splitPane, BorderLayout.CENTER);\n\t}", "public PropertyInspector()\n {\n super( new BorderLayout() );\n\n add(splitPane, BorderLayout.CENTER); \n splitPane.setDividerSize(5);\n\n setupPopupMenu( popup = new JPopupMenu() );\n\n //inspectorActionManager = new InspectorActionManager( mobile );\n\n addComponentListener(new ComponentAdapter()\n {\n @Override\n public void componentResized(ComponentEvent evt)\n {\n updateSplitPaneDivider();\n }\n });\n\n }", "@Override\r\n\tprotected void initPage() {\n\t\t\r\n\t\t\r\n\t\tJPanel paneLabel = new JPanel();\r\n\t\t//JPanel panelTabs = new JPanel();\r\n\t\t\r\n\t\t\r\n\t\t//pack.setVisible(false);\r\n\r\n\t\t//setlay out\r\n\t\t//panelTabs.setLayout(new GridLayout(1, 1));\r\n\t\t\r\n\t\t//add label to label panel\r\n\t\tpaneLabel.add(new JLabel(\"Please select Objects To export\"));\r\n\t\t//tabs.setLayout(new GridLayout(1, 1));\r\n\t\t\r\n\t\t//add tabs\r\n\t\ttabs.addTab(\"Packages\", null, pack, \"Packages\");\r\n\t\ttabs.addTab(\"Functions\", null, fun, \"Functions\");\r\n\t\ttabs.addTab(\"Procedures\", null, proc, \"Procedures\");\r\n\t\ttabs.addTab(\"Schemas\", null, sch, \"Schemas\");\r\n\t\t\r\n\t\t\r\n\t\ttabs.setTabPlacement(JTabbedPane.TOP);\r\n\t\t\r\n\t\t//add tabs to tabpanel panel\r\n\t\t//panelTabs.add(tabs);\r\n\t\t\r\n\t\t//add data tables to panels\r\n\t\tpackTbl = new JObjectTable(pack);\r\n\t\tfunTbl = new JObjectTable(fun);\r\n\t\tschTbl = new JObjectTable(sch);\r\n\t\tprocTbl = new JObjectTable(proc);\r\n\t\t\r\n\t\t//set layout\r\n\t\tsetLayout(new GridLayout(1,1));\r\n\t\t\r\n\t\t//add label & tabs to page panel\r\n\t\t//add(paneLabel, BorderLayout.NORTH);\r\n\t\t//add(panelTabs,BorderLayout.CENTER);\r\n\t\tadd(tabs);\r\n\t\t\r\n\t\t//init select all check boxes\r\n\t\tinitChecks();\r\n\t\t\r\n\t\t//add checks to panel\r\n\t\tpack.add(ckPack);\r\n\t\tfun.add(ckFun);\r\n\t\tsch.add(ckSchema);\r\n\t\tproc.add(ckProc);\r\n\t\t\r\n\t}", "private void initialize() {\n layout = new HorizontalLayout();\n\n workspaceTabs = new TabSheet();\n\n WorkspacePanel panel = new WorkspacePanel(\"Workspace 1\");\n workspaceTabs.addTab(panel).setCaption(\"Workspace 1\");\n DropHandler dropHandler = searchMenu.createDropHandler(panel.getBaseLayout());\n panel.setDropHandler(dropHandler);\n\n layout.addComponent(workspaceTabs);\n\n setContent(layout);\n }", "private void $$$setupUI$$$() {\n root = new JPanel();\n root.setLayout(new GridLayoutManager(2, 6, new Insets(8, 8, 8, 8), -1, -1));\n groupTabs = new JTabbedPane();\n root.add(groupTabs, new GridConstraints(1, 0, 1, 6, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, new Dimension(200, 200), null, 0, false));\n deviceName = new JLabel();\n deviceName.setFont(new Font(deviceName.getFont().getName(), deviceName.getFont().getStyle(), deviceName.getFont().getSize()));\n deviceName.setText(\"Label\");\n root.add(deviceName, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final Spacer spacer1 = new Spacer();\n root.add(spacer1, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n saveButton = new JButton();\n saveButton.setEnabled(false);\n saveButton.setText(\"Save\");\n root.add(saveButton, new GridConstraints(0, 4, 1, 2, GridConstraints.ANCHOR_SOUTH, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n loading = new JProgressBar();\n loading.setBorderPainted(true);\n loading.setEnabled(true);\n loading.setIndeterminate(true);\n loading.setValue(50);\n root.add(loading, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 1, false));\n cancelButton = new JButton();\n cancelButton.setText(\"Cancel\");\n root.add(cancelButton, new GridConstraints(0, 3, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n }", "private void createLayout () {\n \t\n \tBorderPane border = new BorderPane();\n \t\n \t\n \t tabPane = new TabPane();\n ArrayList <ScrollPane> tabs = new ArrayList <ScrollPane>();\n \t\n //create column 1 - need to refactor this and make more generic\n TilePane col1 = new TilePane();\n \tcol1.setPrefColumns(2);\n \tcol1.prefWidthProperty().bind(controller.primaryStage.widthProperty());\n \tcol1.setAlignment(Pos.TOP_LEFT);\n \tcol1.getChildren().addAll(createElements ());\n \tScrollPane scrollCol1 = new ScrollPane(col1);\n \ttabs.add(scrollCol1);\n \t\n \tTilePane col2 = new TilePane();\n \tcol2.setPrefColumns(2);\n \tcol2.prefWidthProperty().bind(controller.primaryStage.widthProperty());\n \tcol2.setAlignment(Pos.TOP_LEFT);\n \tcol2.getChildren().addAll(createElements ());\n \tScrollPane scrollCol2 = new ScrollPane(col2);\n \ttabs.add(scrollCol2);\n \t\n \t\n \t\n for (int i = 0; i < tabs.size(); i++) {\n Tab tab = new Tab();\n String tabLabel = \"Col-\" + i;\n tab.setText(tabLabel);\n keywordsList.put(tabLabel, new ArrayList <String>());\n \n tab.setContent(tabs.get(i));\n tabPane.getTabs().add(tab);\n }\n \t\n \t\n \t\n \t\n \t\n \t\n //System.out.println(controller.getScene());\n border.prefHeightProperty().bind(controller.primaryStage.heightProperty());\n border.prefWidthProperty().bind(controller.primaryStage.widthProperty());\n ToolBar toolbar = createtoolBar();\n toolbar.setPrefHeight(50);\n \n border.setTop(toolbar);\n\t\t\n\n\t scrollCol1.prefHeightProperty().bind(controller.primaryStage.heightProperty());\n\t scrollCol1.prefWidthProperty().bind(controller.primaryStage.widthProperty());\n border.setCenter(tabPane);\n\t Group root = (Group)this.getRoot();\n root.getChildren().add(border);\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jSplitPaneMain = new javax.swing.JSplitPane();\n jSplitPaneTrees = new javax.swing.JSplitPane();\n jTabbedPaneViews = new FactoryTabs();\n jTabbedPaneCollectors = new FactoryTabs();\n jPanel1 = new javax.swing.JPanel();\n jLabel2 = new javax.swing.JLabel();\n jMenuBar1 = new javax.swing.JMenuBar();\n jMenuTools = new javax.swing.JMenu();\n jMenuItemSearchIPAddress = new javax.swing.JMenuItem();\n jMenuItemSearchPort = new javax.swing.JMenuItem();\n jMenuItemSearchSubnet = new javax.swing.JMenuItem();\n jMenuItemCreateReport = new javax.swing.JMenuItem();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n\n jSplitPaneMain.setDividerLocation(250);\n\n jSplitPaneTrees.setDividerLocation(250);\n jSplitPaneTrees.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT);\n jSplitPaneTrees.setTopComponent(jTabbedPaneViews);\n jSplitPaneTrees.setRightComponent(jTabbedPaneCollectors);\n\n jSplitPaneMain.setLeftComponent(jSplitPaneTrees);\n\n jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/views/images/sniffer.png\"))); // NOI18N\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addContainerGap(251, Short.MAX_VALUE)\n .addComponent(jLabel2)\n .addContainerGap())\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addContainerGap(422, Short.MAX_VALUE)\n .addComponent(jLabel2)\n .addContainerGap())\n );\n\n jSplitPaneMain.setRightComponent(jPanel1);\n\n jMenuTools.setText(\"Tools\");\n\n jMenuItemSearchIPAddress.setText(\"search ip address\");\n jMenuTools.add(jMenuItemSearchIPAddress);\n\n jMenuItemSearchPort.setText(\"search port\");\n jMenuTools.add(jMenuItemSearchPort);\n\n jMenuItemSearchSubnet.setText(\"search subnet\");\n jMenuTools.add(jMenuItemSearchSubnet);\n\n jMenuItemCreateReport.setText(\"create report\");\n jMenuTools.add(jMenuItemCreateReport);\n\n jMenuBar1.add(jMenuTools);\n\n setJMenuBar(jMenuBar1);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jSplitPaneMain, javax.swing.GroupLayout.DEFAULT_SIZE, 761, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jSplitPaneMain)\n );\n\n pack();\n }", "public void initModule(){\n SplitPane pane = new SplitPane();\n VBox module = (VBox) loader.getNamespace().get(\"vbox_grapher\");\n ScrollPane module_parent = (ScrollPane) loader.getNamespace().get(\"vbox_grapher_parent\");\n\n //bug solution (set resizable with parent):\n module_parent.setFitToHeight(true);\n module_parent.setFitToWidth(true);\n\n //clear(module);\n createGraphes(-1, module);\n }", "private void initComponents() {\n\n jSplitPane1 = new javax.swing.JSplitPane();\n jPanel1 = new javax.swing.JPanel();\n jButton3 = new javax.swing.JButton();\n jScrollPane1 = new javax.swing.JScrollPane();\n jTree1 = new javax.swing.JTree();\n jPanel2 = new javax.swing.JPanel();\n jScrollPane2 = new javax.swing.JScrollPane();\n jTable1 = new javax.swing.JTable();\n jButton4 = new javax.swing.JButton();\n jLabel1 = new javax.swing.JLabel();\n jButton5 = new javax.swing.JButton();\n jButton7 = new javax.swing.JButton();\n jButton8 = new javax.swing.JButton();\n jButton6 = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"Workflow Config Viewer\");\n\n jSplitPane1.setDividerLocation(350);\n\n jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Components \"));\n\n jButton3.setText(\"Select file\");\n jButton3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton3ActionPerformed(evt);\n }\n });\n\n javax.swing.tree.DefaultMutableTreeNode treeNode1 = new javax.swing.tree.DefaultMutableTreeNode(\"root\");\n jTree1.setModel(new javax.swing.tree.DefaultTreeModel(treeNode1));\n jTree1.setRootVisible(false);\n jScrollPane1.setViewportView(jTree1);\n\n org.jdesktop.layout.GroupLayout jPanel1Layout = new org.jdesktop.layout.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel1Layout.createSequentialGroup()\n .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .add(jButton3))\n .add(jPanel1Layout.createSequentialGroup()\n .add(12, 12, 12)\n .add(jScrollPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 314, Short.MAX_VALUE)))\n .addContainerGap())\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel1Layout.createSequentialGroup()\n .add(jButton3)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jScrollPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 388, Short.MAX_VALUE)\n .addContainerGap())\n );\n\n jSplitPane1.setLeftComponent(jPanel1);\n\n jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Properties\"));\n jPanel2.setMaximumSize(new java.awt.Dimension(610, 444));\n\n jTable1.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n \"Key\", \"Value\"\n }\n ) {\n boolean[] canEdit = new boolean [] {\n false, true\n };\n\n public boolean isCellEditable(int rowIndex, int columnIndex) {\n return canEdit [columnIndex];\n }\n });\n jTable1.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n jTable1FocusGained(evt);\n }\n public void focusLost(java.awt.event.FocusEvent evt) {\n jTable1FocusLost(evt);\n }\n });\n jScrollPane2.setViewportView(jTable1);\n\n jButton4.setText(\"OK\");\n jButton4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton4ActionPerformed(evt);\n }\n });\n\n jLabel1.setText(\" \");\n\n jButton5.setText(\"Go to ref item\");\n jButton5.setEnabled(false);\n jButton5.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton5ActionPerformed(evt);\n }\n });\n\n jButton7.setText(\"Go to FormView\");\n jButton7.setEnabled(false);\n jButton7.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton7ActionPerformed(evt);\n }\n });\n\n jButton8.setText(\"Search\");\n jButton8.setEnabled(false);\n jButton8.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton8ActionPerformed(evt);\n }\n });\n\n jButton6.setText(\"Back\");\n jButton6.setEnabled(false);\n jButton6.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton6ActionPerformed(evt);\n }\n });\n\n org.jdesktop.layout.GroupLayout jPanel2Layout = new org.jdesktop.layout.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel2Layout.createSequentialGroup()\n .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)\n .add(org.jdesktop.layout.GroupLayout.LEADING, jScrollPane2)\n .add(org.jdesktop.layout.GroupLayout.LEADING, jPanel2Layout.createSequentialGroup()\n .addContainerGap(97, Short.MAX_VALUE)\n .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)\n .add(jPanel2Layout.createSequentialGroup()\n .add(jButton8)\n .add(6, 6, 6)\n .add(jButton7)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jButton5)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jButton6, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 70, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .add(jButton4)))\n .add(org.jdesktop.layout.GroupLayout.LEADING, jLabel1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 456, Short.MAX_VALUE))\n .addContainerGap())\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel2Layout.createSequentialGroup()\n .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\n .add(jButton6)\n .add(jButton5)\n .add(jButton7)\n .add(jButton8))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jLabel1)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jScrollPane2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 330, Short.MAX_VALUE)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jButton4)\n .addContainerGap())\n );\n\n jSplitPane1.setRightComponent(jPanel2);\n\n org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(layout.createSequentialGroup()\n .addContainerGap()\n .add(jSplitPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 836, Short.MAX_VALUE)\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(layout.createSequentialGroup()\n .add(6, 6, 6)\n .add(jSplitPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 462, Short.MAX_VALUE)\n .addContainerGap())\n );\n\n pack();\n }", "private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n beanTreeView1 = new org.openide.explorer.view.BeanTreeView();\n\n setBorder(javax.swing.BorderFactory.createEmptyBorder(1, 1, 1, 1));\n\n beanTreeView1.setViewportBorder(javax.swing.BorderFactory.createEtchedBorder());\n beanTreeView1.setRootVisible(false);\n beanTreeView1.setUseSubstringInQuickSearch(false);\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(beanTreeView1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(beanTreeView1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 448, Short.MAX_VALUE)\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n }", "TabbelPane() {\r\n\t\t\tpanelDB = new JPanelCluster(\"mine\", new EventFromDb());\r\n\t\t\tpanelFile = new JPanelCluster(\"store from file\", new EventFromFile());\r\n\t\t\tImageIcon icon = new ImageIcon(\"database.png\");\r\n\t\t\tImage image = icon.getImage();\r\n\t\t\tImage newimage = image.getScaledInstance(20, 20, java.awt.Image.SCALE_SMOOTH);\r\n\t\t\ticon.setImage(newimage);\r\n\t\t\tschermata.addTab(\"DB\", icon, panelDB);\r\n\t\t\ticon = new ImageIcon(\"file.png\");\r\n\t\t\timage = icon.getImage();\r\n\t\t\tnewimage = image.getScaledInstance(20, 20, java.awt.Image.SCALE_SMOOTH);\r\n\t\t\ticon.setImage(newimage);\r\n\t\t\tschermata.addTab(\"file\", icon, panelFile);\r\n\t\t\tsetVisible(true);\r\n\t\t}", "private void splitFrame(){\n setPreferredSize(new Dimension(800,200));\n getContentPane().setLayout(new GridLayout());\n getContentPane().add(splitPane);\n \n // Configure the split pane\n splitPane.setOrientation(JSplitPane.HORIZONTAL_SPLIT);\n splitPane.setDividerLocation(300);\n splitPane.setTopComponent(subPanel1); // Add panels to pane\n splitPane.setBottomComponent(subPanel2); // Add panels to pane\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n splitPane = new javax.swing.JSplitPane();\n controlPanel = new javax.swing.JPanel();\n btnAdmin = new javax.swing.JButton();\n btnSupplier = new javax.swing.JButton();\n btnSupplier1 = new javax.swing.JButton();\n userProcessContainer = new javax.swing.JPanel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"Lab 5 Skeleton\");\n setBackground(new java.awt.Color(240, 240, 240));\n\n splitPane.setDividerLocation(150);\n splitPane.setOpaque(false);\n\n controlPanel.setBackground(new java.awt.Color(240, 240, 240));\n\n btnAdmin.setText(\"city\");\n btnAdmin.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnAdminActionPerformed(evt);\n }\n });\n\n btnSupplier.setText(\"People\");\n btnSupplier.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnSupplierActionPerformed(evt);\n }\n });\n\n btnSupplier1.setText(\"patient\");\n btnSupplier1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnSupplier1ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout controlPanelLayout = new javax.swing.GroupLayout(controlPanel);\n controlPanel.setLayout(controlPanelLayout);\n controlPanelLayout.setHorizontalGroup(\n controlPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(controlPanelLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(controlPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(controlPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(btnAdmin, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 136, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnSupplier, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 136, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(btnSupplier1, javax.swing.GroupLayout.PREFERRED_SIZE, 136, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n controlPanelLayout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {btnAdmin, btnSupplier});\n\n controlPanelLayout.setVerticalGroup(\n controlPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(controlPanelLayout.createSequentialGroup()\n .addGap(114, 114, 114)\n .addComponent(btnAdmin)\n .addGap(18, 18, 18)\n .addComponent(btnSupplier)\n .addGap(18, 18, 18)\n .addComponent(btnSupplier1)\n .addContainerGap(411, Short.MAX_VALUE))\n );\n\n splitPane.setLeftComponent(controlPanel);\n\n userProcessContainer.setBackground(new java.awt.Color(240, 240, 240));\n userProcessContainer.setLayout(new java.awt.CardLayout());\n splitPane.setRightComponent(userProcessContainer);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(splitPane, javax.swing.GroupLayout.DEFAULT_SIZE, 854, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(splitPane)\n );\n\n pack();\n }", "private void initComponents() {\n jSplitPane1 = new javax.swing.JSplitPane();\n jPanel1 = new javax.swing.JPanel();\n jPanel3 = new javax.swing.JPanel();\n xActionTextField1 = new com.rameses.rcp.control.XActionTextField();\n xDataTable1 = new com.rameses.rcp.control.XDataTable();\n jPanel2 = new javax.swing.JPanel();\n xActionBar1 = new com.rameses.rcp.control.XActionBar();\n jPanel4 = new javax.swing.JPanel();\n formPanel1 = new com.rameses.rcp.util.FormPanel();\n xTextField1 = new com.rameses.rcp.control.XTextField();\n xTextField2 = new com.rameses.rcp.control.XTextField();\n xCheckBox1 = new com.rameses.rcp.control.XCheckBox();\n xNumberField1 = new com.rameses.rcp.control.XNumberField();\n\n setLayout(new java.awt.BorderLayout());\n\n setPreferredSize(new java.awt.Dimension(748, 396));\n jSplitPane1.setDividerLocation(400);\n jPanel1.setLayout(new java.awt.BorderLayout());\n\n com.rameses.rcp.control.border.XTitledBorder xTitledBorder1 = new com.rameses.rcp.control.border.XTitledBorder();\n xTitledBorder1.setTitle(\"Listing\");\n jPanel1.setBorder(xTitledBorder1);\n jPanel3.setLayout(new java.awt.BorderLayout());\n\n jPanel3.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 1, 3, 5));\n xActionTextField1.setActionName(\"search\");\n xActionTextField1.setCaptionMnemonic('h');\n xActionTextField1.setHint(\"Search\");\n xActionTextField1.setIndex(-1);\n xActionTextField1.setName(\"searchText\");\n xActionTextField1.setPreferredSize(new java.awt.Dimension(200, 19));\n jPanel3.add(xActionTextField1, java.awt.BorderLayout.WEST);\n\n jPanel1.add(jPanel3, java.awt.BorderLayout.NORTH);\n\n xDataTable1.setHandler(\"listHandler\");\n xDataTable1.setImmediate(true);\n xDataTable1.setName(\"selectedItem\");\n jPanel1.add(xDataTable1, java.awt.BorderLayout.CENTER);\n\n jSplitPane1.setLeftComponent(jPanel1);\n\n jPanel2.setLayout(new java.awt.BorderLayout());\n\n com.rameses.rcp.control.border.XTitledBorder xTitledBorder2 = new com.rameses.rcp.control.border.XTitledBorder();\n xTitledBorder2.setTitle(\"Document\");\n jPanel2.setBorder(xTitledBorder2);\n xActionBar1.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 5, 0, 0));\n xActionBar1.setDepends(new String[] {\"selectedItem\"});\n xActionBar1.setName(\"formActions\");\n jPanel2.add(xActionBar1, java.awt.BorderLayout.NORTH);\n\n jPanel4.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 5, 5, 5));\n\n com.rameses.rcp.control.border.XTitledBorder xTitledBorder3 = new com.rameses.rcp.control.border.XTitledBorder();\n xTitledBorder3.setTitle(\"Property Classification Information\");\n formPanel1.setBorder(xTitledBorder3);\n xTextField1.setCaption(\"Code\");\n xTextField1.setDepends(new String[] {\"selectedItem\"});\n xTextField1.setName(\"entity.propertycode\");\n xTextField1.setPreferredSize(new java.awt.Dimension(80, 18));\n xTextField1.setRequired(true);\n formPanel1.add(xTextField1);\n\n xTextField2.setCaption(\"Description\");\n xTextField2.setDepends(new String[] {\"selectedItem\"});\n xTextField2.setName(\"entity.propertydesc\");\n xTextField2.setPreferredSize(new java.awt.Dimension(0, 18));\n xTextField2.setRequired(true);\n formPanel1.add(xTextField2);\n\n xCheckBox1.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));\n xCheckBox1.setText(\" Is Special?\");\n xCheckBox1.setCaption(\"\");\n xCheckBox1.setCheckValue(1);\n xCheckBox1.setDepends(new String[] {\"selectedItem\"});\n xCheckBox1.setMargin(new java.awt.Insets(0, 0, 0, 0));\n xCheckBox1.setName(\"entity.special\");\n formPanel1.add(xCheckBox1);\n\n xNumberField1.setCaption(\"Order No\");\n xNumberField1.setDepends(new String[] {\"selectedItem\"});\n xNumberField1.setFieldType(int.class);\n xNumberField1.setName(\"entity.orderno\");\n xNumberField1.setPreferredSize(new java.awt.Dimension(75, 18));\n xNumberField1.setRequired(true);\n formPanel1.add(xNumberField1);\n\n org.jdesktop.layout.GroupLayout jPanel4Layout = new org.jdesktop.layout.GroupLayout(jPanel4);\n jPanel4.setLayout(jPanel4Layout);\n jPanel4Layout.setHorizontalGroup(\n jPanel4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel4Layout.createSequentialGroup()\n .add(formPanel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 328, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(29, Short.MAX_VALUE))\n );\n jPanel4Layout.setVerticalGroup(\n jPanel4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel4Layout.createSequentialGroup()\n .add(formPanel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 177, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(166, Short.MAX_VALUE))\n );\n jPanel2.add(jPanel4, java.awt.BorderLayout.CENTER);\n\n jSplitPane1.setRightComponent(jPanel2);\n\n add(jSplitPane1, java.awt.BorderLayout.CENTER);\n\n }", "private void $$$setupUI$$$() {\n contentPane = new JPanel();\n contentPane.setLayout(new GridLayoutManager(2, 1, new Insets(10, 10, 10, 10), -1, -1));\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n contentPane.add(panel1, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, 1, null, null, null, 0, false));\n final JPanel panel2 = new JPanel();\n panel2.setLayout(new GridLayoutManager(3, 1, new Insets(0, 0, 0, 0), -1, -1));\n panel1.add(panel2, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n memberImportTagButton = new JButton();\n Font memberImportTagButtonFont = this.$$$getFont$$$(null, Font.PLAIN, -1, memberImportTagButton.getFont());\n if (memberImportTagButtonFont != null) memberImportTagButton.setFont(memberImportTagButtonFont);\n memberImportTagButton.setText(\"导入选择的标签分组-取并集\");\n panel2.add(memberImportTagButton, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n memberImportTagRetainButton = new JButton();\n Font memberImportTagRetainButtonFont = this.$$$getFont$$$(null, Font.PLAIN, -1, memberImportTagRetainButton.getFont());\n if (memberImportTagRetainButtonFont != null)\n memberImportTagRetainButton.setFont(memberImportTagRetainButtonFont);\n memberImportTagRetainButton.setText(\"导入选择的标签分组-取交集\");\n panel2.add(memberImportTagRetainButton, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n memberImportAllButton = new JButton();\n Font memberImportAllButtonFont = this.$$$getFont$$$(null, Font.PLAIN, -1, memberImportAllButton.getFont());\n if (memberImportAllButtonFont != null) memberImportAllButton.setFont(memberImportAllButtonFont);\n memberImportAllButton.setText(\"导入所有关注公众号的用户\");\n panel2.add(memberImportAllButton, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JPanel panel3 = new JPanel();\n panel3.setLayout(new GridLayoutManager(2, 3, new Insets(0, 0, 0, 0), -1, -1));\n contentPane.add(panel3, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n importOptionPanel = new JPanel();\n importOptionPanel.setLayout(new GridLayoutManager(1, 5, new Insets(0, 0, 0, 0), -1, -1));\n panel3.add(importOptionPanel, new GridConstraints(1, 0, 1, 3, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n importOptionOpenIdCheckBox = new JCheckBox();\n importOptionOpenIdCheckBox.setEnabled(false);\n importOptionOpenIdCheckBox.setSelected(true);\n importOptionOpenIdCheckBox.setText(\"openId\");\n importOptionPanel.add(importOptionOpenIdCheckBox, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final Spacer spacer1 = new Spacer();\n importOptionPanel.add(spacer1, new GridConstraints(0, 4, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n importOptionBasicInfoCheckBox = new JCheckBox();\n importOptionBasicInfoCheckBox.setText(\"昵称、性别等基本信息\");\n importOptionBasicInfoCheckBox.setToolTipText(\"每获取一条信息会花费一次每日接口调用量\");\n importOptionPanel.add(importOptionBasicInfoCheckBox, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n importOptionAvatarCheckBox = new JCheckBox();\n importOptionAvatarCheckBox.setText(\"头像\");\n importOptionAvatarCheckBox.setToolTipText(\"勾选会导致左侧列表甚至WePush变卡哦\");\n importOptionPanel.add(importOptionAvatarCheckBox, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n clearDbCacheButton = new JButton();\n clearDbCacheButton.setText(\"清空本地缓存\");\n importOptionPanel.add(clearDbCacheButton, new GridConstraints(0, 3, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n memberImportTagComboBox = new JComboBox();\n final DefaultComboBoxModel defaultComboBoxModel1 = new DefaultComboBoxModel();\n memberImportTagComboBox.setModel(defaultComboBoxModel1);\n panel3.add(memberImportTagComboBox, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n memberImportTagFreshButton = new JButton();\n Font memberImportTagFreshButtonFont = this.$$$getFont$$$(null, Font.PLAIN, -1, memberImportTagFreshButton.getFont());\n if (memberImportTagFreshButtonFont != null) memberImportTagFreshButton.setFont(memberImportTagFreshButtonFont);\n memberImportTagFreshButton.setText(\"刷新\");\n panel3.add(memberImportTagFreshButton, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, 1, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label1 = new JLabel();\n label1.setText(\"标签分组\");\n panel3.add(label1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n }", "private void initComponents() {\r\n\t\tResourceImageReference imageReference1 = new ResourceImageReference(\r\n\t\t\t\t\"/pds/web/resource/image/mainback-gray.jpg\");\r\n\t\tthis.setBackgroundImage(new FillImage(imageReference1));\r\n\t\tSplitPane splitPane1 = new SplitPane();\r\n\t\tsplitPane1.setStyleName(\"Default\");\r\n\t\tsplitPane1.setSeparatorVisible(false);\r\n\t\tadd(splitPane1);\r\n\t\tColumn column1 = new Column();\r\n\t\tsplitPane1.add(column1);\r\n\t\tpdsColumn = new Column();\r\n\t\tpdsColumn.setVisible(false);\r\n\t\tpdsColumn.setInsets(new Insets(new Extent(30, Extent.PX)));\r\n\t\tpdsColumn.setCellSpacing(new Extent(20, Extent.PX));\r\n\t\tRowLayoutData pdsColumnLayoutData = new RowLayoutData();\r\n\t\tpdsColumnLayoutData.setAlignment(new Alignment(Alignment.LEFT,\r\n\t\t\t\tAlignment.DEFAULT));\r\n\t\tpdsColumn.setLayoutData(pdsColumnLayoutData);\r\n\t\tcolumn1.add(pdsColumn);\r\n\t\tRow row4 = new Row();\r\n\t\trow4.setCellSpacing(new Extent(10, Extent.PX));\r\n\t\tpdsColumn.add(row4);\r\n\t\tButton button1 = new Button();\r\n\t\tbutton1.setStyleName(\"PlainWhite\");\r\n\t\tResourceImageReference imageReference2 = new ResourceImageReference(\r\n\t\t\t\t\"/pds/web/resource/image/accountroot.png\");\r\n\t\tbutton1.setIcon(imageReference2);\r\n\t\tbutton1.setText(\"Account Root\");\r\n\t\tbutton1.addActionListener(new ActionListener() {\r\n\t\t\tprivate static final long serialVersionUID = 1L;\r\n\t\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tonAccountRootActionPerformed(e);\r\n\t\t\t}\r\n\t\t});\r\n\t\trow4.add(button1);\r\n\t\tButton button10 = new Button();\r\n\t\tbutton10.setStyleName(\"PlainWhite\");\r\n\t\tResourceImageReference imageReference3 = new ResourceImageReference(\r\n\t\t\t\t\"/pds/web/resource/image/linkcontracts.png\");\r\n\t\tbutton10.setIcon(imageReference3);\r\n\t\tbutton10.setText(\"Link Contracts\");\r\n\t\tbutton10.addActionListener(new ActionListener() {\r\n\t\t\tprivate static final long serialVersionUID = 1L;\r\n\t\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tonLinkContractsActionPerformed(e);\r\n\t\t\t}\r\n\t\t});\r\n\t\trow4.add(button10);\r\n\t\tfacebookConnectorPanel = new FacebookConnectorPanel();\r\n\t\tfacebookConnectorPanel.setId(\"facebookConnectorPanel\");\r\n\t\trow4.add(facebookConnectorPanel);\r\n\t\tpersonalConnectorPanel = new PersonalConnectorPanel();\r\n\t\tpersonalConnectorPanel.setId(\"personalConnectorPanel\");\r\n\t\trow4.add(personalConnectorPanel);\r\n\t\tallfiledConnectorPanel = new AllfiledConnectorPanel();\r\n\t\tallfiledConnectorPanel.setId(\"allfiledConnectorPanel\");\r\n\t\trow4.add(allfiledConnectorPanel);\r\n\t\tLabel label1 = new Label();\r\n\t\tlabel1.setStyleName(\"Header\");\r\n\t\tlabel1.setText(\"Account Personas\");\r\n\t\tpdsColumn.add(label1);\r\n\t\tRow row7 = new Row();\r\n\t\tpdsColumn.add(row7);\r\n\t\taccountRootGrid = new AccountRootGrid();\r\n\t\trow7.add(accountRootGrid);\r\n\t\tLabel label2 = new Label();\r\n\t\tlabel2.setStyleName(\"Header\");\r\n\t\tlabel2.setText(\"Applications\");\r\n\t\tpdsColumn.add(label2);\r\n\t\tpdsWebAppGrid = new Grid();\r\n\t\tpdsWebAppGrid.setOrientation(Grid.ORIENTATION_HORIZONTAL);\r\n\t\tpdsWebAppGrid.setSize(5);\r\n\t\tpdsColumn.add(pdsWebAppGrid);\r\n\t\tLabel label3 = new Label();\r\n\t\tlabel3.setStyleName(\"Header\");\r\n\t\tlabel3.setText(\"Data Housekeeping\");\r\n\t\tpdsColumn.add(label3);\r\n\t\tRow row5 = new Row();\r\n\t\trow5.setCellSpacing(new Extent(20, Extent.PX));\r\n\t\tpdsColumn.add(row5);\r\n\t\tToolTipContainer toolTipContainer1 = new ToolTipContainer();\r\n\t\trow5.add(toolTipContainer1);\r\n\t\tButton button2 = new Button();\r\n\t\tbutton2.setStyleName(\"PlainWhite\");\r\n\t\tResourceImageReference imageReference4 = new ResourceImageReference(\r\n\t\t\t\t\"/pds/web/resource/image/data-clean.png\");\r\n\t\tbutton2.setIcon(imageReference4);\r\n\t\tbutton2.setText(\"Reset data\");\r\n\t\tbutton2.addActionListener(new ActionListener() {\r\n\t\t\tprivate static final long serialVersionUID = 1L;\r\n\t\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tonResetDataActionPerformed(e);\r\n\t\t\t}\r\n\t\t});\r\n\t\ttoolTipContainer1.add(button2);\r\n\t\tPanel panel1 = new Panel();\r\n\t\tpanel1.setStyleName(\"Tooltip\");\r\n\t\ttoolTipContainer1.add(panel1);\r\n\t\tLabel label4 = new Label();\r\n\t\tlabel4.setStyleName(\"Default\");\r\n\t\tlabel4.setText(\"This will clear all data from your Personal Cloud. Make sure you have a backup!\");\r\n\t\tpanel1.add(label4);\r\n\t\tToolTipContainer toolTipContainer2 = new ToolTipContainer();\r\n\t\trow5.add(toolTipContainer2);\r\n\t\tButton button3 = new Button();\r\n\t\tbutton3.setStyleName(\"PlainWhite\");\r\n\t\tResourceImageReference imageReference5 = new ResourceImageReference(\r\n\t\t\t\t\"/pds/web/resource/image/data-export.png\");\r\n\t\tbutton3.setIcon(imageReference5);\r\n\t\tbutton3.setText(\"Data Export\");\r\n\t\tbutton3.addActionListener(new ActionListener() {\r\n\t\t\tprivate static final long serialVersionUID = 1L;\r\n\t\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tonDataExportActionPerformed(e);\r\n\t\t\t}\r\n\t\t});\r\n\t\ttoolTipContainer2.add(button3);\r\n\t\tPanel panel2 = new Panel();\r\n\t\tpanel2.setStyleName(\"Tooltip\");\r\n\t\ttoolTipContainer2.add(panel2);\r\n\t\tLabel label5 = new Label();\r\n\t\tlabel5.setStyleName(\"Default\");\r\n\t\tlabel5.setText(\"This allows you to download all the contents of your Personal Cloud as an XDI file.\");\r\n\t\tpanel2.add(label5);\r\n\t\tToolTipContainer toolTipContainer3 = new ToolTipContainer();\r\n\t\trow5.add(toolTipContainer3);\r\n\t\tButton button11 = new Button();\r\n\t\tbutton11.setStyleName(\"PlainWhite\");\r\n\t\tResourceImageReference imageReference6 = new ResourceImageReference(\r\n\t\t\t\t\"/pds/web/resource/image/data-import.png\");\r\n\t\tbutton11.setIcon(imageReference6);\r\n\t\tbutton11.setText(\"Data Import\");\r\n\t\tbutton11.addActionListener(new ActionListener() {\r\n\t\t\tprivate static final long serialVersionUID = 1L;\r\n\t\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tonDataImportActionPerformed(e);\r\n\t\t\t}\r\n\t\t});\r\n\t\ttoolTipContainer3.add(button11);\r\n\t\tPanel panel3 = new Panel();\r\n\t\tpanel3.setStyleName(\"Tooltip\");\r\n\t\ttoolTipContainer3.add(panel3);\r\n\t\tLabel label6 = new Label();\r\n\t\tlabel6.setStyleName(\"Default\");\r\n\t\tlabel6.setText(\"This allows you to import data from an XDI file input your Personal Cloud.\");\r\n\t\tpanel3.add(label6);\r\n\t\tColumn column2 = new Column();\r\n\t\tcolumn2.setInsets(new Insets(new Extent(10, Extent.PX)));\r\n\t\tSplitPaneLayoutData column2LayoutData = new SplitPaneLayoutData();\r\n\t\tcolumn2LayoutData.setAlignment(new Alignment(Alignment.RIGHT,\r\n\t\t\t\tAlignment.DEFAULT));\r\n\t\tcolumn2LayoutData.setMinimumSize(new Extent(400, Extent.PX));\r\n\t\tcolumn2LayoutData.setMaximumSize(new Extent(400, Extent.PX));\r\n\t\tcolumn2.setLayoutData(column2LayoutData);\r\n\t\tsplitPane1.add(column2);\r\n\t\tImageIcon imageIcon1 = new ImageIcon();\r\n\t\tResourceImageReference imageReference7 = new ResourceImageReference(\r\n\t\t\t\t\"/pds/web/resource/image/pds-logo.png\");\r\n\t\timageIcon1.setIcon(imageReference7);\r\n\t\timageIcon1.setHeight(new Extent(45, Extent.PX));\r\n\t\timageIcon1.setWidth(new Extent(337, Extent.PX));\r\n\t\timageIcon1.setInsets(new Insets(new Extent(0, Extent.PX), new Extent(\r\n\t\t\t\t10, Extent.PX), new Extent(0, Extent.PX), new Extent(0,\r\n\t\t\t\tExtent.PX)));\r\n\t\tcolumn2.add(imageIcon1);\r\n\t\tRow row2 = new Row();\r\n\t\trow2.setAlignment(new Alignment(Alignment.RIGHT, Alignment.DEFAULT));\r\n\t\trow2.setInsets(new Insets(new Extent(0, Extent.PX), new Extent(0,\r\n\t\t\t\tExtent.PX), new Extent(0, Extent.PX), new Extent(10, Extent.PX)));\r\n\t\trow2.setCellSpacing(new Extent(10, Extent.PX));\r\n\t\tcolumn2.add(row2);\r\n\t\tImageIcon imageIcon2 = new ImageIcon();\r\n\t\tResourceImageReference imageReference8 = new ResourceImageReference(\r\n\t\t\t\t\"/pds/web/resource/image/projectdanube.png\");\r\n\t\timageIcon2.setIcon(imageReference8);\r\n\t\timageIcon2.setHeight(new Extent(68, Extent.PX));\r\n\t\timageIcon2.setWidth(new Extent(68, Extent.PX));\r\n\t\trow2.add(imageIcon2);\r\n\t\tColumn column3 = new Column();\r\n\t\tcolumn3.setCellSpacing(new Extent(10, Extent.PX));\r\n\t\trow2.add(column3);\r\n\t\tlogWindowCheckBox = new CheckBox();\r\n\t\tlogWindowCheckBox.setSelected(false);\r\n\t\tlogWindowCheckBox.setText(\"Show Log Window\");\r\n\t\tlogWindowCheckBox.addActionListener(new ActionListener() {\r\n\t\t\tprivate static final long serialVersionUID = 1L;\r\n\t\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tonLogWindowActionPerformed(e);\r\n\t\t\t}\r\n\t\t});\r\n\t\tcolumn3.add(logWindowCheckBox);\r\n\t\tdeveloperModeCheckBox = new CheckBox();\r\n\t\tdeveloperModeCheckBox.setSelected(false);\r\n\t\tdeveloperModeCheckBox.setText(\"Enable Developer Mode\");\r\n\t\tdeveloperModeCheckBox.addActionListener(new ActionListener() {\r\n\t\t\tprivate static final long serialVersionUID = 1L;\r\n\t\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tonDeveloperModeActionPerformed(e);\r\n\t\t\t}\r\n\t\t});\r\n\t\tcolumn3.add(developerModeCheckBox);\r\n\t\tLogWindowPane logWindowPane1 = new LogWindowPane();\r\n\t\tlogWindowPane1.setVisible(false);\r\n\t\tadd(logWindowPane1);\r\n\t\tEndpointWindowPane accountWindowPane1 = new EndpointWindowPane();\r\n\t\tadd(accountWindowPane1);\r\n\t}", "private void initialiseUI()\n { \n // The actual data go in this component.\n String defaultRootElement = \"icr:regionSetData\";\n JPanel contentPanel = initialiseContentPanel(defaultRootElement);\n pane = new JScrollPane(contentPanel);\n \n panelLayout = new GroupLayout(this);\n\t\tthis.setLayout(panelLayout);\n\t\tthis.setBackground(DAOConstants.BG_COLOUR);\n\n\t\tpanelLayout.setAutoCreateContainerGaps(true);\n\n panelLayout.setHorizontalGroup(\n\t\t\tpanelLayout.createParallelGroup()\n\t\t\t.addComponent(pane, 10, 520, 540)\n );\n\n panelLayout.setVerticalGroup(\n\t\t\tpanelLayout.createSequentialGroup()\n .addComponent(pane, 10, GroupLayout.PREFERRED_SIZE, Short.MAX_VALUE)\n );\n }", "private void initAdminComponents() {\n\t\t\n\t\tcreateUserList();\n\t\tcreateUserListQual();\n\t\t\n\t\tlayeredPaneAdmin = new JLayeredPane();\n\t\tlayeredPaneAdmin.setBackground(new Color(100, 149, 237));\n\t\tlayeredPane.setLayer(layeredPaneAdmin, 0);\n\t\tlayeredPaneAdmin.setBounds(0, 0, 941, 760);\n\t\tlayeredPane.add(layeredPaneAdmin);\n\t\t\n\t\tpnlAdmin = new JPanel();\n\t\tlayeredPaneAdmin.setLayer(pnlAdmin, 0);\n\t\tpnlAdmin.setBounds(0, 0, 947, 760);\n\t\tlayeredPaneAdmin.add(pnlAdmin);\n\t\t\n\t\tlayeredPaneAdminComponents = new JLayeredPane();\n\t\tlayeredPaneAdminComponents.setBounds(0, 0, 937, 760);\n\t\t\n\t\tpnlReportGeneration = new JPanel();\n\t\tlayeredPaneAdminComponents.setLayer(pnlReportGeneration, 0);\n\t\tpnlReportGeneration.setBounds(180, 38, 746, 720);\n\t\tlayeredPaneAdminComponents.add(pnlReportGeneration);\n\t\tpnlReportGeneration.setLayout(null);\n\t\t\n\t\tscrlPaneProjects = new JScrollPane();\n\t\tscrlPaneProjects.setBounds(378, 73, 160, 170);\n\t\tpnlReportGeneration.add(scrlPaneProjects);\n\t\t\n\t\tlistProjectsGeneratable = new JList(projectsList);\n\t\tlistProjectsGeneratable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n\t\tscrlPaneProjects.setViewportView(listProjectsGeneratable);\n\t\t\n\t\tJLabel lblSelectProjectTo = new JLabel(\"Select project to generate report:\");\n\t\tlblSelectProjectTo.setBounds(68, 75, 169, 14);\n\t\tpnlReportGeneration.add(lblSelectProjectTo);\n\t\t\n\t\tbtnCancelReport = new JButton(\"Cancel\");\n\t\tbtnCancelReport.setBounds(628, 647, 83, 23);\n\t\tpnlReportGeneration.add(btnCancelReport);\n\t\t\n\t\tbtnCreateReport = new JButton(\"Create Report\");\n\t\tbtnCreateReport.setBounds(482, 647, 109, 23);\n\t\tpnlReportGeneration.add(btnCreateReport);\n\t\t\n\t\tJLabel lblEnterPathFor = new JLabel(\"Enter path for reports to go to:\");\n\t\tlblEnterPathFor.setBounds(68, 272, 160, 14);\n\t\tpnlReportGeneration.add(lblEnterPathFor);\n\t\t\n\t\ttxtReportPath = new JTextField();\n\t\ttxtReportPath.setBounds(380, 269, 267, 20);\n\t\tpnlReportGeneration.add(txtReportPath);\n\t\ttxtReportPath.setColumns(10);\n\t\t\n\t\tPanel pnlUsers = new Panel();\n\t\tlayeredPaneAdminComponents.setLayer(pnlUsers, 0);\n\t\tpnlUsers.setEnabled(false);\n\t\tpnlUsers.setBounds(0, 0, 157, 28);\n\t\tlayeredPaneAdminComponents.add(pnlUsers);\n\t\tpnlUsers.setBackground(Color.LIGHT_GRAY);\n\t\tpnlUsers.setLayout(null);\n\t\t\n\t\tJLabel lblUsers = DefaultComponentFactory.getInstance().createLabel(\"USERS\");\n\t\tlblUsers.setBounds(58, 5, 40, 16);\n\t\tlblUsers.setFont(new Font(\"Tahoma\", Font.BOLD, 13));\n\t\tpnlUsers.add(lblUsers);\n\t\t\n\t\tpnlCreateQualification = new JPanel();\n\t\tpnlCreateQualification.setBounds(180, 38, 746, 720);\n\t\tlayeredPaneAdminComponents.add(pnlCreateQualification);\n\t\tpnlCreateQualification.setVisible(false);\n\t\t\n\t\tJLabel lblCreateQualification = new JLabel(\"Create New Qualification\");\n\t\tlblCreateQualification.setBounds(246, 11, 262, 51);\n\t\tlblCreateQualification.setFont(new Font(\"Tahoma\", Font.BOLD, 20));\n\t\t\n\t\tlblTitle = new JLabel(\"Title:\");\n\t\tlblTitle.setBounds(111, 131, 56, 20);\n\t\tlblTitle.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\n\t\t\n\t\tJLabel lblDescription = new JLabel(\"Description:\");\n\t\tlblDescription.setBounds(61, 193, 120, 14);\n\t\tlblDescription.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\n\t\t\n\t\tJLabel lblAssignToUsers = new JLabel(\"Assign to Users\");\n\t\tlblAssignToUsers.setBounds(247, 298, 147, 14);\n\t\tlblAssignToUsers.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\n\t\t\n\t\tJLabel lblAvailable_1 = new JLabel(\"Available\");\n\t\tlblAvailable_1.setBounds(121, 314, 60, 14);\n\t\tlblAvailable_1.setFont(new Font(\"Tahoma\", Font.BOLD, 11));\n\t\t\n\t\tJLabel lblAssigned_1 = new JLabel(\"Assigned\");\n\t\tlblAssigned_1.setBounds(462, 314, 67, 14);\n\t\tlblAssigned_1.setFont(new Font(\"Tahoma\", Font.BOLD, 11));\n\t\t\n\t\ttxtNewQualificationName = new JTextField();\n\t\ttxtNewQualificationName.setBounds(240, 133, 154, 20);\n\t\ttxtNewQualificationName.setColumns(10);\n\t\t\n\t\tJScrollPane scrollPane_1 = new JScrollPane();\n\t\tscrollPane_1.setBounds(240, 194, 387, 79);\n\t\t\n\t\ttxtNewQualificationDesc = new JTextArea();\n\t\tscrollPane_1.setViewportView(txtNewQualificationDesc);\n\t\t\n\t\tJScrollPane scrollPane_2 = new JScrollPane();\n\t\tscrollPane_2.setBounds(80, 339, 154, 287);\n\t\tlistCreateQualAvailUsers = new JList(userListAvailQual);\n\t\tscrollPane_2.setViewportView(listCreateQualAvailUsers);\n\t\t\n\t\tJScrollPane scrollPane_3 = new JScrollPane();\n\t\tscrollPane_3.setBounds(406, 339, 154, 287);\n\t\t\n\t\tlistCreateQualAssignedUsers = new JList(userListAssignQual);\n\t\tscrollPane_3.setViewportView(listCreateQualAssignedUsers);\n\t\t\n\t\tbtnAssignUserQual = new JButton(\"->\");\n\t\tbtnAssignUserQual.setBounds(271, 445, 89, 23);\n\t\t\n\t\tbtnAssignUserQual.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\n\t\t\n\t\tbtnUnassignUserQual = new JButton(\"<-\");\n\t\tbtnUnassignUserQual.setBounds(271, 519, 89, 23);\n\t\t\t\t\n\t\tbtnUnassignUserQual.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\n\t\t\n\t\tbtnCreateQual = new JButton(\"CREATE\");\n\t\tbtnCreateQual.setBounds(271, 668, 123, 41);\n\t\t\t\t\t\t\n\t\tbtnCreateQual.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\n\t\t\n\t\tbtnCancelAddQualifcation = new JButton(\"Cancel\");\n\t\tbtnCancelAddQualifcation.setBounds(400, 668, 100, 30);\n\n\t\tbtnCancelAddQualifcation.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\n\t\tpnlCreateQualification.setLayout(null);\n\t\tpnlCreateQualification.add(lblCreateQualification);\n\t\tpnlCreateQualification.add(lblTitle);\n\t\tpnlCreateQualification.add(txtNewQualificationName);\n\t\tpnlCreateQualification.add(lblDescription);\n\t\tpnlCreateQualification.add(scrollPane_1);\n\t\tpnlCreateQualification.add(lblAssignToUsers);\n\t\tpnlCreateQualification.add(lblAvailable_1);\n\t\tpnlCreateQualification.add(lblAssigned_1);\n\t\tpnlCreateQualification.add(scrollPane_2);\n\t\tpnlCreateQualification.add(btnAssignUserQual);\n\t\tpnlCreateQualification.add(btnUnassignUserQual);\n\t\tpnlCreateQualification.add(scrollPane_3);\n\t\tpnlCreateQualification.add(btnCreateQual);\n\t\tpnlCreateQualification.add(btnCancelAddQualifcation);\n\t\t\n\t\tpnlCreateUser = new JPanel();\n\t\tlayeredPaneAdminComponents.setLayer(pnlCreateUser, 0);\n\t\tpnlCreateUser.setBounds(180, 38, 746, 720);\n\t\tlayeredPaneAdminComponents.add(pnlCreateUser);\n\t\tpnlCreateUser.setVisible(false);\n\t\tpnlCreateUser.setBackground(UIManager.getColor(\"Button.background\"));\n\t\tpnlCreateUser.setBorder(new SoftBevelBorder(BevelBorder.RAISED, new Color(220, 20, 60), null, null, null));\n\t\t\n\t\tlblEnterUserInfo = new JLabel(\"Enter User Info\");\n\t\tlblEnterUserInfo.setBounds(314, 21, 155, 25);\n\t\tlblEnterUserInfo.setFont(new Font(\"Tahoma\", Font.BOLD, 20));\n\t\t\n\t\tlblFirstName_1 = new JLabel(\"First Name:\");\n\t\tlblFirstName_1.setBounds(116, 64, 79, 17);\n\t\tlblFirstName_1.setFont(new Font(\"Tahoma\", Font.BOLD, 14));\n\t\t\n\t\tbtnCreateUser = new JButton(\"Create User\");\n\t\tbtnCreateUser.setBounds(144, 496, 200, 29);\n\t\t\n\t\tbtnCreateUser.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\n\t\t\n\t\trdbtnAdmin = new JRadioButton(\"Admin\");\n\t\trdbtnAdmin.setBounds(228, 437, 61, 23);\n\t\tbuttonGroup.add(rdbtnAdmin);\n\t\trdbtnAdmin.setFont(new Font(\"Tahoma\", Font.BOLD, 11));\n\t\t\n\t\trdbtnManager = new JRadioButton(\"Manager\");\n\t\trdbtnManager.setBounds(314, 437, 75, 23);\n\t\tbuttonGroup.add(rdbtnManager);\n\t\trdbtnManager.setFont(new Font(\"Tahoma\", Font.BOLD, 11));\n\t\t\n\t\trdbtnWorker = new JRadioButton(\"Worker\");\n\t\trdbtnWorker.setBounds(420, 437, 67, 23);\n\t\tbuttonGroup.add(rdbtnWorker);\n\t\trdbtnWorker.setFont(new Font(\"Tahoma\", Font.BOLD, 11));\n\t\t\n\t\ttxtCreateFirstName = new JTextField();\n\t\ttxtCreateFirstName.setBounds(257, 64, 291, 20);\n\t\ttxtCreateFirstName.setColumns(10);\n\t\t\n\t\ttxtCreateLastName = new JTextField();\n\t\ttxtCreateLastName.setBounds(257, 126, 291, 20);\n\t\ttxtCreateLastName.setColumns(10);\n\t\t\n\t\ttxtCreateUsername = new JTextField();\n\t\ttxtCreateUsername.setBounds(257, 179, 291, 20);\n\t\ttxtCreateUsername.setColumns(10);\n\t\t\n\t\ttxtCreateEmailAddress = new JTextField();\n\t\ttxtCreateEmailAddress.setBounds(257, 235, 291, 20);\n\t\ttxtCreateEmailAddress.setColumns(10);\n\t\t\n\t\ttxtCreatePhoneNumber = new JTextField();\n\t\ttxtCreatePhoneNumber.setBounds(257, 292, 291, 20);\n\t\ttxtCreatePhoneNumber.setColumns(10);\n\t\t\n\t\ttxtCreatePassword = new JPasswordField();\n\t\ttxtCreatePassword.setBounds(257, 348, 292, 22);\n\t\t\n\t\tbtnCancel = new JButton(\"Cancel\");\n\t\tbtnCancel.setBounds(401, 493, 133, 35);\n\t\t\t\t\t\t\t\t\n\t\tbtnCancel.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\n\t\t\n\t\tJLabel lblLastName_1 = new JLabel(\"Last Name:\");\n\t\tlblLastName_1.setBounds(117, 129, 78, 17);\n\t\tlblLastName_1.setFont(new Font(\"Tahoma\", Font.BOLD, 14));\n\t\t\n\t\tJLabel lblUsername_1 = new JLabel(\"Username:\");\n\t\tlblUsername_1.setBounds(121, 182, 74, 17);\n\t\tlblUsername_1.setFont(new Font(\"Tahoma\", Font.BOLD, 14));\n\t\t\n\t\tJLabel lblEmailAddress_1 = new JLabel(\"Email Address:\");\n\t\tlblEmailAddress_1.setBounds(94, 238, 101, 17);\n\t\tlblEmailAddress_1.setFont(new Font(\"Tahoma\", Font.BOLD, 14));\n\t\t\n\t\tJLabel lblPhoneNumber_1 = new JLabel(\"Phone Number\");\n\t\tlblPhoneNumber_1.setBounds(91, 295, 104, 17);\n\t\tlblPhoneNumber_1.setFont(new Font(\"Tahoma\", Font.BOLD, 14));\n\t\t\n\t\tJLabel lblPassword = new JLabel(\"Password:\");\n\t\tlblPassword.setBounds(123, 349, 72, 17);\n\t\tlblPassword.setFont(new Font(\"Tahoma\", Font.BOLD, 14));\n\t\t\n\t\tlblUserType = new JLabel(\"User Type:\");\n\t\tlblUserType.setBounds(121, 438, 74, 17);\n\t\tlblUserType.setFont(new Font(\"Tahoma\", Font.BOLD, 14));\n\t\tpnlCreateUser.setLayout(null);\n\t\tpnlCreateUser.add(lblEnterUserInfo);\n\t\tpnlCreateUser.add(lblFirstName_1);\n\t\tpnlCreateUser.add(txtCreateFirstName);\n\t\tpnlCreateUser.add(lblLastName_1);\n\t\tpnlCreateUser.add(txtCreateLastName);\n\t\tpnlCreateUser.add(lblUsername_1);\n\t\tpnlCreateUser.add(txtCreateUsername);\n\t\tpnlCreateUser.add(lblEmailAddress_1);\n\t\tpnlCreateUser.add(txtCreateEmailAddress);\n\t\tpnlCreateUser.add(lblPhoneNumber_1);\n\t\tpnlCreateUser.add(txtCreatePhoneNumber);\n\t\tpnlCreateUser.add(lblPassword);\n\t\tpnlCreateUser.add(txtCreatePassword);\n\t\tpnlCreateUser.add(lblUserType);\n\t\tpnlCreateUser.add(rdbtnAdmin);\n\t\tpnlCreateUser.add(rdbtnManager);\n\t\tpnlCreateUser.add(rdbtnWorker);\n\t\tpnlCreateUser.add(btnCreateUser);\n\t\tpnlCreateUser.add(btnCancel);\n\t\t//create task end\t\n\t\t//edit user info start\t\t\t\t\n\t\tpnlUserEditInfo = new JPanel();\n\t\tlayeredPaneAdminComponents.setLayer(pnlUserEditInfo, 0);\n\t\tpnlUserEditInfo.setBounds(180, 38, 746, 720);\n\t\tlayeredPaneAdminComponents.add(pnlUserEditInfo);\n\t\tpnlUserEditInfo.setBorder(new TitledBorder(null, \"User Edit/Info\", TitledBorder.LEADING, TitledBorder.TOP, null, null));\n\t\tJLabel lblFullName = new JLabel(\"Full Name\");\n\t\tlblFullName.setBounds(264, 16, 127, 45);\n\t\tlblFullName.setFont(new Font(\"Tahoma\", Font.BOLD, 20));\n\t\t\n\t\tJLabel lblFirstName = new JLabel(\"First Name:\");\n\t\tlblFirstName.setBounds(85, 89, 79, 17);\n\t\tlblFirstName.setFont(new Font(\"Tahoma\", Font.BOLD, 14));\n\t\t\n\t\ttextFirstName = new JTextField();\n\t\ttextFirstName.setBounds(214, 91, 330, 20);\n\t\ttextFirstName.setColumns(10);\n\t\ttextLastName = new JTextField();\n\t\ttextLastName.setBounds(214, 134, 330, 20);\n\t\ttextLastName.setColumns(10);\n\t\ttextUsername = new JTextField();\n\t\ttextUsername.setBounds(214, 179, 330, 20);\n\t\ttextUsername.setColumns(10);\n\t\ttextEmail = new JTextField();\n\t\ttextEmail.setBounds(214, 229, 330, 20);\n\t\ttextEmail.setColumns(10);\n\t\ttextPhone = new JTextField();\n\t\ttextPhone.setBounds(214, 283, 330, 20);\n\t\ttextPhone.setColumns(10);\n\t\t\n\t\tJSeparator separator = new JSeparator();\n\t\tseparator.setBounds(22, 376, 699, 2);\n\t\tseparator.setBackground(Color.BLACK);\n\t\tseparator.setForeground(Color.BLACK);\n\t\tJScrollPane scrlPaneAssignedQuals = new JScrollPane();\n\t\tscrlPaneAssignedQuals.setBounds(275, 438, 174, 271);\n\t\t\n\t\tunassignQual = new JButton(\"<-\");\n\t\tunassignQual.setBounds(206, 581, 64, 29);\n\t\t\n\t\tunassignQual.setToolTipText(\"Click to remove assigned Qualifications\");\n\t\tunassignQual.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\n\t\t\n\t\tassignQual = new JButton(\"->\");\n\t\tassignQual.setBounds(206, 523, 64, 29);\n\t\t\n\t\tassignQual.setToolTipText(\"Click to move selected Qualifications to Assigned\");\n\t\tassignQual.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\n\t\t\n\t\t\n\t\t\n\t\tlistAssignedQuals = new JList(assignedQualList);\n\t\tscrlPaneAssignedQuals.setViewportView(listAssignedQuals);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\tJLabel lblLastName = new JLabel(\"Last Name:\");\n\t\tlblLastName.setBounds(86, 134, 78, 17);\n\t\tlblLastName.setFont(new Font(\"Tahoma\", Font.BOLD, 14));\n\t\t\n\t\tJLabel lblUsername = new JLabel(\"Username:\");\n\t\tlblUsername.setBounds(90, 182, 74, 17);\n\t\tlblUsername.setFont(new Font(\"Tahoma\", Font.BOLD, 14));\n\t\t\n\t\tJLabel lblEmailAddress = new JLabel(\"Email Address:\");\n\t\tlblEmailAddress.setBounds(63, 232, 101, 17);\n\t\tlblEmailAddress.setFont(new Font(\"Tahoma\", Font.BOLD, 14));\n\t\t\n\t\tJLabel lblPhoneNumber = new JLabel(\"Phone Number:\");\n\t\tlblPhoneNumber.setBounds(55, 286, 109, 17);\n\t\tlblPhoneNumber.setFont(new Font(\"Tahoma\", Font.BOLD, 14));\n\t\t\n\t\tJLabel lblAvailable = new JLabel(\"Available\");\n\t\tlblAvailable.setBounds(67, 410, 60, 17);\n\t\tlblAvailable.setFont(new Font(\"Tahoma\", Font.BOLD, 14));\n\t\tJLabel lblAssigned = new JLabel(\"Assigned\");\n\t\tlblAssigned.setBounds(318, 410, 86, 17);\n\t\tlblAssigned.setFont(new Font(\"Tahoma\", Font.BOLD, 14));\n\t\t\n\t\tbtnChangePassword = new JButton(\"Change Password\");\n\t\tbtnChangePassword.setBounds(328, 331, 142, 34);\n\t\t\n\t\tbtnSaveChanges = new JButton(\"Save Changes\");\n\t\tbtnSaveChanges.setBounds(164, 331, 127, 34);\n\t\t\n\t\tbtnSaveChanges.setToolTipText(\"Save Changes to Database\");\n\t\t\n\t\tJScrollPane scrlPaneAvailableQuals = new JScrollPane();\n\t\tscrlPaneAvailableQuals.setBounds(22, 438, 174, 271);\n\t\t\n\t\tlistAvailableQuals = new JList(availableQualList);\n\t\tscrlPaneAvailableQuals.setViewportView(listAvailableQuals);\n\t\t\n\t\tpnlDeleteUser = new JPanel();\n\t\tpnlDeleteUser.setBounds(531, 620, 166, 89);\n\t\tpnlDeleteUser.setBorder(new TitledBorder(null, \"WARNING AREA\", TitledBorder.LEADING, TitledBorder.TOP, null, null));\n\t\tpnlDeleteUser.setBackground(new Color(245, 222, 179));\n\t\tpnlDeleteUser.setLayout(null);\n\t\t\n\t\tbtnDeleteUser = new JButton(\"ARCHIVE USER\");\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\tbtnDeleteUser.setFont(new Font(\"Tahoma\", Font.BOLD, 10));\n\t\tbtnDeleteUser.setBounds(17, 27, 140, 39);\n\t\tpnlDeleteUser.add(btnDeleteUser);\n\t\t\n\t\tJLabel lblUserType_1 = new JLabel(\"User Type\");\n\t\tlblUserType_1.setBounds(562, 89, 82, 20);\n\t\tlblUserType_1.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\n\t\t\n\t\trdbtnAdminDetails = new JRadioButton(\"Admin\");\n\t\trdbtnAdminDetails.setBounds(562, 129, 109, 23);\n\t\tbuttonGroup_1.add(rdbtnAdminDetails);\n\t\t\n\t\trdbtnManagerDetails = new JRadioButton(\"Manager\");\n\t\trdbtnManagerDetails.setBounds(562, 170, 120, 23);\n\t\tbuttonGroup_1.add(rdbtnManagerDetails);\n\t\t\n\t\trdbtnWorkerDetails = new JRadioButton(\"Worker\");\n\t\trdbtnWorkerDetails.setBounds(562, 211, 120, 23);\n\t\tbuttonGroup_1.add(rdbtnWorkerDetails);\n\t\tpnlUserEditInfo.setLayout(null);\n\t\tpnlUserEditInfo.add(lblFullName);\n\t\tpnlUserEditInfo.add(lblPhoneNumber);\n\t\tpnlUserEditInfo.add(textPhone);\n\t\tpnlUserEditInfo.add(btnSaveChanges);\n\t\tpnlUserEditInfo.add(btnChangePassword);\n\t\tpnlUserEditInfo.add(separator);\n\t\tpnlUserEditInfo.add(lblAvailable);\n\t\tpnlUserEditInfo.add(lblAssigned);\n\t\tpnlUserEditInfo.add(scrlPaneAvailableQuals);\n\t\tpnlUserEditInfo.add(assignQual);\n\t\tpnlUserEditInfo.add(unassignQual);\n\t\tpnlUserEditInfo.add(scrlPaneAssignedQuals);\n\t\tpnlUserEditInfo.add(pnlDeleteUser);\n\t\tpnlUserEditInfo.add(lblFirstName);\n\t\tpnlUserEditInfo.add(textFirstName);\n\t\tpnlUserEditInfo.add(lblLastName);\n\t\tpnlUserEditInfo.add(textLastName);\n\t\tpnlUserEditInfo.add(lblUsername);\n\t\tpnlUserEditInfo.add(textUsername);\n\t\tpnlUserEditInfo.add(lblEmailAddress);\n\t\tpnlUserEditInfo.add(textEmail);\n\t\tpnlUserEditInfo.add(rdbtnWorkerDetails);\n\t\tpnlUserEditInfo.add(rdbtnManagerDetails);\n\t\tpnlUserEditInfo.add(rdbtnAdminDetails);\n\t\tpnlUserEditInfo.add(lblUserType_1);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\tpnlViewTickets = new JPanel();\n\t\tlayeredPaneAdminComponents.setLayer(pnlViewTickets, 0);\n\t\tpnlViewTickets.setBounds(180, 38, 746, 720);\n\t\tlayeredPaneAdminComponents.add(pnlViewTickets);\n\t\tpnlViewTickets.setVisible(false);\n\t\t\n\t\tpnlOpenTicketsLbl = new JPanel();\n\t\tpnlOpenTicketsLbl.setBounds(0, 0, 746, 26);\n\t\tpnlOpenTicketsLbl.setBackground(UIManager.getColor(\"Button.shadow\"));\n\t\tpnlOpenTicketsLbl.setLayout(null);\n\t\t\n\t\tlblOpenTickets = new JLabel(\"Open Tickets\");\n\t\tlblOpenTickets.setFont(new Font(\"Tahoma\", Font.BOLD, 14));\n\t\tlblOpenTickets.setBounds(312, 0, 189, 15);\n\t\tpnlOpenTicketsLbl.add(lblOpenTickets);\n\t\t\n\t\tpnlClosedTicketsLbl = new JPanel();\n\t\tpnlClosedTicketsLbl.setBounds(0, 329, 746, 26);\n\t\tpnlClosedTicketsLbl.setBackground(SystemColor.controlShadow);\n\t\tpnlClosedTicketsLbl.setLayout(null);\n\t\t\n\t\tlblClosedTickets = new JLabel(\"Closed Tickets\");\n\t\tlblClosedTickets.setFont(new Font(\"Tahoma\", Font.BOLD, 14));\n\t\tlblClosedTickets.setBounds(302, 0, 189, 26);\n\t\tpnlClosedTicketsLbl.add(lblClosedTickets);\n\t\t\n\t\tscrlOpenTickets = new JScrollPane();\n\t\tscrlOpenTickets.setBounds(0, 22, 746, 307);\n\t\t\n\t\tscrlClosedTickets = new JScrollPane();\n\t\tscrlClosedTickets.setBounds(0, 354, 746, 366);\n\t\t\n\t\tlistClosedTickets = new JList(closedTickets);\n\t\tlistClosedTickets.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n\t\tscrlClosedTickets.setViewportView(listClosedTickets);\n\t\tpnlViewTickets.setLayout(null);\n\t\t\n\t\tlistOpenTickets = new JList(openTickets);\n\t\tlistOpenTickets.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n\t\tscrlOpenTickets.setViewportView(listOpenTickets);\n\t\tpnlViewTickets.add(scrlOpenTickets);\n\t\tpnlViewTickets.add(pnlOpenTicketsLbl);\n\t\tpnlViewTickets.add(pnlClosedTicketsLbl);\n\t\tpnlViewTickets.add(scrlClosedTickets);\n\t\t\n\t\tJScrollPane scrollPane = new JScrollPane();\n\t\tscrollPane.setBounds(0, 23, 157, 314);\n\t\tlayeredPaneAdminComponents.add(scrollPane);\n\t\tlistUsers = new JList(userList);\n\t\t\n\t\tscrollPane.setViewportView(listUsers);\n\t\tlistUsers.setBackground(UIManager.getColor(\"Button.background\"));\n\t\tlistUsers.setSelectionMode(ListSelectionModel.SINGLE_INTERVAL_SELECTION);\n\t\tlistUsers.setLayoutOrientation(JList.VERTICAL);\n\t\tlistUsers.setVisibleRowCount(1);\n\t\t\n\t\tbtn_create_new_user = new JButton(\"Create New User\");\n\t\tbtn_create_new_user.setBounds(177, 0, 130, 28);\n\t\tlayeredPaneAdminComponents.add(btn_create_new_user);\n\t\tbtn_add_qualifications = new JButton(\"Add Qualifications\");\n\t\tbtn_add_qualifications.setBounds(678, 0, 150, 28);\n\t\tlayeredPaneAdminComponents.add(btn_add_qualifications);\n\t\t\n\t\tbtnViewTickets = new JButton(\"Ticket Viewer\");\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\tbtnViewTickets.setBounds(328, 0, 139, 28);\n\t\tlayeredPaneAdminComponents.add(btnViewTickets);\n\t\t\n\t\tpnlTicketDetails = new JPanel();\n\t\tpnlTicketDetails.setBorder(new TitledBorder(null, \"Ticket Details\", TitledBorder.LEADING, TitledBorder.TOP, null, null));\n\t\tlayeredPaneAdminComponents.setLayer(pnlTicketDetails, 10);\n\t\tpnlTicketDetails.setBounds(180, 38, 746, 720);\n\t\tlayeredPaneAdminComponents.add(pnlTicketDetails);\n\t\tpnlTicketDetails.setLayout(null);\n\t\tpnlTicketDetails.setVisible(false);\n\t\tpnlAdmin.setLayout(null);\n\t\t\n\t\tJLabel lblTicketDetails = new JLabel(\"Ticket Details\");\n\t\tlblTicketDetails.setFont(new Font(\"Tahoma\", Font.BOLD, 20));\n\t\tlblTicketDetails.setBounds(265, 11, 155, 65);\n\t\tpnlTicketDetails.add(lblTicketDetails);\n\t\t\n\t\tJLabel lblTitle_2 = new JLabel(\"Title:\");\n\t\tlblTitle_2.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\n\t\tlblTitle_2.setBounds(69, 78, 121, 14);\n\t\tpnlTicketDetails.add(lblTitle_2);\n\t\t\n\t\tJLabel lblMessage = new JLabel(\"Message:\");\n\t\tlblMessage.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\n\t\tlblMessage.setBounds(69, 103, 121, 32);\n\t\tpnlTicketDetails.add(lblMessage);\n\t\t\n\t\tJLabel lblSubmittedBy = new JLabel(\"Submitted By:\");\n\t\tlblSubmittedBy.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\n\t\tlblSubmittedBy.setBounds(69, 213, 155, 26);\n\t\tpnlTicketDetails.add(lblSubmittedBy);\n\t\t\n\t\tJLabel lblDateSubmitted = new JLabel(\"Date Submitted:\");\n\t\tlblDateSubmitted.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\n\t\tlblDateSubmitted.setBounds(69, 274, 142, 14);\n\t\tpnlTicketDetails.add(lblDateSubmitted);\n\t\t\n\t\tlblDone = new JLabel(\"Done?\");\n\t\tlblDone.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\n\t\tlblDone.setBounds(297, 421, 87, 46);\n\t\tpnlTicketDetails.add(lblDone);\n\t\t\n\t\trdbtnTicketDoneYes = new JRadioButton(\"Yes\");\n\t\tbuttonGroup_2.add(rdbtnTicketDoneYes);\n\t\trdbtnTicketDoneYes.setFont(new Font(\"Tahoma\", Font.BOLD, 12));\n\t\trdbtnTicketDoneYes.setBounds(224, 474, 109, 23);\n\t\tpnlTicketDetails.add(rdbtnTicketDoneYes);\n\t\t\n\t\trdbtnTicketDoneNo = new JRadioButton(\"No\");\n\t\tbuttonGroup_2.add(rdbtnTicketDoneNo);\n\t\trdbtnTicketDoneNo.setFont(new Font(\"Tahoma\", Font.BOLD, 12));\n\t\trdbtnTicketDoneNo.setBounds(369, 474, 109, 23);\n\t\tpnlTicketDetails.add(rdbtnTicketDoneNo);\n\t\t\n\t\tlblTicketDetailsTitle = new JLabel(\"\");\n\t\tlblTicketDetailsTitle.setBounds(200, 80, 487, 23);\n\t\tpnlTicketDetails.add(lblTicketDetailsTitle);\n\t\t\n\t\tbtnTicketDetailsClose = new JButton(\"Close\");\n\t\t\n\t\tbtnTicketDetailsClose.setBounds(647, 11, 89, 23);\n\t\tpnlTicketDetails.add(btnTicketDetailsClose);\n\t\t\n\t\tlblTicketDetailsMessage = new JLabel(\" \");\n\t\tlblTicketDetailsMessage.setBounds(200, 114, 503, 88);\n\t\tpnlTicketDetails.add(lblTicketDetailsMessage);\n\t\t\n\t\tlblTicketDetailsSubmittedBy = new JLabel(\"\");\n\t\tlblTicketDetailsSubmittedBy.setBounds(200, 221, 503, 18);\n\t\tpnlTicketDetails.add(lblTicketDetailsSubmittedBy);\n\t\t\n\t\tlblTicketDetailsDate = new JLabel(\"\");\n\t\tlblTicketDetailsDate.setBounds(221, 276, 354, 26);\n\t\tpnlTicketDetails.add(lblTicketDetailsDate);\n\t\t\n\t\tbtnTicketDoneSave = new JButton(\"Save\");\n\t\t\n\t\tbtnTicketDoneSave.setBounds(280, 520, 89, 23);\n\t\tpnlTicketDetails.add(btnTicketDoneSave);\n\t\t\n\t\tpnlArchivedUsers = new JPanel();\n\t\tpnlArchivedUsers.setBackground(Color.LIGHT_GRAY);\n\t\tpnlArchivedUsers.setBounds(0, 337, 157, 28);\n\t\tlayeredPaneAdminComponents.add(pnlArchivedUsers);\n\t\tpnlArchivedUsers.setLayout(null);\n\t\t\n\t\tJLabel lblNewLabel_6 = new JLabel(\"ARCHIVED USERS\");\n\t\tlblNewLabel_6.setFont(new Font(\"Tahoma\", Font.BOLD, 11));\n\t\tlblNewLabel_6.setBounds(24, 5, 107, 20);\n\t\tpnlArchivedUsers.add(lblNewLabel_6);\n\t\t\n\t\tJScrollPane scrollPane_5 = new JScrollPane();\n\t\tscrollPane_5.setBounds(0, 365, 157, 393);\n\t\tlayeredPaneAdminComponents.add(scrollPane_5);\n\t\t\n\t\tlistArchivedUsers = new JList(archivedUserList);\n\t\tlistArchivedUsers.setSelectionMode(ListSelectionModel.SINGLE_INTERVAL_SELECTION);\n\t\tscrollPane_5.setViewportView(listArchivedUsers);\n\t\tpnlAdmin.add(layeredPaneAdminComponents);\n\t\t\n\t\tbtnReportGenerator = new JButton(\"Generate Report\");\n\t\tbtnReportGenerator.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t}\n\t\t});\n\t\tbtnReportGenerator.setBounds(477, 0, 172, 28);\n\t\tlayeredPaneAdminComponents.add(btnReportGenerator);\n\t}", "private PanelManager(FlowClient frame) {\r\n\t\t// Swing necessities\r\n\t\tlayout = new CardLayout();\r\n\t\tthis.frame = frame;\r\n\t\tthis.setLayout(layout);\r\n\t\tsetBorder(FlowClient.EMPTY_BORDER);\r\n\r\n\t\t// Creates new panels and adds them to the cardlayout stack\r\n\t\teditTabs = new EditTabs();\r\n\r\n\t\tloginPane = new LoginPane(this);\r\n\t\tadd(loginPane, \"loginPane\");\r\n\r\n\t\tCreateAccountPane createAccountPane = new CreateAccountPane(this);\r\n\t\tadd(createAccountPane, \"createPane\");\r\n\r\n\t\teditPane = new EditPane(this);\r\n\t\tadd(editPane, \"editPane\");\r\n\r\n\t\tdebugPane = new DebugPane(this);\r\n\t\tadd(debugPane, \"debugPane\");\r\n\r\n\t\tSettingsPane settingsTabs = new SettingsPane(this);\r\n\t\tadd(settingsTabs, \"settingsPane\");\r\n\r\n\t\thistoryPane = new HistoryPane(this);\r\n\t\tadd(historyPane, \"historyPane\");\r\n\t}", "private void setLayout() {\n\tHorizontalLayout main = new HorizontalLayout();\n\tmain.setMargin(true);\n\tmain.setSpacing(true);\n\n\t// vertically divide the right area\n\tVerticalLayout left = new VerticalLayout();\n\tleft.setSpacing(true);\n\tmain.addComponent(left);\n\n\tleft.addComponent(openProdManager);\n\topenProdManager.addListener(new Button.ClickListener() {\n\t public void buttonClick(ClickEvent event) {\n\t\tCustomerWindow productManagerWin = new CustomerWindow(CollectorManagerApplication.this);\n\t\tproductManagerWin.addListener(new Window.CloseListener() {\n\t\t public void windowClose(CloseEvent e) {\n\t\t\topenProdManager.setEnabled(true);\n\t\t }\n\t\t});\n\n\t\tCollectorManagerApplication.this.getMainWindow().addWindow(productManagerWin);\n\t\topenProdManager.setEnabled(false);\n\t }\n\t});\n\n\t\n\tsetMainWindow(new Window(\"Sistema de Cobranzas\", main));\n\n }", "public AppMain(String title) {\n setTitle(title);\n leftPanel = new LeftPanel();\n jTabbedPane = new JTabbedPane();\n menuBar = new JMenuBar();\n addMenuItems();\n horizontalPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, leftPanel, jTabbedPane);\n verticalPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT, menuBar, horizontalPane);\n horizontalPane.setResizeWeight(0.2);\n verticalPane.setResizeWeight(0.03);\n add(verticalPane);\n setSize(1280, 720);\n setVisible(true);\n setResizable(false);\n setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n verticalPane.resetToPreferredSizes();\n horizontalPane.resetToPreferredSizes();\n horizontalPane.setEnabled(false);\n verticalPane.setEnabled(false);\n addPanelActionListeners();\n createWorkSpace();\n }", "private void createUIComponents() {\n editor = createEditor(project, document);\n splitter = new JBSplitter(0.4f);\n ((JBSplitter) splitter).setFirstComponent(editor.getComponent());\n// ((JBSplitter) splitter).setSecondComponent();\n }", "private void $$$setupUI$$$() {\n mainPanel = new JPanel();\n mainPanel.setLayout(new GridLayoutManager(3, 3, new Insets(0, 0, 0, 0), -1, -1));\n toolBarPanel = new JPanel();\n toolBarPanel.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n mainPanel.add(toolBarPanel, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n containerPanel = new JPanel();\n containerPanel.setLayout(new BorderLayout(0, 0));\n mainPanel.add(containerPanel, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n errorPanel = new JPanel();\n errorPanel.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n mainPanel.add(errorPanel, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n valuePanel = new JPanel();\n valuePanel.setLayout(new BorderLayout(0, 0));\n mainPanel.add(valuePanel, new GridConstraints(1, 1, 1, 2, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JLabel label1 = new JLabel();\n label1.setText(\"view as\");\n mainPanel.add(label1, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n comboBox1 = new JComboBox();\n final DefaultComboBoxModel defaultComboBoxModel1 = new DefaultComboBoxModel();\n defaultComboBoxModel1.addElement(\"UTF-8String\");\n comboBox1.setModel(defaultComboBoxModel1);\n mainPanel.add(comboBox1, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jSplitPane1 = new javax.swing.JSplitPane();\n LookAndFeel.flattenSplitPane(jSplitPane1);\n jScrollPane1 = new javax.swing.JScrollPane();\n jScrollPane1.getVerticalScrollBar().setUnitIncrement(16);\n thumbnails1 = new stormgate.editor.ui.forms.browser.Thumbnails();\n libraryViewer1 = new stormgate.editor.ui.forms.browser.LibraryViewer();\n browserControl1 = new stormgate.editor.ui.forms.browser.BrowserControl();\n browserControl1.setThumbnails(thumbnails1, libraryViewer1);\n\n setMinimumSize(new java.awt.Dimension(200, 200));\n setPreferredSize(new java.awt.Dimension(741, 200));\n\n jSplitPane1.setBorder(null);\n jSplitPane1.setDividerLocation(270);\n jSplitPane1.setMinimumSize(new java.awt.Dimension(228, 100));\n jSplitPane1.setPreferredSize(new java.awt.Dimension(919, 100));\n jSplitPane1.addComponentListener(new java.awt.event.ComponentAdapter() {\n public void componentResized(java.awt.event.ComponentEvent evt) {\n jSplitPane1ComponentResized(evt);\n }\n });\n\n jScrollPane1.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);\n jScrollPane1.setPreferredSize(new java.awt.Dimension(402, 100));\n jScrollPane1.setViewportView(thumbnails1);\n\n jSplitPane1.setRightComponent(jScrollPane1);\n jSplitPane1.setLeftComponent(libraryViewer1);\n\n browserControl1.setMinimumSize(new java.awt.Dimension(27, 10));\n browserControl1.setPreferredSize(null);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jSplitPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 708, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(browserControl1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jSplitPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 200, Short.MAX_VALUE)\n .addComponent(browserControl1, javax.swing.GroupLayout.DEFAULT_SIZE, 200, Short.MAX_VALUE)\n );\n }", "private void initSideBar(JSplitPane splitPane) {\n\t\tJPanel sidebar = new JPanel();\n\t\tJScrollPane leftComponent = new JScrollPane(sidebar);\n\t\tleftComponent.setMinimumSize(new Dimension(210, 400));\n\t\tsplitPane.setLeftComponent(leftComponent);\n\t\tGridBagLayout gbl_sidebar = new GridBagLayout();\n\t\tsidebar.setLayout(gbl_sidebar);\n\n\t\t// init basic constraints\n\t\tGridBagConstraints gbc_sidebar = new GridBagConstraints();\n\t\tgbc_sidebar.insets = new Insets(5, 5, 5, 5);\n\t\tgbc_sidebar.anchor = GridBagConstraints.CENTER;\n\t\tgbc_sidebar.gridx = 0;\n\t\tgbc_sidebar.gridy = 0;\n\t\t\n\t\t// init step buttons here so other buttons can reference them\n\t\tfinal JButton btnStepBack = new JButton(\"Step\");\n\t\tfinal JButton btnStepForward = new JButton(\"Step\");\n\t\t\n\t\t// run button\n\t\tfinal JButton btnRun = new JButton(new AbstractAction(\"Run\") {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent ae) {\n\t\t\t\tgraphicManager.clearStates();\n\t\t\t\tbtnStepForward.setEnabled(false);\n\t\t\t\ttry {\n\t\t\t\t\tmachine.run(inputText.getText());\n\t\t\t\t} catch (NoStartStateDefined e) {\n\t\t\t\t\treportException(e);\n\t\t\t\t} catch (NoTransitionDefined e) {\n\t\t\t\t\treportException(e);\n\t\t\t\t}\n\t\t\t\tupdate(); // update states, labels, text\n\t\t\t}\n\t\t});\n\t\tsidebar.add(btnRun, gbc_sidebar);\n\t\tcomponents.add(btnRun);\n\t\t\n\t\t// reset button\n\t\tfinal JButton btnReset = new JButton(new AbstractAction(\"Reset\") {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent ae) {\n\t\t\t\tmachine.reset(); // reset the automaton\n\t\t\t\tgraphicManager.clearStates(); // clear state selection\n\t\t\t\tlblCurrentInput.setText(\" \"); // clear read input display\n\t\t\t\t\n\t\t\t\tinputText.setEditable(true); // enable input editing\n\t\t\t\tbtnRun.setEnabled(true); // enable run btn\n\t\t\t\tbtnStepBack.setEnabled(false); // disable step back btn\n\t\t\t\tbtnStepForward.setEnabled(true); // enable step forward btn\n\t\t\t\t\n\t\t\t\tupdate(); // update states, labels, text\n\t\t\t}\n\t\t});\n\t\tgbc_sidebar.gridx++;\n\t\tsidebar.add(btnReset, gbc_sidebar);\n\t\tcomponents.add(btnReset);\n\t\t\n\t\t// step back button:\n\t\t// add arrow icon (Hamilton Continental blue)\n\t\ttry {\n\t\t\tURL url = MainWindow.class.getResource(\"/resources/arrow_left.png\");\n\t\t\tbtnStepBack.setIcon(new ImageIcon(url));\n\t\t\tbtnStepBack.setHorizontalTextPosition(SwingConstants.TRAILING);\n\t\t} \n\t\tcatch (Exception e) {\n\t\t\tbtnStepBack.setText(\"<-- Step\");\n\t\t}\n\t\t// add button action\n\t\tbtnStepBack.addActionListener(new AbstractAction() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent ae) {\n\t\t\t\tgraphicManager.clearStates(); // clear selections\n\t\t\t\tmachine.stepBack();\n\t\t\t\t\n\t\t\t\t// if reached beginning of current input\n\t\t\t\tif (machine.atStart()) {\n\t\t\t\t\tbtnStepBack.setEnabled(false); // disable step back\n\t\t\t\t\tlblCurrentInput.setText(\" \"); // clear read input display\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tlblCurrentInput.setText(\"Just read: \" + \n\t machine.getCurrentInput());\n\t\t\t\tbtnStepForward.setEnabled(true); // enable step forward\n\t\t\t\tupdate(); // update states, labels, text\n\t\t\t}\n\t\t});\n\t\tbtnStepBack.setEnabled(false); // disable step back\n\t\tgbc_sidebar.gridx = 0;\n\t\tgbc_sidebar.gridy++;\n\t\tsidebar.add(btnStepBack, gbc_sidebar);\n\t\tcomponents.add(btnStepBack);\n\t\t\n\t\t// step forward button:\n\t\t// add arrow icon (Hamilton Continental blue)\n\t\ttry {\n\t\t\tURL url = MainWindow.class.getResource(\"/resources/arrow_right.png\");\n\t\t\tbtnStepForward.setIcon(new ImageIcon(url));\n\t\t\tbtnStepForward.setHorizontalTextPosition(SwingConstants.LEADING);\n\t\t} \n\t\tcatch (Exception e) {\n\t\t\tbtnStepForward.setText(\"Step -->\");\n\t\t}\n\t\t// add button action\n\t\tbtnStepForward.addActionListener(new AbstractAction() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent ae) {\n\n\t\t\t\t// if first step, set input\n\t\t\t\tif (machine.atStart())\n\t\t\t\t\tmachine.setInput(inputText.getText());\n\t\t\t\t\n\t\t\t\ttry { \n\t\t\t\t\tmachine.step(); // take a step\n\t\t\t\t\t\n\t\t\t\t\t// if there is input\n\t\t\t\t\tif (inputText.getText().length() > 0) {\n\t\t\t\t\t\tinputText.setEditable(false); // disable input edit\n\t\t\t\t\t\tbtnRun.setEnabled(false); // disable run\n\t\t\t\t\t\tbtnStepBack.setEnabled(true); // enable step back\n\n\t\t\t\t\t\t// report character just read\n\t\t\t\t\t\tlblCurrentInput.setText(\"Just read: \" + \n\t\t\t\t\t\t machine.getCurrentInput());\n\t\t\t\t\t}\n\n\t\t\t\t\t// if end of input, disable step forward\n\t\t\t\t\tif (! (machine.getStatus().equals(Automaton.READY) ||\n\t\t\t\t\t\t\tmachine.getStatus().equals(Automaton.RUN)))\n\t\t\t\t\t\tbtnStepForward.setEnabled(false);\n\t\t\t\t\t\n\t\t\t\t} catch (NoStartStateDefined e) {\n\t\t\t\t\treportException(e);\n\t\t\t\t} catch (NoTransitionDefined e) {\n\t\t\t\t\treportException(e);\n\t\t\t\t}\n\t\t\t\tupdate(); // update states, labels, text\n\t\t\t}\n\t\t});\n\t\tgbc_sidebar.gridx++;\n\t\tsidebar.add(btnStepForward, gbc_sidebar);\n\t\tcomponents.add(btnStepForward);\n\t\t\n\t\t// input label\n\t\tlblInput = new JLabel(\"Input:\");\n\t\tgbc_sidebar.insets = new Insets(5, 5, 0, 5); // T, L, B, R\n\t\tgbc_sidebar.anchor = GridBagConstraints.SOUTH;\n\t\tgbc_sidebar.gridx = 0;\n\t\tgbc_sidebar.gridy++;\n\t\tgbc_sidebar.gridwidth = 2; // fill entire row\n\t\tsidebar.add(lblInput, gbc_sidebar);\n\t\tcomponents.add(lblInput);\n\t\t\n\t\t// input text field (scrollable)\n\t\tinputText = new JTextArea();\n\t\tJScrollPane areaScrollPane = new JScrollPane(inputText);\n\t\tgbc_sidebar.insets = new Insets(0, 5, 5, 5); // T, L, B, R\n\t\tgbc_sidebar.gridy++;\n\t\tgbc_sidebar.weighty = 1.0;\n\t\tgbc_sidebar.fill = GridBagConstraints.BOTH;\n\t\tsidebar.add(areaScrollPane, gbc_sidebar);\n\t\tcomponents.add(inputText);\n\t\t\n\t\t// current input label\n\t\tlblCurrentInput = new JLabel(\" \");\n\t\tgbc_sidebar.insets = new Insets(5, 5, 5, 5);\n\t\tgbc_sidebar.gridy++;\n\t\tgbc_sidebar.weighty = 0;\n\t\tgbc_sidebar.fill = GridBagConstraints.NONE;\n\t\tsidebar.add(lblCurrentInput, gbc_sidebar);\n\t\tcomponents.add(lblCurrentInput);\n\t\t\n\t\t// status label\n\t\tlblStatus = new JLabel(\"Status: \" + machineStatus); // default: ready\n\t\tgbc_sidebar.gridy++;\n\t\tsidebar.add(lblStatus, gbc_sidebar);\n\t\tcomponents.add(lblStatus);\n\t\t\n\t\t// automaton type label\n\t\tlblType = new JLabel(\"Type: \" + machineType); // default: DFA\n\t\tgbc_sidebar.gridy++;\n\t\tsidebar.add(lblType, gbc_sidebar);\n\t\tcomponents.add(lblType);\n\t}", "private void initComponents() {\r\n JPanel basePanel = new JPanel();\r\n basePanel.setLayout(new BorderLayout());\r\n ArrayList hierarchy = buildHierarchy(cvHierarchyData);\r\n sponsorHierarchyTree = new javax.swing.JTree(processHierarchy(hierarchy));\r\n hierarchyRenderer = new HierarchyRenderer();\r\n hierarchyTreeCellEditor = new HierarchyTreeCellEditor();\r\n editor = new DefaultTreeCellEditor(sponsorHierarchyTree,hierarchyRenderer,hierarchyTreeCellEditor);\r\n model = (DefaultTreeModel)sponsorHierarchyTree.getModel();\r\n coeusMessageResources = CoeusMessageResources.getInstance();\r\n maintainSponsorHierarchyBaseWindow = new MaintainSponsorHierarchyBaseWindow(title, mdiForm);\r\n //Addded for Case#2445 - proposal development print forms linked to indiv sponsor, should link to sponsor hierarchy - Start\r\n if(!isPrintingHierarchy){\r\n maintainSponsorHierarchyBaseWindow.mnuItmSponsorForm.setEnabled(false);\r\n }\r\n //Case#2445 - End\r\n Container sponsorHierarchyBaseContainer = maintainSponsorHierarchyBaseWindow.getContentPane();\r\n basePanel.add(sponsorHierarchyTree);\r\n JScrollPane jScrollPane = new JScrollPane(basePanel);\r\n backGroundColor = jScrollPane.getBackground();\r\n sponsorHierarchyBaseContainer.add(jScrollPane);\r\n sponsorHierarchyTree.setOpaque(false);\r\n sponsorHierarchyTree.setCellRenderer(hierarchyRenderer);\r\n sponsorHierarchyTree.setCellEditor(editor);\r\n sponsorHierarchyTree.setEditable(true);\r\n sponsorHierarchyTree.collapsePath(new TreePath(model.getRoot()));\r\n sponsorHierarchyTree.setShowsRootHandles(true);\r\n sponsorHierarchyTree.putClientProperty(\"Jtree.lineStyle\", \"Angled\");\r\n groupsController = new GroupsController(cvGroupsData);\r\n treeDropTarget = new DropTarget(sponsorHierarchyTree,new TreeDropTarget());\r\n if(getFunctionType() == VIEW_HIERARCHY) {\r\n disableComponents();\r\n }else {\r\n initPanel();\r\n }\r\n sponsorHierarchyTree.setSelectionRow(0);\r\n selTreePath = sponsorHierarchyTree.getPathForRow(0);\r\n selectedNode = (DefaultMutableTreeNode)selTreePath.getLastPathComponent();\r\n //Used to display status when calcualting / Saving / Refreshing.\r\n statusWindow = new StatusWindow(mdiForm, true);\r\n sponsorHierarchyTree.getInputMap().put(javax.swing.KeyStroke.getKeyStroke(\"SPACE\"), \"none\");\r\n// sponsorHierarchyTree.getInputMap().put(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.BUTTON1_MASK,java.awt.event.KeyEvent.SHIFT_MASK), \"none\");\r\n sponsorHierarchyTree.addKeyListener(new java.awt.event.KeyAdapter() {\r\n public void keyPressed(java.awt.event.KeyEvent event) {\r\n if(event.getKeyCode() == 17) {\r\n sponsorHierarchyTree.getSelectionModel().setSelectionMode(TreeSelectionModel.DISCONTIGUOUS_TREE_SELECTION);\r\n }\r\n }\r\n });\r\n }", "protected void setupUI() {\n\t\t\n\t\tcontentPane = new JPanel();\n\t\tlayerLayout = new CardLayout();\n\t\tcontentPane.setLayout(layerLayout);\n\t\tControlAgendaViewPanel agendaViewPanel = new ControlAgendaViewPanel(layerLayout,contentPane);\n\t\tagendaPanelFactory = new AgendaPanelFactory();\n\t\tdayView = agendaPanelFactory.getAgendaView(ActiveView.DAY_VIEW);\n\t\tweekView = agendaPanelFactory.getAgendaView(ActiveView.WEEK_VIEW);\n\t\tmonthView = agendaPanelFactory.getAgendaView(ActiveView.MONTH_VIEW);\n\t\t\n\t\tcontentPane.add(dayView,ActiveView.DAY_VIEW.name());\n\t\tcontentPane.add(weekView,ActiveView.WEEK_VIEW.name());\n\t\tcontentPane.add(monthView,ActiveView.MONTH_VIEW.name());\n\t\n\t\tJSplitPane splitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT,agendaViewPanel, contentPane);\n\t\tthis.setContentPane(splitPane);\n\t\t\n\t\tJMenuBar menuBar = new JMenuBar();\n\t\t\n\t\t//MENU\n\t\tJMenu file, edit, help, view;\n\t\t\n\t\t//ITEM DE MENU\n\t\tJMenuItem load, quit, save;\n\t\tJMenuItem display, about;\n\t\tJMenuItem month, week, day;\n\t\t\n\t\t/* File Menu */\n\t\t/** EX4 : MENU : UTILISER L'AIDE FOURNIE DANS LE TP**/\n\t\t//Classe pour les listener des parties non implémentés\n\t\tclass MsgError implements ActionListener {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tJOptionPane.showMessageDialog(null, ApplicationSession.instance().getString(\"info\"), \"info\", JOptionPane.INFORMATION_MESSAGE, null);\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t//Menu File\t\n\t\tfile = new JMenu(ApplicationSession.instance().getString(\"file\"));\n\t\t\n\t\tmenuBar.add(file);\n\t\tfile.setMnemonic(KeyEvent.VK_A);\n\t\tfile.getAccessibleContext().setAccessibleDescription(\n\t\t \"The only menu in this program that has menu items\");\n\t\tmenuBar.add(file);\n\t\t\n\n\t\t//a group of JMenuItems\n\t\tload = new JMenuItem(ApplicationSession.instance().getString(\"load\"),KeyEvent.VK_T);\n\t\tload.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_1, ActionEvent.ALT_MASK));\n\t\tload.getAccessibleContext().setAccessibleDescription(\"This doesn't really do anything\");\n\t\tfile.add(load);\n\t\tload.addActionListener(new MsgError());\n\t\t\n\t\tquit = new JMenuItem(ApplicationSession.instance().getString(\"quit\"),KeyEvent.VK_T);\n\t\tquit.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_1, ActionEvent.ALT_MASK));\n\t\tquit.getAccessibleContext().setAccessibleDescription(\"This doesn't really do anything\");\n\t\tfile.add(quit);\n\t\t\n\t\t//LISTENER QUIT\n\t\tquit.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t\t//message box yes/no pour le bouton quitter\n\t\t\t\tint dialogButton = JOptionPane.YES_NO_OPTION;\n\t\t\t\tint dialogResult = JOptionPane.showConfirmDialog (null, new String(ApplicationSession.instance().getString(\"quit?\")),\"Warning\",dialogButton);\n\t\t\t\tif(dialogResult == JOptionPane.YES_OPTION){\n\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t});\n\t\t\n\t\tsave = new JMenuItem(new String(ApplicationSession.instance().getString(\"save\")),KeyEvent.VK_T);\n\t\tsave.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_1, ActionEvent.ALT_MASK));\n\t\tsave.getAccessibleContext().setAccessibleDescription(\"This doesn't really do anything\");\n\t\tfile.add(save);\n\t\tsave.addActionListener(new MsgError());\n\t\t\n\t\t\n\t//Menu Edit \n\t\tedit = new JMenu(new String(ApplicationSession.instance().getString(\"edit\")));\n\t\t\n\t\tmenuBar.add(edit);\n\t\tedit.setMnemonic(KeyEvent.VK_A);\n\t\tedit.getAccessibleContext().setAccessibleDescription(\n\t\t \"The only menu in this program that has menu items\");\n\t\t\n\t\t//Sous menu View\n\t\t\n\t\tview = new JMenu(new String(ApplicationSession.instance().getString(\"view\")));\n\t\tview.setMnemonic(KeyEvent.VK_A);\n\t\tview.getAccessibleContext().setAccessibleDescription(\n\t\t \"The only menu in this program that has menu items\");\n\t\tedit.add(view);\n\t\t\n\t\tmonth = new JMenuItem(new String(ApplicationSession.instance().getString(\"month\")),KeyEvent.VK_T);\n\t\tmonth.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_1, ActionEvent.ALT_MASK));\n\t\tmonth.getAccessibleContext().setAccessibleDescription(\"This doesn't really do anything\");\n\t\tview.add(month);\n\t\t\t\t\n\t\tweek = new JMenuItem(new String(ApplicationSession.instance().getString(\"week\")),KeyEvent.VK_T);\n\t\tweek.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_1, ActionEvent.ALT_MASK));\n\t\tweek.getAccessibleContext().setAccessibleDescription(\"This doesn't really do anything\");\n\t\tview.add(week);\n\t\t\n\t\tday = new JMenuItem(new String(ApplicationSession.instance().getString(\"day\")),KeyEvent.VK_T);\n\t\tday.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_1, ActionEvent.ALT_MASK));\n\t\tday.getAccessibleContext().setAccessibleDescription(\"This doesn't really do anything\");\n\t\tview.add(day);\n\t\t\n\t\t//LISTENER VIEW\n\t\t\n\t\t\n\t\tmonth.addActionListener(new ActionListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t\tlayerLayout.last(contentPane);\t\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t});\n\t\t\n\t\tweek.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tlayerLayout.first(contentPane);\t\n\t\t\t\tlayerLayout.next(contentPane);\t\n\t\t\t\t}\n\t\t\t\n\t\t\t\n\t\t});\n\t\tday.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t\tlayerLayout.first(contentPane);\t\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t});\n\t\t\n\t\t\n\t//Menu Help\n\t\thelp = new JMenu(new String(ApplicationSession.instance().getString(\"help\")));\n\t\t\n\t\tmenuBar.add(help);\n\t\thelp.setMnemonic(KeyEvent.VK_A);\n\t\thelp.getAccessibleContext().setAccessibleDescription(\n\t\t \"The only menu in this program that has menu items\");\n\t\tmenuBar.add(help);\n\t\t\n\t\tdisplay = new JMenuItem(new String(ApplicationSession.instance().getString(\"display\")),KeyEvent.VK_T);\n\t\tdisplay.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_1, ActionEvent.ALT_MASK));\n\t\tdisplay.getAccessibleContext().setAccessibleDescription(\"This doesn't really do anything\");\n\t\thelp.add(display);\n\t\tdisplay.addActionListener(new MsgError());\n\t\t\n\t\tabout = new JMenuItem(new String(ApplicationSession.instance().getString(\"about\")),KeyEvent.VK_T);\n\t\tabout.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_1, ActionEvent.ALT_MASK));\n\t\tabout.getAccessibleContext().setAccessibleDescription(\"This doesn't really do anything\");\n\t\thelp.add(about);\n\t\tabout.addActionListener(new MsgError());\n\t\t\n\t\t\n\n\t\tthis.setJMenuBar(menuBar);\n\t\tthis.pack();\n\t\tlayerLayout.next(contentPane);\n\t}", "private void initLayoutComponents()\n {\n viewPaneWrapper = new JPanel(new CardLayout());\n viewPane = new JTabbedPane();\n crawlPane = new JPanel(new BorderLayout());\n transitionPane = new JPanel();\n searchPane = new BGRenderer(Color.WHITE, WINDOW_WIDTH, WINDOW_HEIGHT);\n resultsPane = new BGRenderer(Color.WHITE, WINDOW_WIDTH, WINDOW_HEIGHT);\n }", "@Override\n\tpublic void init() {\n\t\tsetMainWindow(new Window(\"Module Demo Application\", tabs));\n\t\ttabs.setSizeFull();\n\t}", "private void $$$setupUI$$$() {\n contentPane = new JPanel();\n contentPane.setLayout(new GridLayoutManager(1, 3, new Insets(0, 0, 0, 0), -1, -1));\n materialFirstWordLabel = new JLabel();\n materialFirstWordLabel.setText(\"нет данных\");\n contentPane.add(materialFirstWordLabel, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(10, -1), null, 0, false));\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(3, 1, new Insets(0, 0, 0, 0), -1, -1));\n contentPane.add(panel1, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n materialMarkLabel = new JLabel();\n materialMarkLabel.setText(\" \");\n materialMarkLabel.setVerticalTextPosition(1);\n panel1.add(materialMarkLabel, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n materialProfileLabel = new JLabel();\n materialProfileLabel.setText(\" \");\n materialProfileLabel.setVerticalTextPosition(3);\n panel1.add(materialProfileLabel, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n materialSeparator = new JSeparator();\n panel1.add(materialSeparator, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n final Spacer spacer1 = new Spacer();\n contentPane.add(spacer1, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n }", "private void initComponents() {\n xActionBar1 = new com.rameses.rcp.control.XActionBar();\n jPanel1 = new javax.swing.JPanel();\n formPanel1 = new com.rameses.rcp.util.FormPanel();\n xNumberField1 = new com.rameses.rcp.control.XNumberField();\n jTabbedPane1 = new javax.swing.JTabbedPane();\n jPanel2 = new javax.swing.JPanel();\n xDataTable5 = new com.rameses.rcp.control.XDataTable();\n xDataTable4 = new com.rameses.rcp.control.XDataTable();\n xLabel1 = new com.rameses.rcp.control.XLabel();\n jPanel3 = new javax.swing.JPanel();\n jPanel4 = new javax.swing.JPanel();\n xDataTable6 = new com.rameses.rcp.control.XDataTable();\n jTabbedPane2 = new javax.swing.JTabbedPane();\n jPanel5 = new javax.swing.JPanel();\n xDataTable7 = new com.rameses.rcp.control.XDataTable();\n xDataTable8 = new com.rameses.rcp.control.XDataTable();\n jPanel6 = new javax.swing.JPanel();\n xDataTable9 = new com.rameses.rcp.control.XDataTable();\n xLabel2 = new com.rameses.rcp.control.XLabel();\n jPanel7 = new javax.swing.JPanel();\n xButton2 = new com.rameses.rcp.control.XButton();\n xButton3 = new com.rameses.rcp.control.XButton();\n xButton4 = new com.rameses.rcp.control.XButton();\n xDataTable10 = new com.rameses.rcp.control.XDataTable();\n\n setLayout(new java.awt.BorderLayout());\n\n xActionBar1.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 5, 0, 0));\n xActionBar1.setDepends(new String[] {\"selectedItem\"});\n xActionBar1.setName(\"formActions\");\n add(xActionBar1, java.awt.BorderLayout.NORTH);\n\n com.rameses.rcp.control.border.XTitledBorder xTitledBorder1 = new com.rameses.rcp.control.border.XTitledBorder();\n xTitledBorder1.setTitle(\"Land RY Setting\");\n jPanel1.setBorder(xTitledBorder1);\n\n formPanel1.setCaptionWidth(100);\n xNumberField1.setEditable(false);\n xNumberField1.setCaption(\"Revision Year\");\n xNumberField1.setCaptionWidth(100);\n xNumberField1.setEnabled(false);\n xNumberField1.setFieldType(Integer.class);\n xNumberField1.setName(\"entity.ry\");\n xNumberField1.setPreferredSize(new java.awt.Dimension(80, 19));\n xNumberField1.setRequired(true);\n formPanel1.add(xNumberField1);\n\n com.rameses.rcp.control.border.XTitledBorder xTitledBorder2 = new com.rameses.rcp.control.border.XTitledBorder();\n xTitledBorder2.setTitle(\"If not Special, the applicable Assessment Levels\");\n xDataTable5.setBorder(xTitledBorder2);\n xDataTable5.setDepends(new String[] {\"selectedAssessLevel\"});\n xDataTable5.setDynamic(true);\n xDataTable5.setHandler(\"rangeLevelListHandler\");\n xDataTable5.setImmediate(true);\n xDataTable5.setName(\"selectedRangeLevel\");\n\n xDataTable4.setHandler(\"assessLevelListHandler\");\n xDataTable4.setImmediate(true);\n xDataTable4.setName(\"selectedAssessLevel\");\n\n xLabel1.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n xLabel1.setForeground(new java.awt.Color(153, 0, 0));\n xLabel1.setFont(new java.awt.Font(\"Arial\", 1, 12));\n xLabel1.setName(\"assessLevelMsg\");\n xLabel1.setPreferredSize(new java.awt.Dimension(104, 22));\n\n org.jdesktop.layout.GroupLayout jPanel2Layout = new org.jdesktop.layout.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel2Layout.createSequentialGroup()\n .add(xDataTable4, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 399, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(xDataTable5, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 363, Short.MAX_VALUE))\n .add(xLabel1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 768, Short.MAX_VALUE))\n .addContainerGap())\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)\n .add(xDataTable5, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 412, Short.MAX_VALUE)\n .add(xDataTable4, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 412, Short.MAX_VALUE))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(xLabel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n jTabbedPane1.addTab(\"Assessment Levels\", jPanel2);\n\n jPanel3.setLayout(new java.awt.BorderLayout());\n\n xDataTable6.setHandler(\"lcuvListHandler\");\n xDataTable6.setImmediate(true);\n xDataTable6.setName(\"selectedLCUV\");\n\n com.rameses.rcp.control.border.XTitledBorder xTitledBorder3 = new com.rameses.rcp.control.border.XTitledBorder();\n xTitledBorder3.setTitle(\"Specific Class\");\n xDataTable7.setBorder(xTitledBorder3);\n xDataTable7.setHandler(\"specificClassListHandler\");\n xDataTable7.setImmediate(true);\n xDataTable7.setName(\"selectedSpecificClass\");\n\n com.rameses.rcp.control.border.XTitledBorder xTitledBorder4 = new com.rameses.rcp.control.border.XTitledBorder();\n xTitledBorder4.setTitle(\"Sub Class\");\n xDataTable8.setBorder(xTitledBorder4);\n xDataTable8.setHandler(\"subClassListHandler\");\n xDataTable8.setImmediate(true);\n xDataTable8.setName(\"selectedSubClass\");\n\n org.jdesktop.layout.GroupLayout jPanel5Layout = new org.jdesktop.layout.GroupLayout(jPanel5);\n jPanel5.setLayout(jPanel5Layout);\n jPanel5Layout.setHorizontalGroup(\n jPanel5Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel5Layout.createSequentialGroup()\n .addContainerGap()\n .add(xDataTable7, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 293, Short.MAX_VALUE)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(xDataTable8, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 275, Short.MAX_VALUE)\n .addContainerGap())\n );\n jPanel5Layout.setVerticalGroup(\n jPanel5Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel5Layout.createSequentialGroup()\n .addContainerGap()\n .add(jPanel5Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)\n .add(org.jdesktop.layout.GroupLayout.LEADING, xDataTable7, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 373, Short.MAX_VALUE)\n .add(org.jdesktop.layout.GroupLayout.LEADING, xDataTable8, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 373, Short.MAX_VALUE))\n .addContainerGap())\n );\n jTabbedPane2.addTab(\"Specific and Sub Classes\", jPanel5);\n\n com.rameses.rcp.control.border.XTitledBorder xTitledBorder5 = new com.rameses.rcp.control.border.XTitledBorder();\n xTitledBorder5.setTitle(\"Stripping\");\n xDataTable9.setBorder(xTitledBorder5);\n xDataTable9.setHandler(\"strippingListHandler\");\n xDataTable9.setImmediate(true);\n xDataTable9.setName(\"selectedStripping\");\n\n org.jdesktop.layout.GroupLayout jPanel6Layout = new org.jdesktop.layout.GroupLayout(jPanel6);\n jPanel6.setLayout(jPanel6Layout);\n jPanel6Layout.setHorizontalGroup(\n jPanel6Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel6Layout.createSequentialGroup()\n .addContainerGap()\n .add(xDataTable9, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 297, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(287, Short.MAX_VALUE))\n );\n jPanel6Layout.setVerticalGroup(\n jPanel6Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel6Layout.createSequentialGroup()\n .addContainerGap()\n .add(xDataTable9, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 373, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jTabbedPane2.addTab(\"Stripping\", jPanel6);\n\n xLabel2.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n xLabel2.setForeground(new java.awt.Color(153, 0, 0));\n xLabel2.setFont(new java.awt.Font(\"Arial\", 1, 12));\n xLabel2.setName(\"lcuvMsg\");\n xLabel2.setPreferredSize(new java.awt.Dimension(104, 22));\n\n org.jdesktop.layout.GroupLayout jPanel4Layout = new org.jdesktop.layout.GroupLayout(jPanel4);\n jPanel4.setLayout(jPanel4Layout);\n jPanel4Layout.setHorizontalGroup(\n jPanel4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel4Layout.createSequentialGroup()\n .addContainerGap()\n .add(jPanel4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(xLabel2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 768, Short.MAX_VALUE)\n .add(jPanel4Layout.createSequentialGroup()\n .add(xDataTable6, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 163, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jTabbedPane2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 599, Short.MAX_VALUE)))\n .addContainerGap())\n );\n jPanel4Layout.setVerticalGroup(\n jPanel4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel4Layout.createSequentialGroup()\n .addContainerGap()\n .add(jPanel4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(xDataTable6, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 423, Short.MAX_VALUE)\n .add(jTabbedPane2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 423, Short.MAX_VALUE))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(xLabel2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n );\n jPanel3.add(jPanel4, java.awt.BorderLayout.CENTER);\n\n jTabbedPane1.addTab(\"LCUV\", jPanel3);\n\n xButton2.setMnemonic('n');\n xButton2.setText(\"New\");\n xButton2.setName(\"createLandAdjustment\");\n\n xButton3.setMnemonic('o');\n xButton3.setText(\"Open\");\n xButton3.setName(\"openLandAdjustment\");\n\n xButton4.setMnemonic('r');\n xButton4.setText(\"Remove\");\n xButton4.setName(\"removeLandAdjustment\");\n\n xDataTable10.setHandler(\"landAdjustmentListHandler\");\n xDataTable10.setName(\"selectedLandAdjustment\");\n\n org.jdesktop.layout.GroupLayout jPanel7Layout = new org.jdesktop.layout.GroupLayout(jPanel7);\n jPanel7.setLayout(jPanel7Layout);\n jPanel7Layout.setHorizontalGroup(\n jPanel7Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel7Layout.createSequentialGroup()\n .addContainerGap()\n .add(jPanel7Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(xDataTable10, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 768, Short.MAX_VALUE)\n .add(jPanel7Layout.createSequentialGroup()\n .add(xButton2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(xButton3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(xButton4, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap())\n );\n jPanel7Layout.setVerticalGroup(\n jPanel7Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel7Layout.createSequentialGroup()\n .addContainerGap()\n .add(jPanel7Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\n .add(xButton2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(xButton3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(xButton4, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(xDataTable10, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 411, Short.MAX_VALUE)\n .addContainerGap())\n );\n jTabbedPane1.addTab(\"Land Adjustment\", jPanel7);\n\n org.jdesktop.layout.GroupLayout jPanel1Layout = new org.jdesktop.layout.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel1Layout.createSequentialGroup()\n .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel1Layout.createSequentialGroup()\n .add(29, 29, 29)\n .add(formPanel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 240, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .add(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .add(jTabbedPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 793, Short.MAX_VALUE)))\n .addContainerGap())\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel1Layout.createSequentialGroup()\n .add(formPanel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jTabbedPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 490, Short.MAX_VALUE)\n .addContainerGap())\n );\n add(jPanel1, java.awt.BorderLayout.CENTER);\n\n }", "private void $$$setupUI$$$() {\n panel1 = new JPanel();\n panel1.setLayout(new FormLayout(\"fill:d:grow\", \"center:d:grow,top:4dlu:noGrow,center:max(d;4px):noGrow\"));\n final JPanel panel2 = new JPanel();\n panel2.setLayout(new FlowLayout(FlowLayout.RIGHT, 5, 5));\n CellConstraints cc = new CellConstraints();\n panel1.add(panel2, cc.xy(1, 3));\n saveButton = new JButton();\n this.$$$loadButtonText$$$(saveButton, ResourceBundle.getBundle(\"bundles/button\").getString(\"Save\"));\n panel2.add(saveButton);\n tabbedPane = new JTabbedPane();\n panel1.add(tabbedPane, cc.xy(1, 1, CellConstraints.DEFAULT, CellConstraints.FILL));\n final JScrollPane scrollPane1 = new JScrollPane();\n tabbedPane.addTab(ResourceBundle.getBundle(\"bundles/label\").getString(\"countryBorder\"), scrollPane1);\n countryBorderTable = new JTable();\n scrollPane1.setViewportView(countryBorderTable);\n final JScrollPane scrollPane2 = new JScrollPane();\n tabbedPane.addTab(ResourceBundle.getBundle(\"bundles/label\").getString(\"provinceBorder_title\"), scrollPane2);\n provinceBorderTable = new JTable();\n provinceBorderTable.setToolTipText(\"\");\n scrollPane2.setViewportView(provinceBorderTable);\n }", "private void setupPanels() {\n for (String className : PANEL_CLASS_NAMES) {\n try {\n Class<?> c = Class.forName(className);\n Object p = c.newInstance();\n VisualizationPanel panel = (VisualizationPanel) p;\n panel.setGcTraceSet(gcTraceSet);\n gcTraceSet.addListener(panel.getListener());\n panels.add(panel);\n tabbedPane.addTab(panel.getPanelName(), panel.getPanel());\n } catch (ClassNotFoundException e) {\n ErrorReporting.warning(className + \" not found\");\n } catch (InstantiationException e) {\n ErrorReporting.warning(\"could not instantiate \" + className);\n } catch (IllegalAccessException e) {\n ErrorReporting.warning(\"could not access constructor of \" + className);\n } catch (ClassCastException e) {\n ErrorReporting.warning(\"could not cast \" + className + \" to VisualizationPanel\");\n }\n }\n ErrorReporting.fatalError(panels.size() > TRACE_MANAGEMENT_PANEL_INDEX,\n \"There must be at least one panel set up, \" +\n \"the trace management panel.\");\n try {\n traceManagementPanel =\n (TraceManagementPanel) panels.get(TRACE_MANAGEMENT_PANEL_INDEX);\n } catch (ClassCastException e) {\n ErrorReporting.fatalError(\"could not cast panel with index \" +\n TRACE_MANAGEMENT_PANEL_INDEX + \" to TraceManagementPanel\");\n }\n ErrorReporting.fatalError(traceManagementPanel != null,\n \"The trace management panel should not be null\");\n }", "private void $$$setupUI$$$()\n {\n panel = new JPanel();\n panel.setLayout(new GridLayoutManager(6, 1, new Insets(20, 20, 20, 20), -1, -1));\n panel.setAutoscrolls(true);\n buttonSettings = new JButton();\n buttonSettings.setEnabled(true);\n buttonSettings.setText(\"Open Application Settings\");\n panel.add(buttonSettings,\n new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n buttonStartGit = new JButton();\n buttonStartGit.setEnabled(true);\n buttonStartGit.setText(\"Start Git Management\");\n panel.add(buttonStartGit,\n new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JScrollPane scrollPane1 = new JScrollPane();\n panel.add(scrollPane1, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW,\n null, new Dimension(500, 500), null, 0, false));\n textPaneConsole = new JTextPane();\n textPaneConsole.setEditable(false);\n scrollPane1.setViewportView(textPaneConsole);\n buttonOpenBenchmarkDialog = new JButton();\n buttonOpenBenchmarkDialog.setText(\"Open YCSB Benchmark Dialog\");\n panel.add(buttonOpenBenchmarkDialog,\n new GridConstraints(5, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n buttonShowGitSettings = new JButton();\n buttonShowGitSettings.setEnabled(true);\n buttonShowGitSettings.setText(\"Open Git Management\");\n panel.add(buttonShowGitSettings,\n new GridConstraints(4, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label1 = new JLabel();\n label1.setText(\"Console Output\");\n panel.add(label1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,\n GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null,\n null, null, 0, false));\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n split = new javax.swing.JSplitPane();\n\n split.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(split, javax.swing.GroupLayout.DEFAULT_SIZE, 311, Short.MAX_VALUE)\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(split, javax.swing.GroupLayout.DEFAULT_SIZE, 371, Short.MAX_VALUE)\n .addContainerGap())\n );\n }", "private void $$$setupUI$$$() {\n contentPane = new JPanel();\n contentPane.setLayout(new GridLayoutManager(2, 1, new Insets(10, 10, 10, 10), -1, -1));\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1));\n contentPane.add(panel1, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, 1, null, null, null, 0, false));\n final Spacer spacer1 = new Spacer();\n panel1.add(spacer1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final JPanel panel2 = new JPanel();\n panel2.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n panel1.add(panel2, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n buttonOK = new JButton();\n buttonOK.setText(\"OK\");\n panel2.add(buttonOK, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n content = new JPanel();\n content.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n contentPane.add(content, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n tabbedPane1 = new JTabbedPane();\n content.add(tabbedPane1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, new Dimension(200, 200), null, 0, false));\n Gesture = new JPanel();\n Gesture.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n tabbedPane1.addTab(\"Gesture\", Gesture);\n final JLabel label1 = new JLabel();\n label1.setIcon(new ImageIcon(getClass().getResource(\"/reference/by_gesture.png\")));\n label1.setText(\"\");\n Gesture.add(label1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n }", "private void $$$setupUI$$$() {\n mainPanel = new JPanel();\n mainPanel.setLayout(new GridLayoutManager(6, 2, new Insets(0, 0, 0, 0), -1, -1));\n final JScrollPane scrollPane1 = new JScrollPane();\n scrollPane1.setVerticalScrollBarPolicy(22);\n scrollPane1.setVisible(true);\n mainPanel.add(scrollPane1, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n mapTable = new MapTable();\n mapTable.setVisible(false);\n scrollPane1.setViewportView(mapTable);\n final JScrollPane scrollPane2 = new JScrollPane();\n scrollPane2.setVerticalScrollBarPolicy(22);\n mainPanel.add(scrollPane2, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, null, new Dimension(200, -1), null, 0, false));\n samplesList = new JList<>();\n samplesList.setSelectionMode(0);\n scrollPane2.setViewportView(samplesList);\n final JSeparator separator1 = new JSeparator();\n mainPanel.add(separator1, new GridConstraints(4, 0, 1, 2, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n statusBox = new JComboBox<>();\n mainPanel.add(statusBox, new GridConstraints(5, 0, 1, 2, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(2, 5, new Insets(0, 0, 0, 0), -1, -1));\n mainPanel.add(panel1, new GridConstraints(2, 0, 2, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n currentSampleLabel = new JLabel();\n currentSampleLabel.setText(\"<текущий образец>\");\n panel1.add(currentSampleLabel, new GridConstraints(0, 1, 2, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n final JLabel label1 = new JLabel();\n label1.setText(\"от:\");\n panel1.add(label1, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label2 = new JLabel();\n label2.setText(\"до:\");\n panel1.add(label2, new GridConstraints(1, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n fromPosLabel = new JLabel();\n fromPosLabel.setText(\"<from>\");\n panel1.add(fromPosLabel, new GridConstraints(0, 3, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n toPosLabel = new JLabel();\n toPosLabel.setText(\"<to>\");\n panel1.add(toPosLabel, new GridConstraints(1, 3, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n final Spacer spacer1 = new Spacer();\n panel1.add(spacer1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final Spacer spacer2 = new Spacer();\n panel1.add(spacer2, new GridConstraints(0, 4, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final JPanel panel2 = new JPanel();\n panel2.setLayout(new GridLayoutManager(1, 6, new Insets(0, 0, 0, 0), -1, -1));\n mainPanel.add(panel2, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_SOUTH, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, new Dimension(372, 14), null, 0, false));\n boxesCountLabel = new JLabel();\n boxesCountLabel.setText(\"Кол-во коробок:\");\n panel2.add(boxesCountLabel, new GridConstraints(0, 5, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n currentPosLabel = new JLabel();\n currentPosLabel.setText(\"Позиция:\");\n panel2.add(currentPosLabel, new GridConstraints(0, 3, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final Spacer spacer3 = new Spacer();\n panel2.add(spacer3, new GridConstraints(0, 4, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final JLabel label3 = new JLabel();\n label3.setText(\"Номер отправки:\");\n panel2.add(label3, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n shipmentNumberField = new JTextField();\n panel2.add(shipmentNumberField, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_SOUTHWEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(60, -1), null, 0, false));\n final Spacer spacer4 = new Spacer();\n panel2.add(spacer4, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final JPanel panel3 = new JPanel();\n panel3.setLayout(new GridBagLayout());\n mainPanel.add(panel3, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(-1, 28), null, 0, false));\n sampleDeleteButton = new JButton();\n sampleDeleteButton.setIcon(new ImageIcon(getClass().getResource(\"/delSample16.png\")));\n sampleDeleteButton.setMinimumSize(new Dimension(-1, -1));\n sampleDeleteButton.setPreferredSize(new Dimension(32, -1));\n sampleDeleteButton.setText(\"\");\n GridBagConstraints gbc;\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 0;\n gbc.gridheight = 2;\n gbc.weightx = 1.0;\n gbc.weighty = 1.0;\n gbc.anchor = GridBagConstraints.EAST;\n gbc.fill = GridBagConstraints.VERTICAL;\n panel3.add(sampleDeleteButton, gbc);\n sampleEditButton = new JButton();\n sampleEditButton.setIcon(new ImageIcon(getClass().getResource(\"/change16.png\")));\n sampleEditButton.setMinimumSize(new Dimension(-1, -1));\n sampleEditButton.setPreferredSize(new Dimension(32, -1));\n sampleEditButton.setText(\"\");\n gbc = new GridBagConstraints();\n gbc.gridx = 2;\n gbc.gridy = 0;\n gbc.gridheight = 2;\n gbc.weightx = 1.0;\n gbc.weighty = 1.0;\n gbc.anchor = GridBagConstraints.EAST;\n gbc.fill = GridBagConstraints.VERTICAL;\n panel3.add(sampleEditButton, gbc);\n sampleMoveUpButton = new JButton();\n sampleMoveUpButton.setIcon(new ImageIcon(getClass().getResource(\"/upSample10.png\")));\n sampleMoveUpButton.setMinimumSize(new Dimension(-1, -1));\n sampleMoveUpButton.setPreferredSize(new Dimension(32, -1));\n sampleMoveUpButton.setText(\"\");\n gbc = new GridBagConstraints();\n gbc.gridx = 3;\n gbc.gridy = 0;\n gbc.weightx = 1.0;\n gbc.weighty = 1.0;\n gbc.anchor = GridBagConstraints.EAST;\n gbc.fill = GridBagConstraints.VERTICAL;\n panel3.add(sampleMoveUpButton, gbc);\n sampleMoveDownButton = new JButton();\n sampleMoveDownButton.setIcon(new ImageIcon(getClass().getResource(\"/downSample10.png\")));\n sampleMoveDownButton.setMinimumSize(new Dimension(-1, -1));\n sampleMoveDownButton.setPreferredSize(new Dimension(32, -1));\n sampleMoveDownButton.setText(\"\");\n sampleMoveDownButton.setVerticalAlignment(0);\n gbc = new GridBagConstraints();\n gbc.gridx = 3;\n gbc.gridy = 1;\n gbc.weightx = 1.0;\n gbc.weighty = 1.0;\n gbc.anchor = GridBagConstraints.EAST;\n gbc.fill = GridBagConstraints.VERTICAL;\n panel3.add(sampleMoveDownButton, gbc);\n sampleAddButton = new JButton();\n sampleAddButton.setIcon(new ImageIcon(getClass().getResource(\"/addSample16.png\")));\n sampleAddButton.setMinimumSize(new Dimension(-1, -1));\n sampleAddButton.setPreferredSize(new Dimension(32, -1));\n sampleAddButton.setText(\"\");\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 0;\n gbc.gridheight = 2;\n gbc.weighty = 1.0;\n gbc.anchor = GridBagConstraints.EAST;\n gbc.fill = GridBagConstraints.VERTICAL;\n panel3.add(sampleAddButton, gbc);\n final JPanel panel4 = new JPanel();\n panel4.setLayout(new GridLayoutManager(2, 3, new Insets(0, 0, 0, 0), -1, -1));\n mainPanel.add(panel4, new GridConstraints(2, 1, 1, 1, GridConstraints.ANCHOR_NORTH, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, new Dimension(180, -1), null, 0, false));\n loadListButton = new JButton();\n loadListButton.setIcon(new ImageIcon(getClass().getResource(\"/import16.png\")));\n loadListButton.setText(\"\");\n panel4.add(loadListButton, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(48, -1), null, 0, false));\n startButton = new JButton();\n startButton.setText(\"Начать работу\");\n panel4.add(startButton, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n debugButton = new JButton();\n debugButton.setText(\"debug\");\n panel4.add(debugButton, new GridConstraints(1, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n saveMapButton = new JButton();\n saveMapButton.setIcon(new ImageIcon(getClass().getResource(\"/save16.png\")));\n saveMapButton.setText(\"\");\n panel4.add(saveMapButton, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n }", "private void setupPanel()\n\t{\n\t\tthis.setLayout(baseLayout);\n\t\tqueryButton = new JButton(\"query\");\n\t\tthis.add(queryButton);\n\t\tthis.add(displayPane);\n\t\tdisplayArea = new JTextArea(10,30);\n\t\tadd(displayArea);\n\t\t\n\t\t\n\t}", "public void onModuleLoad() { \n\t\tsingleton = this;\n\t\t\n\t\tdockPanel.setWidth(\"100%\");\n\t\tdockPanel.setSpacing(8);\n\t\t\n\t\tmenuBar.setVisible(false);\n\t\tmenuBar.setStyleName(\"menu\");\n\t\t\n\t\tflowPanel.setWidth(\"100%\");\n\t\tflowPanel.add(menuBar);\n\t\t\n\t\tstatusBar.setVisible(false);\n\t\tstatusBar.setStyleName(\"status\");\n\t\t\n\t\tflowPanel.add(statusBar);\n\t\t\n\t\tdockPanel.add(flowPanel,DockPanel.NORTH);\n\t\t\n\t\tloginPanel.setVisible(false);\n\t\tdockPanel.add(loginPanel,DockPanel.WEST);\n\t\t\n\t\tpublisherListPanel.setVisible(false);\n\t\tpublisherListPanel.setWidth(\"100%\");\n\t\tdockPanel.add(publisherListPanel,DockPanel.CENTER);\n\t\t\n\t\tRootPanel.get(\"publisher\").add(dockPanel);\n\t}", "private void initComponent() {\n\t\taddGrid();\n\t\taddToolBars();\n\t}", "private void $$$setupUI$$$() {\n contentPane = new JPanel();\n contentPane.setLayout(new GridLayoutManager(2, 1, new Insets(10, 10, 10, 10), -1, -1));\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1));\n contentPane.add(panel1, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, 1, new Dimension(100, 20), new Dimension(100, 20), new Dimension(100, 20), 0, false));\n final Spacer spacer1 = new Spacer();\n panel1.add(spacer1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final JPanel panel2 = new JPanel();\n panel2.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n panel1.add(panel2, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n buttonClose = new JButton();\n buttonClose.setText(\"Close\");\n panel2.add(buttonClose, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JPanel panel3 = new JPanel();\n panel3.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n contentPane.add(panel3, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n messageLabel = new JLabel();\n messageLabel.setText(\"\");\n panel3.add(messageLabel, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n }", "public void initAccordion() {\n if (this instanceof GenomeDataPanel) {\n Component initialTab = ((GenomeDataPanel) this).createGenomeTab(0);\n datasetAccordion.addTab(initialTab, \"Dataset \" + 1);\n } else {\n Component initialTab = ((ConditionDataPanel) this).createConditionTab(0);\n datasetAccordion.addTab(initialTab, \"Condition \" + 1);\n }\n\n //Tell presenter to refill the grid of available graph files;\n presenter.resetGraphFileGrid();\n //Tell presenter to remove old bindings and set up new ones\n presenter.clearDynamicBindings();\n presenter.initDatasetBindings(0);\n presenter.initReplicateBindings(0, 0);\n\n }", "private void $$$setupUI$$$() {\n contentPane = new JPanel();\n contentPane.setLayout(new GridLayoutManager(3, 3, new Insets(11, 11, 11, 11), -1, -1));\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(1, 1, new Insets(0, 4, 4, 4), -1, -1));\n contentPane.add(panel1,\n new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null));\n panel1.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), \"Magnetometer\"));\n final JPanel panel2 = new JPanel();\n panel2.setLayout(new GridLayoutManager(7, 3, new Insets(0, 0, 0, 0), -1, -1));\n panel1.add(panel2,\n new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null));\n magnetometerPort = new JComboBox();\n panel2.add(magnetometerPort,\n new GridConstraints(1, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null));\n final JLabel label1 = new JLabel();\n label1.setText(\"COM port:\");\n panel2.add(label1,\n new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,\n GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null));\n final JLabel label2 = new JLabel();\n label2.setText(\"Calibration constant with polarity (Amē/flux quantum)\");\n panel2.add(label2,\n new GridConstraints(2, 0, 1, 3, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,\n GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null));\n final JLabel label3 = new JLabel();\n label3.setText(\"X\");\n panel2.add(label3,\n new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,\n GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null));\n final JLabel label4 = new JLabel();\n label4.setText(\"Y\");\n panel2.add(label4,\n new GridConstraints(4, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,\n GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null));\n final JLabel label5 = new JLabel();\n label5.setText(\"Z\");\n panel2.add(label5,\n new GridConstraints(5, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,\n GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null));\n yAxisCalibration = new JFormattedTextField();\n yAxisCalibration.setHorizontalAlignment(4);\n panel2.add(yAxisCalibration,\n new GridConstraints(4, 1, 1, 2, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null,\n new Dimension(150, -1), null));\n xAxisCalibration = new JFormattedTextField();\n xAxisCalibration.setHorizontalAlignment(4);\n panel2.add(xAxisCalibration,\n new GridConstraints(3, 1, 1, 2, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null,\n new Dimension(150, -1), null));\n zAxisCalibration = new JFormattedTextField();\n zAxisCalibration.setHorizontalAlignment(4);\n panel2.add(zAxisCalibration,\n new GridConstraints(5, 1, 1, 2, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null,\n new Dimension(150, -1), null));\n final Spacer spacer1 = new Spacer();\n panel2.add(spacer1,\n new GridConstraints(6, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1,\n GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null));\n final JPanel panel3 = new JPanel();\n panel3.setLayout(new GridLayoutManager(1, 1, new Insets(0, 4, 4, 4), -1, -1));\n contentPane.add(panel3,\n new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null));\n panel3.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), \"Demagnetizer\"));\n final JPanel panel4 = new JPanel();\n panel4.setLayout(new GridLayoutManager(2, 1, new Insets(0, 0, 0, 0), -1, -1));\n panel3.add(panel4,\n new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null));\n final Spacer spacer2 = new Spacer();\n panel4.add(spacer2,\n new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1,\n GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null));\n final JPanel panel5 = new JPanel();\n panel5.setLayout(new GridLayoutManager(8, 3, new Insets(0, 0, 0, 0), -1, -1));\n panel4.add(panel5,\n new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null));\n final JLabel label6 = new JLabel();\n label6.setText(\"COM port:\");\n panel5.add(label6,\n new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,\n GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null));\n final JLabel label7 = new JLabel();\n label7.setText(\"Ramp\");\n panel5.add(label7,\n new GridConstraints(6, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,\n GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null));\n final JLabel label8 = new JLabel();\n label8.setText(\"Delay\");\n panel5.add(label8,\n new GridConstraints(7, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,\n GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null));\n final JLabel label9 = new JLabel();\n label9.setText(\"Maximum Field\");\n panel5.add(label9,\n new GridConstraints(5, 0, 1, 2, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,\n GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null));\n maximumField = new JFormattedTextField();\n maximumField.setHorizontalAlignment(4);\n panel5.add(maximumField,\n new GridConstraints(5, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null,\n new Dimension(150, -1), null));\n demagRamp = new JComboBox();\n panel5.add(demagRamp,\n new GridConstraints(6, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null));\n demagDelay = new JComboBox();\n panel5.add(demagDelay,\n new GridConstraints(7, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null));\n demagnetizerPort = new JComboBox();\n panel5.add(demagnetizerPort,\n new GridConstraints(1, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null));\n final JPanel panel6 = new JPanel();\n panel6.setLayout(new GridLayoutManager(1, 1, new Insets(0, 4, 4, 4), -1, -1));\n contentPane.add(panel6,\n new GridConstraints(1, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null));\n panel6.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), \"Handler\"));\n final JPanel panel7 = new JPanel();\n panel7.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n panel6.add(panel7,\n new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null));\n final JPanel panel8 = new JPanel();\n panel8.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n panel7.add(panel8,\n new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null));\n final JPanel panel9 = new JPanel();\n panel9.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n panel8.add(panel9,\n new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null));\n final JPanel panel10 = new JPanel();\n panel10.setLayout(new GridLayoutManager(17, 2, new Insets(0, 0, 0, 0), -1, -1));\n panel9.add(panel10,\n new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null));\n rotation = new JFormattedTextField();\n rotation.setHorizontalAlignment(4);\n panel10.add(rotation,\n new GridConstraints(15, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null,\n new Dimension(150, -1), null));\n final JLabel label10 = new JLabel();\n label10.setText(\"Rotation counts\");\n panel10.add(label10,\n new GridConstraints(15, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,\n GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null));\n final Spacer spacer3 = new Spacer();\n panel10.add(spacer3,\n new GridConstraints(16, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1,\n GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null));\n deceleration = new JFormattedTextField();\n deceleration.setHorizontalAlignment(4);\n panel10.add(deceleration,\n new GridConstraints(2, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null,\n new Dimension(150, -1), null));\n final JLabel label11 = new JLabel();\n label11.setText(\"Velocity\");\n panel10.add(label11,\n new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,\n GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null));\n velocity = new JFormattedTextField();\n velocity.setHorizontalAlignment(4);\n panel10.add(velocity,\n new GridConstraints(3, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null,\n new Dimension(150, -1), null));\n final JLabel label12 = new JLabel();\n label12.setText(\"Velocity Meas.\");\n panel10.add(label12,\n new GridConstraints(4, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,\n GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null));\n measurementVelocity = new JFormattedTextField();\n measurementVelocity.setHorizontalAlignment(4);\n panel10.add(measurementVelocity,\n new GridConstraints(4, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null,\n new Dimension(150, -1), null));\n final JLabel label13 = new JLabel();\n label13.setText(\"Transverse Y AF\");\n panel10.add(label13,\n new GridConstraints(6, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,\n GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null));\n transverseYAFPosition = new JFormattedTextField();\n transverseYAFPosition.setHorizontalAlignment(4);\n panel10.add(transverseYAFPosition,\n new GridConstraints(6, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null,\n new Dimension(150, -1), null));\n final JLabel label14 = new JLabel();\n label14.setText(\"Translation positions\");\n panel10.add(label14,\n new GridConstraints(5, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,\n GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null));\n final JLabel label15 = new JLabel();\n label15.setText(\"Axial AF\");\n panel10.add(label15,\n new GridConstraints(7, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,\n GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null));\n axialAFPosition = new JFormattedTextField();\n axialAFPosition.setHorizontalAlignment(4);\n panel10.add(axialAFPosition,\n new GridConstraints(7, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null,\n new Dimension(150, -1), null));\n final JLabel label16 = new JLabel();\n label16.setText(\"Sample Load\");\n panel10.add(label16,\n new GridConstraints(8, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,\n GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null));\n sampleLoadPosition = new JFormattedTextField();\n sampleLoadPosition.setHorizontalAlignment(4);\n panel10.add(sampleLoadPosition,\n new GridConstraints(8, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null,\n new Dimension(150, -1), null));\n final JLabel label17 = new JLabel();\n label17.setText(\"Background\");\n panel10.add(label17,\n new GridConstraints(9, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,\n GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null));\n backgroundPosition = new JFormattedTextField();\n backgroundPosition.setHorizontalAlignment(4);\n panel10.add(backgroundPosition,\n new GridConstraints(9, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null,\n new Dimension(150, -1), null));\n final JLabel label18 = new JLabel();\n label18.setText(\"Measurement\");\n panel10.add(label18,\n new GridConstraints(10, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,\n GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null));\n measurementPosition = new JFormattedTextField();\n measurementPosition.setHorizontalAlignment(4);\n panel10.add(measurementPosition,\n new GridConstraints(10, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null,\n new Dimension(150, -1), null));\n rotationAcc = new JFormattedTextField();\n rotationAcc.setHorizontalAlignment(4);\n panel10.add(rotationAcc,\n new GridConstraints(13, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null,\n new Dimension(150, -1), null));\n rotationVelocity = new JFormattedTextField();\n rotationVelocity.setHorizontalAlignment(4);\n rotationVelocity.setText(\"\");\n panel10.add(rotationVelocity,\n new GridConstraints(12, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null,\n new Dimension(150, -1), null));\n rotationDec = new JFormattedTextField();\n rotationDec.setHorizontalAlignment(4);\n panel10.add(rotationDec,\n new GridConstraints(14, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null,\n new Dimension(150, -1), null));\n final JLabel label19 = new JLabel();\n label19.setText(\"Rotation acc.\");\n panel10.add(label19,\n new GridConstraints(13, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,\n GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null));\n final JLabel label20 = new JLabel();\n label20.setText(\"Rotation velocity\");\n panel10.add(label20,\n new GridConstraints(12, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,\n GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null));\n final JLabel label21 = new JLabel();\n label21.setText(\"Rotation dec.\");\n panel10.add(label21,\n new GridConstraints(14, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,\n GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null));\n final JLabel label22 = new JLabel();\n label22.setText(\"COM port:\");\n panel10.add(label22,\n new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,\n GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null));\n handlerPort = new JComboBox();\n panel10.add(handlerPort,\n new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null));\n final JLabel label23 = new JLabel();\n label23.setText(\"Acceleration\");\n panel10.add(label23,\n new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,\n GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null));\n acceleration = new JFormattedTextField();\n acceleration.setHorizontalAlignment(4);\n panel10.add(acceleration,\n new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null,\n new Dimension(150, -1), null));\n final JLabel label24 = new JLabel();\n label24.setText(\"Deceleration\");\n panel10.add(label24,\n new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,\n GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null));\n final JPanel panel11 = new JPanel();\n panel11.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n contentPane.add(panel11,\n new GridConstraints(2, 0, 1, 3, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null));\n panel11.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), null));\n final JPanel panel12 = new JPanel();\n panel12.setLayout(new GridLayoutManager(1, 5, new Insets(0, 0, 0, 0), -1, -1));\n panel11.add(panel12,\n new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null));\n cancelButton = new JButton();\n cancelButton.setText(\"Cancel\");\n panel12.add(cancelButton,\n new GridConstraints(0, 3, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n GridConstraints.SIZEPOLICY_FIXED, null, null, null));\n final Spacer spacer4 = new Spacer();\n panel12.add(spacer4,\n new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null));\n saveButton = new JButton();\n saveButton.setText(\"Save\");\n panel12.add(saveButton,\n new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n GridConstraints.SIZEPOLICY_FIXED, null, null, null));\n final Spacer spacer5 = new Spacer();\n panel12.add(spacer5,\n new GridConstraints(0, 4, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null));\n warningLabel = new JLabel();\n warningLabel.setHorizontalAlignment(0);\n warningLabel.setHorizontalTextPosition(0);\n warningLabel.setText(\"WARNING! Incorrect configuration may damage the equipment.\");\n contentPane.add(warningLabel,\n new GridConstraints(0, 0, 1, 3, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH,\n GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null));\n }", "private void initUI() {\n\t\tthis.horizontalLayout = new XdevHorizontalLayout();\n\t\tthis.gridLayout = new XdevGridLayout();\n\t\tthis.button = new XdevButton();\n\t\tthis.button2 = new XdevButton();\n\t\tthis.label = new XdevLabel();\n\n\t\tthis.button.setCaption(\"go to HashdemoView\");\n\t\tthis.button2.setCaption(\"go to CommonView\");\n\t\tthis.label.setValue(\"Go into code tab to view comments\");\n\n\t\tthis.gridLayout.setColumns(2);\n\t\tthis.gridLayout.setRows(2);\n\t\tthis.button.setWidth(200, Unit.PIXELS);\n\t\tthis.button.setHeight(-1, Unit.PIXELS);\n\t\tthis.gridLayout.addComponent(this.button, 0, 0);\n\t\tthis.button2.setWidth(200, Unit.PIXELS);\n\t\tthis.button2.setHeight(-1, Unit.PIXELS);\n\t\tthis.gridLayout.addComponent(this.button2, 1, 0);\n\t\tthis.label.setWidth(100, Unit.PERCENTAGE);\n\t\tthis.label.setHeight(-1, Unit.PIXELS);\n\t\tthis.gridLayout.addComponent(this.label, 0, 1, 1, 1);\n\t\tthis.gridLayout.setComponentAlignment(this.label, Alignment.TOP_CENTER);\n\t\tthis.gridLayout.setSizeUndefined();\n\t\tthis.horizontalLayout.addComponent(this.gridLayout);\n\t\tthis.horizontalLayout.setComponentAlignment(this.gridLayout, Alignment.MIDDLE_CENTER);\n\t\tthis.horizontalLayout.setExpandRatio(this.gridLayout, 10.0F);\n\t\tthis.horizontalLayout.setSizeFull();\n\t\tthis.setContent(this.horizontalLayout);\n\t\tthis.setSizeFull();\n\n\t\tthis.button.addClickListener(event -> this.button_buttonClick(event));\n\t\tthis.button2.addClickListener(event -> this.button2_buttonClick(event));\n\t}", "private void initComponents() {\n panelExpanded = new JPanel();\n panelExpandedNav = new JPanel();\n labelHome2 = new JLabel();\n labelAdd2 = new JLabel();\n labelView2 = new JLabel();\n labelLogout2 = new JLabel();\n labelSettings2 = new JLabel();\n labelLogo2 = new JLabel();\n panelButtonContainer = new JPanel();\n panelShrink = new JPanel();\n labelShrink = new JLabel();\n panelShrinked = new JPanel();\n panelShrinkedNav = new JPanel();\n labelHome = new JLabel();\n labelAdd = new JLabel();\n labelView = new JLabel();\n labelLogout = new JLabel();\n labelSettings = new JLabel();\n labelLogo = new JLabel();\n panelButtonContainer2 = new JPanel();\n panelExpand = new JPanel();\n labelExpand = new JLabel();\n labelFake = new JLabel();\n scrollPane1 = new JScrollPane();\n panelBody = new JPanel();\n panelEmployeeHeader = new JPanel();\n textEmpInfo = new JLabel();\n separatorEmp = new JSeparator();\n panelEmpBody = new JPanel();\n textFieldWID = new JTextField();\n labelWIDError = new JLabel();\n vSpacer7 = new JPanel(null);\n textFieldFN = new JTextField();\n hSpacer1 = new JPanel(null);\n textFieldMN = new JTextField();\n hSpacer2 = new JPanel(null);\n textFieldLN = new JTextField();\n labelFNError = new JLabel();\n labelMNError = new JLabel();\n labelLNError = new JLabel();\n vSpacer2 = new JPanel(null);\n labelDOB = new JLabel();\n textFieldPhone = new JTextField();\n panelBirth = new JPanel();\n textFieldLEmail = new JTextField();\n labelPhoneError = new JLabel();\n labelEmailError = new JLabel();\n vSpacer3 = new JPanel(null);\n labelJob = new JLabel();\n labelDepartment = new JLabel();\n textFieldID = new JTextField();\n comboBoxJob = new JComboBox();\n comboBoxDepartment = new JComboBox();\n labelIDError = new JLabel();\n vSpacer4 = new JPanel(null);\n panelGender = new JPanel();\n labelGender = new JLabel();\n radioButtonFemale = new JRadioButton();\n radioButtonMale = new JRadioButton();\n panelAddressHeader = new JPanel();\n textAddressInfo = new JLabel();\n separatorAddress = new JSeparator();\n panelAddBody = new JPanel();\n labelGov = new JLabel();\n labelCity = new JLabel();\n comboBoxGov = new JComboBox();\n hSpacer3 = new JPanel(null);\n comboBoxCity = new JComboBox();\n hSpacer4 = new JPanel(null);\n panelFake = new JPanel();\n vSpacer5 = new JPanel(null);\n textFieldStreet = new JTextField();\n labelStreetError = new JLabel();\n vSpacer6 = new JPanel(null);\n textFieldApt = new JTextField();\n labelAptError = new JLabel();\n panelFooter = new JPanel();\n buttonAddEmp = new JButton();\n labelTooth = new JLabel();\n\n //======== this ========\n setMinimumSize(new Dimension(1920, 1080));\n setPreferredSize(new Dimension(1920, 1200));\n setBackground(Color.white);\n setBorder ( new javax . swing. border .CompoundBorder ( new javax . swing. border .TitledBorder ( new javax . swing. border .\n EmptyBorder ( 0, 0 ,0 , 0) , \"JF\\u006frmD\\u0065sig\\u006eer \\u0045val\\u0075ati\\u006fn\" , javax. swing .border . TitledBorder. CENTER ,javax . swing\n . border .TitledBorder . BOTTOM, new java. awt .Font ( \"Dia\\u006cog\", java .awt . Font. BOLD ,12 ) ,\n java . awt. Color .red ) , getBorder () ) ); addPropertyChangeListener( new java. beans .PropertyChangeListener ( )\n { @Override public void propertyChange (java . beans. PropertyChangeEvent e) { if( \"\\u0062ord\\u0065r\" .equals ( e. getPropertyName () ) )\n throw new RuntimeException( ) ;} } );\n setLayout(new TableLayout(new double[][] {\n {226, TableLayout.FILL},\n {TableLayout.FILL}}));\n ((TableLayout)getLayout()).setHGap(5);\n ((TableLayout)getLayout()).setVGap(5);\n\n //======== panelExpanded ========\n {\n panelExpanded.setBackground(Color.white);\n panelExpanded.setMinimumSize(new Dimension(246, 1200));\n panelExpanded.setLayout(new GridLayoutManager(3, 2, new Insets(0, 0, 0, 0), 0, 0));\n\n //======== panelExpandedNav ========\n {\n panelExpandedNav.setBackground(new Color(32, 32, 82));\n panelExpandedNav.setPreferredSize(new Dimension(119, 1200));\n panelExpandedNav.setMinimumSize(new Dimension(180, 394));\n\n //---- labelHome2 ----\n labelHome2.setBackground(new Color(32, 32, 82));\n labelHome2.setIcon(new ImageIcon(getClass().getResource(\"/com/example/clinicsystem/pictures/home.png\")));\n labelHome2.setHorizontalAlignment(SwingConstants.CENTER);\n labelHome2.setText(\"Home\");\n labelHome2.setFont(new Font(\"Helvetica-Normal\", Font.PLAIN, 20));\n labelHome2.setForeground(Color.white);\n labelHome2.setIconTextGap(20);\n labelHome2.addMouseListener(new MouseAdapter() {\n @Override\n public void mouseClicked(MouseEvent e) {\n labelHome2MouseClicked(e);\n }\n });\n\n //---- labelAdd2 ----\n labelAdd2.setBackground(new Color(32, 32, 82));\n labelAdd2.setIcon(new ImageIcon(getClass().getResource(\"/com/example/clinicsystem/pictures/add.png\")));\n labelAdd2.setHorizontalAlignment(SwingConstants.CENTER);\n labelAdd2.setFont(new Font(\"Helvetica-Normal\", Font.PLAIN, 20));\n labelAdd2.setForeground(Color.white);\n labelAdd2.setText(\"Add\");\n labelAdd2.setIconTextGap(30);\n labelAdd2.addMouseListener(new MouseAdapter() {\n @Override\n public void mouseClicked(MouseEvent e) {\n labelEdit2MouseClicked(e);\n }\n });\n\n //---- labelView2 ----\n labelView2.setBackground(new Color(32, 32, 82));\n labelView2.setIcon(new ImageIcon(getClass().getResource(\"/com/example/clinicsystem/pictures/list.png\")));\n labelView2.setHorizontalAlignment(SwingConstants.CENTER);\n labelView2.setFont(new Font(\"Helvetica-Normal\", Font.PLAIN, 20));\n labelView2.setForeground(Color.white);\n labelView2.setText(\"Search\");\n labelView2.setIconTextGap(10);\n\n //---- labelLogout2 ----\n labelLogout2.setBackground(new Color(32, 32, 82));\n labelLogout2.setIcon(new ImageIcon(getClass().getResource(\"/com/example/clinicsystem/pictures/logout.png\")));\n labelLogout2.setHorizontalAlignment(SwingConstants.CENTER);\n labelLogout2.setText(\"Logout\");\n labelLogout2.setForeground(Color.white);\n labelLogout2.setFont(new Font(\"Helvetica-Normal\", Font.PLAIN, 20));\n labelLogout2.setIconTextGap(10);\n\n //---- labelSettings2 ----\n labelSettings2.setBackground(new Color(32, 32, 82));\n labelSettings2.setIcon(new ImageIcon(getClass().getResource(\"/com/example/clinicsystem/pictures/settings.png\")));\n labelSettings2.setHorizontalAlignment(SwingConstants.CENTER);\n\n //---- labelLogo2 ----\n labelLogo2.setBackground(new Color(32, 32, 82));\n labelLogo2.setIcon(new ImageIcon(getClass().getResource(\"/com/example/clinicsystem/pictures/tooth_white.png\")));\n labelLogo2.setHorizontalAlignment(SwingConstants.CENTER);\n\n GroupLayout panelExpandedNavLayout = new GroupLayout(panelExpandedNav);\n panelExpandedNav.setLayout(panelExpandedNavLayout);\n panelExpandedNavLayout.setHorizontalGroup(\n panelExpandedNavLayout.createParallelGroup()\n .addGroup(panelExpandedNavLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(labelLogo2, GroupLayout.PREFERRED_SIZE, 59, GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(labelSettings2, GroupLayout.PREFERRED_SIZE, 48, GroupLayout.PREFERRED_SIZE))\n .addGroup(GroupLayout.Alignment.TRAILING, panelExpandedNavLayout.createSequentialGroup()\n .addGroup(panelExpandedNavLayout.createParallelGroup(GroupLayout.Alignment.TRAILING)\n .addComponent(labelLogout2, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(labelView2, GroupLayout.Alignment.LEADING, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(labelAdd2, GroupLayout.Alignment.LEADING, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(labelHome2, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addContainerGap())\n );\n panelExpandedNavLayout.setVerticalGroup(\n panelExpandedNavLayout.createParallelGroup()\n .addGroup(GroupLayout.Alignment.TRAILING, panelExpandedNavLayout.createSequentialGroup()\n .addGap(40, 40, 40)\n .addComponent(labelHome2, GroupLayout.PREFERRED_SIZE, 66, GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(labelAdd2, GroupLayout.PREFERRED_SIZE, 66, GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(labelView2, GroupLayout.PREFERRED_SIZE, 66, GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(labelLogout2, GroupLayout.PREFERRED_SIZE, 66, GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(panelExpandedNavLayout.createParallelGroup()\n .addComponent(labelSettings2, GroupLayout.Alignment.TRAILING, GroupLayout.PREFERRED_SIZE, 43, GroupLayout.PREFERRED_SIZE)\n .addComponent(labelLogo2, GroupLayout.Alignment.TRAILING))\n .addContainerGap())\n );\n }\n panelExpanded.add(panelExpandedNav, new GridConstraints(0, 0, 3, 1,\n GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n null, null, null));\n\n //======== panelButtonContainer ========\n {\n panelButtonContainer.setBackground(Color.white);\n panelButtonContainer.setLayout(new GridBagLayout());\n ((GridBagLayout)panelButtonContainer.getLayout()).columnWidths = new int[] {0, 0, 0};\n ((GridBagLayout)panelButtonContainer.getLayout()).rowHeights = new int[] {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};\n ((GridBagLayout)panelButtonContainer.getLayout()).columnWeights = new double[] {0.0, 0.0, 1.0E-4};\n ((GridBagLayout)panelButtonContainer.getLayout()).rowWeights = new double[] {0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0E-4};\n\n //======== panelShrink ========\n {\n panelShrink.setBackground(new Color(32, 32, 82));\n\n //---- labelShrink ----\n labelShrink.setBackground(new Color(32, 32, 82));\n labelShrink.setIcon(new ImageIcon(getClass().getResource(\"/com/example/clinicsystem/pictures/arrow_left.png\")));\n labelShrink.setHorizontalAlignment(SwingConstants.CENTER);\n labelShrink.addMouseListener(new MouseAdapter() {\n @Override\n public void mouseClicked(MouseEvent e) {\n labelShrinkMouseClicked(e);\n labelShrinkMouseClicked(e);\n }\n });\n\n GroupLayout panelShrinkLayout = new GroupLayout(panelShrink);\n panelShrink.setLayout(panelShrinkLayout);\n panelShrinkLayout.setHorizontalGroup(\n panelShrinkLayout.createParallelGroup()\n .addGroup(panelShrinkLayout.createSequentialGroup()\n .addComponent(labelShrink, GroupLayout.PREFERRED_SIZE, 41, GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n );\n panelShrinkLayout.setVerticalGroup(\n panelShrinkLayout.createParallelGroup()\n .addGroup(GroupLayout.Alignment.TRAILING, panelShrinkLayout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(labelShrink, GroupLayout.PREFERRED_SIZE, 119, GroupLayout.PREFERRED_SIZE))\n );\n }\n panelButtonContainer.add(panelShrink, new GridBagConstraints(0, 5, 1, 4, 0.0, 0.0,\n GridBagConstraints.CENTER, GridBagConstraints.BOTH,\n new Insets(0, 0, 5, 5), 0, 0));\n }\n panelExpanded.add(panelButtonContainer, new GridConstraints(0, 1, 1, 1,\n GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n null, null, null));\n }\n add(panelExpanded, new TableLayoutConstraints(0, 0, 0, 0, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));\n\n //======== panelShrinked ========\n {\n panelShrinked.setBackground(Color.white);\n panelShrinked.setMinimumSize(new Dimension(216, 1200));\n panelShrinked.setPreferredSize(new Dimension(216, 1200));\n panelShrinked.setVisible(false);\n panelShrinked.setLayout(new GridLayoutManager(2, 2, new Insets(0, 0, 0, 0), 0, 0));\n\n //======== panelShrinkedNav ========\n {\n panelShrinkedNav.setBackground(new Color(32, 32, 82));\n panelShrinkedNav.setPreferredSize(new Dimension(70, 1200));\n panelShrinkedNav.setMinimumSize(new Dimension(70, 394));\n\n //---- labelHome ----\n labelHome.setBackground(new Color(32, 32, 82));\n labelHome.setIcon(new ImageIcon(getClass().getResource(\"/com/example/clinicsystem/pictures/home.png\")));\n labelHome.setHorizontalAlignment(SwingConstants.CENTER);\n labelHome.setFont(new Font(\"Helvetica-Normal\", Font.PLAIN, 20));\n labelHome.setForeground(Color.white);\n labelHome.setIconTextGap(20);\n\n //---- labelAdd ----\n labelAdd.setBackground(new Color(32, 32, 82));\n labelAdd.setIcon(new ImageIcon(getClass().getResource(\"/com/example/clinicsystem/pictures/edit.png\")));\n labelAdd.setHorizontalAlignment(SwingConstants.CENTER);\n labelAdd.setFont(new Font(\"Helvetica-Normal\", Font.PLAIN, 20));\n labelAdd.setForeground(Color.white);\n labelAdd.setIconTextGap(30);\n\n //---- labelView ----\n labelView.setBackground(new Color(32, 32, 82));\n labelView.setIcon(new ImageIcon(getClass().getResource(\"/com/example/clinicsystem/pictures/list.png\")));\n labelView.setHorizontalAlignment(SwingConstants.CENTER);\n labelView.setFont(new Font(\"Helvetica-Normal\", Font.PLAIN, 20));\n labelView.setForeground(Color.white);\n labelView.setIconTextGap(10);\n\n //---- labelLogout ----\n labelLogout.setBackground(new Color(32, 32, 82));\n labelLogout.setIcon(new ImageIcon(getClass().getResource(\"/com/example/clinicsystem/pictures/logout.png\")));\n labelLogout.setHorizontalAlignment(SwingConstants.CENTER);\n labelLogout.setForeground(Color.white);\n labelLogout.setFont(new Font(\"Helvetica-Normal\", Font.PLAIN, 20));\n labelLogout.setIconTextGap(10);\n\n //---- labelSettings ----\n labelSettings.setBackground(new Color(32, 32, 82));\n labelSettings.setIcon(new ImageIcon(getClass().getResource(\"/com/example/clinicsystem/pictures/settings.png\")));\n labelSettings.setHorizontalAlignment(SwingConstants.CENTER);\n\n //---- labelLogo ----\n labelLogo.setBackground(new Color(32, 32, 82));\n labelLogo.setIcon(new ImageIcon(getClass().getResource(\"/com/example/clinicsystem/pictures/tooth_white.png\")));\n labelLogo.setHorizontalAlignment(SwingConstants.CENTER);\n\n GroupLayout panelShrinkedNavLayout = new GroupLayout(panelShrinkedNav);\n panelShrinkedNav.setLayout(panelShrinkedNavLayout);\n panelShrinkedNavLayout.setHorizontalGroup(\n panelShrinkedNavLayout.createParallelGroup()\n .addGroup(GroupLayout.Alignment.TRAILING, panelShrinkedNavLayout.createSequentialGroup()\n .addGroup(panelShrinkedNavLayout.createParallelGroup(GroupLayout.Alignment.TRAILING)\n .addComponent(labelSettings, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(labelLogo, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(panelShrinkedNavLayout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addGroup(panelShrinkedNavLayout.createParallelGroup(GroupLayout.Alignment.TRAILING)\n .addComponent(labelView, GroupLayout.PREFERRED_SIZE, 71, GroupLayout.PREFERRED_SIZE)\n .addComponent(labelAdd, GroupLayout.PREFERRED_SIZE, 71, GroupLayout.PREFERRED_SIZE)\n .addComponent(labelHome, GroupLayout.PREFERRED_SIZE, 71, GroupLayout.PREFERRED_SIZE)\n .addComponent(labelLogout, GroupLayout.PREFERRED_SIZE, 71, GroupLayout.PREFERRED_SIZE))))\n .addContainerGap())\n );\n panelShrinkedNavLayout.setVerticalGroup(\n panelShrinkedNavLayout.createParallelGroup()\n .addGroup(GroupLayout.Alignment.TRAILING, panelShrinkedNavLayout.createSequentialGroup()\n .addComponent(labelHome, GroupLayout.PREFERRED_SIZE, 66, GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(labelAdd, GroupLayout.PREFERRED_SIZE, 66, GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(labelView, GroupLayout.PREFERRED_SIZE, 66, GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(labelLogout, GroupLayout.PREFERRED_SIZE, 66, GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(labelSettings, GroupLayout.PREFERRED_SIZE, 58, GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(labelLogo, GroupLayout.PREFERRED_SIZE, 69, GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n }\n panelShrinked.add(panelShrinkedNav, new GridConstraints(0, 0, 2, 1,\n GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n null, null, null));\n\n //======== panelButtonContainer2 ========\n {\n panelButtonContainer2.setBackground(Color.white);\n panelButtonContainer2.setLayout(new GridBagLayout());\n ((GridBagLayout)panelButtonContainer2.getLayout()).columnWidths = new int[] {0, 0, 0};\n ((GridBagLayout)panelButtonContainer2.getLayout()).rowHeights = new int[] {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};\n ((GridBagLayout)panelButtonContainer2.getLayout()).columnWeights = new double[] {0.0, 0.0, 1.0E-4};\n ((GridBagLayout)panelButtonContainer2.getLayout()).rowWeights = new double[] {0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0E-4};\n\n //======== panelExpand ========\n {\n panelExpand.setBackground(new Color(32, 32, 82));\n\n //---- labelExpand ----\n labelExpand.setBackground(new Color(32, 32, 82));\n labelExpand.setIcon(new ImageIcon(getClass().getResource(\"/com/example/clinicsystem/pictures/arrow_right.png\")));\n labelExpand.setHorizontalAlignment(SwingConstants.CENTER);\n labelExpand.addMouseListener(new MouseAdapter() {\n @Override\n public void mouseClicked(MouseEvent e) {\n labelExpandMouseClicked(e);\n }\n });\n\n GroupLayout panelExpandLayout = new GroupLayout(panelExpand);\n panelExpand.setLayout(panelExpandLayout);\n panelExpandLayout.setHorizontalGroup(\n panelExpandLayout.createParallelGroup()\n .addGroup(panelExpandLayout.createSequentialGroup()\n .addComponent(labelExpand, GroupLayout.PREFERRED_SIZE, 41, GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n );\n panelExpandLayout.setVerticalGroup(\n panelExpandLayout.createParallelGroup()\n .addGroup(GroupLayout.Alignment.TRAILING, panelExpandLayout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(labelExpand, GroupLayout.PREFERRED_SIZE, 119, GroupLayout.PREFERRED_SIZE))\n );\n }\n panelButtonContainer2.add(panelExpand, new GridBagConstraints(0, 5, 1, 5, 0.0, 0.0,\n GridBagConstraints.CENTER, GridBagConstraints.BOTH,\n new Insets(0, 0, 5, 5), 0, 0));\n\n //---- labelFake ----\n labelFake.setText(\" \");\n labelFake.setMinimumSize(new Dimension(120, 16));\n labelFake.setPreferredSize(new Dimension(120, 16));\n panelButtonContainer2.add(labelFake, new GridBagConstraints(1, 7, 1, 1, 0.0, 0.0,\n GridBagConstraints.CENTER, GridBagConstraints.BOTH,\n new Insets(0, 0, 5, 0), 0, 0));\n }\n panelShrinked.add(panelButtonContainer2, new GridConstraints(0, 1, 1, 1,\n GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n null, null, null));\n }\n add(panelShrinked, new TableLayoutConstraints(0, 0, 0, 0, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));\n\n //======== scrollPane1 ========\n {\n scrollPane1.setBackground(Color.white);\n scrollPane1.setForeground(Color.white);\n scrollPane1.setBorder(null);\n\n //======== panelBody ========\n {\n panelBody.setBackground(Color.white);\n panelBody.setAutoscrolls(true);\n panelBody.setBorder(new EmptyBorder(0, 20, 10, 30));\n panelBody.setLayout(new TableLayout(new double[][] {\n {TableLayout.FILL},\n {92, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.FILL}}));\n ((TableLayout)panelBody.getLayout()).setHGap(5);\n ((TableLayout)panelBody.getLayout()).setVGap(5);\n\n //======== panelEmployeeHeader ========\n {\n panelEmployeeHeader.setBackground(Color.white);\n panelEmployeeHeader.setLayout(new TableLayout(new double[][] {\n {TableLayout.PREFERRED, TableLayout.FILL},\n {93}}));\n ((TableLayout)panelEmployeeHeader.getLayout()).setHGap(5);\n ((TableLayout)panelEmployeeHeader.getLayout()).setVGap(5);\n\n //---- textEmpInfo ----\n textEmpInfo.setText(\"Empolyee info\");\n textEmpInfo.setFont(new Font(\"Alike\", Font.PLAIN, 21));\n textEmpInfo.setForeground(Color.black);\n panelEmployeeHeader.add(textEmpInfo, new TableLayoutConstraints(0, 0, 0, 0, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));\n panelEmployeeHeader.add(separatorEmp, new TableLayoutConstraints(1, 0, 1, 0, TableLayoutConstraints.FULL, TableLayoutConstraints.CENTER));\n }\n panelBody.add(panelEmployeeHeader, new TableLayoutConstraints(0, 0, 0, 0, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));\n\n //======== panelEmpBody ========\n {\n panelEmpBody.setBackground(Color.white);\n panelEmpBody.setLayout(new TableLayout(new double[][] {\n {TableLayout.FILL, TableLayout.PREFERRED, TableLayout.FILL, TableLayout.PREFERRED, TableLayout.FILL},\n {TableLayout.PREFERRED, TableLayout.PREFERRED, 30, 50, TableLayout.PREFERRED, 30, 50, TableLayout.PREFERRED, 30, 50, TableLayout.PREFERRED, 30, 50}}));\n ((TableLayout)panelEmpBody.getLayout()).setHGap(5);\n ((TableLayout)panelEmpBody.getLayout()).setVGap(5);\n\n //---- textFieldWID ----\n textFieldWID.setBackground(Color.white);\n textFieldWID.setForeground(Color.black);\n textFieldWID.setFont(new Font(\"Helvetica-Normal\", Font.PLAIN, 16));\n textFieldWID.setBorder(new TitledBorder(new EtchedBorder(new Color(66, 66, 135), new Color(139, 139, 195)), \"Employee ID\", TitledBorder.LEADING, TitledBorder.DEFAULT_POSITION,\n new Font(\"Helvetica-Normal\", Font.PLAIN, 12), Color.black));\n panelEmpBody.add(textFieldWID, new TableLayoutConstraints(0, 0, 0, 0, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));\n\n //---- labelWIDError ----\n labelWIDError.setForeground(new Color(191, 44, 39));\n labelWIDError.setFont(new Font(\"Helvetica-Normal\", Font.PLAIN, 14));\n labelWIDError.setBackground(Color.white);\n panelEmpBody.add(labelWIDError, new TableLayoutConstraints(0, 1, 0, 1, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));\n\n //---- vSpacer7 ----\n vSpacer7.setBackground(Color.white);\n vSpacer7.setPreferredSize(new Dimension(50, 10));\n vSpacer7.setMinimumSize(new Dimension(50, 10));\n panelEmpBody.add(vSpacer7, new TableLayoutConstraints(0, 2, 0, 2, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));\n\n //---- textFieldFN ----\n textFieldFN.setBackground(Color.white);\n textFieldFN.setForeground(Color.black);\n textFieldFN.setFont(new Font(\"Helvetica-Normal\", Font.PLAIN, 16));\n textFieldFN.setBorder(new TitledBorder(new EtchedBorder(new Color(66, 66, 135), new Color(139, 139, 195)), \"First Name\", TitledBorder.LEADING, TitledBorder.DEFAULT_POSITION,\n new Font(\"Helvetica-Normal\", Font.PLAIN, 12), Color.black));\n panelEmpBody.add(textFieldFN, new TableLayoutConstraints(0, 3, 0, 3, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));\n\n //---- hSpacer1 ----\n hSpacer1.setBackground(Color.white);\n hSpacer1.setMinimumSize(new Dimension(30, 12));\n hSpacer1.setPreferredSize(new Dimension(50, 10));\n panelEmpBody.add(hSpacer1, new TableLayoutConstraints(1, 3, 1, 3, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));\n\n //---- textFieldMN ----\n textFieldMN.setBackground(Color.white);\n textFieldMN.setForeground(Color.black);\n textFieldMN.setFont(new Font(\"Helvetica-Normal\", Font.PLAIN, 16));\n textFieldMN.setBorder(new TitledBorder(new EtchedBorder(new Color(66, 66, 135), new Color(139, 139, 195)), \"Middle Name\", TitledBorder.LEADING, TitledBorder.DEFAULT_POSITION,\n new Font(\"Helvetica-Normal\", Font.PLAIN, 12), Color.black));\n panelEmpBody.add(textFieldMN, new TableLayoutConstraints(2, 3, 2, 3, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));\n\n //---- hSpacer2 ----\n hSpacer2.setBackground(Color.white);\n hSpacer2.setMinimumSize(new Dimension(30, 12));\n hSpacer2.setPreferredSize(new Dimension(50, 10));\n panelEmpBody.add(hSpacer2, new TableLayoutConstraints(3, 3, 3, 3, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));\n\n //---- textFieldLN ----\n textFieldLN.setBackground(Color.white);\n textFieldLN.setForeground(Color.black);\n textFieldLN.setFont(new Font(\"Helvetica-Normal\", Font.PLAIN, 16));\n textFieldLN.setBorder(new TitledBorder(new EtchedBorder(new Color(66, 66, 135), new Color(139, 139, 195)), \"Last Name\", TitledBorder.LEADING, TitledBorder.DEFAULT_POSITION,\n new Font(\"Helvetica-Normal\", Font.PLAIN, 12), Color.black));\n panelEmpBody.add(textFieldLN, new TableLayoutConstraints(4, 3, 4, 3, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));\n\n //---- labelFNError ----\n labelFNError.setForeground(new Color(191, 44, 39));\n labelFNError.setFont(new Font(\"Helvetica-Normal\", Font.PLAIN, 14));\n labelFNError.setBackground(Color.white);\n panelEmpBody.add(labelFNError, new TableLayoutConstraints(0, 4, 0, 4, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));\n\n //---- labelMNError ----\n labelMNError.setForeground(new Color(191, 44, 39));\n labelMNError.setFont(new Font(\"Helvetica-Normal\", Font.PLAIN, 14));\n labelMNError.setBackground(Color.white);\n panelEmpBody.add(labelMNError, new TableLayoutConstraints(2, 4, 2, 4, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));\n\n //---- labelLNError ----\n labelLNError.setForeground(new Color(191, 44, 39));\n labelLNError.setFont(new Font(\"Helvetica-Normal\", Font.PLAIN, 14));\n labelLNError.setBackground(Color.white);\n panelEmpBody.add(labelLNError, new TableLayoutConstraints(4, 4, 4, 4, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));\n\n //---- vSpacer2 ----\n vSpacer2.setBackground(Color.white);\n vSpacer2.setPreferredSize(new Dimension(50, 10));\n vSpacer2.setMinimumSize(new Dimension(50, 10));\n panelEmpBody.add(vSpacer2, new TableLayoutConstraints(0, 5, 0, 5, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));\n\n //---- labelDOB ----\n labelDOB.setText(\"Date of Birth\");\n labelDOB.setFont(new Font(\"Helvetica-Normal\", Font.PLAIN, 12));\n labelDOB.setForeground(Color.black);\n panelEmpBody.add(labelDOB, new TableLayoutConstraints(2, 5, 2, 5, TableLayoutConstraints.FULL, TableLayoutConstraints.BOTTOM));\n\n //---- textFieldPhone ----\n textFieldPhone.setBackground(Color.white);\n textFieldPhone.setForeground(Color.black);\n textFieldPhone.setFont(new Font(\"Helvetica-Normal\", Font.PLAIN, 16));\n textFieldPhone.setBorder(new TitledBorder(new EtchedBorder(new Color(66, 66, 135), new Color(139, 139, 195)), \"Phone Number\", TitledBorder.LEADING, TitledBorder.DEFAULT_POSITION,\n new Font(\"Helvetica-Normal\", Font.PLAIN, 12), Color.black));\n panelEmpBody.add(textFieldPhone, new TableLayoutConstraints(0, 6, 0, 6, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));\n\n //======== panelBirth ========\n {\n panelBirth.setBackground(Color.gray);\n panelBirth.setLayout(new BorderLayout());\n }\n panelEmpBody.add(panelBirth, new TableLayoutConstraints(2, 6, 2, 6, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));\n\n //---- textFieldLEmail ----\n textFieldLEmail.setBackground(Color.white);\n textFieldLEmail.setForeground(Color.black);\n textFieldLEmail.setFont(new Font(\"Helvetica-Normal\", Font.PLAIN, 16));\n textFieldLEmail.setBorder(new TitledBorder(new EtchedBorder(new Color(66, 66, 135), new Color(139, 139, 195)), \"E-mail\", TitledBorder.LEADING, TitledBorder.DEFAULT_POSITION,\n new Font(\"Helvetica-Normal\", Font.PLAIN, 12), Color.black));\n panelEmpBody.add(textFieldLEmail, new TableLayoutConstraints(4, 6, 4, 6, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));\n\n //---- labelPhoneError ----\n labelPhoneError.setForeground(new Color(191, 44, 39));\n labelPhoneError.setFont(new Font(\"Helvetica-Normal\", Font.PLAIN, 14));\n panelEmpBody.add(labelPhoneError, new TableLayoutConstraints(0, 7, 0, 7, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));\n\n //---- labelEmailError ----\n labelEmailError.setForeground(new Color(191, 44, 39));\n labelEmailError.setFont(new Font(\"Helvetica-Normal\", Font.PLAIN, 14));\n panelEmpBody.add(labelEmailError, new TableLayoutConstraints(4, 7, 4, 7, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));\n\n //---- vSpacer3 ----\n vSpacer3.setBackground(Color.white);\n vSpacer3.setPreferredSize(new Dimension(50, 10));\n vSpacer3.setMinimumSize(new Dimension(50, 10));\n panelEmpBody.add(vSpacer3, new TableLayoutConstraints(0, 8, 0, 8, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));\n\n //---- labelJob ----\n labelJob.setText(\"Job Title\");\n labelJob.setFont(new Font(\"Helvetica-Normal\", Font.PLAIN, 12));\n labelJob.setForeground(Color.black);\n panelEmpBody.add(labelJob, new TableLayoutConstraints(2, 8, 2, 8, TableLayoutConstraints.FULL, TableLayoutConstraints.BOTTOM));\n\n //---- labelDepartment ----\n labelDepartment.setText(\"Department\");\n labelDepartment.setFont(new Font(\"Helvetica-Normal\", Font.PLAIN, 12));\n labelDepartment.setForeground(Color.black);\n panelEmpBody.add(labelDepartment, new TableLayoutConstraints(4, 8, 4, 8, TableLayoutConstraints.FULL, TableLayoutConstraints.BOTTOM));\n\n //---- textFieldID ----\n textFieldID.setBackground(Color.white);\n textFieldID.setForeground(Color.black);\n textFieldID.setFont(new Font(\"Helvetica-Normal\", Font.PLAIN, 16));\n textFieldID.setBorder(new TitledBorder(new EtchedBorder(new Color(66, 66, 135), new Color(139, 139, 195)), \"National ID\", TitledBorder.LEADING, TitledBorder.DEFAULT_POSITION,\n new Font(\"Helvetica-Normal\", Font.PLAIN, 12), Color.black));\n panelEmpBody.add(textFieldID, new TableLayoutConstraints(0, 9, 0, 9, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));\n\n //---- comboBoxJob ----\n comboBoxJob.setBackground(Color.white);\n comboBoxJob.setForeground(new Color(32, 32, 82));\n comboBoxJob.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n panelEmpBody.add(comboBoxJob, new TableLayoutConstraints(2, 9, 2, 9, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));\n\n //---- comboBoxDepartment ----\n comboBoxDepartment.setBackground(Color.white);\n comboBoxDepartment.setForeground(new Color(32, 32, 82));\n comboBoxDepartment.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n panelEmpBody.add(comboBoxDepartment, new TableLayoutConstraints(4, 9, 4, 9, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));\n\n //---- labelIDError ----\n labelIDError.setForeground(new Color(191, 44, 39));\n labelIDError.setFont(new Font(\"Helvetica-Normal\", Font.PLAIN, 14));\n panelEmpBody.add(labelIDError, new TableLayoutConstraints(0, 10, 0, 10, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));\n\n //---- vSpacer4 ----\n vSpacer4.setBackground(Color.white);\n vSpacer4.setPreferredSize(new Dimension(50, 10));\n vSpacer4.setMinimumSize(new Dimension(50, 10));\n panelEmpBody.add(vSpacer4, new TableLayoutConstraints(0, 11, 0, 11, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));\n\n //======== panelGender ========\n {\n panelGender.setBackground(Color.white);\n panelGender.setLayout(new TableLayout(new double[][] {\n {TableLayout.PREFERRED, TableLayout.FILL, TableLayout.FILL},\n {50}}));\n ((TableLayout)panelGender.getLayout()).setHGap(5);\n ((TableLayout)panelGender.getLayout()).setVGap(5);\n\n //---- labelGender ----\n labelGender.setText(\"Gender\");\n labelGender.setFont(new Font(\"Helvetica-Normal\", Font.PLAIN, 12));\n labelGender.setForeground(Color.black);\n panelGender.add(labelGender, new TableLayoutConstraints(0, 0, 0, 0, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));\n\n //---- radioButtonFemale ----\n radioButtonFemale.setText(\"Female\");\n radioButtonFemale.setBackground(Color.white);\n radioButtonFemale.setForeground(Color.black);\n radioButtonFemale.setFont(new Font(\"Helvetica-Normal\", Font.PLAIN, 12));\n radioButtonFemale.setSelected(true);\n radioButtonFemale.addMouseListener(new MouseAdapter() {\n @Override\n public void mouseClicked(MouseEvent e) {\n radioButtonFemaleMouseClicked(e);\n }\n });\n panelGender.add(radioButtonFemale, new TableLayoutConstraints(1, 0, 1, 0, TableLayoutConstraints.CENTER, TableLayoutConstraints.FULL));\n\n //---- radioButtonMale ----\n radioButtonMale.setText(\"Male\");\n radioButtonMale.setBackground(Color.white);\n radioButtonMale.setForeground(Color.black);\n radioButtonMale.setFont(new Font(\"Helvetica-Normal\", Font.PLAIN, 12));\n radioButtonMale.addMouseListener(new MouseAdapter() {\n @Override\n public void mouseClicked(MouseEvent e) {\n radioButtonMaleMouseClicked(e);\n }\n });\n panelGender.add(radioButtonMale, new TableLayoutConstraints(2, 0, 2, 0, TableLayoutConstraints.CENTER, TableLayoutConstraints.FULL));\n }\n panelEmpBody.add(panelGender, new TableLayoutConstraints(0, 12, 0, 12, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));\n }\n panelBody.add(panelEmpBody, new TableLayoutConstraints(0, 1, 0, 1, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));\n\n //======== panelAddressHeader ========\n {\n panelAddressHeader.setBackground(Color.white);\n panelAddressHeader.setLayout(new TableLayout(new double[][] {\n {TableLayout.PREFERRED, TableLayout.FILL},\n {93}}));\n ((TableLayout)panelAddressHeader.getLayout()).setHGap(5);\n ((TableLayout)panelAddressHeader.getLayout()).setVGap(5);\n\n //---- textAddressInfo ----\n textAddressInfo.setText(\"Address info\");\n textAddressInfo.setFont(new Font(\"Alike\", Font.PLAIN, 21));\n textAddressInfo.setForeground(Color.black);\n panelAddressHeader.add(textAddressInfo, new TableLayoutConstraints(0, 0, 0, 0, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));\n panelAddressHeader.add(separatorAddress, new TableLayoutConstraints(1, 0, 1, 0, TableLayoutConstraints.FULL, TableLayoutConstraints.CENTER));\n }\n panelBody.add(panelAddressHeader, new TableLayoutConstraints(0, 2, 0, 2, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));\n\n //======== panelAddBody ========\n {\n panelAddBody.setBackground(Color.white);\n panelAddBody.setLayout(new TableLayout(new double[][] {\n {TableLayout.FILL, TableLayout.PREFERRED, TableLayout.FILL, TableLayout.PREFERRED, TableLayout.FILL},\n {TableLayout.PREFERRED, 50, 30, 50, TableLayout.PREFERRED, 30, 50, TableLayout.PREFERRED}}));\n ((TableLayout)panelAddBody.getLayout()).setHGap(5);\n ((TableLayout)panelAddBody.getLayout()).setVGap(5);\n\n //---- labelGov ----\n labelGov.setText(\"Governorate\");\n labelGov.setFont(new Font(\"Helvetica-Normal\", Font.PLAIN, 12));\n labelGov.setForeground(Color.black);\n panelAddBody.add(labelGov, new TableLayoutConstraints(0, 0, 0, 0, TableLayoutConstraints.FULL, TableLayoutConstraints.BOTTOM));\n\n //---- labelCity ----\n labelCity.setText(\"City\");\n labelCity.setFont(new Font(\"Helvetica-Normal\", Font.PLAIN, 12));\n labelCity.setForeground(Color.black);\n panelAddBody.add(labelCity, new TableLayoutConstraints(2, 0, 2, 0, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));\n\n //---- comboBoxGov ----\n comboBoxGov.setBackground(Color.white);\n comboBoxGov.setForeground(new Color(32, 32, 82));\n comboBoxGov.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n comboBoxGov.addItemListener(e -> comboBoxGovItemStateChanged(e));\n panelAddBody.add(comboBoxGov, new TableLayoutConstraints(0, 1, 0, 1, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));\n\n //---- hSpacer3 ----\n hSpacer3.setBackground(Color.white);\n hSpacer3.setMinimumSize(new Dimension(30, 12));\n hSpacer3.setPreferredSize(new Dimension(50, 10));\n panelAddBody.add(hSpacer3, new TableLayoutConstraints(1, 1, 1, 1, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));\n\n //---- comboBoxCity ----\n comboBoxCity.setBackground(Color.white);\n comboBoxCity.setForeground(new Color(32, 32, 82));\n comboBoxCity.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n panelAddBody.add(comboBoxCity, new TableLayoutConstraints(2, 1, 2, 1, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));\n\n //---- hSpacer4 ----\n hSpacer4.setBackground(Color.white);\n hSpacer4.setMinimumSize(new Dimension(30, 12));\n hSpacer4.setPreferredSize(new Dimension(50, 10));\n panelAddBody.add(hSpacer4, new TableLayoutConstraints(3, 1, 3, 1, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));\n\n //======== panelFake ========\n {\n panelFake.setBackground(Color.white);\n\n GroupLayout panelFakeLayout = new GroupLayout(panelFake);\n panelFake.setLayout(panelFakeLayout);\n panelFakeLayout.setHorizontalGroup(\n panelFakeLayout.createParallelGroup()\n .addGap(0, 280, Short.MAX_VALUE)\n );\n panelFakeLayout.setVerticalGroup(\n panelFakeLayout.createParallelGroup()\n .addGap(0, 50, Short.MAX_VALUE)\n );\n }\n panelAddBody.add(panelFake, new TableLayoutConstraints(4, 1, 4, 1, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));\n\n //---- vSpacer5 ----\n vSpacer5.setBackground(Color.white);\n vSpacer5.setPreferredSize(new Dimension(50, 10));\n vSpacer5.setMinimumSize(new Dimension(50, 10));\n panelAddBody.add(vSpacer5, new TableLayoutConstraints(0, 2, 0, 2, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));\n\n //---- textFieldStreet ----\n textFieldStreet.setBackground(Color.white);\n textFieldStreet.setForeground(Color.black);\n textFieldStreet.setFont(new Font(\"Helvetica-Normal\", Font.PLAIN, 16));\n textFieldStreet.setBorder(new TitledBorder(new EtchedBorder(new Color(66, 66, 135), new Color(139, 139, 195)), \"Street\", TitledBorder.LEADING, TitledBorder.DEFAULT_POSITION,\n new Font(\"Helvetica-Normal\", Font.PLAIN, 12), Color.black));\n panelAddBody.add(textFieldStreet, new TableLayoutConstraints(0, 3, 0, 3, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));\n\n //---- labelStreetError ----\n labelStreetError.setForeground(new Color(191, 44, 39));\n labelStreetError.setFont(new Font(\"Helvetica-Normal\", Font.PLAIN, 14));\n labelStreetError.setBackground(Color.white);\n panelAddBody.add(labelStreetError, new TableLayoutConstraints(0, 4, 0, 4, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));\n\n //---- vSpacer6 ----\n vSpacer6.setBackground(Color.white);\n vSpacer6.setPreferredSize(new Dimension(50, 10));\n vSpacer6.setMinimumSize(new Dimension(50, 10));\n panelAddBody.add(vSpacer6, new TableLayoutConstraints(0, 5, 0, 5, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));\n\n //---- textFieldApt ----\n textFieldApt.setBackground(Color.white);\n textFieldApt.setForeground(Color.black);\n textFieldApt.setFont(new Font(\"Helvetica-Normal\", Font.PLAIN, 16));\n textFieldApt.setBorder(new TitledBorder(new EtchedBorder(new Color(66, 66, 135), new Color(139, 139, 195)), \"Apartment\", TitledBorder.LEADING, TitledBorder.DEFAULT_POSITION,\n new Font(\"Helvetica-Normal\", Font.PLAIN, 12), Color.black));\n panelAddBody.add(textFieldApt, new TableLayoutConstraints(0, 6, 0, 6, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));\n\n //---- labelAptError ----\n labelAptError.setForeground(new Color(191, 44, 39));\n labelAptError.setFont(new Font(\"Helvetica-Normal\", Font.PLAIN, 14));\n labelAptError.setBackground(Color.white);\n panelAddBody.add(labelAptError, new TableLayoutConstraints(0, 7, 0, 7, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));\n }\n panelBody.add(panelAddBody, new TableLayoutConstraints(0, 3, 0, 3, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));\n\n //======== panelFooter ========\n {\n panelFooter.setBackground(Color.white);\n panelFooter.setLayout(null);\n\n //---- buttonAddEmp ----\n buttonAddEmp.setText(\"ADD\");\n buttonAddEmp.setBackground(new Color(32, 32, 82));\n buttonAddEmp.setFont(new Font(\"Helvetica-Normal\", Font.PLAIN, 14));\n buttonAddEmp.setForeground(Color.white);\n buttonAddEmp.addMouseListener(new MouseAdapter() {\n @Override\n public void mouseClicked(MouseEvent e) {\n buttonAddEmpMouseClicked(e);\n }\n });\n panelFooter.add(buttonAddEmp);\n buttonAddEmp.setBounds(0, 105, 190, 35);\n\n //---- labelTooth ----\n labelTooth.setIcon(new ImageIcon(getClass().getResource(\"/com/example/clinicsystem/pictures/tooth_purple.png\")));\n panelFooter.add(labelTooth);\n labelTooth.setBounds(90, 5, 100, 144);\n\n {\n // compute preferred size\n Dimension preferredSize = new Dimension();\n for(int i = 0; i < panelFooter.getComponentCount(); i++) {\n Rectangle bounds = panelFooter.getComponent(i).getBounds();\n preferredSize.width = Math.max(bounds.x + bounds.width, preferredSize.width);\n preferredSize.height = Math.max(bounds.y + bounds.height, preferredSize.height);\n }\n Insets insets = panelFooter.getInsets();\n preferredSize.width += insets.right;\n preferredSize.height += insets.bottom;\n panelFooter.setMinimumSize(preferredSize);\n panelFooter.setPreferredSize(preferredSize);\n }\n }\n panelBody.add(panelFooter, new TableLayoutConstraints(0, 4, 0, 4, TableLayoutConstraints.RIGHT, TableLayoutConstraints.BOTTOM));\n }\n scrollPane1.setViewportView(panelBody);\n }\n add(scrollPane1, new TableLayoutConstraints(1, 0, 1, 0, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL));\n // JFormDesigner - End of component initialization //GEN-END:initComponents\n\n datePicker = new DatePicker();\n datePicker.setDateToToday();\n datePicker.setBackground(Color.white);\n datePicker.setFont(new Font(\"Helvetica-Normal\", Font.PLAIN, 14));\n panelBirth.add(datePicker);\n\n for(int i=0; i<ClinicSystem.governorates.size(); i++) {\n comboBoxGov.addItem(ClinicSystem.governorates.get(i));\n }\n\n for(int i=0; i<ClinicSystem.cairoCities.size(); i++) {\n comboBoxCity.addItem(ClinicSystem.cairoCities.get(i));\n }\n }", "public void initCon() {\n\t\t\n\t\t//ImageIcon icon = new ImageIcon(this.getClass().getResource(\"lib/data/icon/log.png\"));\n\t\t//txtArea.setLineWrap(true);\n\t\ttxtArea = new JTextArea(16,70);\n\t\t//txtArea.setLineWrap(true);\n\t\tJTabbedPane tPane = new JTabbedPane();\n\t\t\n\t\tJScrollPane scrollPane = new JScrollPane(txtArea); \n\t\t\n\t\t\n\t\tJPanel top = new JPanel();\n\t\tJPanel center = new JPanel();\n\t\t\n\t\tbottom = new JPanel();\n\t\tColor color = UIManager.getColor ( \"Panel.background\" );\n\t\t\n\t\ttop.add( scrollPane );\n\t\ttPane.addTab(\"Console\", top);\n\t\t\n\t\t\n\t\t//set colors\n\t\treadout.setBackground(color);\n\t\ttop.setBackground(color);\n\t\tcenter.setBackground(color);\n\t\tbottom.setBackground(color);\n\t\t//.setOpaque(true);\n\t\t\n\t\tbottom.setLayout(new GridLayout(1,2));\n\t\tbottom.add(readout);\n\t\tcenter.setLayout(new GridLayout(2,1));\n\t\tadd(center, BorderLayout.CENTER);\n\t\tadd(bottom, BorderLayout.SOUTH);\n\t\tadd(tPane, BorderLayout.NORTH);\n\t}", "private void initializePanels()\r\n\t{\r\n\t\tthis.subscribersPanel = new SubscribersPanel(DIMENSIONS);\r\n\t\tthis.consolePanel = new ConsolePanel(DIMENSIONS);\r\n\r\n\t\tthis.parametersPanel = new ParametersPanel(DIMENSIONS);\r\n\t\tthis.parametersPanel.setSize(DIMENSIONS);\r\n\r\n\t\tthis.mainPanel = new MainPanel(parametersPanel, this);\r\n\t\tthis.mainPanel.setSize(DIMENSIONS);\r\n\r\n\t\tshowParametersPanel();\r\n\t}", "private void initialize() {\n\t\tthis.setSize(629, 270);\n\t\tthis.setLayout(new BorderLayout());\n\t\tthis.setPreferredSize(new Dimension(629, 270));\n\t\tthis.setMinimumSize(new Dimension(629, 270));\n\t\tthis.setMaximumSize(new Dimension(629, 270));\n\t\tthis.add(getJSplitPane2(), BorderLayout.CENTER);\n\t}", "public void initLayouts() {\n\t\tJPanel p_header = (JPanel) getComponentByName(\"p_header\");\n\t\tJPanel p_container = (JPanel) getComponentByName(\"p_container\");\n\t\tJPanel p_tree = (JPanel) getComponentByName(\"p_tree\");\n\t\tJPanel p_commands = (JPanel) getComponentByName(\"p_commands\");\n\t\tJPanel p_execute = (JPanel) getComponentByName(\"p_execute\");\n\t\tJPanel p_buttons = (JPanel) getComponentByName(\"p_buttons\");\n\t\tJPanel p_view = (JPanel) getComponentByName(\"p_view\");\n\t\tJPanel p_info = (JPanel) getComponentByName(\"p_info\");\n\t\tJPanel p_chooseFile = (JPanel) getComponentByName(\"p_chooseFile\");\n\t\tJButton bt_apply = (JButton) getComponentByName(\"bt_apply\");\n\t\tJButton bt_revert = (JButton) getComponentByName(\"bt_revert\");\n\t\tJTextArea ta_header = (JTextArea) getComponentByName(\"ta_header\");\n\t\tJLabel lb_icon = (JLabel) getComponentByName(\"lb_icon\");\n\t\tJLabel lb_name = (JLabel) getComponentByName(\"lb_name\");\n\t\tJTextField tf_name = (JTextField) getComponentByName(\"tf_name\");\n\n\t\tBorder etched = BorderFactory.createEtchedBorder(EtchedBorder.LOWERED);\n\n\t\tp_header.setBorder(etched);\n\t\tp_container.setBorder(etched);\n\t\tp_commands.setBorder(etched);\n\t\t// p_execute.setBorder(etched);\n\t\t// p_view.setBorder(etched);\n\t\t// p_buttons.setBorder(etched);\n\n\t\tp_buttons.setLayout(new FlowLayout(FlowLayout.LEFT, 25, 2));\n\t\tp_chooseFile.setLayout(new FlowLayout(FlowLayout.LEFT, 6, 1));\n\t\tp_view.setLayout(new BorderLayout(0, 0));\n\t\tp_info.setLayout(null);\n\n\t\t// GroupLayout for main JFrame\n\t\t// If you want to change this, use something like netbeans or read more\n\t\t// into group layouts\n\t\tGroupLayout groupLayout = new GroupLayout(getContentPane());\n\t\tgroupLayout\n\t\t\t\t.setHorizontalGroup(groupLayout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\tgroupLayout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgroupLayout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tgroupLayout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_commands,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t225,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tgroupLayout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_execute,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t957,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_container,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t957,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_header,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t1188,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE))\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()));\n\t\tgroupLayout\n\t\t\t\t.setVerticalGroup(groupLayout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\tgroupLayout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t\t\t\t\t.addComponent(p_header,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, 57,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\tComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgroupLayout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_commands,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t603,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tgroupLayout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_container,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t549,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_execute,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t48,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)))\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()));\n\n\t\tGroupLayout gl_p_container = new GroupLayout(p_container);\n\t\tgl_p_container\n\t\t\t\t.setHorizontalGroup(gl_p_container\n\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\tgl_p_container\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgl_p_container\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_view,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t955,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tgl_p_container\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbt_apply)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbt_revert))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tgl_p_container\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlb_name)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttf_name,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t893,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)))\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()));\n\t\tgl_p_container\n\t\t\t\t.setVerticalGroup(gl_p_container\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\tgl_p_container\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgl_p_container\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.BASELINE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttf_name,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(lb_name))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\tComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addComponent(p_view,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t466, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\tComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgl_p_container\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.BASELINE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(bt_revert)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(bt_apply))\n\t\t\t\t\t\t\t\t\t\t.addContainerGap(\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)));\n\t\tp_container.setLayout(gl_p_container);\n\n\t\t// GroupLayout for p_header\n\n\t\tGroupLayout gl_p_header = new GroupLayout(p_header);\n\t\tgl_p_header.setHorizontalGroup(gl_p_header.createParallelGroup(\n\t\t\t\tAlignment.LEADING).addGroup(\n\t\t\t\tAlignment.TRAILING,\n\t\t\t\tgl_p_header\n\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t.addComponent(ta_header, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t1069, Short.MAX_VALUE).addGap(18)\n\t\t\t\t\t\t.addComponent(lb_icon).addGap(4)));\n\t\tgl_p_header\n\t\t\t\t.setVerticalGroup(gl_p_header\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\tgl_p_header\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGap(6)\n\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgl_p_header\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.BASELINE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tta_header,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t44,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(lb_icon))\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()));\n\t\tp_header.setLayout(gl_p_header);\n\n\t\tGroupLayout gl_p_commands = new GroupLayout(p_commands);\n\t\tgl_p_commands\n\t\t\t\t.setHorizontalGroup(gl_p_commands\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\tgl_p_commands\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgl_p_commands\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_tree,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t211,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_buttons,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE))\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()));\n\t\tgl_p_commands.setVerticalGroup(gl_p_commands.createParallelGroup(\n\t\t\t\tAlignment.LEADING).addGroup(\n\t\t\t\tgl_p_commands\n\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t.addComponent(p_buttons, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(p_tree, GroupLayout.DEFAULT_SIZE, 558,\n\t\t\t\t\t\t\t\tShort.MAX_VALUE).addContainerGap()));\n\t\tp_commands.setLayout(gl_p_commands);\n\n\t\tgetContentPane().setLayout(groupLayout);\n\t}", "private void initialize() {\r\n\t\tfrmMainWindow = new JFrame();\r\n\t\tfrmMainWindow.addWindowListener(this);\r\n\t\tfrmMainWindow.addWindowFocusListener(this);\r\n\t\tfrmMainWindow.setTitle(\"Main Window\");\r\n\t\tfrmMainWindow.setResizable(false);\r\n\t\tfrmMainWindow.setBounds(100, 100, 1500, 1000);\r\n\t\tfrmMainWindow.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tfrmMainWindow.getContentPane().setLayout(null);\r\n\t\tfrmMainWindow.setLocation(5, 5);\r\n\r\n\t\tsplitPane = new JSplitPane();\r\n\t\tsplitPane.setResizeWeight(0.5);\r\n\t\tsplitPane.setBounds(10, 56, 1474, 581);\r\n\t\tfrmMainWindow.getContentPane().add(splitPane);\r\n\t\t\r\n\t\tscrollPane = new JScrollPane();\r\n\t\tsplitPane.setLeftComponent(scrollPane);\r\n\t\t\r\n\t\t\t\tapplyList = new JList(axiomListModel);\r\n\t\t\t\tscrollPane.setViewportView(applyList);\r\n\t\t\t\t\r\n\t\t\t\tscrollPane_2 = new JScrollPane();\r\n\t\t\t\tsplitPane.setRightComponent(scrollPane_2);\r\n\t\t\t\t\r\n\t\t\t\t\t\ttoList = new JList(axiomListModel);\r\n\t\t\t\t\t\tscrollPane_2.setViewportView(toList);\r\n\t\t\t\t\t\ttoList.addListSelectionListener(this);\r\n\t\t\t\tapplyList.addListSelectionListener(this);\r\n\r\n\t\tlblApply = new JLabel(\"Apply\");\r\n\t\tlblApply.setBounds(360, 41, 35, 14);\r\n\t\tfrmMainWindow.getContentPane().add(lblApply);\r\n\r\n\t\tlblTo = new JLabel(\"To\");\r\n\t\tlblTo.setBounds(1133, 41, 19, 14);\r\n\t\tfrmMainWindow.getContentPane().add(lblTo);\r\n\r\n\t\tbtnImportAxioms = new JButton(\"Import Axioms\");\r\n\t\tbtnImportAxioms.addActionListener(this);\r\n\t\tbtnImportAxioms.setBounds(10, 11, 124, 23);\r\n\t\tfrmMainWindow.getContentPane().add(btnImportAxioms);\r\n\r\n\t\tbtnImportDefinitions = new JButton(\"Import Definitions\");\r\n\t\tbtnImportDefinitions.addActionListener(this);\r\n\t\tbtnImportDefinitions.setBounds(1343, 11, 141, 23);\r\n\t\tfrmMainWindow.getContentPane().add(btnImportDefinitions);\r\n\r\n\t\tpositionSelectorPane = new JPanel();\r\n\r\n\t\tpositionScrollPane = new JScrollPane(positionSelectorPane);\r\n\t\tpositionSelectorPane.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));\r\n\t\tpositionScrollPane.setBounds(10, 674, 1474, 60);\r\n\t\tfrmMainWindow.getContentPane().add(positionScrollPane);\r\n\r\n\t\tJLabel lblAtPosition = new JLabel(\"At Position\");\r\n\t\tlblAtPosition.setBounds(712, 649, 71, 14);\r\n\t\tfrmMainWindow.getContentPane().add(lblAtPosition);\r\n\r\n\t\tresultArea = new JTextPane();\r\n\t\tresultArea.setEditable(false);\r\n\t\tresultArea.setBounds(10, 777, 1474, 42);\r\n\t\tfrmMainWindow.getContentPane().add(resultArea);\r\n\t\tSimpleAttributeSet attribs = new SimpleAttributeSet();\r\n\t\tStyleConstants.setAlignment(attribs, StyleConstants.ALIGN_CENTER);\r\n\t\tStyleConstants.setFontSize(attribs, 22);\r\n\t\tresultArea.setParagraphAttributes(attribs, true);\r\n\r\n\t\tJLabel lblResult = new JLabel(\"Result\");\r\n\t\tlblResult.setBounds(723, 745, 46, 14);\r\n\t\tfrmMainWindow.getContentPane().add(lblResult);\r\n\r\n\t\taddTheorem = new JButton(\"Add To List\");\r\n\t\taddTheorem.addActionListener(this);\r\n\t\taddTheorem.setBounds(1343, 745, 141, 23);\r\n\t\tfrmMainWindow.getContentPane().add(addTheorem);\r\n\r\n\t\ttoggleDebugBtn = new JButton(\"Toggle Debug Mode\");\r\n\t\ttoggleDebugBtn.addActionListener(this);\r\n\t\ttoggleDebugBtn.setBounds(10, 745, 150, 23);\r\n\t\tfrmMainWindow.getContentPane().add(toggleDebugBtn);\r\n\r\n\t\tbtnLoadState = new JButton(\"Load State\");\r\n\t\tbtnLoadState.addActionListener(this);\r\n\t\tbtnLoadState.setBounds(641, 11, 105, 23);\r\n\t\tfrmMainWindow.getContentPane().add(btnLoadState);\r\n\r\n\t\tbtnSaveState = new JButton(\"Save State\");\r\n\t\tbtnSaveState.addActionListener(this);\r\n\t\tbtnSaveState.setBounds(749, 11, 105, 23);\r\n\t\tfrmMainWindow.getContentPane().add(btnSaveState);\r\n\r\n\t\tlblAddNewStatement = new JLabel(\"Add New Statement\");\r\n\t\tlblAddNewStatement.setBounds(686, 839, 124, 14);\r\n\t\tfrmMainWindow.getContentPane().add(lblAddNewStatement);\r\n\r\n\t\tbtnAsAxiom = new JButton(\"As Axiom\");\r\n\t\tbtnAsAxiom.addActionListener(this);\r\n\t\tbtnAsAxiom.setBounds(641, 917, 105, 23);\r\n\t\tfrmMainWindow.getContentPane().add(btnAsAxiom);\r\n\r\n\t\tbtnAsDefinition = new JButton(\"As Definition\");\r\n\t\tbtnAsDefinition.addActionListener(this);\r\n\t\tbtnAsDefinition.setBounds(749, 917, 116, 23);\r\n\t\tfrmMainWindow.getContentPane().add(btnAsDefinition);\r\n\r\n\t\tbtnReset = new JButton(\"Reset\");\r\n\t\tbtnReset.addActionListener(this);\r\n\t\tbtnReset.setBounds(328, 11, 89, 23);\r\n\t\tfrmMainWindow.getContentPane().add(btnReset);\r\n\r\n\t\tbtnImportPunctuation = new JButton(\"Import Punctuation\");\r\n\t\tbtnImportPunctuation.addActionListener(this);\r\n\t\tbtnImportPunctuation.setBounds(1070, 11, 150, 23);\r\n\t\tfrmMainWindow.getContentPane().add(btnImportPunctuation);\r\n\r\n\t\tbtnPlayWithSelected = new JButton(\"Play With Selected Axioms\");\r\n\t\tbtnPlayWithSelected.addActionListener(this);\r\n\t\tbtnPlayWithSelected.setBounds(10, 640, 206, 23);\r\n\t\tfrmMainWindow.getContentPane().add(btnPlayWithSelected);\r\n\t\t\r\n\t\tbtnRemoveSelectedStatement = new JButton(\"Remove Selected Statement\");\r\n\t\tbtnRemoveSelectedStatement.addActionListener(this);\r\n\t\tbtnRemoveSelectedStatement.setBounds(226, 640, 198, 23);\r\n\t\tfrmMainWindow.getContentPane().add(btnRemoveSelectedStatement);\r\n\t\t\r\n\t\tJScrollPane scrollPane_1 = new JScrollPane();\r\n\t\tscrollPane_1.setBounds(10, 864, 1474, 44);\r\n\t\tfrmMainWindow.getContentPane().add(scrollPane_1);\r\n\t\t\r\n\t\tmanualStmt = new JTextPane();\r\n\t\tscrollPane_1.setViewportView(manualStmt);\r\n\t\t\t\t\r\n\t\tbtnAddImportantResult = new JButton(\"Add To Important Results\");\r\n\t\tbtnAddImportantResult.addActionListener(this);\r\n\t\tbtnAddImportantResult.setBounds(434, 640, 206, 23);\r\n\t\tfrmMainWindow.getContentPane().add(btnAddImportantResult);\r\n\t\tmanualStmt.setParagraphAttributes(attribs, true);\r\n\t}", "private void initMainComponents() {\n\t\tsetBackground(Color.RED);\n\t\tsetTitle(\"TABL\");\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tsetBounds(100, 100, 974, 842);\n\t\tcontentPane = new JPanel();\n\t\tcontentPane.setBackground(new Color(100, 149, 237));\n\t\tcontentPane.setBorder(new EmptyBorder(5, 5, 5, 5));\n\t\tsetContentPane(contentPane);\n\t\t\n\t\tcontentPane.setVisible(true);\n\t\tcontentPane.setLayout(null);\n\t\t\n\t\t\n\t\tlayeredPane = new JLayeredPane();\n\t\tlayeredPane.setBounds(10, 40, 941, 757);\n\t\tcontentPane.add(layeredPane);\n\t\t\n\t\tsetForeground(Color.BLACK);\n\t\tsetIconImage(Toolkit.getDefaultToolkit().getImage(AdminManageUsers.class.getResource(\"/resources/Logo.PNG\")));\n\n\t}", "private void $$$setupUI$$$() {\n createUIComponents();\n panel = new JPanel();\n panel.setLayout(new GridLayoutManager(3, 1, new Insets(0, 0, 0, 0), -1, -1));\n panel.setMinimumSize(new Dimension(-1, -1));\n final JScrollPane scrollPane1 = new JScrollPane();\n panel.add(scrollPane1, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n nodeList.setSelectionMode(1);\n scrollPane1.setViewportView(nodeList);\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1));\n panel.add(panel1, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n addNodeButton = new JButton();\n this.$$$loadButtonText$$$(addNodeButton, ResourceBundle.getBundle(\"language\").getString(\"button_addNode\"));\n panel1.add(addNodeButton, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n removeNodeButton = new JButton();\n this.$$$loadButtonText$$$(removeNodeButton, ResourceBundle.getBundle(\"language\").getString(\"button_removeNode\"));\n panel1.add(removeNodeButton, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label1 = new JLabel();\n Font label1Font = this.$$$getFont$$$(\"Droid Sans Mono\", Font.BOLD, 16, label1.getFont());\n if (label1Font != null) label1.setFont(label1Font);\n this.$$$loadLabelText$$$(label1, ResourceBundle.getBundle(\"language\").getString(\"title_nodes\"));\n panel.add(label1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n }", "public void setupCenterPanel() {\n\t\tcenterPanel = new JPanel();\n\t\tcenterPanel.setLayout(new BoxLayout(centerPanel, BoxLayout.Y_AXIS));\n\t\tcenterPanel.add(tabs);\n\t\tcenterPanel.add(scroll);\n\t\tadd(centerPanel, BorderLayout.CENTER);\n\t}", "private void $$$setupUI$$$() {\n\t\tpanel_overview = new JPanel();\n\t\tpanel_overview.setLayout(new BorderLayout(0, 0));\n\t\twebView = new WebbrowserPanel();\n\t\tpanel_overview.add(webView, BorderLayout.CENTER);\n\t}", "private void $$$setupUI$$$() {\n createUIComponents();\n contentPane = new JPanel();\n contentPane.setLayout(new GridLayoutManager(2, 1, new Insets(10, 10, 10, 10), -1, -1));\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1));\n contentPane.add(panel1, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, 1, null, null, null, 0, false));\n final Spacer spacer1 = new Spacer();\n panel1.add(spacer1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final JPanel panel2 = new JPanel();\n panel2.setLayout(new GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1, true, false));\n panel1.add(panel2, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n buttonOK = new JButton();\n buttonOK.setText(\"OK\");\n panel2.add(buttonOK, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n buttonCancel = new JButton();\n buttonCancel.setText(\"Cancel\");\n panel2.add(buttonCancel, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JPanel panel3 = new JPanel();\n panel3.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n contentPane.add(panel3, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n pan1 = new JPanel();\n pan1.setLayout(new GridLayoutManager(4, 3, new Insets(0, 0, 0, 0), -1, -1));\n panel3.add(pan1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JLabel label1 = new JLabel();\n label1.setText(\"Название номера\");\n pan1.add(label1, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label2 = new JLabel();\n label2.setText(\"Дата регистрации\");\n pan1.add(label2, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label3 = new JLabel();\n label3.setText(\"Дата истечения\");\n pan1.add(label3, new GridConstraints(2, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_VERTICAL, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final Spacer spacer2 = new Spacer();\n pan1.add(spacer2, new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, new Dimension(0, 25), new Dimension(0, 25), new Dimension(0, 25), 0, false));\n number = new JTextField();\n pan1.add(number, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n pan1.add(creationDatePanel, new GridConstraints(1, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n pan1.add(expirationDatePanel, new GridConstraints(2, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n }", "private void initMainComponentsLayout() {\r\n VerticalPanel selectDatasetLayout = new VerticalPanel();\r\n selectDatasetLayout.setWidth(\"300px\");\r\n selectDatasetLayout.setHeight(\"40px\");\r\n selectDatasetList = new ListBox();\r\n selectDatasetList.getElement().setAttribute(\"style\", \"border: 1px solid gray;height: 24px;font-weight: bold;width: 300px;border-radius: 5px;\");\r\n selectDatasetList.setWidth(\"300px\");\r\n selectDatasetList.addItem(\"Select Dataset\");\r\n selectDatasetLayout.add(selectDatasetList);\r\n selectDatasetList.setVisible(false);\r\n\r\n selectSubDatasetList = new ListBox();\r\n selectSubDatasetList.getElement().setAttribute(\"style\", \"border: 1px solid gray;height: 24px;font-weight: bold;width: 300px;border-radius: 5px;\");\r\n selectSubDatasetList.setWidth(\"300px\");\r\n selectSubDatasetList.addItem(\"Select Sub-Dataset\");\r\n selectSubDatasetList.setVisible(false);\r\n selectDatasetLayout.add(selectSubDatasetList);\r\n\r\n tempSelectDatasetList = new ListBox();\r\n tempSelectDatasetList.addItem(\"Select Dataset\");\r\n\r\n tempSelectDatasetList.setWidth(\"300px\");\r\n tempSelectDatasetList.setHeight(\"24px\");\r\n\r\n getDatasetsList(\"\");//get available dataset names\r\n RootPanel.get(\"dropdown_select\").add(selectDatasetLayout);\r\n selectDatasetList.addChangeHandler(this);\r\n selectSubDatasetList.addChangeHandler(this);\r\n\r\n tempSelectDatasetList.addChangeHandler(this);\r\n tempSelectDatasetList.addChangeHandler(this);\r\n Window.addResizeHandler(new ResizeHandler() {\r\n\r\n @Override\r\n public void onResize(ResizeEvent event) {\r\n if (masterWidth != Page.getScreenWidth() || masterHeight != Page.getScreenHeight()) {\r\n BooleanCallback ok = new BooleanCallback() {\r\n\r\n @Override\r\n public void execute(Boolean value) {\r\n if (value) {\r\n Window.Location.reload();\r\n }\r\n }\r\n };\r\n SC.confirm(\"You have changed the screen size the application need to reload the page press OK to proceed or close and back to the old screen\", ok);\r\n }\r\n }\r\n });\r\n\r\n initHomePage();\r\n welcomePage.setStyleName(\"welcomepagelayout\");\r\n RootPanel.get(\"welcomediva\").add(welcomePage);\r\n if (!oldIE) {\r\n initMiddleBodyLayout();\r\n }\r\n }", "private void initProcess(){\n this.getScPanelFriends().getViewport().setOpaque(false);\n this.getScPanelTopics().getViewport().setOpaque(false);\n this.getCenterPanel().setSize(0,0);\n this.getEastPanel().setSize(1700,800);\n //Administrador inhabilitado por defecto hasta implementación\n this.getBtnAdmin().setEnabled(false);\n this.getMenuOption().setLocationRelativeTo(this);\n }", "public MultiWidgetPropertyWidget() {\r\n // tabbedPane.setBorder(BorderFactory.createEmptyBorder(3, 5, 5, 4));\r\n //tabbedPane.setTabLayoutPolicy(JTabbedPane.SCROLL_TAB_LAYOUT);\r\n createNestedWidgets();\r\n }", "private void $$$setupUI$$$() {\n createUIComponents();\n contentPane = new JPanel();\n contentPane.setLayout(new GridLayoutManager(2, 1, new Insets(10, 10, 10, 10), -1, -1));\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1));\n contentPane.add(panel1, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, 1, null, null, null, 0, false));\n final Spacer spacer1 = new Spacer();\n panel1.add(spacer1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final JPanel panel2 = new JPanel();\n panel2.setLayout(new GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1));\n panel1.add(panel2, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n buttonOK = new JButton();\n buttonOK.setText(\"OK\");\n panel2.add(buttonOK, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n buttonCancel = new JButton();\n this.$$$loadButtonText$$$(buttonCancel, ResourceBundle.getBundle(\"strings\").getString(\"cancel\"));\n panel2.add(buttonCancel, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JPanel panel3 = new JPanel();\n panel3.setLayout(new GridLayoutManager(2, 2, new Insets(0, 0, 0, 0), -1, -1));\n contentPane.add(panel3, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JLabel label1 = new JLabel();\n this.$$$loadLabelText$$$(label1, ResourceBundle.getBundle(\"strings\").getString(\"resource-name\"));\n panel3.add(label1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n nameField = new JTextField();\n panel3.add(nameField, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n final JLabel label2 = new JLabel();\n this.$$$loadLabelText$$$(label2, ResourceBundle.getBundle(\"strings\").getString(\"resource-availability\"));\n panel3.add(label2, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JScrollPane scrollPane1 = new JScrollPane();\n panel3.add(scrollPane1, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n scrollPane1.setViewportView(availabilitiesList);\n label1.setLabelFor(nameField);\n }", "private void initTabs() {\n\t\tJPanel newTab = new JPanel();\r\n\t\taddTab(\"\", newTab); //$NON-NLS-1$\r\n\t\tsetTabComponentAt(0, new NewPaneButton());\r\n\t\tsetEnabledAt(0, false);\r\n\t\t// Add a new pane\r\n\t\taddPane();\r\n }", "private void setUpPanel() {\n\n this.add(nameLabel);\n this.add(showMetadataButton);\n this.add(compressFilesButton);\n this.add(decompressFilesButton);\n this.add(compressionResultLabel);\n this.add(messageShorteningButton);\n this.add(messageShorteningResultLabel);\n }", "private void init() {\r\n\t\tthis.panel.setLayout(new BoxLayout(this.panel, BoxLayout.PAGE_AXIS));\r\n\t\tthis.labelTitle = new JLabel(\"Edit your weapons\");\r\n\t\tthis.labelTitle.setAlignmentX(Component.CENTER_ALIGNMENT);\r\n\t\tthis.initFilter();\r\n\t\tthis.initList();\r\n\t\tthis.list.setSelectedIndex(0);\r\n\t\tthis.initInfo();\r\n\t\tthis.initButton();\r\n\r\n\t\tJPanel panelWest = new JPanel();\r\n\t\tpanelWest.setLayout(new BoxLayout(panelWest, BoxLayout.PAGE_AXIS));\r\n\t\tJPanel panelCenter = new JPanel();\r\n\t\tpanelCenter.setLayout(new BoxLayout(panelCenter, BoxLayout.LINE_AXIS));\r\n\r\n\t\tpanelWest.add(this.panelFilter);\r\n\t\tpanelWest.add(Box.createRigidArea(new Dimension(0, 5)));\r\n\t\tpanelWest.add(this.panelInfo);\r\n\t\tpanelCenter.add(panelWest);\r\n\t\tpanelCenter.add(Box.createRigidArea(new Dimension(10, 0)));\r\n\t\tthis.panelList.setPreferredSize(new Dimension(300, 150));\r\n\t\tpanelCenter.add(this.panelList);\r\n\r\n\t\tthis.panel.add(this.labelTitle);\r\n\t\tthis.panel.add(Box.createRigidArea(new Dimension(0, 10)));\r\n\t\tthis.panel.add(panelCenter);\r\n\t\tthis.panel.add(Box.createRigidArea(new Dimension(0, 10)));\r\n\t\tthis.panel.add(this.panelButton);\r\n\r\n\t}", "public AdministrationPanel(JFrame parent) {\n this.parent = parent;\n initComponents();\n\n tv = new TabView();\n eap = new EmployeeAdministrationPanel(parent);\n vap = new CarAdministrationPanel(parent);\n tv.addNewTab(\"Medarbejder\", eap);\n tv.addNewTab(\"Biler\", vap);\n\n add(tv, BorderLayout.CENTER);\n }", "private void init() {\n List<Contructor> list = servisContructor.getAllContructors();\n for (Contructor prod : list) {\n contructor.add(new ContructorViewer(prod));\n }\n\n Label label = new Label(\"Catalog Contructors\");\n label.setLayoutX(140);\n label.setLayoutY(20);\n label.setStyle(\"-fx-font-size:20px\");\n\n initTable();\n table.setLayoutX(120);\n table.setLayoutY(60);\n table.setStyle(\"-fx-font-size:16px\");\n\n GridPane control = new ControlPanel(this, 2).getPanel();\n control.setLayoutX(120);\n control.setLayoutY(300);\n\n panel.setAlignment(Pos.CENTER);\n panel.add(label, 0, 0);\n panel.add(table, 0, 1);\n panel.add(control, 0, 2);\n }", "public Window init() {\n // Construye una ventana (del navegador)\n // ----------------------------------------\n\n Window window = new Window();\n window.setTitle(\"Hola Mundo\");\n\n // ----------------------------------------\n // Construye un panel raiz y se lo asigna\n // a la ventana\n // ----------------------------------------\n\n ContentPane contentPane = new ContentPane();\n window.setContent(contentPane);\n\n // ----------------------------------------\n // Construye la GUI y la añade al panel\n // raiz recien construido\n // ----------------------------------------\n\n SplitPane split1 = new SplitPane();\n split1.setOrientation(SplitPane.ORIENTATION_VERTICAL_TOP_BOTTOM);\n split1.setSeparatorPosition(new Extent(30, Extent.PX));\n split1.setSeparatorColor(Color.BLACK);\n split1.setResizable(true);\n split1.setSeparatorHeight(new Extent(5, Extent.PX));\n contentPane.add(split1);\n\n MenuBarPane mbp = DemoMenuFactory.createDemoMenuBarPane();\n split1.add(mbp);\n\n SplitPane split2 = new SplitPane();\n split2.setOrientation(SplitPane.ORIENTATION_VERTICAL_TOP_BOTTOM);\n split2.setSeparatorPosition(new Extent(30, Extent.PX));\n split2.setSeparatorColor(Color.BLACK);\n split2.setResizable(true);\n split2.setSeparatorHeight(new Extent(5, Extent.PX));\n split1.add(split2);\n\n Row row = new Row();\n //row.add(DemoMenuFactory.createDemoMenuBarPane()); // Can't be done\n row.add(DemoMenuFactory.createDemoDropDownMenu());\n split2.add(row);\n\n HtmlLayout htmlLayout;\n\n try {\n htmlLayout = new HtmlLayout( //\n getClass().getResourceAsStream(\"template.html\"), \"UTF-8\");\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n\n HtmlLayoutData hld;\n\n hld = new HtmlLayoutData(\"label1\");\n Label lblLabel1 = new Label(\"Menu 1\");\n lblLabel1.setLayoutData(hld);\n htmlLayout.add(lblLabel1);\n\n hld = new HtmlLayoutData(\"menu1\");\n //MenuBarPane ddm1 = DemoMenuFactory.createDemoMenuBarPane(); // Can't be done\n DropDownMenu ddm1 = DemoMenuFactory.createDemoDropDownMenu();\n ddm1.setLayoutData(hld);\n htmlLayout.add(ddm1);\n\n hld = new HtmlLayoutData(\"label2\");\n Label lblLabel2 = new Label(\"Menu 2\");\n lblLabel2.setLayoutData(hld);\n htmlLayout.add(lblLabel2);\n\n hld = new HtmlLayoutData(\"menu2\");\n DropDownMenu ddm2 = DemoMenuFactory.createDemoDropDownMenu();\n ddm2.setLayoutData(hld);\n htmlLayout.add(ddm2);\n\n split2.add(htmlLayout);\n\n WindowPane windowPane = new WindowPane();\n windowPane.setClosable(false);\n contentPane.add(windowPane);\n\n SplitPane split3 = new SplitPane();\n split3.setOrientation(SplitPane.ORIENTATION_VERTICAL_TOP_BOTTOM);\n split3.setSeparatorPosition(new Extent(30, Extent.PX));\n split3.setSeparatorColor(Color.BLACK);\n split3.setResizable(true);\n split3.setSeparatorHeight(new Extent(5, Extent.PX));\n windowPane.add(split3);\n\n split3.add(DemoMenuFactory.createDemoMenuBarPane());\n\n return window;\n }", "private void initComponents() {\n buttonGroup = new javax.swing.ButtonGroup();\n buttonGroupMethod = new javax.swing.ButtonGroup();\n buttonGroupExtMethod = new javax.swing.ButtonGroup();\n buttonGroupExtMsg = new javax.swing.ButtonGroup();\n buttonGroupBERSource = new javax.swing.ButtonGroup();\n buttonGroupBERTarget = new javax.swing.ButtonGroup();\n jPanelMainMenu = new javax.swing.JPanel();\n jSplitPane1 = new javax.swing.JSplitPane();\n jPanel2 = new javax.swing.JPanel();\n jPanelMenu3 = new javax.swing.JPanel();\n jLabelMenu3 = new javax.swing.JLabel();\n jPanelMenu4 = new javax.swing.JPanel();\n jLabelMenu4 = new javax.swing.JLabel();\n jPanelMenu5 = new javax.swing.JPanel();\n jLabelMenu5 = new javax.swing.JLabel();\n jPanelMenu6 = new javax.swing.JPanel();\n jLabelMenu6 = new javax.swing.JLabel();\n jPanelMenu7 = new javax.swing.JPanel();\n jLabelMenu7 = new javax.swing.JLabel();\n jPanel3 = new javax.swing.JPanel();\n jPanelSideCenter = new javax.swing.JPanel();\n jPanelGraph1 = new javax.swing.JPanel();\n jPanelGraph2 = new javax.swing.JPanel();\n jToolBarPlayer = new javax.swing.JToolBar();\n jButtonStop = new javax.swing.JButton();\n jButtonPlay = new javax.swing.JButton();\n jButtonPause = new javax.swing.JButton();\n jButtonRecord = new javax.swing.JButton();\n jPanelSideRight1 = new javax.swing.JPanel();\n jScrollPane5 = new javax.swing.JScrollPane();\n jListPlaylist = new javax.swing.JList();\n jPanel9 = new javax.swing.JPanel();\n jLabel35 = new javax.swing.JLabel();\n jScrollPane6 = new javax.swing.JScrollPane();\n jTableProperties = new javax.swing.JTable();\n jPanel11 = new javax.swing.JPanel();\n jToolBar2 = new javax.swing.JToolBar();\n jButton4 = new javax.swing.JButton();\n jButton5 = new javax.swing.JButton();\n jButton6 = new javax.swing.JButton();\n jPanel1 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"ARMS: Audio wateRMarking System\");\n setBackground(new java.awt.Color(255, 255, 255));\n setResizable(false);\n jPanelMainMenu.setLayout(new java.awt.BorderLayout());\n\n jSplitPane1.setBorder(null);\n jSplitPane1.setDividerLocation(80);\n jSplitPane1.setDividerSize(3);\n jPanel2.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jPanelMenu3.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jPanelMenu3.setBackground(new java.awt.Color(255, 255, 255));\n jPanelMenu3.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n jPanelMenu3.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jPanelMenu3MouseClicked(evt);\n }\n public void mouseEntered(java.awt.event.MouseEvent evt) {\n jPanelMenu3MouseEntered(evt);\n }\n public void mouseExited(java.awt.event.MouseEvent evt) {\n jPanelMenu3MouseExited(evt);\n }\n });\n\n jLabelMenu3.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabelMenu3.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/wavemark/images/ins.png\")));\n jLabelMenu3.setText(\"Insert Mark\");\n jLabelMenu3.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM);\n jLabelMenu3.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jLabelMenu3.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jPanelMenu3.add(jLabelMenu3, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 80, 60));\n\n jPanel2.add(jPanelMenu3, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 80, 70));\n\n jPanelMenu4.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jPanelMenu4.setBackground(new java.awt.Color(255, 255, 255));\n jPanelMenu4.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n jPanelMenu4.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jPanelMenu4MouseClicked(evt);\n }\n public void mouseEntered(java.awt.event.MouseEvent evt) {\n jPanelMenu4MouseEntered(evt);\n }\n public void mouseExited(java.awt.event.MouseEvent evt) {\n jPanelMenu4MouseExited(evt);\n }\n });\n\n jLabelMenu4.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabelMenu4.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/wavemark/images/ext.png\")));\n jLabelMenu4.setText(\"Extract Mark\");\n jLabelMenu4.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM);\n jLabelMenu4.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jLabelMenu4.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jPanelMenu4.add(jLabelMenu4, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 80, 60));\n\n jPanel2.add(jPanelMenu4, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 70, 80, 70));\n\n jPanelMenu5.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jPanelMenu5.setBackground(new java.awt.Color(255, 255, 255));\n jPanelMenu5.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n jPanelMenu5.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jPanelMenu5MouseClicked(evt);\n }\n public void mouseEntered(java.awt.event.MouseEvent evt) {\n jPanelMenu5MouseEntered(evt);\n }\n public void mouseExited(java.awt.event.MouseEvent evt) {\n jPanelMenu5MouseExited(evt);\n }\n });\n\n jLabelMenu5.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabelMenu5.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/wavemark/images/tes.png\")));\n jLabelMenu5.setText(\"Error Test\");\n jLabelMenu5.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM);\n jLabelMenu5.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jLabelMenu5.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jPanelMenu5.add(jLabelMenu5, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 80, 60));\n\n jPanel2.add(jPanelMenu5, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 140, 80, 70));\n\n jPanelMenu6.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jPanelMenu6.setBackground(new java.awt.Color(255, 255, 255));\n jPanelMenu6.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n jPanelMenu6.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jPanelMenu6MouseClicked(evt);\n }\n public void mouseEntered(java.awt.event.MouseEvent evt) {\n jPanelMenu6MouseEntered(evt);\n }\n public void mouseExited(java.awt.event.MouseEvent evt) {\n jPanelMenu6MouseExited(evt);\n }\n });\n\n jLabelMenu6.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabelMenu6.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/wavemark/images/bitcheck.png\")));\n jLabelMenu6.setText(\"Recovery Test\");\n jLabelMenu6.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM);\n jLabelMenu6.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jLabelMenu6.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jPanelMenu6.add(jLabelMenu6, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 80, 60));\n\n jPanel2.add(jPanelMenu6, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 210, 80, 70));\n\n jPanelMenu7.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jPanelMenu7.setBackground(new java.awt.Color(255, 255, 255));\n jPanelMenu7.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n jPanelMenu7.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseEntered(java.awt.event.MouseEvent evt) {\n jPanelMenu7MouseEntered(evt);\n }\n public void mouseExited(java.awt.event.MouseEvent evt) {\n jPanelMenu7MouseExited(evt);\n }\n });\n\n jLabelMenu7.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabelMenu7.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/wavemark/images/ady1.jpg\")));\n jLabelMenu7.setText(\"About\");\n jLabelMenu7.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM);\n jLabelMenu7.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jLabelMenu7.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jPanelMenu7.add(jLabelMenu7, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 80, 80));\n\n jPanel2.add(jPanelMenu7, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 280, 80, 90));\n\n jSplitPane1.setLeftComponent(jPanel2);\n\n jPanel3.setLayout(new java.awt.BorderLayout());\n\n jPanelSideCenter.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jPanelSideCenter.setBackground(new java.awt.Color(255, 255, 255));\n jPanelGraph1.setLayout(new java.awt.BorderLayout());\n\n jPanelSideCenter.add(jPanelGraph1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 10, 520, 210));\n\n jPanelGraph2.setLayout(new java.awt.BorderLayout());\n\n jPanelSideCenter.add(jPanelGraph2, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 230, 520, 210));\n\n jToolBarPlayer.setBorder(null);\n jButtonStop.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/wavemark/images/stop.png\")));\n jButtonStop.setText(\"Stop\");\n jButtonStop.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButtonStop.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jButtonStop.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonStopActionPerformed(evt);\n }\n });\n\n jToolBarPlayer.add(jButtonStop);\n\n jButtonPlay.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/wavemark/images/play.png\")));\n jButtonPlay.setText(\"Play\");\n jButtonPlay.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButtonPlay.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jButtonPlay.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonPlayActionPerformed(evt);\n }\n });\n\n jToolBarPlayer.add(jButtonPlay);\n\n jButtonPause.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/wavemark/images/pause.png\")));\n jButtonPause.setText(\"Pause\");\n jButtonPause.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButtonPause.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jButtonPause.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonPauseActionPerformed(evt);\n }\n });\n\n jToolBarPlayer.add(jButtonPause);\n\n jButtonRecord.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/wavemark/images/record.png\")));\n jButtonRecord.setText(\"Record\");\n jButtonRecord.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButtonRecord.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jButtonRecord.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonRecordActionPerformed(evt);\n }\n });\n\n jToolBarPlayer.add(jButtonRecord);\n\n jPanelSideCenter.add(jToolBarPlayer, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 450, 710, -1));\n\n jPanelSideRight1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jPanelSideRight1.setBackground(new java.awt.Color(255, 255, 255));\n jScrollPane5.setBorder(null);\n jListPlaylist.setSelectionBackground(new java.awt.Color(104, 121, 144));\n jListPlaylist.addListSelectionListener(new javax.swing.event.ListSelectionListener() {\n public void valueChanged(javax.swing.event.ListSelectionEvent evt) {\n jListPlaylistValueChanged(evt);\n }\n });\n\n jScrollPane5.setViewportView(jListPlaylist);\n\n jPanelSideRight1.add(jScrollPane5, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 240, 170, 190));\n\n jPanel9.setLayout(new java.awt.BorderLayout());\n\n jPanel9.setBackground(new java.awt.Color(51, 95, 130));\n jLabel35.setForeground(new java.awt.Color(255, 255, 255));\n jLabel35.setText(\" Available Stream\");\n jPanel9.add(jLabel35, java.awt.BorderLayout.CENTER);\n\n jPanelSideRight1.add(jPanel9, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 220, 170, 20));\n\n jScrollPane6.setBorder(null);\n jTableProperties.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n \"Properties\", \"Value\"\n }\n ));\n jTableProperties.setSelectionBackground(new java.awt.Color(104, 121, 144));\n jScrollPane6.setViewportView(jTableProperties);\n\n jPanelSideRight1.add(jScrollPane6, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 170, 220));\n\n jPanel11.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jToolBar2.setBorder(null);\n jButton4.setText(\" add \");\n jButton4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton4ActionPerformed(evt);\n }\n });\n\n jToolBar2.add(jButton4);\n\n jButton5.setText(\" sav \");\n jButton5.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton5ActionPerformed(evt);\n }\n });\n\n jToolBar2.add(jButton5);\n\n jButton6.setText(\" rem \");\n jButton6.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton6ActionPerformed(evt);\n }\n });\n\n jToolBar2.add(jButton6);\n\n jPanel11.add(jToolBar2, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 170, 20));\n\n jPanelSideRight1.add(jPanel11, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 430, 170, 20));\n\n jPanelSideCenter.add(jPanelSideRight1, new org.netbeans.lib.awtextra.AbsoluteConstraints(539, 0, 170, 450));\n\n jPanel3.add(jPanelSideCenter, java.awt.BorderLayout.CENTER);\n\n jSplitPane1.setRightComponent(jPanel3);\n\n jPanelMainMenu.add(jSplitPane1, java.awt.BorderLayout.CENTER);\n\n getContentPane().add(jPanelMainMenu, java.awt.BorderLayout.CENTER);\n\n jPanel1.setLayout(new java.awt.BorderLayout());\n\n jPanel1.setBackground(new java.awt.Color(102, 121, 187));\n jLabel1.setFont(new java.awt.Font(\"Harlow Solid Italic\", 0, 36));\n jLabel1.setForeground(new java.awt.Color(255, 255, 255));\n jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/wavemark/images/head3.jpg\")));\n jPanel1.add(jLabel1, java.awt.BorderLayout.CENTER);\n\n getContentPane().add(jPanel1, java.awt.BorderLayout.NORTH);\n\n java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();\n setBounds((screenSize.width-800)/2, (screenSize.height-600)/2, 800, 600);\n }", "private void initComponents() {\n contentPanel = new JPanel();\n label_visitDate = new JLabel();\n visitDate = ATBasicComponentFactory.createDateField(detailsModel.getModel( PatronVisits.PROPERTYNAME_VISIT_DATE));\n visitTypeLabel = new JLabel();\n visitTypeComboBox = ATBasicComponentFactory.createComboBox(detailsModel, PatronVisits.PROPERTYNAME_VISIT_TYPE, PatronVisits.class);\n label_subject = new JLabel();\n address1 = ATBasicComponentFactory.createTextField(detailsModel.getModel(PatronVisits.PROPERTYNAME_CONTACT_ARCHIVIST));\n label_topic = new JLabel();\n scrollPane1 = new JScrollPane();\n patronNotes = ATBasicComponentFactory.createTextArea(detailsModel.getModel(PatronVisits.PROPERTYNAME_TOPIC));\n scrollPane5 = new JScrollPane();\n researchPurposeTable = new DomainSortableTable(PatronVisitsResearchPurposes.class);\n panel12 = new JPanel();\n addResearchPurpose = new JButton();\n editResearchPurposeButton = new JButton();\n removeResearchPurpose = new JButton();\n separator5 = new JSeparator();\n tabbedPane1 = new JTabbedPane();\n panel1 = new JPanel();\n subjectLabel = new JLabel();\n scrollPane3 = new JScrollPane();\n subjectsTable = new DomainSortableTable(PatronVisitsSubjects.class);\n panel10 = new JPanel();\n addSubject = new JButton();\n removeSubject = new JButton();\n separator1 = new JSeparator();\n namesLabel = new JLabel();\n scrollPane4 = new JScrollPane();\n namesTable = new DomainSortableTable(PatronVisitsNames.class);\n panel11 = new JPanel();\n editNameRelationshipButton = new JButton();\n addName = new JButton();\n removeName = new JButton();\n panel2 = new JPanel();\n scrollPane2 = new JScrollPane();\n resourcesTable = new DomainSortableTable(PatronVisitsResources.class);\n panel3 = new JPanel();\n addResourceButton = new JButton();\n removeResourceButton = new JButton();\n resourcesUsedLabel = new JLabel();\n scrollPane6 = new JScrollPane();\n textArea1 = ATBasicComponentFactory.createTextArea(detailsModel.getModel(PatronVisits.PROPERTYNAME_DETAILS_ON_RESOURCES));\n panel4 = new JPanel();\n userDefinedStringLabel = new JLabel();\n userDefinedTextField1 = ATBasicComponentFactory.createTextField(detailsModel.getModel(PatronVisits.PROPERTYNAME_USER_DEFINED_STRING1),false);\n userDefinedBooleanLabel = new JLabel();\n userDefinedCheckBox1 = ATBasicComponentFactory.createCheckBox(detailsModel, PatronVisits.PROPERTYNAME_USER_DEFINED_BOOLEAN1, PatronVisits.class);\n userDefinedTextLabel = new JLabel();\n scrollPane7 = new JScrollPane();\n userDefinedTextArea1 = ATBasicComponentFactory.createTextArea(detailsModel.getModel(PatronVisits.PROPERTYNAME_USER_DEFINED_TEXT1));\n CellConstraints cc = new CellConstraints();\n\n //======== this ========\n setLayout(new FormLayout(\n \"default:grow\",\n \"top:default:grow\"));\n\n //======== contentPanel ========\n {\n contentPanel.setBorder(Borders.DLU4_BORDER);\n contentPanel.setLayout(new FormLayout(\n new ColumnSpec[] {\n FormFactory.DEFAULT_COLSPEC,\n FormFactory.LABEL_COMPONENT_GAP_COLSPEC,\n new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW)\n },\n new RowSpec[] {\n FormFactory.DEFAULT_ROWSPEC,\n FormFactory.LINE_GAP_ROWSPEC,\n FormFactory.DEFAULT_ROWSPEC,\n FormFactory.LINE_GAP_ROWSPEC,\n FormFactory.DEFAULT_ROWSPEC,\n FormFactory.LINE_GAP_ROWSPEC,\n new RowSpec(RowSpec.TOP, Sizes.DEFAULT, FormSpec.NO_GROW),\n FormFactory.LINE_GAP_ROWSPEC,\n FormFactory.DEFAULT_ROWSPEC,\n FormFactory.LINE_GAP_ROWSPEC,\n FormFactory.DEFAULT_ROWSPEC,\n FormFactory.LINE_GAP_ROWSPEC,\n FormFactory.DEFAULT_ROWSPEC,\n FormFactory.LINE_GAP_ROWSPEC,\n FormFactory.DEFAULT_ROWSPEC\n }));\n\n //---- label_visitDate ----\n label_visitDate.setText(\"Date\");\n ATFieldInfo.assignLabelInfo(label_visitDate, PatronVisits.class, PatronVisits.PROPERTYNAME_VISIT_DATE);\n contentPanel.add(label_visitDate, cc.xy(1, 1));\n\n //---- visitDate ----\n visitDate.setFont(new Font(\"Trebuchet MS\", Font.PLAIN, 13));\n visitDate.setColumns(10);\n contentPanel.add(visitDate, cc.xy(3, 1));\n\n //---- visitTypeLabel ----\n visitTypeLabel.setText(\"Visit Type\");\n ATFieldInfo.assignLabelInfo(visitTypeLabel, PatronVisits.class, PatronVisits.PROPERTYNAME_VISIT_TYPE);\n contentPanel.add(visitTypeLabel, cc.xy(1, 3));\n contentPanel.add(visitTypeComboBox, cc.xy(3, 3));\n\n //---- label_subject ----\n label_subject.setText(\"Contact\");\n ATFieldInfo.assignLabelInfo(label_subject, PatronVisits.class, PatronVisits.PROPERTYNAME_CONTACT_ARCHIVIST);\n contentPanel.add(label_subject, cc.xy(1, 5));\n\n //---- address1 ----\n address1.setColumns(30);\n contentPanel.add(address1, cc.xy(3, 5));\n\n //---- label_topic ----\n label_topic.setText(\"Topic\");\n ATFieldInfo.assignLabelInfo(label_topic, PatronVisits.class, PatronVisits.PROPERTYNAME_TOPIC);\n contentPanel.add(label_topic, cc.xy(1, 7));\n\n //======== scrollPane1 ========\n {\n\n //---- patronNotes ----\n patronNotes.setRows(4);\n patronNotes.setLineWrap(true);\n patronNotes.setWrapStyleWord(true);\n patronNotes.setFont(new Font(\"Trebuchet MS\", Font.PLAIN, 13));\n patronNotes.setMinimumSize(new Dimension(200, 16));\n scrollPane1.setViewportView(patronNotes);\n }\n contentPanel.add(scrollPane1, cc.xy(3, 7));\n\n //======== scrollPane5 ========\n {\n scrollPane5.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);\n scrollPane5.setFont(new Font(\"Trebuchet MS\", Font.PLAIN, 13));\n scrollPane5.setPreferredSize(new Dimension(219, 100));\n\n //---- researchPurposeTable ----\n researchPurposeTable.setPreferredScrollableViewportSize(new Dimension(200, 200));\n researchPurposeTable.addMouseListener(new MouseAdapter() {\n @Override\n public void mouseClicked(MouseEvent e) {\n researchPurposeTableMouseClicked(e);\n }\n });\n scrollPane5.setViewportView(researchPurposeTable);\n }\n contentPanel.add(scrollPane5, cc.xywh(1, 9, 3, 1));\n\n //======== panel12 ========\n {\n panel12.setBackground(new Color(231, 188, 251));\n panel12.setOpaque(false);\n panel12.setFont(new Font(\"Trebuchet MS\", Font.PLAIN, 13));\n panel12.setLayout(new FormLayout(\n new ColumnSpec[] {\n FormFactory.DEFAULT_COLSPEC,\n FormFactory.LABEL_COMPONENT_GAP_COLSPEC,\n FormFactory.DEFAULT_COLSPEC,\n FormFactory.LABEL_COMPONENT_GAP_COLSPEC,\n FormFactory.DEFAULT_COLSPEC\n },\n RowSpec.decodeSpecs(\"default\")));\n\n //---- addResearchPurpose ----\n addResearchPurpose.setText(\"Add Reseach Purpose\");\n addResearchPurpose.setOpaque(false);\n addResearchPurpose.setFont(new Font(\"Trebuchet MS\", Font.PLAIN, 13));\n addResearchPurpose.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n addResearchPurposeActionPerformed();\n }\n });\n panel12.add(addResearchPurpose, cc.xy(1, 1));\n\n //---- editResearchPurposeButton ----\n editResearchPurposeButton.setText(\"Edit Research Purpose\");\n editResearchPurposeButton.setOpaque(false);\n editResearchPurposeButton.setFont(new Font(\"Trebuchet MS\", Font.PLAIN, 13));\n editResearchPurposeButton.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n editResearchPurposeButtonActionPerformed();\n }\n });\n panel12.add(editResearchPurposeButton, cc.xy(3, 1));\n\n //---- removeResearchPurpose ----\n removeResearchPurpose.setText(\"Remove Reseach Purpose\");\n removeResearchPurpose.setOpaque(false);\n removeResearchPurpose.setFont(new Font(\"Trebuchet MS\", Font.PLAIN, 13));\n removeResearchPurpose.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n removeResearchPurposeActionPerformed();\n }\n });\n panel12.add(removeResearchPurpose, cc.xy(5, 1));\n }\n contentPanel.add(panel12, cc.xywh(1, 11, 3, 1, CellConstraints.CENTER, CellConstraints.DEFAULT));\n\n //---- separator5 ----\n separator5.setBackground(new Color(220, 220, 232));\n separator5.setForeground(new Color(147, 131, 86));\n separator5.setMinimumSize(new Dimension(1, 10));\n separator5.setFont(new Font(\"Trebuchet MS\", Font.PLAIN, 13));\n contentPanel.add(separator5, cc.xywh(1, 13, 3, 1));\n\n //======== tabbedPane1 ========\n {\n\n //======== panel1 ========\n {\n panel1.setLayout(new FormLayout(\n ColumnSpec.decodeSpecs(\"default:grow\"),\n new RowSpec[] {\n FormFactory.DEFAULT_ROWSPEC,\n FormFactory.LINE_GAP_ROWSPEC,\n FormFactory.DEFAULT_ROWSPEC,\n FormFactory.LINE_GAP_ROWSPEC,\n FormFactory.DEFAULT_ROWSPEC,\n FormFactory.LINE_GAP_ROWSPEC,\n FormFactory.DEFAULT_ROWSPEC,\n FormFactory.LINE_GAP_ROWSPEC,\n FormFactory.DEFAULT_ROWSPEC,\n FormFactory.LINE_GAP_ROWSPEC,\n FormFactory.DEFAULT_ROWSPEC,\n FormFactory.LINE_GAP_ROWSPEC,\n FormFactory.DEFAULT_ROWSPEC\n }));\n\n //---- subjectLabel ----\n subjectLabel.setText(\"Subjects\");\n panel1.add(subjectLabel, cc.xy(1, 1));\n\n //======== scrollPane3 ========\n {\n scrollPane3.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);\n scrollPane3.setFont(new Font(\"Trebuchet MS\", Font.PLAIN, 13));\n scrollPane3.setPreferredSize(new Dimension(219, 100));\n\n //---- subjectsTable ----\n subjectsTable.setPreferredScrollableViewportSize(new Dimension(200, 200));\n scrollPane3.setViewportView(subjectsTable);\n }\n panel1.add(scrollPane3, cc.xy(1, 3));\n\n //======== panel10 ========\n {\n panel10.setBackground(new Color(231, 188, 251));\n panel10.setOpaque(false);\n panel10.setFont(new Font(\"Trebuchet MS\", Font.PLAIN, 13));\n panel10.setLayout(new FormLayout(\n new ColumnSpec[] {\n FormFactory.DEFAULT_COLSPEC,\n FormFactory.LABEL_COMPONENT_GAP_COLSPEC,\n FormFactory.DEFAULT_COLSPEC\n },\n RowSpec.decodeSpecs(\"default\")));\n\n //---- addSubject ----\n addSubject.setText(\"Add Subject\");\n addSubject.setOpaque(false);\n addSubject.setFont(new Font(\"Trebuchet MS\", Font.PLAIN, 13));\n addSubject.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n addSubjectActionPerformed();\n }\n });\n panel10.add(addSubject, cc.xy(1, 1));\n\n //---- removeSubject ----\n removeSubject.setText(\"Remove Subject\");\n removeSubject.setOpaque(false);\n removeSubject.setFont(new Font(\"Trebuchet MS\", Font.PLAIN, 13));\n removeSubject.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n removeSubjectActionPerformed();\n }\n });\n panel10.add(removeSubject, cc.xy(3, 1));\n }\n panel1.add(panel10, cc.xywh(1, 5, 1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT));\n\n //---- separator1 ----\n separator1.setMinimumSize(new Dimension(1, 10));\n separator1.setForeground(new Color(147, 131, 86));\n panel1.add(separator1, cc.xy(1, 7));\n\n //---- namesLabel ----\n namesLabel.setText(\"Names\");\n panel1.add(namesLabel, cc.xy(1, 9));\n\n //======== scrollPane4 ========\n {\n scrollPane4.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);\n scrollPane4.setFont(new Font(\"Trebuchet MS\", Font.PLAIN, 13));\n scrollPane4.setPreferredSize(new Dimension(219, 100));\n\n //---- namesTable ----\n namesTable.setPreferredScrollableViewportSize(new Dimension(200, 200));\n namesTable.addMouseListener(new MouseAdapter() {\n @Override\n public void mouseClicked(MouseEvent e) {\n namesTableMouseClicked(e);\n }\n });\n scrollPane4.setViewportView(namesTable);\n }\n panel1.add(scrollPane4, cc.xy(1, 11));\n\n //======== panel11 ========\n {\n panel11.setBackground(new Color(231, 188, 251));\n panel11.setOpaque(false);\n panel11.setFont(new Font(\"Trebuchet MS\", Font.PLAIN, 13));\n panel11.setLayout(new FormLayout(\n new ColumnSpec[] {\n FormFactory.DEFAULT_COLSPEC,\n FormFactory.LABEL_COMPONENT_GAP_COLSPEC,\n FormFactory.DEFAULT_COLSPEC,\n FormFactory.LABEL_COMPONENT_GAP_COLSPEC,\n FormFactory.DEFAULT_COLSPEC\n },\n RowSpec.decodeSpecs(\"default\")));\n\n //---- editNameRelationshipButton ----\n editNameRelationshipButton.setText(\"Edit Name Link\");\n editNameRelationshipButton.setOpaque(false);\n editNameRelationshipButton.setFont(new Font(\"Trebuchet MS\", Font.PLAIN, 13));\n editNameRelationshipButton.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n editNameRelationshipButtonActionPerformed();\n }\n });\n panel11.add(editNameRelationshipButton, cc.xy(1, 1));\n\n //---- addName ----\n addName.setText(\"Add Name\");\n addName.setOpaque(false);\n addName.setFont(new Font(\"Trebuchet MS\", Font.PLAIN, 13));\n addName.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n addNameActionPerformed();\n }\n });\n panel11.add(addName, cc.xy(3, 1));\n\n //---- removeName ----\n removeName.setText(\"Remove Name\");\n removeName.setOpaque(false);\n removeName.setFont(new Font(\"Trebuchet MS\", Font.PLAIN, 13));\n removeName.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n removeNameActionPerformed();\n }\n });\n panel11.add(removeName, cc.xy(5, 1));\n }\n panel1.add(panel11, cc.xywh(1, 13, 1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT));\n }\n tabbedPane1.addTab(\"Subjects and Names\", panel1);\n\n\n //======== panel2 ========\n {\n panel2.setLayout(new FormLayout(\n ColumnSpec.decodeSpecs(\"default:grow\"),\n new RowSpec[] {\n FormFactory.DEFAULT_ROWSPEC,\n FormFactory.LINE_GAP_ROWSPEC,\n FormFactory.DEFAULT_ROWSPEC,\n FormFactory.LINE_GAP_ROWSPEC,\n FormFactory.DEFAULT_ROWSPEC,\n FormFactory.LINE_GAP_ROWSPEC,\n new RowSpec(RowSpec.CENTER, Sizes.DEFAULT, FormSpec.DEFAULT_GROW)\n }));\n\n //======== scrollPane2 ========\n {\n scrollPane2.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);\n scrollPane2.setPreferredSize(new Dimension(219, 100));\n\n //---- resourcesTable ----\n resourcesTable.setPreferredScrollableViewportSize(new Dimension(200, 200));\n scrollPane2.setViewportView(resourcesTable);\n }\n panel2.add(scrollPane2, cc.xy(1, 1));\n\n //======== panel3 ========\n {\n panel3.setLayout(new FlowLayout());\n\n //---- addResourceButton ----\n addResourceButton.setText(\"Add Resource\");\n addResourceButton.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n addResourceButtonActionPerformed();\n }\n });\n panel3.add(addResourceButton);\n\n //---- removeResourceButton ----\n removeResourceButton.setText(\"Remove Resource\");\n removeResourceButton.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n removeResourceButtonActionPerformed();\n }\n });\n panel3.add(removeResourceButton);\n }\n panel2.add(panel3, cc.xy(1, 3));\n\n //---- resourcesUsedLabel ----\n resourcesUsedLabel.setText(\"Details On Resources Used\");\n ATFieldInfo.assignLabelInfo(resourcesUsedLabel, PatronVisits.class, PatronVisits.PROPERTYNAME_DETAILS_ON_RESOURCES);\n panel2.add(resourcesUsedLabel, cc.xy(1, 5));\n\n //======== scrollPane6 ========\n {\n\n //---- textArea1 ----\n textArea1.setRows(10);\n scrollPane6.setViewportView(textArea1);\n }\n panel2.add(scrollPane6, cc.xy(1, 7));\n }\n tabbedPane1.addTab(\"Resources Used\", panel2);\n\n\n //======== panel4 ========\n {\n panel4.setLayout(new FormLayout(\n new ColumnSpec[] {\n FormFactory.DEFAULT_COLSPEC,\n FormFactory.LABEL_COMPONENT_GAP_COLSPEC,\n new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW)\n },\n new RowSpec[] {\n FormFactory.DEFAULT_ROWSPEC,\n FormFactory.LINE_GAP_ROWSPEC,\n FormFactory.DEFAULT_ROWSPEC,\n FormFactory.LINE_GAP_ROWSPEC,\n new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW)\n }));\n\n //---- userDefinedStringLabel ----\n userDefinedStringLabel.setText(\"User String\");\n ATFieldInfo.assignLabelInfo(userDefinedStringLabel, PatronVisits.class, PatronVisits.PROPERTYNAME_USER_DEFINED_STRING1);\n panel4.add(userDefinedStringLabel, cc.xy(1, 1));\n panel4.add(userDefinedTextField1, cc.xy(3, 1));\n\n //---- userDefinedBooleanLabel ----\n userDefinedBooleanLabel.setText(\"User Boolean\");\n ATFieldInfo.assignLabelInfo(userDefinedBooleanLabel, PatronVisits.class, PatronVisits.PROPERTYNAME_USER_DEFINED_BOOLEAN1);\n panel4.add(userDefinedBooleanLabel, cc.xy(1, 3));\n\n //---- userDefinedCheckBox1 ----\n userDefinedCheckBox1.setText(\"Option\");\n panel4.add(userDefinedCheckBox1, cc.xy(3, 3));\n\n //---- userDefinedTextLabel ----\n userDefinedTextLabel.setText(\"User Text\");\n ATFieldInfo.assignLabelInfo(userDefinedTextLabel, PatronVisits.class, PatronVisits.PROPERTYNAME_USER_DEFINED_TEXT1);\n panel4.add(userDefinedTextLabel, cc.xywh(1, 5, 1, 1, CellConstraints.DEFAULT, CellConstraints.TOP));\n\n //======== scrollPane7 ========\n {\n scrollPane7.setViewportView(userDefinedTextArea1);\n }\n panel4.add(scrollPane7, cc.xy(3, 5));\n }\n tabbedPane1.addTab(\"User Defined Fields\", panel4);\n\n }\n contentPanel.add(tabbedPane1, cc.xywh(1, 15, 3, 1));\n }\n add(contentPanel, cc.xy(1, 1));\n\t\t// JFormDesigner - End of component initialization //GEN-END:initComponents\n\t}", "@Override\n\tpublic void setPane() {\n\t\tNewSchedulePane SchListPane = new NewSchedulePane();\n\t\trootPane = new HomePane(new MainLeftPane(),SchListPane);\n\t}", "public MainWindow()\n {\n initComponents();\n\n // Asignamos los eventos de los controles propios\n this.setCustomControlEvents();\n // Desactivamos por defecto todos los elementos de las barras de imagen\n this.setImageWindowDeactivated();\n \n this.jSplitPane1.setDividerLocation(0.9);\n }", "private void setupLayout() {\r\n\t\tgetContentPane().add(panel);\r\n\t}", "private void initMyComponents() {\n this.jPanel1.setLayout(new BoxLayout(this.jPanel1, BoxLayout.Y_AXIS));\n this.jPanel1.add(controller.getPressureController().getEMeasureBasicView());\n this.jPanel1.add(controller.getTemperatureController().getEMeasureBasicView());\n this.controller.getPressureController().getListeners().add(this);\n this.controller.getTemperatureController().getListeners().add(this);\n this.jComboBox1.setModel(new DefaultComboBoxModel(FluidKind.values()));\n this.changeResponce();\n }", "public void init() {\n\t\ttabbed = new JTabbedPane();\n\t\ttabbed.insertTab(\"Sesion\", null, getPanelSesion(), \"Control de la sesion\", 0);\n\t\ttabbed.insertTab(\"Evolución bolsa\", null, new JPanel(), \"Control de los usuarios\", 1);\n\t\ttabbed.insertTab(\"Eventos\", null, new JPanel(), \"Control de los eventos\", 2);\n\t\ttabbed.insertTab(\"Control de Agentes\", null, getPanelAgentes(), \"Control de los agentes\", 3);\n\t\tgetContentPane().add(tabbed);\n\t\ttabbed.setEnabledAt(1, false);\n\t\ttabbed.setEnabledAt(2, false);\n\t\tsetSize(new Dimension(800, 600));\n\t}", "private void $$$setupUI$$$() {\n createUIComponents();\n contentPane = new JPanel();\n contentPane.setLayout(new GridLayoutManager(2, 2, new Insets(10, 10, 10, 10), -1, -1));\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(11, 3, new Insets(0, 0, 0, 0), -1, -1));\n contentPane.add(panel1, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JLabel label1 = new JLabel();\n label1.setText(\"Tags\");\n panel1.add(label1, new GridConstraints(7, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final Spacer spacer1 = new Spacer();\n panel1.add(spacer1, new GridConstraints(10, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n listTags = new JList();\n panel1.add(listTags, new GridConstraints(7, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_WANT_GROW, null, new Dimension(150, 50), null, 0, false));\n final JPanel panel2 = new JPanel();\n panel2.setLayout(new GridLayoutManager(3, 1, new Insets(0, 0, 0, 0), -1, -1));\n panel1.add(panel2, new GridConstraints(7, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n addTagButton = new JButton();\n addTagButton.setText(\"Add Tag\");\n panel2.add(addTagButton, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final Spacer spacer2 = new Spacer();\n panel2.add(spacer2, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n deleteTagButton = new JButton();\n deleteTagButton.setText(\"Delete Tag\");\n panel2.add(deleteTagButton, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label2 = new JLabel();\n label2.setText(\"State\");\n panel1.add(label2, new GridConstraints(8, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label3 = new JLabel();\n label3.setText(\"Media Type\");\n panel1.add(label3, new GridConstraints(9, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label4 = new JLabel();\n label4.setText(\"New Contributor\");\n panel1.add(label4, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 1, false));\n final JPanel panel3 = new JPanel();\n panel3.setLayout(new GridLayoutManager(2, 2, new Insets(0, 0, 0, 0), -1, -1));\n panel1.add(panel3, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JLabel label5 = new JLabel();\n label5.setText(\"Type\");\n panel3.add(label5, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n comboContributorType = new JComboBox();\n final DefaultComboBoxModel defaultComboBoxModel1 = new DefaultComboBoxModel();\n defaultComboBoxModel1.addElement(\"select\");\n defaultComboBoxModel1.addElement(\"USER\");\n defaultComboBoxModel1.addElement(\"MACHINE\");\n comboContributorType.setModel(defaultComboBoxModel1);\n panel3.add(comboContributorType, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label6 = new JLabel();\n label6.setText(\"Username\");\n panel3.add(label6, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n textUsername = new JTextField();\n panel3.add(textUsername, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n final JLabel label7 = new JLabel();\n label7.setText(\"Created\");\n panel1.add(label7, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n textCreatedDate = new JTextField();\n panel1.add(textCreatedDate, new GridConstraints(2, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n final JLabel label8 = new JLabel();\n label8.setText(\"Field Sets\");\n panel1.add(label8, new GridConstraints(4, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n listFieldSets = new JList();\n panel1.add(listFieldSets, new GridConstraints(4, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_WANT_GROW, null, new Dimension(150, 50), null, 0, false));\n final JLabel label9 = new JLabel();\n label9.setText(\"Contributors\");\n panel1.add(label9, new GridConstraints(5, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n listContributors = new JList();\n panel1.add(listContributors, new GridConstraints(5, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_WANT_GROW, null, new Dimension(150, 50), null, 0, false));\n final JLabel label10 = new JLabel();\n label10.setText(\"Workgroups\");\n panel1.add(label10, new GridConstraints(6, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n listWorkgroups = new JList();\n panel1.add(listWorkgroups, new GridConstraints(6, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_WANT_GROW, null, new Dimension(150, 50), null, 0, false));\n final JLabel label11 = new JLabel();\n label11.setText(\"Last Updated\");\n panel1.add(label11, new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n textLastUpdated = new JTextField();\n panel1.add(textLastUpdated, new GridConstraints(3, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n comboMediaType = new JComboBox();\n final DefaultComboBoxModel defaultComboBoxModel2 = new DefaultComboBoxModel();\n defaultComboBoxModel2.addElement(\"select\");\n defaultComboBoxModel2.addElement(\"CHAT\");\n defaultComboBoxModel2.addElement(\"EMAIL\");\n defaultComboBoxModel2.addElement(\"EVENT\");\n defaultComboBoxModel2.addElement(\"MOBILE\");\n defaultComboBoxModel2.addElement(\"SOCIAL\");\n defaultComboBoxModel2.addElement(\"VIDEO\");\n defaultComboBoxModel2.addElement(\"VOICE\");\n defaultComboBoxModel2.addElement(\"WEB\");\n comboMediaType.setModel(defaultComboBoxModel2);\n panel1.add(comboMediaType, new GridConstraints(9, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n comboState = new JComboBox();\n final DefaultComboBoxModel defaultComboBoxModel3 = new DefaultComboBoxModel();\n defaultComboBoxModel3.addElement(\"select\");\n defaultComboBoxModel3.addElement(\"ACTIVE\");\n defaultComboBoxModel3.addElement(\"CLOSED\");\n comboState.setModel(defaultComboBoxModel3);\n panel1.add(comboState, new GridConstraints(8, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label12 = new JLabel();\n label12.setText(\"Pod ID\");\n panel1.add(label12, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n textFieldId = new JTextField();\n panel1.add(textFieldId, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n final JPanel panel4 = new JPanel();\n panel4.setLayout(new GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1));\n contentPane.add(panel4, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, 1, null, null, null, 0, false));\n final Spacer spacer3 = new Spacer();\n panel4.add(spacer3, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final JPanel panel5 = new JPanel();\n panel5.setLayout(new GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1, true, false));\n panel4.add(panel5, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n buttonSave = new JButton();\n buttonSave.setText(\"Save\");\n panel5.add(buttonSave, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 1, false));\n buttonClose = new JButton();\n buttonClose.setText(\"Close\");\n panel5.add(buttonClose, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 1, false));\n final JPanel panel6 = new JPanel();\n panel6.setLayout(new GridLayoutManager(2, 1, new Insets(0, 0, 0, 0), -1, -1));\n contentPane.add(panel6, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, new Dimension(300, -1), null, 0, false));\n panel6.add(panelDataElements, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 1, false));\n final Spacer spacer4 = new Spacer();\n panel6.add(spacer4, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n }", "public void setupUI() {\r\n\t\t\r\n\t\tvPanel = new VerticalPanel();\r\n\t\thPanel = new HorizontalPanel();\r\n\t\t\r\n\t\titemName = new Label();\r\n\t\titemName.addStyleName(Styles.page_title);\r\n\t\titemDesc = new Label();\r\n\t\titemDesc.addStyleName(Styles.quest_desc);\r\n\t\titemType = new Label();\r\n\t\titemType.addStyleName(Styles.quest_lvl);\r\n\t\t\r\n\t\tVerticalPanel img = new VerticalPanel();\r\n\t\timg.add(new Image(imgDir));\r\n\t\t\r\n\t\tvPanel.add(itemName);\r\n\t\tvPanel.add(itemDesc);\r\n\t\tvPanel.add(img);\r\n\t\tvPanel.add(hPanel);\r\n\t\t\r\n\t\tVerticalPanel mainPanel = new VerticalPanel();\r\n\t\tmainPanel.setWidth(\"100%\");\r\n\t\tvPanel.addStyleName(NAME);\r\n\t\t\r\n\t\tmainPanel.add(vPanel);\r\n \tinitWidget(mainPanel);\r\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n splitPane = new javax.swing.JSplitPane();\n outlineViewPanel = new org.sleuthkit.autopsy.communications.relationships.OutlineViewPanel();\n messageContentViewer = new MessageDataContent();\n\n setLayout(new java.awt.BorderLayout());\n\n splitPane.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT);\n splitPane.setLeftComponent(outlineViewPanel);\n splitPane.setRightComponent(messageContentViewer);\n\n add(splitPane, java.awt.BorderLayout.CENTER);\n }", "void fillInnerParts() {\n // TODO: change the method to get each category panel\n adminPanel = new CategoryPanel(logic.getUiTaskList().getAdminList(), \"Admin\");\n categoryPanelPlaceholder.getChildren().add(adminPanel.getRoot());\n topicPanel = new CategoryPanel(logic.getUiTaskList().getTopicList(), \"Topic\");\n categoryPanelPlaceholder.getChildren().add(topicPanel.getRoot());\n ipPanel = new CategoryPanel(logic.getUiTaskList().getIpList(), \"Ip\");\n categoryPanelPlaceholder.getChildren().add(ipPanel.getRoot());\n tpPanel = new CategoryPanel(logic.getUiTaskList().getTpList(), \"Tp\");\n categoryPanelPlaceholder.getChildren().add(tpPanel.getRoot());\n refreshTitle();\n\n int currentWeekNumber = AppUtil.getCurrentWeekNumber().getWeekValueInt();\n Double num = (double) currentWeekNumber / (double) 13;\n progressBar.setProgress(num);\n\n weekDisplay = new WeekDisplay(currentWeekNumber);\n\n weekDisplayPlaceholder.getChildren().add(weekDisplay.getRoot());\n\n feedbackBox = new FeedbackBox();\n feedbackBoxPlaceholder.getChildren().add(feedbackBox.getRoot());\n CommandBox commandBox = new CommandBox(this::executeCommand); // bottom of Ace CS2103/T\n commandBoxPlaceholder.getChildren().add(commandBox.getRoot());\n }", "private void $$$setupUI$$$() {\n createUIComponents();\n panel = new JPanel();\n panel.setLayout(new GridLayoutManager(2, 1, new Insets(10, 10, 10, 10), -1, -1));\n final JScrollPane scrollPane1 = new JScrollPane();\n panel.add(scrollPane1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n scrollPane1.setViewportView(table);\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(1, 3, new Insets(0, 0, 0, 0), -1, -1));\n panel.add(panel1, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n buttonRegister = new JButton();\n buttonRegister.setText(\"Track\");\n panel1.add(buttonRegister, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n buttonMenu = new JButton();\n buttonMenu.setText(\"Menu\");\n panel1.add(buttonMenu, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final Spacer spacer1 = new Spacer();\n panel1.add(spacer1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n }", "private void buildPanel()\n {\n setLayout(new BorderLayout());\n JLabel instr = new JLabel(TOP_HELP);\n instr.setToolTipText(POPUP_HELP);\n add(instr, BorderLayout.NORTH);\n\n final JSplitPane splitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT);\n splitPane.setContinuousLayout(true);\n splitPane.setResizeWeight(.9);\n splitPane.setOneTouchExpandable(true);\n\n mMazeView.setMinimumSize(new Dimension(400, 200));\n splitPane.setLeftComponent(mMazeView);\n mMazeView.setModel(null);\n\n this.mOpenMazes = new MazeList(this.mMazeView);\n this.mOpenMazes.setMinimumSize(new Dimension(160, 0));\n JPanel rightPanel = new JPanel();\n rightPanel.setLayout(new BorderLayout());\n rightPanel.add(this.mOpenMazes, BorderLayout.CENTER);\n\n final JPanel rightPanelButtons = new JPanel(new BorderLayout());\n rightPanelButtons.add(makeNewMazeButton(), BorderLayout.NORTH);\n rightPanelButtons.add(makeRandomMazeButton(), BorderLayout.SOUTH);\n\n rightPanel.add(rightPanelButtons, BorderLayout.SOUTH);\n splitPane.setRightComponent(rightPanel);\n\n add(splitPane, BorderLayout.CENTER);\n splitPane.setDividerLocation(.8);\n\n addComponentListener(new ComponentAdapter()\n {\n boolean notShown = true;\n\n @Override\n public void componentShown(ComponentEvent e)\n {\n if (notShown)\n {\n splitPane.setDividerLocation(.8);\n notShown = false;\n }\n }\n });\n\n JToolBar tBar = new JToolBar();\n tBar.setOrientation(JToolBar.VERTICAL);\n tBar.setFloatable(false);\n ButtonGroup bg = new ButtonGroup();\n\n ImageIcon scaled = new ImageIcon(mPointIcon.getImage().getScaledInstance(40, 40, 0));\n JToggleButton tb = new JToggleButton(scaled);\n tb.setToolTipText(\"No Template\");\n tb.addActionListener(new TemplateActionListener(null));\n bg.add(tb);\n bg.setSelected(tb.getModel(), true);\n tBar.add(tb);\n\n for (MazeTemplate mt : mTemplates)\n {\n Image iconImage = mt.getTemplateIcon().getImage();\n scaled = new ImageIcon(iconImage.getScaledInstance(40, 40, 0));\n tb = new JToggleButton(scaled);\n tb.addActionListener(new TemplateActionListener(mt));\n tb.setToolTipText(mt.getTemplateDescription());\n bg.add(tb);\n tBar.add(tb);\n }\n\n add(tBar, BorderLayout.WEST);\n\n //Add an action for the 'r' key to change the template to the next orientation.\n this.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).put(KeyStroke.getKeyStroke('r'),\n NEXT_ORIENTATION_ACTION_KEY);\n this.getActionMap().put(NEXT_ORIENTATION_ACTION_KEY, new AbstractAction()\n {\n @Override\n public void actionPerformed(ActionEvent e)\n {\n if (mCurrentTemplate != null)\n {\n mCurrentTemplate.nextOrientation();\n mMazeView.repaint();\n }\n }\n });\n\n mMouseAdapter = new TemplateMouseAdapter();\n\n mMazeView.addMouseListener(mMouseAdapter);\n mMazeView.addMouseMotionListener(mMouseAdapter);\n mMazeView.addMouseWheelListener(mMouseAdapter);\n }", "public void setPanels() {\n\t\tframe.setPreferredSize(new Dimension(3000, 2000));\n\n\t\tcontainer.setBackground(lightGray);\n\t\tcontainer.setPreferredSize(new Dimension(2300, 120));\n\t\tcontainer.setBorder(BorderFactory.createLineBorder(black));\n\n\t\tagePanel.setBackground(lightGray);\n\t\tagePanel.setPreferredSize(new Dimension(2400, 120));\n\t\tagePanel.setBorder(BorderFactory.createLineBorder(black));\n\n\t\theightPanel.setBackground(lightGray);\n\t\theightPanel.setPreferredSize(new Dimension(1200, 120));\n\t\theightPanel.setBorder(BorderFactory.createLineBorder(black));\n\n\t\tweightPanel.setBackground(lightGray);\n\t\tweightPanel.setPreferredSize(new Dimension(850, 120));\n\t\tweightPanel.setBorder(BorderFactory.createLineBorder(black));\n\n\t\thairPanel.setBackground(lightGray);\n\t\thairPanel.setPreferredSize(new Dimension(900, 120));\n\t\thairPanel.setBorder(BorderFactory.createLineBorder(black));\n\n\t\teyePanel.setBackground(lightGray);\n\t\teyePanel.setPreferredSize(new Dimension(900, 120));\n\t\teyePanel.setBorder(BorderFactory.createLineBorder(black));\n\n\t\tabilitySelectionPanel.setBackground(lightGray);\n\t\tabilitySelectionPanel.setPreferredSize(new Dimension(2400, 120));\n\t\tabilitySelectionPanel.setBorder(BorderFactory.createLineBorder(black));\n\n\t\tphysicalAbilityPanel.setBackground(lightGray);\n\t\tphysicalAbilityPanel.setPreferredSize(new Dimension(2400, 400));\n\t\tphysicalAbilityPanel.setBorder(BorderFactory.createLineBorder(black));\n\n\t\tmentalAbilityPanel.setBackground(lightGray);\n\t\tmentalAbilityPanel.setPreferredSize(new Dimension(2400, 400));\n\t\tmentalAbilityPanel.setBorder(BorderFactory.createLineBorder(black));\n\t}", "private void $$$setupUI$$$() {\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n }", "private void createTabs(){\n canvasPanel = new JPanel();\n canvasPanel.setLayout(new BorderLayout());\n canvasPanel.add(mCanvas, BorderLayout.CENTER);\n canvasPanel.setMinimumSize(new Dimension(100,50));\n \n // Create the options and properties panel\n optionPanel = new JPanel();\n optionPanel.setLayout(new FlowLayout());\n\n // Set the size\n optionPanel.setMinimumSize(new Dimension(30,30));\t\n optionPanel.setPreferredSize(new Dimension(200,10));\n\n // Create the log area\n mLogArea = new JTextArea(5,20);\n mLogArea.setMargin(new Insets(5,5,5,5));\n mLogArea.setEditable(false);\n JScrollPane logScrollPane = new JScrollPane(mLogArea);\n \n // Das SplitPanel wird in optionPanel (links) und canvasPanel (rechts) unterteilt\n JSplitPane split = new JSplitPane();\n split.setOrientation(JSplitPane.HORIZONTAL_SPLIT);\n split.setLeftComponent(canvasPanel);\n split.setRightComponent(optionPanel);\n \n JSplitPane splitLog = new JSplitPane();\n splitLog.setOrientation(JSplitPane.VERTICAL_SPLIT);\n splitLog.setBottomComponent(logScrollPane);\n splitLog.setTopComponent(split);\n splitLog.setResizeWeight(1);\n \n mMainFrame.add(splitLog, BorderLayout.CENTER); \n }", "private void initialize() {\n this.setSize(394, 201);\n\n this.addTab(\"看病人基本資料\", null, getSeePatientFoundamentalDataPanel(), null);\n this.addTab(\"看病歷\", null, getSeeCaseHistoryPanel(), null);\n this.addTab(\"查藥品庫存\", null, getSeeMedicinesPanel(), null);\n this.addTab(\"看檢查報告\", null, getSeeInspectionReportPanel(), null);\n this.addTab(\"看掛號病人\", null, getSeeRegisteredPatientFoundamentalDataPanel(), null);\n this.addTab(\"開藥單\", null, getWritePrescriptionPanel(), null);\n this.addTab(\"寫病歷\", null, getWriteCaseHistoryPanel(), null);\n this.addTab(\"決定病人住院\", null, getDecideHospitalizePanel(), null);\n this.addTab(\"急診\", null, getEmergencyTreatmentPanel(), null);\n }", "private void createConent() {\n\t\tdockPanel = new DockLayoutPanel(Unit.PX);\n\t\tribbonBarPanel = new RibbonBarContainer();\n\t\tbattleMatCanvasPanel = new SimpleLayoutPanel();\n\t\tmainPanel = new LayoutPanel();\n\t\tmainPanel.setSize(\"100%\", \"100%\");\n\t\tbattleMatCanvas = new BattleMatCanvas();\n\t\tbattleMatCanvasPanel.clear();\n\t\tbattleMatCanvasPanel.add(battleMatCanvas);\n\t\teast.setSize(\"100%\", \"100%\");\n\t\teast.add(assetManagementPanel);\n\t\tsplitPanel = new SplitLayoutPanel() {\n\t\t\t@Override\n\t\t\tpublic void onResize() {\n\t\t\t\tsuper.onResize();\n\t\t\t\tbattleMatCanvas.onResize();\n\t\t\t};\n\t\t};\n\t\tmainPanel.add(splitPanel);\n\t\tdockPanel.clear();\n\t\tdockPanel.addNorth(ribbonBarPanel, Constants.RIBBON_BAR_SIZE);\n\t\tdockPanel.add(mainPanel);\n\t\t// MUST CALL THIS METHOD to set the constraints; if you don't not much\n\t\t// will be displayed!\n\t\tdockPanel.forceLayout();\n\n\t\tWindow.addResizeHandler(new ResizeHandler() {\n\t\t\tpublic void onResize(final ResizeEvent event) {\n\t\t\t\tdoWindowResize(event);\n\t\t\t}\n\t\t});\n\t}", "private void initialize() {\r\n\t\tGridBagConstraints gridBagConstraints1 = new GridBagConstraints();\r\n\t\tgridBagConstraints1.gridx = 0;\r\n\t\tgridBagConstraints1.gridy = 1;\r\n\t\tlaunchSubLabel = new JLabel();\r\n\t\tlaunchSubLabel.setText(Message.getMessage(\"reportmaker.process.sublabel\"));\r\n\t\tGridBagConstraints gridBagConstraints = new GridBagConstraints();\r\n\t\tgridBagConstraints.gridx = 0;\r\n\t\tgridBagConstraints.gridy = 0;\r\n\t\tthis.setSize(800, 400);\r\n\t\tthis.setLayout(new GridBagLayout());\r\n\t\tthis.setPreferredSize(new Dimension(800, 400));\r\n\t\tthis.setBackground(Color.white);\r\n\t\tthis.add(getLaunchButton(), gridBagConstraints);\r\n\r\n\t\tGridBagConstraints gridBagConstraints2 = new GridBagConstraints();\r\n\t\tgridBagConstraints2.insets = new Insets(50, 0, 0, 0);\r\n\t\tgridBagConstraints2.gridx = 0;\r\n\t\tgridBagConstraints2.gridy = 2;\r\n\t\tthis.add(getViewButton(), gridBagConstraints2);\r\n\t\tthis.add(launchSubLabel, gridBagConstraints1);\r\n\t}", "public void start(SplitPane splitpane, User user,String userJob) {\r\n\t\tthis.splitpane=splitpane;\r\n\t\tthis.user=user;\r\n\t\tthis.userrank=userJob;\r\n\t\tprimaryStage=LoginController.primaryStage;\r\n\t\ttry{\t\r\n\t\t\tloader = new FXMLLoader(getClass().getResource(\"/gui/MarketingManagerNewReports.fxml\"));\r\n\t\t\tlowerAnchorPane = loader.load();\r\n\t\t\tsplitpane.getItems().set(1, lowerAnchorPane);\r\n\t\t} catch(Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t}\t\t\r\n}", "private void initComponents() {\n tabbedPane = new javax.swing.JTabbedPane();\n statusLabel = new javax.swing.JLabel();\n\n statusLabel.setText(\" \");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(12, 12, 12)\n .addComponent(tabbedPane, javax.swing.GroupLayout.DEFAULT_SIZE, 376, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(statusLabel, javax.swing.GroupLayout.DEFAULT_SIZE, 376, Short.MAX_VALUE)))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(tabbedPane, javax.swing.GroupLayout.DEFAULT_SIZE, 267, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(statusLabel))\n );\n }", "private void initUI() {\r\n\t\t//Äußeres Panel\r\n\t\tContainer pane = getContentPane();\r\n\t\tGroupLayout gl = new GroupLayout(pane);\r\n\t\tpane.setLayout(gl);\r\n\t\t//Abstende von den Containern und dem äußeren Rand\r\n\t\tgl.setAutoCreateContainerGaps(true);\r\n\t\tgl.setAutoCreateGaps(true);\r\n\t\t//TextFeld für die Ausgabe\r\n\t\tJTextField output = view.getTextField();\r\n\t\t//Die jeweiligen Panels für die jeweiigen Buttons\r\n\t\tJPanel brackets = view.getBracketPanel();\r\n\t\tJPanel remove = view.getTop2Panel();\r\n\t\tJPanel numbers = view.getNumbersPanel();\r\n\t\tJPanel last = view.getBottomPanel();\r\n\t\t//Anordnung der jeweiligen Panels durch den Layout Manager\r\n\t\tgl.setHorizontalGroup(gl.createParallelGroup().addComponent(output).addComponent(brackets).addComponent(remove).addComponent(numbers).addComponent(last));\r\n\t\tgl.setVerticalGroup(gl.createSequentialGroup().addComponent(output).addComponent(brackets).addComponent(remove).addComponent(numbers).addComponent(last));\r\n\t\tpack();\r\n\t\tsetTitle(\"Basic - Taschenrechner\");\r\n\t\tsetDefaultCloseOperation(EXIT_ON_CLOSE);\r\n\t\tsetResizable(false);\r\n\t}", "public static void initialisePanel(){\n\t\t\n\t\tBrewPanel = new JPanel();\n\t\tBrewPanel.setLayout(new MigLayout(\"\", \"[grow][65px:n:65px]\", \"[20px:n:20px][25px:n:25px][grow]\"));\n\t\t\n\t\t\n\t\t//Header\n\t\tBrewHeader = new JLabel(\"Brew\");\n\t\tBrewHeader.setFont(new Font(\"Tahoma\", Font.BOLD, 18));\n\t\tBrewPanel.add(BrewHeader, \"cell 0 0,grow\");\n\t\t\n\t\t\n\t\t//Subtitle\n\t\tBrewSubtitle = new JLabel(\"Browse and edit the brew database.\");\n\t\tBrewSubtitle.setFont(new Font(\"Tahoma\", Font.ITALIC, 13));\n\t\tBrewPanel.add(BrewSubtitle, \"cell 0 1,growx,aligny top\");\n\t\t\n\t\tbtnPrintBrew = new JButton();\n\t\tbtnPrintBrew.setIcon(new ImageIcon(BrewPanel.class.getResource(\"/images/print.png\")));\n\t\tbtnPrintBrew.setToolTipText(\"Save currently selected brew data to printable .pdf\");\n\t\tBrewPanel.setVisible(true);\n \tbtnPrintBrew.setVisible(false);\n\t\tbtnPrintBrew.setEnabled(false);\n\t\tBrewPanel.add(btnPrintBrew, \"cell 1 0\");\n\t\t\n\t\t//Tabbed Pane\n\t\ttabbedBrewPane = new JTabbedPane(JTabbedPane.TOP);\n\t\tBrewPanel.add(tabbedBrewPane, \"cell 0 2 2,grow\");\n\t\t\t\t\n\t\t\n\t\t//Brew Search Tab\n\t\tBrewSearchPanel.initialisePanel();\t\t\n\t\ttabbedBrewPane.addTab(\"Search\", null, BrewSearchPanel.tabbedBrewSearchPanel, null);\n\t\t\n\t\t\n\t\t//Brew Data Tab\n\t\tBrewDataPanel.initialisePanel();\t\t\n\t\ttabbedBrewPane.addTab(\"Brew Data\", null, BrewDataPanel.tabbedBrewDataPanel, null);\n\t\t\n\t\t\n\t\t//Brew Notes Tab\n\t\tBrewNotesPanel.initialisePanel();\n\t\ttabbedBrewPane.addTab(\"Brew Notes\", null, BrewNotesPanel.tabbedBrewNotesPanel, null);\n\t\t\n\t\t\n\t\t//Brew Pictures Tab\n\t\tBrewPicturesPanel.initialisePanel();\n\t\ttabbedBrewPane.addTab(\"Brew Pictures\", null, BrewPicturesPanel.tabbedBrewPicturesPanel, null);\n\t\t\n\t\t\n\t\t//Brew Pictures Tab\n\t\tBrewCostPanel.initialisePanel();\n\t\ttabbedBrewPane.addTab(\"Brew Costs\", null, BrewCostPanel.tabbedBrewCostPanel, null);\n\t\t\t\t\n\t\t\n\t\t//Add New Brew Tab\n\t\tBrewAddPanel.initialisePanel();\n\t\ttabbedBrewPane.addTab(\"Add New Brew\", new ImageIcon(BrewPanel.class.getResource(\"/images/new.png\")), BrewAddPanel.tabbedBrewAddPanel, null);\n\t\t\n\t\t\n\t\t//Set some tabs disabled initially\n\t\ttabbedBrewPane.setEnabledAt(1, false);\n\t\ttabbedBrewPane.setEnabledAt(2, false);\n\t\ttabbedBrewPane.setEnabledAt(3, false);\n\t\ttabbedBrewPane.setEnabledAt(4, false);\n\t\t\n\t \t\n\t\t//Add it all to the main window\n\t\tLegacyApp.WineBrewDBFrame.getContentPane().add(BrewPanel, \"cell 0 0,grow\");\n\t\tBrewPanel.setVisible(false);\n\n\t\t\n\t\tBrewPanelStatus = \"Initialised\";\n\t\t\n\t\t\n\t\t//Add print button listener\n\t\tbtnPrintBrew.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tJFileChooser c = new JFileChooser();\n\t\t\t int rVal = c.showSaveDialog(LegacyApp.WineBrewDBFrame);\n\t\t\t if (rVal == JFileChooser.APPROVE_OPTION) {\t\t\t \t \t \n\t\t\t\t\tString pdflocation = c.getCurrentDirectory().toString() + LegacyApp.OSSlash + c.getSelectedFile().getName() + \".pdf\";\n\t\t\t\t\tBrewPDF.createPDF(pdflocation);\t \t \n\t\t\t \t \n\t\t\t }\n\t\t\t if (rVal == JFileChooser.CANCEL_OPTION) {\n\t\t\t \t \n\t\t\t }\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\ttabbedBrewPane.addChangeListener(new ChangeListener() {\n\t\t // This method is called whenever the selected tab changes\n\t\t public void stateChanged(ChangeEvent evt) {\n\t\t JTabbedPane pane = (JTabbedPane)evt.getSource();\n\n\t\t // Get current tab\n\t\t int sel = pane.getSelectedIndex();\n\t\t if(sel == 0 || sel == 5){\n\t\t \tbtnPrintBrew.setVisible(false);\n\t\t \t\tbtnPrintBrew.setEnabled(false);\n\t\t }else{\n\t\t \tbtnPrintBrew.setVisible(true);\n\t\t \t\tbtnPrintBrew.setEnabled(true);\n\t\t }\n\t\t }\n\t\t});\n\t}", "public MainFrame(){\n\t\ttry {\n\t\t\tUIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\n\t\t} catch (ClassNotFoundException | IllegalAccessException | UnsupportedLookAndFeelException | InstantiationException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tnbRules = 1;\n \tnbTabs = 0;\n \tbasePanel = new JPanel();\n \tbasePanel.setLayout(new FlowLayout(FlowLayout.CENTER));\n \ttabs = new JTabbedPane(SwingConstants.TOP);\n\n \tJToolBar toolBar = new JToolBar();\n newGen = new JButton(\"Nouvelle génération\");\n newGen.addActionListener(new Listener(\"Tab\",this));\n toolBar.add(newGen);\n example = new JButton(\"Exemples\");\n example.addActionListener(new Listener(\"Example\", this));\n toolBar.add(example);\n help = new JButton(\"Aide\");\n help.addActionListener(new Listener(\"Help\",this));\n toolBar.add(help);\n\n this.setTitle(\"L-system interface\");\n this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tDimension windowDimension = new Dimension(Constants.INITIAL_WIDTH, Constants.INITIAL_HEIGHT);\n this.setSize(windowDimension);\n this.setLocationRelativeTo(null);\n this.add(tabs);\n this.add(toolBar, BorderLayout.NORTH);\n this.setPreferredSize(windowDimension);\n newComponent((byte)1);\n\t\trenameTabs();\n\t\tthis.setResizable(false);\n }", "public void initialize() {\n\t\tLocale.setDefault(new Locale(\"vi\", \"VN\"));\n\t\tframe = new JFrame();\n\t\tframe.setIconImage(Toolkit.getDefaultToolkit().getImage(\"C:\\\\Users\\\\Phuoc Dang\\\\git\\\\pala-finance\\\\src\\\\main\\\\resources\\\\piggy-bank-icon.png\"));\n\t\tframe.setBounds(100, 100, 723, 502);\n\t\t\n\t\tJTabbedPane tabbedPane = new JTabbedPane(JTabbedPane.TOP);\n\t\tframe.getContentPane().add(tabbedPane, BorderLayout.CENTER);\n\t\t\n\t\tJPanel pnlAdmin = new JPanel();\n\t\ttabbedPane.addTab(ResourceBundle.getBundle(\"pala.finance.messages\").getString(\"MainApp.tabAdministration\"), null, pnlAdmin, null);\n\t\tpnlAdmin.setLayout(new BorderLayout(0, 0));\n\t\t\n\t\ttblItem = new JTable();\n\t\ttblItem.setOpaque(false);\n\t\tJScrollPane scrollPane = new JScrollPane(tblItem);\n\t\tscrollPane.setBackground(new Color(255, 0, 0));\n\n\t\t// Add the scroll pane to this panel.\n\t\tpnlAdmin.add(scrollPane, BorderLayout.CENTER);\n\t\t\n\t\tJPanel pnlButtons = new JPanel();\n\t\tpnlButtons.setBackground(new Color(255, 240, 245));\n\t\tFlowLayout fl_pnlButtons = (FlowLayout) pnlButtons.getLayout();\n\t\tfl_pnlButtons.setAlignment(FlowLayout.LEFT);\n\t\tpnlAdmin.add(pnlButtons, BorderLayout.NORTH);\n\t\tJButton btnAdd = new JButton(ResourceBundle.getBundle(\"pala.finance.messages\").getString(\"MainApp.btnAdd.text\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tpnlButtons.add(btnAdd);\n\t\tbtnAdd.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tItemDialog dialog = new ItemDialog(frame);\n\t\t\t\tdialog.setVisible(true);\n\t\t\t\tif(dialog.isOk()) {\n\t\t\t\t\titemRepo.addItem(dialog.getName(), dialog.getDescription());\n\t\t\t\t\tItem item = itemRepo.findItemNamed(dialog.getName());\n\t\t\t\t\tif(item != null) {\n\t\t\t\t\t\tloadItemTable();\n\t\t\t\t\t\tUIUtil.initializeInputComboBox(cbxItemByItem, true);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tJButton btnEdit = new JButton(ResourceBundle.getBundle(\"pala.finance.messages\").getString(\"MainApp.btnEdit.text\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tpnlButtons.add(btnEdit);\n\t\tbtnEdit.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tlong selectedID = TableUtil.getSelectedID(tblItem);\n\t\t\t\tif(selectedID != -1) {\n\t\t\t\t\tItem item = itemRepo.findByID(selectedID);\n\t\t\t\t\tItemDialog dialog = new ItemDialog(frame, item);\n\t\t\t\t\tdialog.setVisible(true);\n\t\t\t\t\tif(dialog.isOk()) {\n\t\t\t\t\t\titem.setName(dialog.getName());\n\t\t\t\t\t\titem.setDescription(dialog.getDescription());\n\t\t\t\t\t\titemRepo.saveItem(item);\n\t\t\t\t\t\tloadItemTable();\n\t\t\t\t\t\tUIUtil.initializeInputComboBox(cbxItemByItem, true);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tJOptionPane.showMessageDialog(frame, \"Please selected an item to edit\");\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tJButton btnDelete = new JButton(ResourceBundle.getBundle(\"pala.finance.messages\").getString(\"MainApp.btnDelete.text\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tpnlButtons.add(btnDelete);\n\t\tbtnDelete.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tlong selectedID = TableUtil.getSelectedID(tblItem);\n\t\t\t\titemRepo.deleteItem(selectedID);\n\t\t\t\tloadItemTable();\n\t\t\t}\n\t\t});\n\t\t\n\t\tJPanel pnlInput = new JPanel();\n\t\ttabbedPane.addTab(\"Input\", null, pnlInput, null);\n\t\tpnlInput.setLayout(new BorderLayout(0, 0));\n\t\t\n\t\tJScrollPane scrollBarInput = new JScrollPane((Component) null);\n\t\tpnlInput.add(scrollBarInput, BorderLayout.CENTER);\n\t\t\n\t\ttblInput = new JTable();\n\t\tscrollBarInput.setViewportView(tblInput);\n\t\t\n\t\tJPanel pnlInputButtons = new JPanel();\n\t\tpnlInputButtons.setBackground(new Color(224, 255, 255));\n\t\tFlowLayout flowLayout = (FlowLayout) pnlInputButtons.getLayout();\n\t\tflowLayout.setAlignment(FlowLayout.LEFT);\n\t\tpnlInput.add(pnlInputButtons, BorderLayout.NORTH);\n\t\t\n\t\tJButton btnInputAdd = new JButton(ResourceBundle.getBundle(\"pala.finance.messages\").getString(\"MainApp.btnAdd.text\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tpnlInputButtons.add(btnInputAdd);\n\t\t\n\t\tJButton btnEditInputItem = new JButton(ResourceBundle.getBundle(\"pala.finance.messages\").getString(\"MainApp.btnEdit.text\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tpnlInputButtons.add(btnEditInputItem);\n\t\tbtnEditInputItem.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tlong selectedID = TableUtil.getSelectedID(tblInput);\n\t\t\t\tif(selectedID != -1) {\n\t\t\t\t\tInputItem item = inputItemRepo.findByID(selectedID);\n\t\t\t\t\tInputItemDialog dialog = new InputItemDialog(frame, item);\n\t\t\t\t\tdialog.setVisible(true);\n\t\t\t\t\tif(dialog.isOk()) {\n\t\t\t\t\t\t\n\t\t\t\t\t\titem = dialog.getInputItem();\n\t\t\t\t\t\tInputItem inputItem = inputItemRepo.saveInputItem(item);\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(inputItem != null) {\n\t\t\t\t\t\t\tloadInputItemTable();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tJButton btnInputDelete = new JButton(ResourceBundle.getBundle(\"pala.finance.messages\").getString(\"MainApp.btnDelete.text\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tpnlInputButtons.add(btnInputDelete);\n\t\tbtnInputDelete.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tlong selectedID = TableUtil.getSelectedID(tblInput);\n\t\t\t\tif(selectedID != -1) {\n\t\t\t\t\tinputItemRepo.deleteInputItem(selectedID);\n\t\t\t\t\tloadInputItemTable();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnInputAdd.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tInputItemDialog dialog = new InputItemDialog(frame, MainApp.this);\n\t\t\t\tdialog.setVisible(true);\n\t\t\t\tif(dialog.isOk()) {\n\t\t\t\t\t//currently, do nothing...\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\tJPanel pnlIncome = new JPanel();\n\t\ttabbedPane.addTab(\"Income\", null, pnlIncome, null);\n\t\tpnlIncome.setLayout(new BorderLayout(0, 0));\n\t\t\n\t\tincomeTable = new JTable();\n\t\tJScrollPane scrollPaneIncome = new JScrollPane(incomeTable);\n\t\tpnlIncome.add(scrollPaneIncome);\n\t\t\n\t\tJPanel pnlIncomeButtons = new JPanel();\n\t\tpnlIncomeButtons.setBackground(new Color(224, 255, 255));\n\t\tFlowLayout flowLayout_1 = (FlowLayout) pnlIncomeButtons.getLayout();\n\t\tflowLayout_1.setAlignment(FlowLayout.LEFT);\n\t\tpnlIncome.add(pnlIncomeButtons, BorderLayout.NORTH);\n\t\t\n\t\tdateFieldIncome = CalendarFactory.createDateField();\n\t\tdateFieldIncome.setPreferredSize(new Dimension(100, 18));\n\t\tpnlIncomeButtons.add(dateFieldIncome);\n\t\t\n\t\tcbxIncome = new JComboBox();\n\t\tpnlIncomeButtons.add(cbxIncome);\n\t\tcbxIncome.setModel(new DefaultComboBoxModel(IncomeType.values()));\n\t\t\n\t\ttxtIncomeCost = new JFormattedTextField(NumberFormat.getNumberInstance());\n\t\ttxtIncomeCost.setMinimumSize(new Dimension(100, 20));\n\t\ttxtIncomeCost.setPreferredSize(new Dimension(100, 20));\n\t\tpnlIncomeButtons.add(txtIncomeCost);\n\t\t\n\t\tJButton btnAddIncome = new JButton(ResourceBundle.getBundle(\"pala.finance.messages\").getString(\"MainApp.btnAdd.text\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tpnlIncomeButtons.add(btnAddIncome);\n\t\t\n\t\tJButton btnIncomeDelete = new JButton(ResourceBundle.getBundle(\"pala.finance.messages\").getString(\"MainApp.btnDelete.text\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tpnlIncomeButtons.add(btnIncomeDelete);\n\t\tbtnIncomeDelete.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tlong selectedID = TableUtil.getSelectedID(incomeTable);\n\t\t\t\tif(selectedID != -1) {\n\t\t\t\t\tincomeItemRepo.deleteIncomeItem(selectedID);\n\t\t\t\t\tloadIncomeTable();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnAddIncome.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tlong cost = ((Number)txtIncomeCost.getValue()).longValue();\n\t\t\t\tIncomeItem item = incomeItemRepo.addIncomeItem((IncomeType)cbxIncome.getSelectedItem(), cost, (Date)dateFieldIncome.getValue());\n\t\t\t\tif(item != null) {\n\t\t\t\t\tloadIncomeTable();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tJPanel pnlReport = new JPanel();\n\t\tpnlReport.setBackground(new Color(255, 0, 255));\n\t\ttabbedPane.addTab(ResourceBundle.getBundle(\"pala.finance.messages\").getString(\"MainApp.tabReportByDay\"), null, pnlReport, null);\n\t\tpnlReport.setLayout(new BorderLayout(0, 0));\n\t\t\n\t\tJScrollPane scrollBarReport = new JScrollPane();\n\t\tscrollBarReport.setBackground(new Color(135, 206, 250));\n\t\tpnlReport.add(scrollBarReport, BorderLayout.CENTER);\n\t\t\n\t\ttblReport = new JTable();\n\t\ttblReport.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tint row = tblReport.rowAtPoint(e.getPoint());\n\t\t\t\tint col = tblReport.columnAtPoint(e.getPoint());\n\t\t\t\tif(row >= 0 && col == 4) {\n\t\t\t\t\tString attachedFile = tblReport.getValueAt(row, col).toString();\n\t\t\t\t\tFile file = new File(\"attachment/\" + attachedFile);\n\t\t\t\t\tDesktop dt = Desktop.getDesktop();\n\t\t\t\t\ttry {\n\t\t\t\t\t\tdt.open(file);\n\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(attachedFile);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tscrollBarReport.setViewportView(tblReport);\n\t\t\n\t\tJPanel pnlReportButtons = new JPanel();\n\t\tpnlReportButtons.setBackground(new Color(224, 255, 255));\n\t\tFlowLayout flowLayout_2 = (FlowLayout) pnlReportButtons.getLayout();\n\t\tflowLayout_2.setAlignment(FlowLayout.LEFT);\n\t\tpnlReport.add(pnlReportButtons, BorderLayout.NORTH);\n\t\t\n\t\tdateFieldReport = CalendarFactory.createDateField();\n\t\tdateFieldReport.setPreferredSize(new Dimension(100, 18));\n\t\tpnlReportButtons.add(dateFieldReport);\n\t\t\n\t\tchxByDate = new JCheckBox(ResourceBundle.getBundle(\"pala.finance.messages\").getString(\"MainApp.chxByDate.text\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tchxByDate.setBackground(new Color(224, 255, 255));\n\t\tpnlReportButtons.add(chxByDate);\n\t\t\n\t\tJButton btnShow = new JButton(ResourceBundle.getBundle(\"pala.finance.messages\").getString(\"MainApp.btnShow.text\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tpnlReportButtons.add(btnShow);\n\t\t\n\t\tJPanel pnlReportSummary = new JPanel();\n\t\tpnlReport.add(pnlReportSummary, BorderLayout.SOUTH);\n\t\tpnlReportSummary.setLayout(new GridLayout(3, 2, 2, 5));\n\t\t\n\t\tJLabel lblTotal = new JLabel(ResourceBundle.getBundle(\"pala.finance.messages\").getString(\"MainApp.lblTotal.text\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tlblTotal.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\tpnlReportSummary.add(lblTotal);\n\t\t\n\t\ttxtTotalCost = new JTextField();\n\t\tpnlReportSummary.add(txtTotalCost);\n\t\ttxtTotalCost.setEditable(false);\n\t\ttxtTotalCost.setColumns(10);\n\t\t\n\t\tJLabel lblTotalIncome = new JLabel(ResourceBundle.getBundle(\"pala.finance.messages\").getString(\"MainApp.lblTotalIncome.text\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tlblTotalIncome.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\tpnlReportSummary.add(lblTotalIncome);\n\t\t\n\t\ttxtTotalIncome = new JTextField();\n\t\tpnlReportSummary.add(txtTotalIncome);\n\t\ttxtTotalIncome.setEditable(false);\n\t\ttxtTotalIncome.setColumns(10);\n\t\t\n\t\tJLabel lblRemaining = new JLabel(ResourceBundle.getBundle(\"pala.finance.messages\").getString(\"MainApp.lblRemaining.text\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tlblRemaining.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\tpnlReportSummary.add(lblRemaining);\n\t\t\n\t\ttxtRemaining = new JTextField();\n\t\tpnlReportSummary.add(txtRemaining);\n\t\ttxtRemaining.setEditable(false);\n\t\ttxtRemaining.setColumns(10);\n\t\tbtnShow.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tDate selectedDate = (Date)dateFieldReport.getValue();\n\t\t\t\ttry {\n\t\t\t\t\tDateTime dt = new DateTime(selectedDate);\n\t\t\t\t\tLocalDate fromDate = dt.toLocalDate();\n\t\t\t\t\tLocalDate toDate = dt.toLocalDate();\n\t\t\t\t\t\n\t\t\t\t\tif(!chxByDate.isSelected()) {\n\t\t\t\t\t\tDate firstDateOfMonth = DateUtil.getFirstDay(selectedDate);\n\t\t\t\t\t\tDate lastDateOfMonth = DateUtil.getLastDay(selectedDate);\n\t\t\t\t\t\tdt = new DateTime(firstDateOfMonth);\n\t\t\t\t\t\tfromDate = dt.toLocalDate();\n\t\t\t\t\t\tdt = new DateTime(lastDateOfMonth);\n\t\t\t\t\t\ttoDate = dt.toLocalDate();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tloadReportTable(fromDate, toDate);\n\t\t\t\t\t\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tJOptionPane.showMessageDialog(frame, e.getMessage());\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\tJPanel pnlReportByMonth = new JPanel();\n\t\ttabbedPane.addTab(\"Report By Month\", null, pnlReportByMonth, null);\n\t\tpnlReportByMonth.setLayout(new BorderLayout(0, 0));\n\t\t\n\t\ttblReportByMonth = new JTable();\n\t\tJScrollPane scrPnlReportByMonth = new JScrollPane(tblReportByMonth);\n\t\tpnlReportByMonth.add(scrPnlReportByMonth);\n\t\t\n\t\tJPanel pnlReportByMonthButtons = new JPanel();\n\t\tpnlReportByMonthButtons.setBackground(new Color(224, 255, 255));\n\t\tFlowLayout flowLayout_3 = (FlowLayout) pnlReportByMonthButtons.getLayout();\n\t\tflowLayout_3.setAlignment(FlowLayout.LEFT);\n\t\tpnlReportByMonth.add(pnlReportByMonthButtons, BorderLayout.NORTH);\n\t\t\n\t\tJLabel lblMonth = new JLabel(ResourceBundle.getBundle(\"pala.finance.messages\").getString(\"MainApp.lblMonth.text\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tpnlReportByMonthButtons.add(lblMonth);\n\t\t\n\t\tfinal JComboBox cbxMonth = new JComboBox();\n\t\tpnlReportByMonthButtons.add(cbxMonth);\n\t\tcbxMonth.setMaximumRowCount(12);\n\t\tcbxMonth.setModel(new DefaultComboBoxModel(Month.values()));\n\t\t\n\t\tJLabel lblYear = new JLabel(ResourceBundle.getBundle(\"pala.finance.messages\").getString(\"MainApp.lblYear.text\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tpnlReportByMonthButtons.add(lblYear);\n\t\t\n\t\tfinal JComboBox cbxYear = new JComboBox();\n\t\tpnlReportByMonthButtons.add(cbxYear);\n\t\tcbxYear.setModel(new DefaultComboBoxModel(new String[] {\"2012\", \"2013\", \"2014\", \"2015\", \"2016\", \"2017\", \"2018\", \"2019\", \"2020\"}));\n\t\t\n\t\tJButton btnReportByMonth = new JButton(ResourceBundle.getBundle(\"pala.finance.messages\").getString(\"MainApp.btnShow.text\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tpnlReportByMonthButtons.add(btnReportByMonth);\n\t\t\n\t\tJPanel rptReportByItem = new JPanel();\n\t\ttabbedPane.addTab(\"Report By Item\", null, rptReportByItem, null);\n\t\trptReportByItem.setLayout(new BorderLayout(0, 0));\n\t\t\n\t\tJPanel panel = new JPanel();\n\t\tFlowLayout flowLayout_4 = (FlowLayout) panel.getLayout();\n\t\tflowLayout_4.setAlignment(FlowLayout.LEFT);\n\t\tpanel.setBackground(new Color(224, 255, 255));\n\t\trptReportByItem.add(panel, BorderLayout.NORTH);\n\t\t\n\t\tJLabel label = new JLabel(ResourceBundle.getBundle(\"pala.finance.messages\").getString(\"MainApp.lblMonth.text\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tpanel.add(label);\n\t\t\n\t\tcbxMonthByItem = new JComboBox();\n\t\tcbxMonthByItem.setModel(new DefaultComboBoxModel(Month.values()));\n\t\tcbxMonthByItem.setMaximumRowCount(12);\n\t\tpanel.add(cbxMonthByItem);\n\t\t\n\t\tJLabel label_1 = new JLabel(ResourceBundle.getBundle(\"pala.finance.messages\").getString(\"MainApp.lblYear.text\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tpanel.add(label_1);\n\t\t\n\t\tcbxYearByItem = new JComboBox();\n\t\tcbxYearByItem.setModel(new DefaultComboBoxModel(new String[] {\"2012\", \"2013\", \"2014\", \"2015\", \"2016\", \"2017\", \"2018\", \"2019\", \"2020\"}));\n\t\tpanel.add(cbxYearByItem);\n\t\t\n\t\tJLabel lblItem = new JLabel(ResourceBundle.getBundle(\"pala.finance.messages\").getString(\"MainApp.lblItem.text\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tpanel.add(lblItem);\n\t\t\n\t\tcbxItemByItem = new JComboBox();\n\t\tcbxItemByItem.setModel(new DefaultComboBoxModel(new String[] {\"All\"}));\n\t\tpanel.add(cbxItemByItem);\n\t\t\n\t\tUIUtil.initializeInputComboBox(cbxItemByItem, true);\n\t\t\n\t\tJButton btnShowByItem = new JButton(ResourceBundle.getBundle(\"pala.finance.messages\").getString(\"MainApp.btnShow.text\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tbtnShowByItem.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tint year = Integer.parseInt(cbxYearByItem.getSelectedItem().toString());\n\t\t\t\tint month = ((Month)cbxMonthByItem.getSelectedItem()).getValue();\n\t\t\t\tDateTime selectedDate = new DateTime(year, month, 1, 0, 0, 0);\n\t\t\t\tDateTime fromDate = selectedDate.dayOfMonth().withMinimumValue();\n\t\t\t\tDateTime toDate = selectedDate.dayOfMonth().withMaximumValue();\n\t\t\t\ttoDate= toDate.plusDays(1);\n\t\t\t\tString sFromDate = String.valueOf(fromDate.getMillis());\n\t\t\t\tString sToDate = String.valueOf(toDate.getMillis());\n\t\t\t\tList<ReportByItemResult> results = inputRep.reportByItem(sFromDate, sToDate);\n\t\t\t\tloadReportByItemTable(results);\n\t\t\t\tdouble totalCost = 0;\n\t\t\t\tfor(ReportByItemResult item : results) {\n\t\t\t\t\ttotalCost += item.getCost();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tNumberFormat nf = NumberFormat.getNumberInstance();\n\t\t\t\ttxtTotalItemCost.setText(nf.format(totalCost));\n\t\t\t}\n\t\t});\n\t\tpanel.add(btnShowByItem);\n\t\t\n\t\tJScrollPane scrollPaneReportByItem = new JScrollPane();\n\t\trptReportByItem.add(scrollPaneReportByItem, BorderLayout.CENTER);\n\t\t\n\t\ttblReportByItem = new JTable();\n\t\tscrollPaneReportByItem.setViewportView(tblReportByItem);\n\t\t\n\t\tJPanel panel_1 = new JPanel();\n\t\trptReportByItem.add(panel_1, BorderLayout.SOUTH);\n\t\tpanel_1.setLayout(new GridLayout(1, 2, 5, 5));\n\t\t\n\t\tJLabel lblTotalItem = new JLabel(ResourceBundle.getBundle(\"pala.finance.messages\").getString(\"MainApp.lblTotal.text\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tlblTotalItem.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\tpanel_1.add(lblTotalItem);\n\t\t\n\t\ttxtTotalItemCost = new JTextField();\n\t\ttxtTotalItemCost.setEditable(false);\n\t\tpanel_1.add(txtTotalItemCost);\n\t\ttxtTotalItemCost.setColumns(10);\n\t\tbtnReportByMonth.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tint year = Integer.parseInt(cbxYear.getSelectedItem().toString());\n\t\t\t\tint month = ((Month)cbxMonth.getSelectedItem()).getValue();\n\t\t\t\tDateTime selectedDate = new DateTime(year, month, 1, 0, 0, 0);\n\t\t\t\tDateTime fromDate = selectedDate.dayOfMonth().withMinimumValue();\n\t\t\t\tDateTime toDate = selectedDate.dayOfMonth().withMaximumValue();\n\t\t\t\ttoDate= toDate.plusDays(1);\n\t\t\t\tString sFromDate = String.valueOf(fromDate.getMillis());\n\t\t\t\tString sToDate = String.valueOf(toDate.getMillis());\n\t\t\t\tList<ReportByMonthResult> results = inputRep.reportByMonth(sFromDate, sToDate);\n\t\t\t\tloadReportByMonthTable(results);\n\t\t\t}\n\t\t});\n\t\t\n\t\t//fetch all data\n\t\tloadAllData();\n\t}" ]
[ "0.73780185", "0.72181267", "0.70267993", "0.7024488", "0.68944865", "0.68267196", "0.6825124", "0.67861456", "0.67246217", "0.6721392", "0.671868", "0.6667367", "0.66375256", "0.6622511", "0.65946615", "0.6539102", "0.65093553", "0.65033823", "0.64687407", "0.64640844", "0.64583856", "0.64541876", "0.64421505", "0.63672954", "0.6345735", "0.63386285", "0.633207", "0.6331015", "0.63180953", "0.6292561", "0.62880343", "0.62736124", "0.62609965", "0.62505466", "0.6238147", "0.62270135", "0.62177956", "0.61920613", "0.6178354", "0.6159646", "0.61583143", "0.6143117", "0.6137525", "0.61313176", "0.6124299", "0.6123149", "0.6121399", "0.61180484", "0.6113822", "0.61127216", "0.6109044", "0.61067694", "0.61005783", "0.6091781", "0.6086184", "0.60828996", "0.6074878", "0.60718644", "0.6071133", "0.6068541", "0.6065782", "0.60447145", "0.603927", "0.6030994", "0.60240406", "0.6021791", "0.60197914", "0.6017499", "0.6015117", "0.6014767", "0.60144246", "0.6007745", "0.6003161", "0.59980696", "0.5997487", "0.5991463", "0.5991105", "0.59885186", "0.59856313", "0.59854597", "0.59833324", "0.5980569", "0.5977874", "0.59669214", "0.5960319", "0.595749", "0.5952754", "0.59476745", "0.5941471", "0.5941328", "0.5940833", "0.59359926", "0.593087", "0.59303325", "0.59179926", "0.59167147", "0.5912464", "0.5905991", "0.5902221", "0.5901994" ]
0.8465644
0
/ notification listener: handleNotification
public void handleNotification(final Notification notification, Object handback) { EventQueue.invokeLater(new Runnable() { public void run() { if (notification instanceof MBeanServerNotification) { ObjectName mbean = ((MBeanServerNotification) notification).getMBeanName(); if (notification.getType().equals(MBeanServerNotification.REGISTRATION_NOTIFICATION)) { tree.addMBeanToView(mbean); } else if (notification.getType().equals(MBeanServerNotification.UNREGISTRATION_NOTIFICATION)) { tree.removeMBeanFromView(mbean); } } } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void notificationReceived(Notification notification);", "@Override\n public void handleNotification(Notification ntfctn, Object o) {\n\n logger.debug(\"Received notification \" + ntfctn);\n\n discover();\n\n }", "public void handleNotification(Notification notification)\n {\n receiver.handleMessage(new Notification(extractMethodName(notification.getMethodName()), notification.getParams()).toJsonString());\n }", "@Override\n public void handleNotification(final Notification notification, final Object handback)\n {\n if (!(notification instanceof JobNotification)) return;\n JobNotification notif = (JobNotification) notification;\n if (traceEnabled) log.trace(\"driver \" + driverName + \" received notification: \" + notif);\n jobDataPanel.handleNotification(driverName, notif);\n }", "private void sendNotification() {\n }", "void onHisNotify();", "@Override\n public void notificationReceived(OSNotification notification) {\n Log.e(\"oneSignal\",\"new Notification\");\n\n }", "@Override\n public void onNotification(DOMNotification notification) {\n LOG.debug(\"Notification arrived...\");\n String nodeName = null;\n TopicId topicId = null;\n // get the nodeName (identifier of event source) from notification\n if (notification.getBody().getChild(EVENT_SOURCE_ARG).isPresent()) {\n nodeName = notification.getBody().getChild(EVENT_SOURCE_ARG).get().getValue().toString();\n }\n // get the TopicId from notification\n if (notification.getBody().getChild(TOPIC_ID_ARG).isPresent()) {\n ;\n topicId = (TopicId) notification.getBody().getChild(TOPIC_ID_ARG).get().getValue();\n }\n if (nodeName != null && topicId != null) {\n // if nodeName and TopicId are present and TopicId has been requested to process (TopicId is in registeredTopic)\n // then notification is parsed and written into the file.\n if (registeredTopic.contains(topicId.getValue())) {\n final String payLoadString = parsePayLoad(notification);\n if (payLoadString != null) {\n writeOutputLine(nodeName + \" : \" + payLoadString);\n LOG.debug(\"Notification write to FILE\");\n }\n }\n }\n }", "public interface NotificationListener {\n void onReceivedNotification(Notification notification);\n void onRemovedNotification(Notification notification);\n}", "@SuppressWarnings(\"unchecked\")//$NON-NLS-1$\n public void handleNotification(final Notification notification,\n Object handback) {\n notifications.add(0, notification);\n viewer.getControl().getDisplay().asyncExec(new Runnable() {\n public void run() {\n viewer.refresh();\n }\n });\n }", "private void handleNotification() {\r\n\r\n Intent intent = getIntent();\r\n\r\n if (intent == null)\r\n return;\r\n\r\n fromNotification = intent.getBooleanExtra(Constants.FROM_NOTIFICATION, false);\r\n\r\n if (isFromNotification())\r\n sendNotificationAnalytics(feedId);\r\n\r\n }", "public interface INotificationHandler {\n public void handleNotification(Notification notification);\n}", "private void showNotification() {\n\n }", "public synchronized void handleNotification(Notification notification,\n Object handback) {\n if (notification instanceof JMXConnectionNotification) {\n if (notification.getType().equals(JMXConnectionNotification.FAILED)) {\n Activator\n .getDefault()\n .info(\n \"Receive JMX notification JMXConnectionNotification.FAILED!\");\n } else if (notification.getType().equals(\n JMXConnectionNotification.CLOSED)) {\n Activator\n .getDefault()\n .info(\n \"Receive JMX notification JMXConnectionNotification.CLOSED!\");\n } else if (notification.getType().equals(\n JMXConnectionNotification.NOTIFS_LOST)) {\n Activator\n .getDefault()\n .info(\n \"Receive JMX notification JMXConnectionNotification.NOTIFS_LOST!\");\n } else if (notification.getType().equals(\n JMXConnectionNotification.OPENED)) {\n Activator\n .getDefault()\n .info(\n \"Receive JMX notification JMXConnectionNotification.OPENED!\");\n return;\n }\n if (connectionAlreadyClosed == false) {\n connectionAlreadyClosed = true;\n // provide the connection manager with notification\n getJMXConnectionManager().closeJMXConnection(\n connectionConfiguration);\n\n }\n }\n }", "@Counted(name = \"notifications\", description = \"How many notifications were fired\")\n public void handle(Notification notification) {\n if (captainHook.transmitters().containsKey(notification.destination().channel())) {\n logger.infov(\"Delivering notification for {0}\", notification.destination());\n plank.walk(notification);\n }\n }", "@Override\n public void doUpdate(NotificationMessage notification) {\n \n }", "private void showNotification() {\n }", "@Override\n public void onMessage(Context context, Intent intent) {\n \tNoteApplication app = (NoteApplication) getApplication();\n \tapp.notifyListener(intent);\n }", "@Override\n public void notify(Object event){\n }", "public interface INotificationListener extends INotifyObject{\r\n\t\r\n\tvoid OnNotificationEvent(int notification, INotifyObject notificationData);\r\n}", "@Override\n\tpublic void ActOnNotification(String message) {\n\t \tSystem.out.println(\"Sending Event\");\n\t}", "@Override\r\n\t\t\tpublic void notificationClicked(Notification paramNotification) {\n\r\n\t\t\t\tMobclickAgent.onEvent(getActivity(),\r\n\t\t\t\t\t\tUMengEventID.NOTIFICATION_LIST_CLICK);\r\n\t\t\t\t// 没有读过这条Notification\r\n\t\t\t\tif (paramNotification.readState == 0) {\r\n\t\t\t\t\tparamNotification.readState = 1;\r\n\r\n\t\t\t\t\t// 更新数据库\r\n\t\t\t\t\tDDBOpenHelper mDdbOpenHelper = DDBOpenHelper\r\n\t\t\t\t\t\t\t.getInstance(getActivity());\r\n\t\t\t\t\t//\r\n\t\t\t\t\tmDdbOpenHelper\r\n\t\t\t\t\t\t\t.updateReadState(paramNotification.activityId);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tswitch (paramNotification.type) {\r\n\t\t\t\tcase NotificationType.ANSWER:\r\n\t\t\t\t\t// ask someone's question be same with\r\n\t\t\t\t\t// other_answer_the_question_your_starrred\r\n\t\t\t\t\tNotificationFragment.this.bus\r\n\t\t\t\t\t\t\t.post(new AnswerNotificationSelected(\r\n\t\t\t\t\t\t\t\t\tparamNotification));\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase NotificationType.ASK:\r\n\t\t\t\t\t// the same interface with starred\r\n\t\t\t\t\tNotificationFragment.this.bus\r\n\t\t\t\t\t\t\t.post(new StarredNotificationSelected(\r\n\t\t\t\t\t\t\t\t\tparamNotification));\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase NotificationType.LIKED_ANSWER:\r\n\t\t\t\t\t// the same interface with starred\r\n\t\t\t\t\tNotificationFragment.this.bus\r\n\t\t\t\t\t\t\t.post(new AnswerNotificationSelected(\r\n\t\t\t\t\t\t\t\t\tparamNotification));\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase NotificationType.LIKED_QUESTION:\r\n\t\t\t\t\t// the same interface with starred\r\n\t\t\t\t\tNotificationFragment.this.bus\r\n\t\t\t\t\t\t\t.post(new StarredNotificationSelected(\r\n\t\t\t\t\t\t\t\t\tparamNotification));\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase NotificationType.OTHER_ANSWER_THE_QUESTION_YOUR_STARRED:\r\n\t\t\t\t\t// the same interface with answer\r\n\t\t\t\t\tNotificationFragment.this.bus\r\n\t\t\t\t\t\t\t.post(new AnswerNotificationSelected(\r\n\t\t\t\t\t\t\t\t\tparamNotification));\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase NotificationType.OTHER_FORWARD_YOU_QUESTION:\r\n\t\t\t\t\t// the same interface with starred\r\n\t\t\t\t\tNotificationFragment.this.bus\r\n\t\t\t\t\t\t\t.post(new StarredNotificationSelected(\r\n\t\t\t\t\t\t\t\t\tparamNotification));\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase NotificationType.STARRED:\r\n\t\t\t\t\tNotificationFragment.this.bus\r\n\t\t\t\t\t\t\t.post(new StarredNotificationSelected(\r\n\t\t\t\t\t\t\t\t\tparamNotification));\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase NotificationType.THANKS_CARD:\r\n\t\t\t\t\tNotificationFragment.this.bus\r\n\t\t\t\t\t\t\t.post(new ThankYouNotificationSelected(\r\n\t\t\t\t\t\t\t\t\tparamNotification));\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t}", "@Override\n public void notifyNotification(java.lang.String platformTag, int platformID,\n android.app.Notification notification) throws android.os.RemoteException {}", "public void onNotification(UMOServerNotification notification)\n {\n\n if (notification instanceof ModelNotification)\n {\n UMOModel model = (UMOModel)notification.getSource();\n //System.out.println(\"Model name: \" + model.getName());\n //System.out.println(\"Model type: \" + model.getType());\n registry.notifyStateChange(model.getRegistryId(), notification.getAction());\n }\n\n }", "private void listenForNotificationEvents() {\n\t\twhile (!shutdownRequested) {\n\t\t\ttry {\n\t\t\t\tNotificationJob job = notificationQueue.poll( 1000, TimeUnit.MILLISECONDS );\n\t\t\t\t\n\t\t\t\tif (job != null) {\n\t\t\t\t\tprocessNotificationJob( job );\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// Ignore and continue looping until shutdown requested\n\t\t\t}\n\t\t}\n\t}", "public void onNotification(JsonObject body) {\r\n\t\tlogger.debug(\"HANDLING\" + body.toString());\r\n\t\tString from = body.getString(\"from\");\r\n\t\tString guid = body.getJsonObject(\"identity\").getJsonObject(\"userProfile\").getString(\"guid\");\r\n\r\n\t\tif (body.containsKey(\"external\") && body.getBoolean(\"external\")) {\r\n\t\t\tlogger.debug(\"EXTERNAL INVITE\");\r\n\t\t\tString streamID = body.getString(\"streamID\");\r\n\t\t\tString objURL = from.split(\"/subscription\")[0];\r\n\t\t\tFuture<String> CheckURL = findDataObjectStream(objURL, guid);\r\n\t\t\tCheckURL.setHandler(asyncResult -> {\r\n\t\t\t\tif (asyncResult.succeeded()) {\r\n\r\n\t\t\t\t\tif (asyncResult.result() == null) {\r\n\t\t\t\t\t\tFuture<Boolean> persisted = persistDataObjUserURL(streamID, guid, objURL, \"reporter\");\r\n\t\t\t\t\t\tpersisted.setHandler(res -> {\r\n\t\t\t\t\t\t\tif (res.succeeded()) {\r\n\t\t\t\t\t\t\t\tif (persisted.result()) {\r\n\t\t\t\t\t\t\t\t\tonChanges(objURL);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t// oh ! we have a problem...\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t//\tonChanges(objURL);\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\t// oh ! we have a problem...\r\n\t\t\t\t}\r\n\t\t\t});\r\n\r\n\t\t} else {\r\n\t\t\tsubscribe(from, guid);\r\n\t\t}\r\n\t}", "public interface NotificationCatcher {\n public static final String COPYRIGHT_2009_2010 = Constants.COPYRIGHT_2009_2010;\n \n static final String SCM_REVISION = \"$Revision: 1.2 $\"; //$NON-NLS-1$\n\n /**\n * When the Manager is started, the Manager will invoke this method. The\n * Manager needs a way to start the NotificationCatcher when the Manager\n * starts. After that point, the NotificationCatcher can place Notifications\n * on the Manager's queue. This method will allow the NotificationCatcher to\n * do any initialization to receive events from devices (such as listening\n * on a network socket) after it has been instantiated by the\n * NotificationCatcherFactory.\n * \n * @see NotificationCatcherFactory\n * @see Manager\n */\n public void startup() throws AMPException;\n \n /**\n * When the Manager is shutdown, the Manager will invoke this method. For\n * any resources that were obtained via the NotificationCatcher's\n * constructor or {@link #startup()}, this method will allow those\n * resources (such as network sockets) to be released when the Manager is\n * shutdown.\n * \n * @see Manager\n */\n public void shutdown();\n \n /**\n * Get the URL that this NotificationCatcher listens on so Devices know\n * where to post Notifications. This URL is used when a subscription request (\n * {@link Commands#subscribeToDevice(DeviceContext, String, StringCollection, URL)})\n * is sent to a device so that the device knows where to send the\n * notifications (events).\n * \n * @return the URL that this NotificationCatcher listens on so Devices know\n * where to post Notifications. This value will be used when sending\n * subscription requests to Devices. This may be an https or http\n * url. Typically, the path part of the URL will not be relevant,\n * the relevant parts are the protocol, hostname, and port.\n */\n public URL getURL();\n}", "public interface NotificationCleanupListener {\n void onStarted();\n void onStopped();\n //void onDismiss();\n}", "public interface NotificationActionsService {\n\n void sendNotification(String event, String description);\n\n}", "int displayNotification(Message message);", "protected void setHandleNotification(JSONArray args, CallbackContext callbackContext) {\n\t\tLog.d(TAG, \"SETHANDLENOTIFICATION called on Android, no effect\");\n\t\tcallbackContext.success();\n\t}", "@Override\n public void call(Object... args) {\n Message msg = mHanler.obtainMessage();\n msg.what = 2;\n msg.obj = args[0];\n msg.sendToTarget();\n LogTool.e(TAG + \" notification call\");\n }", "public interface NotificationManager {\n\n\tvoid sendTicketCreateNotification(Ticket ticket);\n\n\tvoid sendTicketChangeNotification(TicketChange ticketChange);\n\n\tvoid sendCommentNotification(Comment comment);\n\n\tvoid sendAttachmentNotification(Attachment attachment);\n\n}", "private void showNotificationCourse(Bundle data) {\n\n/* try {\n int unreadNotificationCount = Integer.valueOf(data.getString(\"total_unread_notification\"));\n NotificationCountEventBus.Event event = new NotificationCountEventBus.Event(unreadNotificationCount);\n NotificationCountEventBus.getInstance().post(event);\n } catch (Exception ignored) {\n\n }*/\n\n // check the type_push from data and navigate to activity\n Intent intent = navigateNotification(data);\n\n PendingIntent pendingIntent = PendingIntent.getActivity(this, notificationId, intent,\n PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_ONE_SHOT);\n\n\n Uri defaultSoundUri = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);\n NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(this)\n .setSmallIcon(getNotificationIcon())\n .setContentTitle(data.getString(\"title\"))\n .setContentText(data.getString(\"body\"))\n .setAutoCancel(true)\n .setSound(defaultSoundUri)\n .setContentIntent(pendingIntent);\n\n NotificationManager notificationManager =\n (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);\n\n notificationManager.notify(notificationId++, notificationBuilder.build());\n }", "@Override\n public void notifyNotification(java.lang.String platformTag, int platformID,\n android.app.Notification notification) throws android.os.RemoteException {\n android.os.Parcel _data = android.os.Parcel.obtain();\n android.os.Parcel _reply = android.os.Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(platformTag);\n _data.writeInt(platformID);\n _Parcel.writeTypedObject(_data, notification, 0);\n boolean _status =\n mRemote.transact(Stub.TRANSACTION_notifyNotification, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }", "void redirectToNotification();", "@Override\n @edu.umd.cs.findbugs.annotations.SuppressWarnings(value = \"BC_UNCONFIRMED_CAST\",\n justification = \"Only JMXConnectionNotification instances are used.\")\n public void handleNotification(Notification notification, Object handback) {\n if (handback instanceof AgentImpl) {\n AgentImpl agent = (AgentImpl) handback;\n\n JMXConnectionNotification jmxNotifn = (JMXConnectionNotification) notification;\n\n if (logger.isDebugEnabled()) {\n logger.debug(\"Connection notification for connection id : '{}'\",\n jmxNotifn.getConnectionId());\n }\n\n agent.updateRmiClientsCount();\n }\n }", "void mo54412a(int i, Notification notification);", "void register(NotificationListener<ObservableIntentServiceNotificationType> notificationStrategy);", "public void setNotification(String notification) {\n this.notification = notification;\n }", "@Async\n @EventListener\n public void listen(ObjectStatusChangedEvent event) {\n TrackingObject object = event.getObject();\n\n if (settingService.isActive(SettingKey.WEB_SOCKET_NOTIFICATION) && object.canNotifyByWebSocket()) {\n Notification notification = createNotification(object, event.getTraceEvent());\n simpMessagingTemplate.convertAndSendToUser(object.getTenant(), \"/notifications\", notification);\n }\n }", "@Override public void onReceiveNotification(Context context, PushMsg msg) {\n }", "@Override\n public void process(WatchedEvent event) {\n LOG.debug(\"New notification - type: {} state: {}\", event.getType(), event.getState().toString());\n if (event.getState() == Event.KeeperState.Expired || event.getState() == Event.KeeperState.Closed) {\n LOG.info(\"Zookeeper session expired/closed. Cause: {}\", event.getState().toString());\n // exit on session expiration\n System.exit(2);\n }\n if (mySid == 0 && event.getState() == Event.KeeperState.SyncConnected) {\n // session established, open connect latch\n connLatch.countDown();\n updateContext();\n }\n\n if (event.getType() == Event.EventType.NodeChildrenChanged) {\n LOG.info(\"Event: NodeChildrenChanged\");\n // must update context\n updateContext();\n // todo: call set watch if updateContext() fails in getChildren\n }\n }", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\tboolean done= humanInteractions.getNotifications().getNotification().remove(selectedNotification);\n\t\t\t\tnotficationViewer.setInput(createNotificationModle());\n\n\t\t\t}", "private void handleNotification(Bundle extras)\n {\n\t\n if(extras != null && extras.containsKey(\"action\") \n\t\t&& extras.containsKey(\"notification_key\")\n\t\t&& \"com.antoinecampbell.gcmdemo.NOTIFICATION\".equalsIgnoreCase(extras.getString(\"action\"))) {\n\t // Send a notification clear message upstream to clear on other devices\n\t sendClearMessage(extras.getString(\"notification_key\"));\n\t}\n }", "void notifyObserver();", "void notify(HorseFeverEvent e);", "@Override\r\n\tpublic void onServerDown() {\n\t\tString res=name + \" recived a notification\";\r\n\t\tLOGGER.info(res);\r\n\t\t\r\n\t}", "public void readNotification()\n {\n userFan.readNotification();\n }", "public interface NotificationListener extends SrPagoWebServiceListener {\n void onSuccess(ArrayList<Notification> notifications);\n\n}", "private void handleActionNotification() {\n String result = getQuote(stringsArray);\n// Notification myNotification = new Notification.Builder(this)\n// .setAutoCancel(true)\n// .setDefaults(Notification.DEFAULT_ALL)\n// .setWhen(System.currentTimeMillis())\n// .setSmallIcon(R.mipmap.ic_launcher)\n// .setContentText(result)\n// .build();\n//\n// NotificationManagerCompat manager = NotificationManagerCompat.from(this);\n// manager.notify(0, myNotification);\n\n\n NotificationCompat.Builder builder = new NotificationCompat.Builder(this)\n .setSmallIcon(R.mipmap.ic_launcher)\n .setContentTitle(\"My notification\")\n .setContentText(result);\n\n NotificationManager notificationManager = (NotificationManager)this\n .getSystemService(Context.NOTIFICATION_SERVICE);\n int id = 1;\n notificationManager.notify(id, builder.build());\n }", "@Override\r\n public void notify(Object arg) {\n }", "public abstract void notify(JSONObject message);", "public void notifyNotification(java.lang.String platformTag, int platformID,\n android.app.Notification notification) throws android.os.RemoteException;", "public abstract void sendNotification(T notification) throws NotificationException;", "public void handleNotification(String id, T notification, Throwable throwable) {\n final NotificationEmitter<T> emitter = fetchSubscriptionChannel(id);\n if (emitter != null) {\n emitter.emit(notification, throwable);\n }\n }", "void notify(PushMessage m);", "@Override\r\n\tpublic void sendGeneralNotification() {\n\t\t\r\n\t}", "private void note(Notification n){\r\n\t\tusers.get(n.userID).addNotification(n);\r\n\t\tif (loggedInUsers.contains(n.userID))\r\n\t\t\tcomms.sendMessage(n);\r\n\t}", "@Override\r\n\tpublic void sendNotifications() {\n\r\n\t}", "public interface OnNotificationActionListener {\n\n /**\n * item click\n *\n * @param notificationInfo notificationInfo\n * @param position position\n */\n void onItemClick(NotificationInfo notificationInfo, int position);\n\n /**\n * item click\n *\n * @param notificationInfo notificationInfo\n * @param selected selected\n */\n void onItemLongClick(NotificationInfo notificationInfo, boolean selected);\n\n}", "public void lambda$handleCloseControls$3$NotificationInfo() {\n String packageName = this.mSbn.getPackageName();\n NotificationSettingsHelper.setNotificationsEnabledForPackage(this.mContext, packageName, this.mChannelEnabledSwitch.isChecked());\n if (!this.mChannelEnabledSwitch.isChecked()) {\n Intent intent = new Intent(\"com.miui.app.ExtraStatusBarManager.action_refresh_notification\");\n intent.setPackage(\"com.android.systemui\");\n intent.putExtra(\"com.miui.app.ExtraStatusBarManager.extra_forbid_notification\", !this.mChannelEnabledSwitch.isChecked());\n intent.putExtra(\"app_packageName\", packageName);\n String messageId = NotificationUtil.getMessageId(this.mSbn);\n if (!TextUtils.isEmpty(messageId)) {\n intent.putExtra(\"messageId\", messageId);\n }\n this.mContext.sendBroadcast(intent);\n ((NotificationStat) Dependency.get(NotificationStat.class)).onBlock(this.mSbn, (NotificationChannelCompat) null, this.mIndex);\n }\n }", "public void didReceivedNotification(int r7, int r8, java.lang.Object... r9) {\n /*\n r6 = this;\n int r0 = org.telegram.messenger.NotificationCenter.appDidLogout\n if (r7 != r0) goto L_0x0010\n int r7 = r6.lastResumedAccount\n if (r8 != r7) goto L_0x01c5\n r6.onFinish()\n r6.finish()\n goto L_0x01c5\n L_0x0010:\n int r0 = org.telegram.messenger.NotificationCenter.pushMessagesUpdated\n r1 = 3\n r2 = 1\n r3 = 0\n if (r7 != r0) goto L_0x0089\n boolean r7 = r6.isReply\n if (r7 != 0) goto L_0x01c5\n java.util.ArrayList<org.telegram.messenger.MessageObject> r7 = r6.popupMessages\n r7.clear()\n r7 = 0\n L_0x0021:\n if (r7 >= r1) goto L_0x003b\n org.telegram.messenger.UserConfig r8 = org.telegram.messenger.UserConfig.getInstance(r7)\n boolean r8 = r8.isClientActivated()\n if (r8 == 0) goto L_0x0038\n java.util.ArrayList<org.telegram.messenger.MessageObject> r8 = r6.popupMessages\n org.telegram.messenger.NotificationsController r9 = org.telegram.messenger.NotificationsController.getInstance(r7)\n java.util.ArrayList<org.telegram.messenger.MessageObject> r9 = r9.popupMessages\n r8.addAll(r9)\n L_0x0038:\n int r7 = r7 + 1\n goto L_0x0021\n L_0x003b:\n r6.getNewMessage()\n java.util.ArrayList<org.telegram.messenger.MessageObject> r7 = r6.popupMessages\n boolean r7 = r7.isEmpty()\n if (r7 != 0) goto L_0x01c5\n r7 = 0\n L_0x0047:\n if (r7 >= r1) goto L_0x01c5\n int r8 = r6.currentMessageNum\n int r8 = r8 - r2\n int r8 = r8 + r7\n java.util.ArrayList<org.telegram.messenger.MessageObject> r9 = r6.popupMessages\n int r9 = r9.size()\n if (r9 != r2) goto L_0x0061\n if (r8 < 0) goto L_0x005f\n java.util.ArrayList<org.telegram.messenger.MessageObject> r9 = r6.popupMessages\n int r9 = r9.size()\n if (r8 < r9) goto L_0x0061\n L_0x005f:\n r8 = 0\n goto L_0x007d\n L_0x0061:\n r9 = -1\n if (r8 != r9) goto L_0x006c\n java.util.ArrayList<org.telegram.messenger.MessageObject> r8 = r6.popupMessages\n int r8 = r8.size()\n int r8 = r8 - r2\n goto L_0x0075\n L_0x006c:\n java.util.ArrayList<org.telegram.messenger.MessageObject> r9 = r6.popupMessages\n int r9 = r9.size()\n if (r8 != r9) goto L_0x0075\n r8 = 0\n L_0x0075:\n java.util.ArrayList<org.telegram.messenger.MessageObject> r9 = r6.popupMessages\n java.lang.Object r8 = r9.get(r8)\n org.telegram.messenger.MessageObject r8 = (org.telegram.messenger.MessageObject) r8\n L_0x007d:\n org.telegram.messenger.MessageObject[] r9 = r6.setMessageObjects\n r9 = r9[r7]\n if (r9 == r8) goto L_0x0086\n r6.updateInterfaceForCurrentMessage(r3)\n L_0x0086:\n int r7 = r7 + 1\n goto L_0x0047\n L_0x0089:\n int r0 = org.telegram.messenger.NotificationCenter.updateInterfaces\n if (r7 != r0) goto L_0x00f1\n org.telegram.messenger.MessageObject r7 = r6.currentMessageObject\n if (r7 == 0) goto L_0x00f0\n int r7 = r6.lastResumedAccount\n if (r8 == r7) goto L_0x0096\n goto L_0x00f0\n L_0x0096:\n r7 = r9[r3]\n java.lang.Integer r7 = (java.lang.Integer) r7\n int r7 = r7.intValue()\n int r8 = org.telegram.messenger.MessagesController.UPDATE_MASK_NAME\n r8 = r8 & r7\n if (r8 != 0) goto L_0x00b2\n int r8 = org.telegram.messenger.MessagesController.UPDATE_MASK_STATUS\n r8 = r8 & r7\n if (r8 != 0) goto L_0x00b2\n int r8 = org.telegram.messenger.MessagesController.UPDATE_MASK_CHAT_NAME\n r8 = r8 & r7\n if (r8 != 0) goto L_0x00b2\n int r8 = org.telegram.messenger.MessagesController.UPDATE_MASK_CHAT_MEMBERS\n r8 = r8 & r7\n if (r8 == 0) goto L_0x00b5\n L_0x00b2:\n r6.updateSubtitle()\n L_0x00b5:\n int r8 = org.telegram.messenger.MessagesController.UPDATE_MASK_AVATAR\n r8 = r8 & r7\n if (r8 != 0) goto L_0x00bf\n int r8 = org.telegram.messenger.MessagesController.UPDATE_MASK_CHAT_AVATAR\n r8 = r8 & r7\n if (r8 == 0) goto L_0x00c2\n L_0x00bf:\n r6.checkAndUpdateAvatar()\n L_0x00c2:\n int r8 = org.telegram.messenger.MessagesController.UPDATE_MASK_USER_PRINT\n r7 = r7 & r8\n if (r7 == 0) goto L_0x01c5\n org.telegram.messenger.MessageObject r7 = r6.currentMessageObject\n int r7 = r7.currentAccount\n org.telegram.messenger.MessagesController r7 = org.telegram.messenger.MessagesController.getInstance(r7)\n org.telegram.messenger.MessageObject r8 = r6.currentMessageObject\n long r8 = r8.getDialogId()\n java.lang.CharSequence r7 = r7.getPrintingString(r8, r3, r3)\n java.lang.CharSequence r8 = r6.lastPrintString\n if (r8 == 0) goto L_0x00df\n if (r7 == 0) goto L_0x00eb\n L_0x00df:\n if (r8 != 0) goto L_0x00e3\n if (r7 != 0) goto L_0x00eb\n L_0x00e3:\n if (r8 == 0) goto L_0x01c5\n boolean r7 = r8.equals(r7)\n if (r7 != 0) goto L_0x01c5\n L_0x00eb:\n r6.updateSubtitle()\n goto L_0x01c5\n L_0x00f0:\n return\n L_0x00f1:\n int r0 = org.telegram.messenger.NotificationCenter.messagePlayingDidReset\n r4 = 300(0x12c, float:4.2E-43)\n if (r7 != r0) goto L_0x013d\n r7 = r9[r3]\n java.lang.Integer r7 = (java.lang.Integer) r7\n android.view.ViewGroup r9 = r6.messageContainer\n if (r9 == 0) goto L_0x01c5\n int r9 = r9.getChildCount()\n L_0x0103:\n if (r3 >= r9) goto L_0x01c5\n android.view.ViewGroup r0 = r6.messageContainer\n android.view.View r0 = r0.getChildAt(r3)\n java.lang.Object r2 = r0.getTag()\n java.lang.Integer r2 = (java.lang.Integer) r2\n int r2 = r2.intValue()\n if (r2 != r1) goto L_0x013a\n java.lang.Integer r2 = java.lang.Integer.valueOf(r4)\n android.view.View r0 = r0.findViewWithTag(r2)\n org.telegram.ui.Components.PopupAudioView r0 = (org.telegram.ui.Components.PopupAudioView) r0\n org.telegram.messenger.MessageObject r2 = r0.getMessageObject()\n if (r2 == 0) goto L_0x013a\n int r5 = r2.currentAccount\n if (r5 != r8) goto L_0x013a\n int r2 = r2.getId()\n int r5 = r7.intValue()\n if (r2 != r5) goto L_0x013a\n r0.updateButtonState()\n goto L_0x01c5\n L_0x013a:\n int r3 = r3 + 1\n goto L_0x0103\n L_0x013d:\n int r0 = org.telegram.messenger.NotificationCenter.messagePlayingProgressDidChanged\n if (r7 != r0) goto L_0x0186\n r7 = r9[r3]\n java.lang.Integer r7 = (java.lang.Integer) r7\n android.view.ViewGroup r9 = r6.messageContainer\n if (r9 == 0) goto L_0x01c5\n int r9 = r9.getChildCount()\n L_0x014d:\n if (r3 >= r9) goto L_0x01c5\n android.view.ViewGroup r0 = r6.messageContainer\n android.view.View r0 = r0.getChildAt(r3)\n java.lang.Object r2 = r0.getTag()\n java.lang.Integer r2 = (java.lang.Integer) r2\n int r2 = r2.intValue()\n if (r2 != r1) goto L_0x0183\n java.lang.Integer r2 = java.lang.Integer.valueOf(r4)\n android.view.View r0 = r0.findViewWithTag(r2)\n org.telegram.ui.Components.PopupAudioView r0 = (org.telegram.ui.Components.PopupAudioView) r0\n org.telegram.messenger.MessageObject r2 = r0.getMessageObject()\n if (r2 == 0) goto L_0x0183\n int r5 = r2.currentAccount\n if (r5 != r8) goto L_0x0183\n int r2 = r2.getId()\n int r5 = r7.intValue()\n if (r2 != r5) goto L_0x0183\n r0.updateProgress()\n goto L_0x01c5\n L_0x0183:\n int r3 = r3 + 1\n goto L_0x014d\n L_0x0186:\n int r9 = org.telegram.messenger.NotificationCenter.emojiLoaded\n if (r7 != r9) goto L_0x01ba\n android.view.ViewGroup r7 = r6.messageContainer\n if (r7 == 0) goto L_0x01c5\n int r7 = r7.getChildCount()\n L_0x0192:\n if (r3 >= r7) goto L_0x01c5\n android.view.ViewGroup r8 = r6.messageContainer\n android.view.View r8 = r8.getChildAt(r3)\n java.lang.Object r9 = r8.getTag()\n java.lang.Integer r9 = (java.lang.Integer) r9\n int r9 = r9.intValue()\n if (r9 != r2) goto L_0x01b7\n r9 = 301(0x12d, float:4.22E-43)\n java.lang.Integer r9 = java.lang.Integer.valueOf(r9)\n android.view.View r8 = r8.findViewWithTag(r9)\n android.widget.TextView r8 = (android.widget.TextView) r8\n if (r8 == 0) goto L_0x01b7\n r8.invalidate()\n L_0x01b7:\n int r3 = r3 + 1\n goto L_0x0192\n L_0x01ba:\n int r9 = org.telegram.messenger.NotificationCenter.contactsDidLoad\n if (r7 != r9) goto L_0x01c5\n int r7 = r6.lastResumedAccount\n if (r8 != r7) goto L_0x01c5\n r6.updateSubtitle()\n L_0x01c5:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.telegram.ui.PopupNotificationActivity.didReceivedNotification(int, int, java.lang.Object[]):void\");\n }", "@Override\n public void onEvent(EMNotifierEvent event) {\n\n }", "protected void notificationOnExpiration() {\n }", "public void notifyUserInfo(String userInfo);", "@Override\n\t\tpublic void notificationOpened(OSNotificationOpenResult result)\n\t\t{\n\t\t\tLog.d(LCAT, \"com.williamrijksen.onesignal Notification opened handler\");\n\t\t\tif (TiApplication.getAppCurrentActivity() != null && getModuleInstance() != null) {\n\t\t\t\ttry {\n\t\t\t\t\tif (result.notification.payload != null) {\n\t\t\t\t\t\tJSONObject payload = result.notification.payload.toJSONObject();\n\t\t\t\t\t\tpayload.put(\"foreground\", result.notification.isAppInFocus);\n\n\t\t\t\t\t\tif (getModuleInstance().hasListeners(\"notificationOpened\")) {\n\t\t\t\t\t\t\tgetModuleInstance().fireEvent(\"notificationOpened\", payload);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// save the notification for later processing\n\t\t\t\t\t\t\topenNotification = result;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} catch (Throwable t) {\n\t\t\t\t\tLog.d(LCAT, \"com.williamrijksen.onesignal OSNotificationOpenResult could not be converted to JSON\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// save the notification for later processing\n\t\t\t\topenNotification = result;\n\t\t\t}\n\t\t}", "public interface ReceiverObserver {\n\n void update(DataNotification notification);\n}", "void notifyPending(MessageSnapshot snapshot);", "public interface Observer {\n public void notification(String handle, String tweet);\n}", "@Override\n public void onReceive(Context context, Intent intent) {\n if(NotificationListener.MSG_NOTIFICATION_CHANGED.equals(intent.getAction())) {\n mNotificationPkg = intent.getStringExtra(NotificationListener.PACKAGE);\n mPendingIntent = intent.getParcelableExtra(NotificationListener.PENDING_INTENT);\n mMessageAmount = intent.getIntExtra(NotificationListener.AMOUNT, 0);\n mIcon = intent.getIntExtra(NotificationListener.ICON, -1);\n\n if (mNotificationPkg.isEmpty()) {\n boolean permitFloat = PreferenceUtil.getInstance(getApplicationContext()).permitFloatView();\n boolean showDefaultFloatView = PreferenceUtil.getInstance(getApplicationContext()).showDefaultFloatView();\n if(permitFloat && showDefaultFloatView) {\n if(DEBUG) {\n Log.i(TAG, \"mNotificationChangedReceiver.onReceive(): showDefaultFloatView()\");\n }\n showDefaultFloatView();\n }else{\n if(DEBUG) {\n Log.i(TAG, \"1 mNotificationChangedReceiver.onReceive(): hideFloatView()\");\n }\n hideFloatView();\n }\n } else {\n if(PreferenceUtil.getInstance(getApplicationContext()).permitFloatView()) {\n if (DEBUG) {\n Log.i(TAG, \"mNotificationChangedReceiver.onReceive(): showFloatView()\");\n }\n showFloatView();\n }else{\n if (DEBUG) {\n Log.i(TAG, \"2 mNotificationChangedReceiver.onReceive(): hideFloatView()\");\n }\n hideFloatView();\n }\n }\n }\n }", "@Override\n public void onNotificationPosted(StatusBarNotification sbn) {\n LogUtil.logDebug(\"Notification got\");\n\n if (!preferences.isServiceActiveSetting().load()) return;\n if ((System.currentTimeMillis() - lastMessageTimeMillis)\n < MIN_NOTIFICATION_TIMEOUT) return;\n lastMessageTimeMillis = System.currentTimeMillis();\n\n String text = sbn.getNotification().extras.getString(\"android.text\");\n String title = sbn.getNotification().extras.getString(\"android.title\");\n if (text == null) return;\n if (title == null) title = \"\";\n\n String sourceAppPackage = sbn.getPackageName();\n\n String message;\n if (preferences.spellTitleSetting().load())\n message = title + \".\" + text;\n else message = text;\n\n String finalMessage = message.replaceAll(linkRegex, \" LINK \");\n\n if (message.equals(lastMessage)) return;\n\n timerSubscription = Observable.timer(1000, TimeUnit.MILLISECONDS, AndroidSchedulers.mainThread())\n .onErrorResumeNext(throwable -> {\n LogUtil.logError(throwable);\n return Observable.never();\n })\n .subscribe(it -> {\n if ((headphonesPlugged || !preferences.headphonesOnlySetting().load())\n && appWhiteList.contains(sourceAppPackage)) {\n //LogUtil.logDebug(\"Utterance started\");\n lastMessage = finalMessage;\n tts.speak(finalMessage);\n }\n });\n\n }", "private Notification prepareNotification() {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O && mNotificationManager.getNotificationChannel(FOREGROUND_CHANNEL_ID) == null) {\n CharSequence name = getString(R.string.text_name_notification);\n int importance = NotificationManager.IMPORTANCE_DEFAULT;\n NotificationChannel channel = new NotificationChannel(FOREGROUND_CHANNEL_ID, name, importance);\n channel.enableVibration(false);\n mNotificationManager.createNotificationChannel(channel);\n }\n\n Intent notificationIntent = new Intent(this, MainUIActivity.class);\n notificationIntent.setAction(Constants.ACTION.MAIN_ACTION);\n notificationIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);\n\n // if min sdk goes below honeycomb\n /*if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.HONEYCOMB) {\n notificationIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);\n } else {\n notificationIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n }*/\n\n PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, notificationIntent, PendingIntent.FLAG_UPDATE_CURRENT);\n\n // make a stop intent\n Intent stopIntent = new Intent(this, MyService.class);\n stopIntent.setAction(Constants.ACTION.STOP_ACTION);\n PendingIntent pendingStopIntent = PendingIntent.getService(this, 0, stopIntent, PendingIntent.FLAG_UPDATE_CURRENT);\n RemoteViews remoteViews = new RemoteViews(getPackageName(), R.layout.service_notification);\n remoteViews.setOnClickPendingIntent(R.id.btn_stop, pendingStopIntent);\n\n // if it is connected\n switch (stateService) {\n case Constants.STATE_SERVICE.NOT_CONNECTED:\n remoteViews.setTextViewText(R.id.tv_state, \"Help Desk DISCONNECTED\");\n remoteViews.setTextColor(R.id.tv_state, getResources().getColor(android.R.color.holo_red_light));\n break;\n case Constants.STATE_SERVICE.CONNECTED:\n remoteViews.setTextColor(R.id.tv_state, getResources().getColor(android.R.color.black));\n remoteViews.setTextViewText(R.id.tv_state, \"Help Desk CONNECTED\");\n break;\n }\n\n // notification builder\n NotificationCompat.Builder notificationBuilder;\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {\n notificationBuilder = new NotificationCompat.Builder(this, FOREGROUND_CHANNEL_ID);\n } else {\n notificationBuilder = new NotificationCompat.Builder(this);\n }\n notificationBuilder\n .setContent(remoteViews)\n .setSmallIcon(R.mipmap.ic_launcher)\n .setCategory(NotificationCompat.CATEGORY_SERVICE)\n .setOnlyAlertOnce(true)\n .setOngoing(true)\n .setAutoCancel(true)\n .setContentIntent(pendingIntent);\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n notificationBuilder.setVisibility(Notification.VISIBILITY_SECRET);\n }\n\n return notificationBuilder.build();\n }", "@Override\n public void notifyNotificationWithChannel(java.lang.String platformTag, int platformID,\n android.app.Notification notification, java.lang.String channelName)\n throws android.os.RemoteException {}", "public void subscribeForNotifications(String identifier, INotificationHandler handler){\n return;\n }", "public void addNotificationHandler(String serviceName, NotificationHandler handler);", "public abstract Object notify(NotifyDescriptor descriptor);", "public void addNotification(java.lang.String notificationIn)\r\n\t{\r\n\t\tnotification = notificationIn;\r\n\t}", "void notify(Message m);", "private void uponChannelCreated(ChannelCreated notification, short sourceProto) {\n int cId = notification.getChannelId();\n // Allows this protocol to receive events from this channel.\n registerSharedChannel(cId);\n /*---------------------- Register Message Serializers ---------------------- */\n registerMessageSerializer(cId, FloodMessage.MSG_ID, FloodMessage.serializer);\n registerMessageSerializer(cId, PruneMessage.MSG_ID, PruneMessage.serializer);\n registerMessageSerializer(cId, IHaveMessage.MSG_ID, IHaveMessage.serializer);\n registerMessageSerializer(cId, GraftMessage.MSG_ID, GraftMessage.serializer);\n\n /*---------------------- Register Message Handlers -------------------------- */\n\n //Handler for FloodMessage\n try {\n registerMessageHandler(cId, FloodMessage.MSG_ID, this::uponBroadcastMessage, this::uponMsgFail);\n } catch (HandlerRegistrationException e) {\n logger.error(\"Error registering message handler: \" + e.getMessage());\n e.printStackTrace();\n System.exit(1);\n }\n\n //Handler for PruneMessage\n try {\n registerMessageHandler(cId, PruneMessage.MSG_ID, this::uponPruneMessage, this::uponMsgFail);\n } catch (HandlerRegistrationException e) {\n logger.error(\"Error registering message handler: \" + e.getMessage());\n e.printStackTrace();\n System.exit(1);\n }\n\n //Handler for IHaveMessage\n try {\n registerMessageHandler(cId, IHaveMessage.MSG_ID, this::uponIHaveMessage, this::uponMsgFail);\n } catch (HandlerRegistrationException e) {\n logger.error(\"Error registering message handler: \" + e.getMessage());\n e.printStackTrace();\n System.exit(1);\n }\n\n //Handler for GraftMessage\n try {\n registerMessageHandler(cId, GraftMessage.MSG_ID, this::uponGraftMessage, this::uponMsgFail);\n } catch (HandlerRegistrationException e) {\n logger.error(\"Error registering message handler: \" + e.getMessage());\n e.printStackTrace();\n System.exit(1);\n }\n\n\n try {\n registerTimerHandler(Timer.TIMER_ID, this::uponTimer);\n } catch (HandlerRegistrationException e) {\n e.printStackTrace();\n }\n\n\n //Now we can start sending messages\n channelReady = true;\n }", "public void run() {\n handler.post(new Runnable() {\n public void run() {\n\n //TODO CALL NOTIFICATION FUNC\n String lg_ti = \"Test.\";\n String des_ti = \"The license valid until \";\n String ban_ti = \"Warning!\";\n getNotificationData();\n //notificationShow(des_ti,lg_ti,ban_ti);\n }\n });\n }", "void notify(IUISemanticEvent event);", "void onMessageReceived(Message message);", "private void showNotification() throws NullPointerException\n\t{\n\t\tint status;\n//\t\tstatus = mqttClient != null ? R.string.connected_to_server\n//\t\t\t\t: R.string.cannot_connect_to_server;\n//\t\tPendingIntent contentIntent = PendingIntent.getActivity( this, 0,\n//\t\t\t\tnew Intent( this, MainActivity.class ), 0 );\n//\t\tnotification = new Notification.Builder( this )\n//\t\t\t\t.setContentTitle( this.getString( R.string.service_label ) )\n//\t\t\t\t.setContentText( getResources().getString( status ) )\n//\t\t\t\t.setSmallIcon( Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.LOLLIPOP\n//\t\t\t\t\t\t? R.mipmap.pristine_zen_icon_silhouette : R.mipmap.pristine_zen_icon )\n//\t\t\t\t.setContentIntent( contentIntent )\n//\t\t\t\t.setAutoCancel( false )\n//\t\t\t\t.setOngoing( true )\n//\t\t\t\t.build();\n\t\tmNotificationManager =\n\t\t\t\t(NotificationManager) getApplicationContext().getSystemService( NOTIFICATION_SERVICE );\n\t\t//notification.flags |= Notification.FLAG_ONGOING_EVENT;\n\t\t//notification.flags |= Notification.FLAG_AUTO_CANCEL;\n\n\t\tmNotificationManager.notify( 123321, notification );\n\t}", "public void notifyChanged(Notification n){\n\t \n\t super.notifyChanged(n); // the superclass handles adding/removing this Adapter to new Books\n\t \n\t // find out the type of the notifier which could be either 'LanguageDefinition' or 'Library'\n\t Object notifier = n.getNotifier();\n\t if (notifier instanceof ConcurrentLanguageDefinition) {\n\t handleLanguageDefinitionNotification(n);\n\t } else if (notifier instanceof DomainModelProject) {\n\t handleDomainModelProjectNotification(n);\n\t } else if (notifier instanceof XTextEditorProject) {\n\t \thandleXTextProjectNotification(n);\n\t } else if (notifier instanceof SiriusEditorProject) {\n\t \thandleSiriusEditorProjectNotification(n);\n\t } else if (notifier instanceof SiriusAnimatorProject) {\n\t \thandleSiriusAnimatorProjectNotification(n);\n\t } else if (notifier instanceof MoCCProject) {\n\t handleMoCProjectNotification(n);\n\t } else if (notifier instanceof DSAProject) {\n\t handleDSAProjectNotification(n);\n\t } else if (notifier instanceof DSEProject) {\n\t handleDSEProjectNotification(n);\n\t }\n\t \n\t \n\t }", "public void onUnscuuessNotificationUpdate(String message);", "void startForegroundWrapper(Notification notification) {\n if (startForeground != null) {\n Object[] startForegroundArgs = new Object[]{\n Integer.valueOf(NotificationManager.PERSISTENT_NOTIFICATION_ID),\n notification};\n // Object[] startForegroundArgs = new Object[] { 1, null };\n try {\n startForeground.invoke(this, startForegroundArgs);\n } catch (InvocationTargetException e) {\n // Should not happen.\n LogManager.w(this, \"Unable to invoke startForeground\" + e);\n } catch (IllegalAccessException e) {\n // Should not happen.\n LogManager.w(this, \"Unable to invoke startForeground\" + e);\n }\n } else {\n stopForeground(true);\n try {\n Log.e(\"NNNNNNNN\", \" persistant notification from XabberService\");\n ((android.app.NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE))\n .notify(NotificationManager.PERSISTENT_NOTIFICATION_ID,\n notification);\n } catch (SecurityException e) {\n }\n }\n }", "public interface Listener{\n\t\tpublic void notify(Map<String,Serializable> datas);\n\t}", "private void setUpNotification() {\n if (getIntent().getExtras() != null) {\n for (String key : getIntent().getExtras().keySet()) {\n Object value = getIntent().getExtras().get(key);\n Logger.e(\"Key: \" + key + \" Value: \" + value);\n\n if(key.equals(\"Key\")) {\n try {\n String idStr = String.valueOf(value);\n int id = Integer.parseInt(idStr);\n onOpenJobItem(id);\n }\n catch (Exception e){\n e.printStackTrace();\n }\n }\n\n }\n }\n // [END handle_data_extras]\n }", "@Override\n public void onReceive(Context context, Intent intent) {\n Log.i(\"BASH\", \"Notification sent\");\n\n Log.i(\"BASH\", \"RECIEVED\");\n\n createNotification(context, \"Times up\", \"5 sec\", \"as\");\n\n }", "interface Callback {\n /**\n * Used to update the {@link Notification}.\n */\n void notify(\n int notificationId,\n int notificationType,\n @Nullable String notificationTag,\n @NonNull Notification notification);\n\n /**\n * Used to stop the {@link SystemForegroundService}.\n */\n void stop();\n }", "@Scheduled\n\tpublic void executeNotification();", "@Override\n\tpublic void NotifyObserver() {\n\n\t}", "public interface ISemanticEventListener {\n\n\t/**\n\t * Notifies this listener that a semantic event has happened.\n\t * @param event - the semantic event\n\t */\n\tvoid notify(IUISemanticEvent event);\n \n\t////////////////////////////////////////////////////////////////////////////\n\t//\n\t// Meta events\n\t//\n\t////////////////////////////////////////////////////////////////////////////\n\n\t//TODO: maybe these meta-notifications should not have there own methods?\n\t\n /**\n * Notifies this listener that event recording has started.\n */\n void notifyStart();\n \n /**\n * Notifies this listener that event recording has stopped.\n */\n void notifyStop();\n\n /**\n * Notifies this listener that the event stream is to be written.\n */\n void notifyWrite();\n \n /**\n * Notifies this listener that root display has been disposed (effectively, recording is terminated).\n */ \n void notifyDispose();\n\n\t/**\n\t * Notifies this listener that the event stream is to be flushed and restarted.\n\t */\n\tvoid notifyRestart();\n\n\t/**\n\t * Notifies this listener that the event stream is to be paused.\n\t */\n\tvoid notifyPause();\n\t\n\t/**\n\t * Notifies this listener that an error occured during recording.\n\t * @param event - the error event\n\t */\n\tvoid notifyError(RecorderErrorEvent event);\n\n\t/**\n\t * Notifies this listener that a trace event was sent during recording.\n\t * @param event - the trace event\n\t */\n\tvoid notifyTrace(RecorderTraceEvent event);\n\n\t/**\n\t * Notifies this listener that a hook added vent was sent during recording.\n\t * @param hookName \n\t */\n\tvoid notifyAssertionHookAdded(String hookName);\n\t\n\t/**\n\t * Notifies that Recorder Controller was started and listens on specific port \n\t * @param port the port number that this controller started listen on\n\t */\n\tpublic void notifyControllerStart(int port);\n\t\n\t/**\n\t * Notifies this listener that Display instance was not found in the application process\n\t */\n\tpublic void notifyDisplayNotFound();\n\n\t/**\n\t * Notifies the listener that spy mode has been toggled.\n\t */\n\tvoid notifySpyModeToggle();\n}", "private void sendHeadlinerNotification() {\n startService(new Intent(this, ForegroundNotificationService.class));\n }", "protected void notifyUser()\n {\n }", "public interface UserProfileChangedNotification {\n void onProfileChanged();\n}", "protected void attachNotification(Txn txn) {\r\n }", "@Override\n public void createNotification(Notification notification) {\n Player p = Bukkit.getPlayer(notification.getPlayer()); //TODO uuid\n if (p != null && p.isOnline()) {\n showNotification(notification, false);\n }\n try {\n notificationIntegerDao.createIfNotExists(notification);\n } catch (SQLException e) {\n logSQLError(e);\n }\n }", "@Override\n public void handelNotification(String message) {\n if (message.equalsIgnoreCase(\"Change is successful\")) {\n Intent intent = null;\n if (actionType == 0) {\n intent = new Intent(UpdateIssueActivity.this, IssueMenuActivity.class);\n intent.putExtra(\"Order\", Header);\n message = \"Issue Updated\";\n } else if (actionType == 1) {\n intent = new Intent(UpdateIssueActivity.this, ApproveIssueActivity.class);\n intent.putExtra(\"Order\", Header);\n message = \"Issue Sent to Approval\";\n startActivity(intent);\n } else if (actionType == 2) {\n intent = new Intent(UpdateIssueActivity.this, IssueMenuActivity.class);\n intent.putExtra(\"Order\", Header);\n message = \"Issue Cancelled\";\n startActivity(intent);\n }\n\n //change Toast to snack bar\n customToastext.setText(Html.fromHtml(message));\n customToastLayout.setBackgroundColor(getResources().getColor(R.color.successMessage));\n // Toast...\n showCustomToast();\n } else {\n Log.d(\"mytag\", \"handelNotification: Change Failed\");\n customToastext.setText(Html.fromHtml(\"Change Failed\"));\n customToastLayout.setBackgroundColor(getResources().getColor(R.color.errorMessage));\n showCustomToast();\n }\n }" ]
[ "0.8407388", "0.74283636", "0.7408197", "0.73738647", "0.7355454", "0.73250836", "0.7283301", "0.72688335", "0.7249105", "0.7162415", "0.7122007", "0.7117959", "0.7074935", "0.70583904", "0.7050058", "0.7016916", "0.69867736", "0.68940985", "0.6820351", "0.6815526", "0.6794596", "0.67942524", "0.6727566", "0.6693617", "0.661985", "0.6609909", "0.6550598", "0.6520097", "0.64567494", "0.6437635", "0.64295715", "0.6418144", "0.64176965", "0.6410302", "0.64002347", "0.639121", "0.63905686", "0.63782084", "0.6361557", "0.6344875", "0.6342969", "0.6335201", "0.6318385", "0.63136095", "0.6303801", "0.6302131", "0.62814677", "0.6276702", "0.627548", "0.62746966", "0.62732613", "0.6270123", "0.6263532", "0.6259616", "0.62552696", "0.6250663", "0.62364924", "0.62280655", "0.6215849", "0.62125033", "0.6183724", "0.6182374", "0.6180564", "0.61730397", "0.6163346", "0.61483544", "0.6147589", "0.6135685", "0.6122511", "0.6118823", "0.6114478", "0.6099064", "0.60986745", "0.60768586", "0.60749626", "0.60736305", "0.60723364", "0.6067871", "0.6065597", "0.6063385", "0.6054345", "0.60526776", "0.60507715", "0.604569", "0.6040661", "0.6039885", "0.60234845", "0.6018101", "0.60014856", "0.5997428", "0.59908944", "0.59865427", "0.59839165", "0.5972347", "0.59654033", "0.5955583", "0.5953158", "0.594876", "0.59424573", "0.5940588" ]
0.698426
17
/ property change listener: propertyChange
public void propertyChange(PropertyChangeEvent evt) { if (JConsoleContext.CONNECTION_STATE_PROPERTY.equals(evt.getPropertyName())) { boolean connected = (Boolean) evt.getNewValue(); if (connected) { buildMBeanServerView(); } else { sheet.dispose(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void propertyChange(PropertyChangeEvent arg0) {\n\t\t\n\t}", "@Override\r\n\tpublic void propertyChange(PropertyChangeEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void propertyChange(PropertyChangeEvent arg0) {\n\t\t\r\n\t}", "@Override\n \tpublic void propertyChange(PropertyChangeEvent arg0) {\n \t\t\n \t}", "@Override\n\tpublic void propertyChange(PropertyChangeEvent arg0)\n\t{\n\t\t\n\t}", "public void propertyChange(PropertyChangeEvent evt) {\n \r\n }", "@Override\r\n\tpublic void propertyChange(PropertyChangeEvent arg0) {\n\r\n\t}", "@Override\n\tpublic void propertyChange(PropertyChangeEvent evt) {\n\t\t\n\t}", "@Override\n public void addPropertyChangeListener(PropertyChangeListener listener) {\n\n }", "protected void PropertyChanged()\r\n { }", "void addPropertyChangeListener(PropertyChangeListener listener);", "public void addPropertyChangeListener(PropertyChangeListener l);", "public abstract void addPropertyChangeListener(PropertyChangeListener listener);", "private static void usePropertyChangeListener() {\n SimpleStringProperty stringProperty = new SimpleStringProperty(\"xyz\");\n // Prints property's value\n System.out.println(stringProperty.getValue());\n // Adds a listener - action that will be run if property's value changes.\n stringProperty.addListener((observable, oldValue, newValue) -> {\n System.out.println(\"New value is set: \" + newValue);\n });\n // Sets new value\n stringProperty.setValue(\"Some new value\");\n }", "public void propertyChange(PropertyChangeEvent evt) {\r\n fireStateChanged();\r\n }", "public void addPropertyChangeListener(PropertyChangeListener listener);", "PropertyChangeListener[] getPropertyChangeListeners();", "public void addListener(PropertyChangeListener listener, String propertyType);", "public void addPropertyChangeListener(PropertyChangeListener propertyChangeListener) {\n }", "public void propertyChange(PropertyChangeEvent e) {\n\n logger.debug(LOG_TAG + \".propertyChangeListener()\");\n String propertyName = e.getPropertyName();\n\n switch(propertyName) {\n case \"progress\":\n logger.info(\"client progress: \" + e.getNewValue());\n\n break;\n case \"state\":\n StateValue stateValue = ((StateValue)e.getNewValue());\n logger.info(\"client state: \" + stateValue.toString());\n\n switch(stateValue) {\n case STARTED:\n\n break;\n case PENDING:\n\n break;\n case DONE:\n\n break;\n } // eof switch\n } // eof switch\n\n }", "private void FilterPropertyChanges(Object sender, PropertyChangedEventArgs e)\r\n {\r\n // check if this is the property of interest\r\n if (e.getPropertyValue(_propertyName)!= null)\r\n PropertyChanged();\r\n }", "public abstract void addPropertyChangeListener(IPropertyChangeListener listener);", "void onPropertyChange(String name, String newValue);", "public void addPropertyChangeListener(PropertyChangeListener listener)\n {\n }", "void onChangeEvent(CarPropertyValue value);", "@Override\n public void propertyChange(PropertyChangeEvent e) {\n this.updateCoords();\n }", "@Override\n public void propertyChange(final PropertyChangeEvent theEvent) {\n if (\"speed up\".equals(theEvent.getPropertyName())) {\n faster();\n } else if (\"change dimensions\".equals(theEvent.getPropertyName())) {\n myWidth = (int) theEvent.getOldValue();\n myHeight = (int) theEvent.getNewValue();\n } else if (\"update board\".equals(theEvent.getPropertyName())) {\n myGameMode = (String) theEvent.getOldValue();\n myBoard = (Board) theEvent.getNewValue();\n }\n }", "public void addPropertyChangeListener (PropertyChangeListener l)\n { pcs.addPropertyChangeListener (l); }", "void addPropertyListener(PropertyListener listener);", "public void setPropertyChanged(com.app.tvp.cas.cliente.PropertyChangedEventHandler propertyChanged) {\n this.propertyChanged = propertyChanged;\n }", "@Override\n\tpublic void propertyChange() {\n\t\tthis.apply();\n\t}", "public void addPropertyChangeListener (PropertyChangeListener l) {\n pcs.addPropertyChangeListener (l);\n }", "public PropertyChangeListener[] getPropertyChangeListeners();", "protected void do_childSupportFTF_propertyChange(PropertyChangeEvent arg0) {\n\t\tsetIncomeTotal();\n\t}", "public void propertyChange(PropertyChangeEvent event) {\r\n\t\tString property = event.getPropertyName();\r\n\t\tif (\"bendpoint\".equals(property)) //$NON-NLS-1$\r\n\t\t\trefreshVisuals(); \r\n\t}", "public void propertyChange(String propertyName, Object oldValue, Object newValue) {\r\n propertyChangeSupport.firePropertyChange(propertyName, oldValue, newValue);\r\n }", "public void propertyChange(PropertyChangeEvent e)\r\n {\r\n Object source = e.getSource();\r\n if (source == theNumberOfPolygonsField)\r\n {\r\n theNumberOfPolygons = ((Number)theNumberOfPolygonsField.getValue()).intValue();\r\n if (TRACE)\r\n System.out.println(\"Polygons: number of squares = \" + theNumberOfPolygons);\r\n }\r\n else if (source == theMaximumVertexCountField)\r\n {\r\n theMaximumVertexCount = ((Number)theMaximumVertexCountField.getValue()).intValue();\r\n if (TRACE)\r\n System.out.println(\"Polygons: maximum vertex count = \" + theMaximumVertexCount);\r\n }\r\n else if (source == theBBoxLengthField)\r\n {\r\n theBBoxLength = ((Number)theBBoxLengthField.getValue()).intValue();\r\n if (TRACE)\r\n System.out.println(\"Polygons: maximum side length = \" + theBBoxLength);\r\n }\r\n else if(source == theMinimumVertexCountField){\r\n \t theMinimumVertexCount = ((Number)theMinimumVertexCountField.getValue()).intValue();\r\n \t if (TRACE)\r\n System.out.println(\"Polygons: minimum vertex count = \" + theMinimumVertexCount);\r\n }\r\n }", "protected void do_utilityFTF_propertyChange(PropertyChangeEvent arg0) {\n\t\tsetIncomeTotal();\n\t}", "public void propertyChange(PropertyChangeEvent ev) {\n\t\tif (ev.getPropertyName().equals(HPort.PROPERTY_BOUNDS)) this.refreshVisuals();\r\n\t//\tif (ev.getPropertyName().equals(IHProvidesPort.PROPERTY_COLOR)) this.refreshVisuals();\r\n\r\n\t\t\t\r\n\t}", "public void propertyChange(final PropertyChangeEvent _event)\n {\n this.updateStyle();\n }", "public void propertyChange(PropertyChangeEvent e) {\n String name = e.getPropertyName();\n if (name.equals(\"stepnumber\")) { //$NON-NLS-1$\n if (trackerPanel.getSelectedTrack() == this) {\n displayWorldCoordinates();\n stepValueLabel.setText(e.getNewValue() + \":\"); //$NON-NLS-1$\n }\n } else if (name.equals(\"locked\")) { //$NON-NLS-1$\n xField.setEnabled(!isLocked());\n yField.setEnabled(!isLocked());\n } else super.propertyChange(e);\n }", "void addChangeListener(PropertyChangeListener<? super R> listener);", "public void propertiesChanged(String property, String value) {\n\t\tif(property != null) {\n \t\t\tFComponent comp = mainFrame.getSelectedComponent().getComponent();\n \t\t\tif(comp.getLabel() == null || !comp.getLabel().equals(value)) {\n \t\t\t\tcomp.setLabel(value);\n \t\t\t\tmainFrame.refreshPreview();\t\t\t\t\n \t\t\t}\n \t\t}\n \t}", "protected void do_socialSecurityFTF_propertyChange(PropertyChangeEvent arg0) {\n\t\tsetIncomeTotal();\n\t}", "public void testPropertyChange() {\n System.out.println(\"propertyChange\");\n PropertyChangeEvent evt = null;\n Wizard instance = new Wizard();\n instance.propertyChange(evt);\n }", "public void modelPropertyChange(PropertyChangeEvent evt) {\n\t\t\n\t}", "void onPropertyChange(String key);", "default void addPropertyChangeListener(PropertyChangeListener listener)\r\n {\r\n }", "public void propertyChange(PropertyChangeEvent evt) {\n super.propertyChange(evt);\n if (evt.getPropertyName() == \"keeperactivity\") {\n this.setJob((String) evt.getNewValue());\n }\n else if (evt.getPropertyName() == \"foodactivity\"){\n this._makeAnnouncement(\"The food server just served \" + (String) evt.getNewValue());\n }\n }", "public void addPropertyChangeListener(PropertyChangeListener listener) {\n\n\t}", "protected void do_foodStampsFTF_propertyChange(PropertyChangeEvent arg0) {\n\t\tsetIncomeTotal();\n\t}", "public void addPropertyChangeListener (\n String propertyName,\n PropertyChangeListener l\n ) {\n pcs.addPropertyChangeListener (propertyName, l);\n }", "@Override\n public void propertyChange(PropertyChangeEvent evt) {\n\n System.out.println(\"Customer \" + this.name + \" observed a change in \" +\n evt.getPropertyName() + \" of \" + evt.getSource());\n\n System.out.println(\n evt.getOldValue() + \" has changed to \" + evt.getNewValue() + \". \");\n\n System.out.println();\n }", "@Override\n public void propertyChange(java.beans.PropertyChangeEvent ev) {\n fireInAWT(PROP_NODE_CHANGE, null, null);\n }", "@Override\n public void addPropertyChangeListener(PropertyChangeListener listener)\n {\n if (changes == null)\n {\n changes = new PropertyChangeSupport(this);\n }\n changes.addPropertyChangeListener(listener);\n }", "public void propertyChange(PropertyChangeEvent evt) {\n\t\t/*\n\t\t * String prop = evt.getPropertyName();\n\t\t * if(prop.equals(ConceptSelector.CONCEPT_SELECTED) && evt.getNewValue()\n\t\t * != null){ ReportDocument doc =\n\t\t * caseAuthor.getReportPanel().getReportDocument();\n\t\t * doc.clearBackground(); ConceptEntry entry = (ConceptEntry)\n\t\t * evt.getNewValue(); for(ConceptLabel lbl: entry.getLabels()){\n\t\t * lbl.setBackgroundColor(Color.yellow); lbl.update(doc); } }\n\t\t */\n\t}", "public void addPropertyChangeListener(@NotNull PropertyChangeListener listener) {\n }", "public void firePropertyChange(java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue) {\r\n\tgetPropertyChange().firePropertyChange(propertyName, oldValue, newValue);\r\n}", "public void firePropertyChange(String propertyName, Object oldValue, Object newValue);", "protected void do_tanfFTF_propertyChange(PropertyChangeEvent arg0) {\n\t\tsetIncomeTotal();\n\t}", "public void propertyChange(PropertyChangeEvent evt) {\n if(evt.getPropertyName().equals(\"position\")){\n// System.out.println(\"slider property change new val=\"+evt.getNewValue());\n sliderDontProcess=true;\n // note this cool semaphore/flag trick to avoid processing the\n // event generated when we programmatically set the slider position here\n playerSlider.setValue(Math.round(player.getFractionalPosition()*100));\n }else if(evt.getPropertyName().equals(\"readerStarted\")){\n log.info(\"MotionViewer.propertyChange: AEReader started, fixing device control menu\");\n // cypress reader started, can set device control for cypress usbio reader thread\n// fixDeviceControlMenuItems();\n }\n }", "public void propertyChange(PropertyChangeEvent e) {\n super.propertyChange(e);\n String name = e.getPropertyName();\n if (e.getSource() == paramEditor && name.equals(\"edit\")) { //$NON-NLS-1$\n initEditor.getTable().selectOnFocus = false;\n } else if (name.equals(\"angles_in_radians\") && model.trackerPanel != null) { //$NON-NLS-1$\n model.trackerPanel.getTFrame().setAnglesInRadians((Boolean) e.getNewValue());\n }\n }", "public interface PropertyChangeListener<T>\n{\n /**\n * Callback function when there is a change in any property that starts with key\n * It's upto the implementation to handle the following different cases 1) key\n * is a simple key and does not have any children. PropertyStore.getProperty(key) must\n * be used to retrieve the value; 2) key is a prefix and has children.\n * PropertyStore.getPropertyNames(key) must be used to retrieve all the children keys.\n * Its important to know that PropertyStore will not be able to provide the\n * delta[old value,new value] or which child was added/deleted. The\n * implementation must take care of the fact that there might be callback for\n * every child thats added/deleted. General way applications handle this is\n * keep a local cache of keys and compare against the latest keys.\n * \n * @param key\n */\n void onPropertyChange(String key);\n}", "@Override\n\tpublic void propertyChange(PropertyChangeEvent evt) {\n\t\tfillFields();\n\t}", "@Override\n public void propertyChange(PropertyChangeEvent event) {\n if (!hasOverrideFor(event.getProperty()))\n fireMappingChanged(event.getProperty(), event.getOldValue(), event.getNewValue());\n }", "public synchronized void addPropertyChangeListener(java.beans.PropertyChangeListener listener) {\r\n\tgetPropertyChange().addPropertyChangeListener(listener);\r\n}", "@Override\n public void propertyChange(PropertyChangeEvent event) {\n if (PrologAtoms.ENCODING.equals(event.getPropertyName())) {\n Term value = (Term) event.getNewValue();\n } else if (event.getPropertyName().equals(\"file_name\")) {\n setPath(Paths.get((String) event.getNewValue()));\n }\n setEncodingChanged(isEncodingPermitted());\n encodingPermitted = false;\n }", "public void propertiesChanged(AntProjectEvent ev) {\n }", "public String listen(String key, PropertyChangedCallback callback);", "@Override\n public void addPropertyChangeListener( String propertyName, PropertyChangeListener listener )\n {\n if( componentModel == null )\n return;\n\n if( propertyName==null )\n {\n componentModel.addPropertyChangeListener( listener );\n }\n else\n {\n Property prop = componentModel.findProperty( propertyName );\n if ( prop != null )\n {\n prop.addPropertyChangeListener( listener );\n }\n }\n }", "@Override\n\t\t\t\tpublic void propertyChange(PropertyChangeEvent evt) {\n\t\t\t\t\tswitch (evt.getPropertyName()) {\n\n\t\t\t\t\t// propertyName progress tells us progress value\n\t\t\t\t\tcase \"progress\":\n\t\t\t\t\t\twindow.setScalingProgressBar((Integer) evt.getNewValue());\n\t\t\t\t\t}\n\n\t\t\t\t}", "@Override\n\tpublic void propertyChange(PropertyChangeEvent event) {\n\t\tString property = event.getPropertyName();\n\t\tif (property.equals(Global.DRAG_EVENT) && isVisible()) { //don't have to move invisible markers\n\t\t\thandleDrag(event.getOldValue(), event.getNewValue());\n\t\t} else if (property.startsWith(Global.ZOOM)){\n\t\t\thandleZoom();\n\t\t}\n\t}", "public void propertyChange(PropertyChangeEvent evt)\n/* */ {\n/* 76 */ CompoundPainter<?> painter = (CompoundPainter)this.ref.get();\n/* */ \n/* 78 */ if (painter == null) {\n/* 79 */ AbstractPainter<?> src = (AbstractPainter)evt.getSource();\n/* 80 */ src.removePropertyChangeListener(this);\n/* */ } else {\n/* 82 */ String property = evt.getPropertyName();\n/* */ \n/* 84 */ if ((\"dirty\".equals(property)) && (evt.getNewValue() == Boolean.FALSE)) {\n/* 85 */ return;\n/* */ }\n/* */ \n/* 88 */ painter.setDirty(true);\n/* */ }\n/* */ }", "public void addPropertyChangeListener(PropertyChangeListener pListener) {\n \tmodel.addPropertyChangeListener(pListener);\n }", "public final void propertyChange(final PropertyChangeEvent event) {\n\t\tfinal Object subject = event.getSource();\n\t\tfinal String changedProperty = event.getProperty();\n\n\t\tif (PropertyChangeNames.isStatusChange(changedProperty)) {\n\t\t\tassert ModelUtils.isModelItem(subject);\n\n\t\t\tif (subject == deviceUnderDisplay) {\n\t\t\t\t// final DeviceStatus status = (DeviceStatus)\n\t\t\t\t// event.getNewValue();\n\t\t\t\tif (compositeUnderDisplay instanceof DeviceUI\n\t\t\t\t\t\t&& !compositeUnderDisplay.isDisposed()) {\n\t\t\t\t\t((DeviceUI) compositeUnderDisplay)\n\t\t\t\t\t\t\t.updateControls((Device) subject);\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (PropertyChangeNames.isNodeRemove(changedProperty)) {\n\t\t\tViewUtils.disposeExistingControls(top);\n\t\t\tViewUtils.createLabelPane(top, NO_VALID_SELECTION);\n\t\t} else if (PropertyChangeNames.isProjectLoading(changedProperty)) {\n\t\t\t/*\n\t\t\t * Handle the change of the current project.\n\t\t\t */\n\t\t\tif (subject instanceof Project) {\n\t\t\t\tfinal Project project = (Project) subject;\n\t\t\t\tfinal NetworkInterfaceManager manager = project\n\t\t\t\t\t\t.getNetworkInterfaceManager();\n\n\t\t\t\tif (manager != null) {\n\t\t\t\t\t/*\n\t\t\t\t\t * Set the network status listener as a network monitor in\n\t\t\t\t\t * order to receive all the network events.\n\t\t\t\t\t */\n\t\t\t\t\tmanager.addConnectionStatusListener(connectionStatusListener);\n\n\t\t\t\t\t/*\n\t\t\t\t\t * Set the dispatcher status listener to show warnings when\n\t\t\t\t\t * messages are not being delivered.\n\t\t\t\t\t */\n\t\t\t\t\tmanager.addDispatcherListener(dispatcherListener);\n\t\t\t\t}\n\n\t\t\t\tProjectModel.getInstance().addDeviceConnectivityListener(\n\t\t\t\t\t\tconnectivityChangeListener);\n\t\t\t}\n\n\t\t\tsetDeviceUnderDisplay(null);\n\t\t\tViewUtils.createLabelPane(top, NO_VALID_SELECTION);\n\t\t}\n\t}", "protected void firePropertyChange(String propertyName, Object oldValue, Object newValue)\n/* */ {\n/* 291 */ if (\"text\".equals(propertyName)) {\n/* 292 */ super.firePropertyChange(propertyName, oldValue, newValue);\n/* */ }\n/* */ }", "public final void propertyChange(PropertyChangeEvent evt) {\n Object oldValue = evt.getOldValue();\n Object newValue = evt.getNewValue();\n String propertyName = evt.getPropertyName();\n if ((oldValue instanceof Document) || (newValue instanceof Document)) {\n if (oldValue != null) {\n ((Document)oldValue).removeDocumentListener(this);\n i18nView = false;\n }\n if (newValue != null) {\n ((Document)newValue).addDocumentListener(this);\n if (\"document\" == propertyName) {\n setView(null);\n BasicTextUI.this.propertyChange(evt);\n modelChanged();\n return;\n }\n }\n modelChanged();\n }\n if (\"focusAccelerator\" == propertyName) {\n updateFocusAcceleratorBinding(true);\n } else if (\"componentOrientation\" == propertyName) {\n // Changes in ComponentOrientation require the views to be\n // rebuilt.\n Document document = editor.getDocument();\n final String I18NProperty = \"i18n\";\n // if a default direction of right-to-left has been specified,\n // we want complex layout even if the text is all left to right.\n if (ComponentOrientation.RIGHT_TO_LEFT == newValue\n && ! Boolean.TRUE.equals(document.getProperty(I18NProperty))) {\n document.putProperty(I18NProperty, Boolean.TRUE);\n }\n modelChanged();\n } else if (\"font\" == propertyName) {\n modelChanged();\n } else if (\"dropLocation\" == propertyName) {\n dropIndexChanged();\n } else if (\"editable\" == propertyName) {\n updateCursor();\n modelChanged();\n }\n BasicTextUI.this.propertyChange(evt);\n }", "public void propertyChange(PropertyChangeEvent param1PropertyChangeEvent) {\n/* 1520 */ String str = param1PropertyChangeEvent.getPropertyName();\n/* 1521 */ if (str == \"horizontalScrollBar\" || str == \"verticalScrollBar\")\n/* */ {\n/* */ \n/* 1524 */ if (param1PropertyChangeEvent.getNewValue() instanceof JScrollBar) {\n/* 1525 */ setScrollBarRelations((JScrollBar)param1PropertyChangeEvent.getNewValue());\n/* */ }\n/* */ }\n/* */ }", "@Override\n\tpublic void addPropertyChangeListener(PropertyChangeListener l) {\n\t\t//do nothing\n\t}", "@Override\n\tpublic void onPropertyModified(PropertyDescriptor descriptor, String oldValue, String newValue) {\n\t\tsuper.onPropertyModified(descriptor, oldValue, newValue);\n\t\t\n\t\t\n\t\t\n\t}", "public void notifyChanged(final Notification msg) {\r\n\t super.notifyChanged(msg);\r\n\t \r\n\t if(msg.getFeature() == PropertiesPackage.Literals.PROPERTY__VALUE) {\r\n\t \tsetGUIAttributes();\r\n\t }\r\n\t }", "public void addPropertyChangeListener(PropertyChangeListener pcl) {\n\t\tproperties.addListener(pcl);\n\t}", "public void propertyChange(PropertyChangeEvent evt)\n {\n String propertyName = evt.getPropertyName();\n \n if (propertyName.equals(CallPeer.MUTE_PROPERTY_NAME))\n {\n boolean isMute = (Boolean) evt.getNewValue();\n \n renderer.setMute(isMute);\n \n // Update the state of the mute button.\n renderer.getCallDialog().updateMuteButtonState();\n }\n }", "public abstract void addPropertyChangeListener(PropertyChangeListener listener, String kenaiHostUrl);", "public void propertyChange(PropertyChangeEvent pce)\n\t{\n\t\tif(pce.getPropertyName().equals(\"NEWVERSION\"))\n\t\t{\n\t\t\t// Display new version in history area\n\t\t\tshowVersionHistory((Version) pce.getNewValue());\n\t\t}\n\t\telse if(pce.getPropertyName().equals(\"NEWJAVASOURCEFILE\"))\n\t\t{\n\t\t\t// Clear history area\n\t\t\tclearVersionHistoryPanel();\n\t\t\t\n\t\t\t// Display new Java source file version history\n\t\t\tshowVersionHistory(((JavaSourceFile) pce.getNewValue()).getListVersions());\n\t\t}\n\t}", "protected void addListenerForProperty(MapChangeListener<Object, Object> aMapChangeListener, String aProperty) {\n\n // Create a wrapper, which will only trigger the given Listener when the given property has changed.\n MapChangeListener<Object, Object> tmpListenerWrapper = (aChange -> {\n\n // Current document changed?\n if (aChange.getKey().equals(aProperty)) {\n\n aMapChangeListener.onChanged(aChange);\n }\n });\n\n // Add the wrapper listener to our List of added Listeners\n stagePropertiesListenersList.add(tmpListenerWrapper);\n\n // Add it to the stage properties.\n stage.getProperties().addListener(tmpListenerWrapper);\n }", "protected java.beans.PropertyChangeSupport getPropertyChange() {\r\n\tif (propertyChange == null) {\r\n\t\tpropertyChange = new java.beans.PropertyChangeSupport(this);\r\n\t};\r\n\treturn propertyChange;\r\n}", "@Override\n public synchronized void addPropertyChangeListener(PropertyChangeListener listener) {\n if (listeners == null) {\n listeners = new PropertyChangeSupport(this);\n }\n listeners.addPropertyChangeListener(listener);\n }", "public void addPropertyChangeListener(Property property, PropertyChangeListener listener) {\n this.propertyChangeSupport.addPropertyChangeListener(property.name(), listener);\n }", "public void addPropertyChangeListener(PropertyChangeListener l) {\n getPropertyChangeSupport().addPropertyChangeListener(l);\n }", "protected void do_disabilityFTF_propertyChange(PropertyChangeEvent arg0) {\n\t\tsetIncomeTotal();\n\t}", "public void addPropertyChangeListener(PropertyChangeListener listener) {\n \tmPropertyChangeSupport.addPropertyChangeListener(listener);\n }", "public void addPropertyChangeListener(java.beans.PropertyChangeListener l) {\r\n propertyChangeSupport.addPropertyChangeListener(l);\r\n }", "protected void fireChangeEvent (ModelProperties prop)\n {\n\tJsimEvent evt;\n\tString\t SLASH = System.getProperty (\"file.separator\");\n\tString fname = System.getProperty (\"user.home\");\n\tString xmlStr;\n\n\tif (use_xml) {\n try {\n Vector data = new Vector (); data.add (prop);\n if (generate_xml_files) {\n\t\t fname += SLASH + \"JSIM\" + SLASH + \"jsim\" + SLASH +\n\t\t\t\t\"jmessage\" + SLASH + \"change.xml\";\n\t\t xmlStr = XMLSerializer.serialize (data, fname);\n\t\t} else {\n\t\t xmlStr = XMLSerializer.serialize (data);\n\t\t}; // if\n } catch (Exception e) {\n trc.tell (\"fireChangeEvent\", e.getMessage ());\n e.printStackTrace ();\n return;\n }\n\t evt = new JsimEvent (this, EventMap.CHANGE_EVT, xmlStr);\n\t} else {\n\t evt = new JsimEvent (this, EventMap.CHANGE_EVT, prop);\n\t}; // if\n\n propCache = prop;\n\tfireJsimEvent (evt);\n \n }", "public PropertyChangeEvent(Object source, String propertyName,\n Object oldVal, Object newVal)\n {\n super(source);\n this.propertyName = propertyName;\n oldValue = oldVal;\n newValue = newVal;\n }", "public void propertyChange(java.beans.PropertyChangeEvent evt) {\r\n\t//\r\n\t// must listen to the following events:\r\n\t// this.simulationContext\r\n\t//\t\tsimulationContext.GeometryContext.geometry\r\n\t// simulationContext.GeometryContext.structureMappings\r\n\t// StructureMapping.resolved\r\n\t//\r\n\t// this.speciesContextSpec\r\n\t// SpeciesContextSpec.parameters\r\n\t// Parameter.*\r\n\t//\r\n\ttry {\t\t\r\n\t\t//\r\n\t\t// if geometry changes (could affect spatially resolved boundaries).\r\n\t\t//\r\n\t\tif (fieldSpeciesContextSpec != null && evt.getSource() == fieldSpeciesContextSpec.getSimulationContext().getGeometryContext() \r\n\t\t\t\t&& evt.getPropertyName().equals(\"geometry\")){\r\n\t\t\trefreshData();\r\n\t\t}\r\n\t\t//\r\n\t\t// if structureMappings array changes (could affect spatially resolved boundaries).\r\n\t\t//\r\n\t\tif (fieldSpeciesContextSpec != null && evt.getSource() == fieldSpeciesContextSpec.getSimulationContext().getGeometryContext() \r\n\t\t\t\t&& evt.getPropertyName().equals(\"structureMappings\")){\r\n\t\t\tStructureMapping[] oldStructureMappings = (StructureMapping[])evt.getOldValue();\r\n\t\t\tfor (int i = 0; oldStructureMappings!=null && i < oldStructureMappings.length; i++){\r\n\t\t\t\toldStructureMappings[i].removePropertyChangeListener(this);\r\n\t\t\t}\r\n\t\t\tStructureMapping[] newStructureMappings = (StructureMapping[])evt.getNewValue();\r\n\t\t\tfor (int i = 0; newStructureMappings!=null && i < newStructureMappings.length; i++){\r\n\t\t\t\tnewStructureMappings[i].addPropertyChangeListener(this);\r\n\t\t\t}\r\n\t\t\trefreshData();\r\n\t\t}\r\n\t\t//\r\n\t\t// if structureMapping changes (could affect spatially resolved boundaries).\r\n\t\t//\r\n\t\tif (evt.getSource() instanceof StructureMapping){\r\n\t\t\trefreshData();\r\n\t\t}\r\n\t\t\r\n\t\tif (evt.getSource() == this && evt.getPropertyName().equals(\"speciesContextSpec\")) {\r\n\t\t\tSpeciesContextSpec oldValue = (SpeciesContextSpec)evt.getOldValue();\r\n\t\t\tif (oldValue!=null){\r\n\t\t\t\toldValue.removePropertyChangeListener(this);\r\n\t\t\t\tParameter oldParameters[] = oldValue.getParameters();\r\n\t\t\t\tif (oldParameters!=null) {\r\n\t\t\t\t\tfor (int i = 0; i<oldParameters.length; i++){\r\n\t\t\t\t\t\toldParameters[i].removePropertyChangeListener(this);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tSimulationContext oldSimContext = oldValue.getSimulationContext();\r\n\t\t\t\tif (oldSimContext!=null){\r\n\t\t\t\t\toldSimContext.getGeometryContext().removePropertyChangeListener(this);\r\n\t\t\t\t\tStructureMapping[] oldStructureMappings = oldSimContext.getGeometryContext().getStructureMappings();\r\n\t\t\t\t\tif (oldStructureMappings!=null) {\r\n\t\t\t\t\t\tfor (int i = 0; i < oldStructureMappings.length; i++){\r\n\t\t\t\t\t\t\toldStructureMappings[i].removePropertyChangeListener(this);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tSpeciesContextSpec newValue = (SpeciesContextSpec)evt.getNewValue();\r\n\t\t\tif (newValue!=null){\r\n\t\t\t\tnewValue.addPropertyChangeListener(this);\r\n\t\t\t\tParameter newParameters[] = newValue.getParameters();\r\n\t\t\t\tif (newParameters != null) {\r\n\t\t\t\t\tfor (int i = 0; i < newParameters.length; i ++){\r\n\t\t\t\t\t\tnewParameters[i].addPropertyChangeListener(this);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tSimulationContext newSimContext = newValue.getSimulationContext();\r\n\t\t\t\tif (newSimContext!=null){\r\n\t\t\t\t\tnewSimContext.getGeometryContext().addPropertyChangeListener(this);\r\n\t\t\t\t\tStructureMapping[] newStructureMappings = newSimContext.getGeometryContext().getStructureMappings();\r\n\t\t\t\t\tif (newStructureMappings != null) {\r\n\t\t\t\t\t\tfor (int i = 0; i < newStructureMappings.length; i++){\r\n\t\t\t\t\t\t\tnewStructureMappings[i].addPropertyChangeListener(this);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\trefreshData();\r\n\t\t}\r\n\t\tif (evt.getSource() instanceof SpeciesContextSpec){\r\n\t\t\t// if parameters changed must update listeners\r\n\t\t\tif (evt.getPropertyName().equals(\"parameters\")) {\r\n\t\t\t\tParameter oldParameters[] = (Parameter[])evt.getOldValue();\r\n\t\t\t\tif (oldParameters!=null) {\r\n\t\t\t\t\tfor (int i = 0;i<oldParameters.length; i++){\r\n\t\t\t\t\t\toldParameters[i].removePropertyChangeListener(this);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tParameter newParameters[] = (Parameter[])evt.getNewValue();\r\n\t\t\t\tif (newParameters!=null) {\r\n\t\t\t\t\tfor (int i = 0;i<newParameters.length; i++){\r\n\t\t\t\t\t\tnewParameters[i].addPropertyChangeListener(this);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (!evt.getPropertyName().equals(SpeciesContextSpec.PARAMETER_NAME_PROXY_PARAMETERS)) {\r\n\t\t\t\t// for any change to the SpeciesContextSpec, want to update all.\r\n\t\t\t\t// proxy parameters don't affect table\r\n\t\t\t\trefreshData();\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(evt.getSource() instanceof Parameter){\r\n\t\t\trefreshData();\r\n\t\t}\r\n\t} catch (Exception e){\r\n\t\te.printStackTrace(System.out);\r\n\t}\r\n}", "protected void do_salaryFTF_propertyChange(PropertyChangeEvent arg0) {\n\t\tsetIncomeTotal();\n\t}", "public void propertyChange(PropertyChangeEvent evt)\n {\n //if (\"progress\" == evt.getPropertyName())\n if (\"progress\".equalsIgnoreCase( evt.getPropertyName()))\n {\n int progress = (Integer) evt.getNewValue();\n System.out.println(String.format(\"Completed %d%% of task.\\n\", task.getProgress()));\n jLabelRegion.setText(progress+\"%\");\n System.out.println(\"valeur:\"+progress);\n }\n }", "public void addPropertyChangeListener(java.beans.PropertyChangeListener listener) {\n\tmPcs.addPropertyChangeListener(listener);\n }", "public void propertyChange(PropertyChangeEvent e) {\n\t\tString property = e.getPropertyName();\n\n\t\tif (isVisible() && (e.getSource() == optionPane)\n\t\t\t\t&& (JOptionPane.VALUE_PROPERTY.equals(property) || JOptionPane.INPUT_VALUE_PROPERTY.equals(property))) {\n\n\t\t\t// retrieve current value, check if initialized\n\t\t\tObject value = optionPane.getValue();\n\t\t\tif (value == JOptionPane.UNINITIALIZED_VALUE)\n\t\t\t\treturn;\n\n\t\t\t// reset current value\n\t\t\toptionPane.setValue(JOptionPane.UNINITIALIZED_VALUE);\n\n\t\t\tif (okString.equals(value)) {\n\t\t\t\tvalidChoice = true;\n\t\t\t\tsetVisible(false);\n\t\t\t} else {\n\t\t\t\tvalidChoice = false;\n\t\t\t\tsetVisible(false);\t\t\t\t\n\t\t\t\t// JOptionPane.showMessageDialog(optionPane.getRootFrame(),\n\t\t\t\t// \"No database connection established.\",\n\t\t\t\t// \"\",\n\t\t\t\t// JOptionPane.WARNING_MESSAGE);\n\t\t\t}\n\t\t}\n\t}", "@Override\n public void propertyChange(PropertyChangeEvent pce) {\n if (null == map) {\n return;\n }\n\n map.getOrDefault(pce.getPropertyName(), Collections.emptyList())\n .forEach(pcl -> pcl.propertyChange(pce));\n }" ]
[ "0.84357685", "0.8410747", "0.8410747", "0.8385474", "0.8343974", "0.8314938", "0.83047014", "0.8188567", "0.79902107", "0.7931342", "0.7841269", "0.77489847", "0.7730267", "0.7724207", "0.7700965", "0.7698504", "0.7681836", "0.76622885", "0.764269", "0.74898624", "0.74854356", "0.7480101", "0.7476259", "0.73951817", "0.7390086", "0.7283663", "0.724965", "0.72388756", "0.72340316", "0.7224355", "0.7198065", "0.71778524", "0.7166271", "0.7161874", "0.7156042", "0.71529484", "0.7151417", "0.71448845", "0.71349955", "0.7132167", "0.7118132", "0.71115375", "0.7092032", "0.7080075", "0.70792425", "0.70625204", "0.70555484", "0.7042059", "0.70285445", "0.70188874", "0.70057046", "0.7004399", "0.6992239", "0.6990982", "0.69835883", "0.69788384", "0.6965674", "0.6965343", "0.6939378", "0.69375986", "0.69280255", "0.6908113", "0.6896253", "0.6890559", "0.688678", "0.68801665", "0.68758094", "0.68732786", "0.68727756", "0.67902446", "0.6790056", "0.6785713", "0.676171", "0.67536545", "0.6740437", "0.6739502", "0.6725583", "0.6718807", "0.67131746", "0.6701869", "0.6684786", "0.66834795", "0.6672229", "0.6670639", "0.6669508", "0.6667461", "0.6631463", "0.66289943", "0.6626624", "0.6624445", "0.66227245", "0.66111183", "0.6597857", "0.6584887", "0.6583772", "0.6582832", "0.657307", "0.65686196", "0.656681", "0.6556027", "0.6553486" ]
0.0
-1
/ tree selection listener: valueChanged
public void valueChanged(TreeSelectionEvent e) { DefaultMutableTreeNode node = (DefaultMutableTreeNode) tree.getLastSelectedPathComponent(); sheet.displayNode(node); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void valueChanged (TreeSelectionEvent event)\n {\n updateSelection();\n }", "@Override\r\n public void valueChanged(TreeSelectionEvent e) {\n }", "public void valueChanged(TreeSelectionEvent e) {\n\t}", "@Override\n public void valueChanged(TreeSelectionEvent e) {\n\n }", "public void valueChanged(TreeSelectionEvent evt) {\n\t\t\t\tTreePath selectedPath = tree.getSelectionPath();\n\t\t\t\tif (selectedPath != null)\n\t\t\t\t\tSystem.out.println(\"In TreeSelectionListener: \"\n\t\t\t\t\t\t\t+ selectedPath.getLastPathComponent());\n\t\t\t}", "public void valueChanged(TreeSelectionEvent e) {\n DefaultMutableTreeNode node = (DefaultMutableTreeNode) getLastSelectedPathComponent();\n\n if (node == null)\n return;\n }", "public void valueChanged( TreeSelectionEvent e )\n {\n //throw new UnsupportedOperationException( \"Not supported yet.\" );\n }", "public void valueChanged(TreeSelectionEvent e) {\r\n DefaultMutableTreeNode node = (DefaultMutableTreeNode)\r\n tree.getLastSelectedPathComponent();\r\n \r\n Node n = (Node)node.getUserObject();\r\n \r\n if (tree == null) return;\r\n \r\n htmlPane.setText(Homework1.inorder(n)+\"=\"+Homework1.calculate(n));\r\n \r\n }", "public void valueChanged(TreeSelectionEvent e) {\n DefaultMutableTreeNode TreeN = (DefaultMutableTreeNode)\n tree.getLastSelectedPathComponent();\n \n if (TreeN == null) return;\n \n Object nodeIn = TreeN.getUserObject();\n Node y = (Node)nodeIn;\n Homework1.inorder(y);\n htmlPane.setText(y.value.toString());\n \n }", "public void valueChanged(TreeSelectionEvent ev) {\n controller.removeSelectionListener(modelSelectionListener);\r\n controller.setSelectedFurniture(getSelectedFurniture());\r\n controller.addSelectionListener(modelSelectionListener);\r\n }", "public void valueChanged(TreeSelectionEvent e) \r\n {\r\n DefaultMutableTreeNode node = (DefaultMutableTreeNode)\r\n tree.getLastSelectedPathComponent();\r\n\r\n if (node == null) return;\r\n\r\n Object nodeInfo = node.getUserObject();\r\n Chat_TreeNode TreeNode;\r\n TreeNode=(Chat_TreeNode)nodeInfo;\r\n //Currently just displays node name,need to display description\r\n description.setDescription(TreeNode.getDesc());\r\n \r\n if (node.isLeaf()) \r\n {\r\n ChatID=TreeNode.toString();\r\n }\r\n else\r\n {\r\n \tChatID=\"\";\r\n \t\r\n }\r\n }", "private void AccessoryTree_valueChanged(\r\n\t\tTreeSelectionEvent e) {\n\t \r\n\t}", "@Override\n\tpublic void valueChanged(TreeSelectionEvent eve) {\n\t DefaultMutableTreeNode node = (DefaultMutableTreeNode)\n\t ((JTree) eve.getSource()).getLastSelectedPathComponent();\n\n\t if (node == null)\n\t //Nothing is selected. \n\t return;\n\n\t Object nodeInfo = node.getUserObject();\n\t if (node.isLeaf()) {\n\t \tHackNode book = (HackNode)nodeInfo;\n\t \t//System.out.println(book.location);\n\t loadHack(book.loc);\n\t }\n\t}", "protected void treeValueChanged(TreeSelectionEvent e, JTree jTree) {\r\n\r\n\t\t//Returns the last path element of the selection.\r\n\t\t//This method is useful only when the selection model allows a single selection.\r\n//\t\tif (jTree.isFocusOwner()||jTree.requestFocusInWindow()){\r\n//\t\t\tSystem.out.println(\"Fokus 005 Tree vor\");\r\n\t\t DefaultMutableTreeNode node = (DefaultMutableTreeNode)jTree.getLastSelectedPathComponent();\r\n\t\t if (node==null){\r\n\t\t \t//nix ist gewählt\r\n\t\t \tLog.log().finest(\"TreeView:no node\");\r\n\t\t }else{\r\n\t\t \tModelKnotenBean selectedModelKnotenBean = (ModelKnotenBean) node.getUserObject();\r\n\t\t \t//ausgewählten Knoten an Kontroller weitergeben.\r\n\t\t \tLog.log().finest(\"TreeView:\" + selectedModelKnotenBean.toString());\r\n\t\t \tgetTreeController().selectKnoten(selectedModelKnotenBean);\r\n\t\t }\r\n//\t\t\tSystem.out.println(\"Fokus 005 Tree nach\");\r\n\t\t\t\r\n//\t\t}else{\r\n//\t\t\tSystem.out.println(\"kein Fokus 004 Tree\");\r\n//\t\t}\r\n\t}", "@Override\n\tpublic abstract void valueChanged(ListSelectionEvent arg0);", "public void valueChanged(ListSelectionEvent e)\n\t\t\t{\n\t\t\t}", "@Override\r\n public void valueChanged(ListSelectionEvent e) {\n selectionChanged();\r\n }", "public void valueChanged(ListSelectionEvent e) {\n\t\t\n\t}", "public void valueChanged(ListSelectionEvent arg0) {\n\t\t\r\n\t}", "public void valueChanged(javax.swing.event.TreeSelectionEvent treeSelectionEvent) {\r\n //Addded for Case#2445 - proposal development print forms linked to indiv sponsor, should link to sponsor hierarchy - Start\r\n if(sponsorHierarchyTree.isEditing() && isPrintingHierarchy){\r\n saveRequiredToLoadForm = true;\r\n }\r\n //Case#2445 - End\r\n selTreePath = treeSelectionEvent.getNewLeadSelectionPath();\r\n if(selTreePath == null)\r\n return;\r\n selectedNode = (DefaultMutableTreeNode)selTreePath.getLastPathComponent();\r\n \r\n// if(EMPTY_STRING.equals(treeSelectionEvent.getOldLeadSelectionPath().getLastPathComponent().toString())) {\r\n// CoeusOptionPane.showInfoDialog(coeusMessageResources.parseMessageKey(\"maintainSponsorHierarchy_exceptionCode.1257\"));\r\n//// sponsorHierarchyTree.addSelectionPath(treeSelectionEvent.getOldLeadSelectionPath());\r\n// sponsorHierarchyTree.startEditingAtPath(treeSelectionEvent.getOldLeadSelectionPath());\r\n// }\r\n if(sponsorHierarchyTree.getSelectionPaths().length >1) {\r\n String s = treeSelectionEvent.getOldLeadSelectionPath().getLastPathComponent().toString();\r\n if(((DefaultMutableTreeNode)treeSelectionEvent.getOldLeadSelectionPath().getLastPathComponent()).getAllowsChildren()) {\r\n sponsorHierarchyTree.getSelectionModel().removeSelectionPath(treeSelectionEvent.getOldLeadSelectionPath());\r\n sponsorHierarchyTree.getSelectionModel().addSelectionPath(selTreePath);\r\n }\r\n TreePath[] path = sponsorHierarchyTree.getSelectionPaths();\r\n int count = 0;\r\n for(int selPathIndex=0; selPathIndex<path.length;selPathIndex++) {\r\n if(((DefaultMutableTreeNode)path[selPathIndex].getLastPathComponent()).getAllowsChildren()){\r\n count++;\r\n if(count>1)\r\n sponsorHierarchyTree.getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION);\r\n }\r\n }\r\n }\r\n selectedValue = (String)selectedNode.getUserObject();\r\n }", "@Override\r\n\t\t\tpublic void valueChanged(TreeSelectionEvent e) {\n\t\t\t\tObject lpc = e.getPath().getLastPathComponent();\r\n\t\t\t\tif (lpc instanceof McTreeNode) {\r\n\t\t\t\t\tObject obj = ((McTreeNode) lpc).getUserObject();\r\n\t\t\t\t\tif(obj instanceof Link){\r\n\t\t\t\t\t\tgenerateLinkLabel((Link)obj);\t\t\t\t\t\t\t\r\n\t\t\t\t\t}else if(obj instanceof Mart){\r\n\t\t\t\t\t\temptyLinkLabel((Mart)obj);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}", "@Override\r\n\t\tpublic void valueChanged(ListSelectionEvent e) {\r\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void valueChanged(TreeSelectionEvent e) {\n\n\t\tTreePath path = e.getPath();\n\t\t/**\n\t\t * provera sta je selektovano ako nije Project, ikona za new diag je\n\t\t * iskljucena\n\t\t */\n\t\tif (path.getLastPathComponent() instanceof Diagram\n\t\t\t\t|| path.getLastPathComponent() instanceof Workspace) {\n\t\t\tMainFrame.getInstance().getActionManager().getFileNewDiagAction()\n\t\t\t\t\t.setEnabled(false);\n\n\t\t} else {\n\t\t\tMainFrame.getInstance().getActionManager().getFileNewDiagAction()\n\t\t\t\t\t.setEnabled(true);\n\n\t\t}\n\n\t\t/**\n\t\t * prolazak kroz kolekciju dijagrama i provera koji diag ce doci u fokus\n\t\t */\n\t\tfor (int i = 0; i < path.getPathCount(); i++) {\n\t\t\tif (path.getPathComponent(i) instanceof Diagram) {\n\t\t\t\tdiag = (Diagram) path.getPathComponent(i);\n\t\t\t\tString dname = diag.getName();\n\n\t\t\t\tJInternalFrame[] allframes = MainFrame.getInstance()\n\t\t\t\t\t\t.getDesktop().getAllFrames();\n\n\t\t\t\tfor (int j = 0; j < allframes.length; j++) {\n\t\t\t\t\tif (dname == allframes[j].getName()) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tallframes[j].setSelected(true);\n\t\t\t\t\t\t\tallframes[j].setVisible(true);\n\t\t\t\t\t\t} catch (PropertyVetoException e1) {\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic void valueChanged(ListSelectionEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void selectionChanged(SelectionChangedEvent arg0) {\n\t\t\n\t}", "@Override\n \tpublic void valueChanged(ListSelectionEvent e) { \n \t\tListSelectionModel lsm = (ListSelectionModel) e.getSource();\n \n \t\tif (!lsm.isSelectionEmpty()) {\n \t\t\tint selection = table.convertRowIndexToModel(getSelection(lsm));\n \t\t\tnotifySelectionListeners(list.getPackage(selection));\t\n \t\t}\n \t}", "void onTreeChange(TreeChangeEvent event);", "public void valueChanged( ListSelectionEvent event )\r\n {\r\n if( !event.getValueIsAdjusting() ) \r\n {\r\n ListSelectionModel model = m_list.getSelectionModel();\r\n synchronized( model )\r\n {\r\n Object old = m_selection;\r\n m_selection = (TransitModel) m_list.getSelectedValue();\r\n if( null != m_selection )\r\n {\r\n try\r\n {\r\n TransitPanel panel = \r\n new TransitPanel( m_parent, m_selection );\r\n m_splitPane.setRightComponent( panel );\r\n m_splitPane.setDividerLocation( 100 );\r\n }\r\n catch( Throwable e )\r\n {\r\n e.printStackTrace();\r\n }\r\n }\r\n }\r\n }\r\n }", "public void selectionChanged(Selection selecton) {\r\n }", "public void valueChanged(ListSelectionEvent e) {\r\n\t\tif (e.getValueIsAdjusting() == false)\r\n\t\t\tsetSelectedObjects();\r\n\r\n\t\tgetTable().repaint();\r\n\t}", "protected void valueChanged() {\r\n \t\tint newValue = slider.getSelection();\r\n \t\tint oldValue = this.intValue;\r\n \t\tintValue = newValue;\r\n \t\tjava.beans.PropertyChangeEvent event = new java.beans.PropertyChangeEvent(\r\n \t\t\t\tthis, IPropertyEditor.VALUE, oldValue, newValue);\r\n \t\tvalueChangeListener.valueChange(event);\r\n \t}", "@Override\n public void valueChanged(ListSelectionEvent arg0) {\n\n }", "public void treeNodesChanged(TreeModelEvent e) {\n //To change body of implemented methods use Options | File Templates.\n }", "@Override\n public void onValueSelected(int arcIndex, SliceValue value) {\n }", "@Override\n public void onValueSelected(int arcIndex, SliceValue value) {\n }", "@Override\n\t\t\tpublic void valueChanged(ListSelectionEvent arg0) {\n\t\t\t\tif (!arg0.getValueIsAdjusting()){\n\t\t\t\t\tKIDSUITimePeriodComponent selected = timePeriodJList.getSelectedValue();\n\t\t\t\t\tpopulateTree(top, eventJList.getSelectedValue(), selected);\n\t\t\t\t\tParameterTree.repaint();\n\t\t\t\t\tselectedTimePeriod = selected;\n\t\t\t\t}\n\t\t\t}", "public void selectOneMenuListener(ValueChangeEvent event) {\n\t Object newValue = event.getNewValue(); \n\t //The rest of your processing logic goes here...\n\t}", "@Override\n public void valueChanged(final ListSelectionEvent e) {\n if (e.getValueIsAdjusting()) {\n return;\n }\n showObject();\n }", "public void valueChanged(ListSelectionEvent e){\n\t\tif(e.getValueIsAdjusting()) return;\n\t\t\n\t\t//\tget selected DataObjects\n\t\tclear();\n\t\taddAll(list != null ? JBNDUtil.castArray(list.getSelectedValues(), DataObject.class) : \n\t\t\tJBNDSwingUtil.selectedRecords(table));\n\t}", "public void dropDown1_processValueChange(ValueChangeEvent event) {\n \n }", "private void gListValueChanged(ListSelectionEvent e) {\n }", "@Override\n\tpublic void onValueSelected(Entry e, int dataSetIndex, Highlight h) {\n\t\t\n\t}", "public void valueForPathChanged(TreePath path, Object newValue) {\n\t}", "public void valueForPathChanged(TreePath path, Object newValue) {\n\t}", "@Override\n\tpublic void valueChange(ValueChangeEvent event) {\n\t\t\n\t}", "public void valueForPathChanged(TreePath path, Object newValue) {\n\n\t}", "public void valueChanged(TreeSelectionEvent e) {\n\t\t\tnew UserViewPanel((User)twitterService.searchUser(e.getPath().getLastPathComponent().toString()),twitterService);\n\t\t}", "@Override\n\t\t\t\tpublic void valueChanged(TreeSelectionEvent e) {\n\t\t\t\t\tTreePath path = tree.getSelectionPath();\n\t\t\t\t\tif(path == null)\n\t\t\t\t\t\treturn;\n\t\t\t\t\tDefaultMutableTreeNode selectedNode = (DefaultMutableTreeNode)path.getLastPathComponent();\n\t\t\t\t\tif(selectedNode.equals(teacIfo)) {//选中教师个人信息\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null,\"该功能尚未开放!\");\n\t\t\t\t\t}\n\t\t\t\t\tif(selectedNode.equals(studIfo)) {//选择学生个人信息\n\t\t\t\t\t\tJPanel panel = new JPanel();\n\t\t\t\t\t\tpanel.setLayout(null);\n\t\t\t\t\t\tpanel.setBackground(Color.WHITE);\n\t\t\t\t\t\tResultSet rs = StudentDaoImpl.studentIfo(userName);\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\twhile(rs.next()) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tFont font = new Font(\"楷体\", 10, 25);\n\t\t\t\t\t\t\t\tJLabel title = new JLabel(\"学生个人信息\");\n\t\t\t\t\t\t\t\ttitle.setFont(font);\n\t\t\t\t\t\t\t\tJLabel stuId = new JLabel(\"学号 \"+rs.getString(\"StuId\"));\n\t\t\t\t\t\t\t\tJLabel stuName = new JLabel(\"姓名 \"+rs.getString(\"StuName\"));\n\t\t\t\t\t\t\t\tJLabel stuSex = new JLabel(\"性别 \"+rs.getString(\"StuSex\"));\n\t\t\t\t\t\t\t\tJLabel stuBirth = new JLabel(\"生日 \"+rs.getString(\"Birthday\"));\n\t\t\t\t\t\t\t\tJLabel stuPhone = new JLabel(\"联系方式 \"+rs.getString(\"Phone\"));\n\t\t\t\t\t\t\t\tJLabel stuAddress = new JLabel(\"家庭地址 \"+rs.getString(\"Address\"));\n\t\t\t\t\t\t\t\tJLabel stuClass = new JLabel(\"班级 \"+rs.getString(\"class_Name\"));\n\t\t\t\t\t\t\t\tJLabel stuDepar = new JLabel(\"所属院系 \"+rs.getString(\"Depar_name\"));\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\ttitle.setBounds(0, 0, 150, 60);\n\t\t\t\t\t\t\t\tstuId.setBounds(10,50,200,40);\n\t\t\t\t\t\t\t\tstuName.setBounds(10,80,200,40);\n\t\t\t\t\t\t\t\tstuSex.setBounds(10,110,200,40);\n\t\t\t\t\t\t\t\tstuBirth.setBounds(10,140,250,40);\n\t\t\t\t\t\t\t\tstuPhone.setBounds(10,170,200,40);\n\t\t\t\t\t\t\t\tstuAddress.setBounds(10,200,300,40);\n\t\t\t\t\t\t\t\tstuClass.setBounds(10,230,300,40);\n\t\t\t\t\t\t\t\tstuDepar.setBounds(10,260,200,40);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tpanel.add(title);\n\t\t\t\t\t\t\t\tpanel.add(stuId);\n\t\t\t\t\t\t\t\tpanel.add(stuName);\n\t\t\t\t\t\t\t\tpanel.add(stuSex);\n\t\t\t\t\t\t\t\tpanel.add(stuBirth);\n\t\t\t\t\t\t\t\tpanel.add(stuPhone);\n\t\t\t\t\t\t\t\tpanel.add(stuAddress);\n\t\t\t\t\t\t\t\tpanel.add(stuClass);\n\t\t\t\t\t\t\t\tpanel.add(stuDepar);\n\t\t\t\t\t\t\t\tpanel2.removeAll();\n\t\t\t\t\t\t\t\tpanel.add(bg);\n\t\t\t\t\t\t\t\tpanel2.add(panel);\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(selectedNode.equals(pwdModify)) {\n\t\t\t\t\t\tJFrame jf = new JFrame();\n\t\t\t\t\t\tjf.setTitle(\"修改密码\");\n\t\t\t\t\t\tjf.setBounds(width+200, height+100, 400, 300);\n\t\t\t\t\t\tJPanel pl = new JPanel();\n\t\t\t\t\t\tJLabel oldPwd = new JLabel(\"旧密码:\");\n\t\t\t\t\t\tJLabel newPwd = new JLabel(\"新密码:\");\n\t\t\t\t\t\tJTextField oldPwdText = new JTextField(15);\n\t\t\t\t\t\tJTextField newPwdText = new JTextField(15);\n\t\t\t\t\t\tJButton confirm = new JButton(\"确定\");\n\t\t\t\t\t\tJButton reset = new JButton(\"重置\");\n\t\t\t\t\t\tpl.setLayout(null);\n\t\t\t\t\t\toldPwd.setBounds(120,50,50,20);\n\t\t\t\t\t\tnewPwd.setBounds(120,80,50,20);\n\t\t\t\t\t\toldPwdText.setBounds(200,50,120,20);\n\t\t\t\t\t\tnewPwdText.setBounds(200,80,120,20);\n\t\t\t\t\t\tconfirm.setBounds(140,140,60,30);\n\t\t\t\t\t\treset.setBounds(220,140,60,30);\n\t\t\t\t\t\treset.addMouseListener(new MouseAdapter() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void mouseClicked(java.awt.event.MouseEvent e) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\tsuper.mouseClicked(e);\n\t\t\t\t\t\t\t\toldPwdText.setText(\"\");\n\t\t\t\t\t\t\t\tnewPwdText.setText(\"\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t\tconfirm.addMouseListener(new MouseAdapter() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void mouseClicked(java.awt.event.MouseEvent e) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\tsuper.mouseClicked(e);\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tStatement stmt = conn.createStatement();\n\t\t\t\t\t\t\t\t\tString sql = \"select passWord from teacher where userName='\"+userName+\"'\";\n\t\t\t\t\t\t\t\t\tResultSet rs = stmt.executeQuery(sql);\n\t\t\t\t\t\t\t\t\tif(rs.next()) {\n\t\t\t\t\t\t\t\t\t\tif(!rs.getString(\"passWord\").equals(oldPwdText.getText().trim().toString())) {\n\t\t\t\t\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"旧密码错误!\");\n\t\t\t\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\t\t\t\tString sql2 = \"update teacher set password='\"+newPwdText.getText()+\"' where userName='\"+userName+\"'\";\n\t\t\t\t\t\t\t\t\t\t\tstmt.executeUpdate(sql2);\n\t\t\t\t\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"修改成功!\");\n\t\t\t\t\t\t\t\t\t\t\tjf.setVisible(false);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t\t\n\t\t\t\t\t\tpl.add(oldPwd);\n\t\t\t\t\t\tpl.add(newPwd);\n\t\t\t\t\t\tpl.add(oldPwdText);\n\t\t\t\t\t\tpl.add(newPwdText);\n\t\t\t\t\t\tpl.add(confirm);\n\t\t\t\t\t\tpl.add(reset);\n\t\t\t\t\t\tjf.add(pl);\n\t\t\t\t\t\tjf.setBackground(Color.WHITE);\n\t\t\t\t\t\tjf.setResizable(false);\n\t\t\t\t\t\tjf.setVisible(true);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tif(selectedNode.equals(studGrade)) {//选中成绩查询\n\t\t\t\t\t\tJPanel panel = new JPanel();\n\t\t\t\t\t\t\n\t\t\t\t\t\tpanel.setLayout(null);\n\t\t\t\t\t\tpanel.setBackground(Color.WHITE);\n\t\t\t\t\t\tResultSet rs = StudentDaoImpl.studentGrade(userName);\n\t\t\t\t\t\tDefaultTableModel model = new DefaultTableModel(){\t//设置单元格不可编辑\n\t\t\t\t\t\t\t/**\n\t\t\t\t\t\t\t * \n\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\tprivate static final long serialVersionUID = 1L;\n\n\t\t\t\t\t\t\tpublic boolean isCellEditable(int col, int row) \n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\n\t\t\t\t\t\t};\n\t\t\t\t\t\tJTable table = new JTable();\n\t\t\t\t\t\t\n\t\t\t\t\t\ttable.setModel(model);\n\t\t\t\t\t\t\n\t\t\t\t\t\tString[] columnNames = {\"学号\",\"姓名\",\"课程\",\"成绩\"};\n\t\t\t\t\t\tString[] row = new String[4];\n\t\t\t\t\t\tfor(int i = 0; i < 4;i++) {\n\t\t\t\t\t\t\tmodel.addColumn(columnNames[i]);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tmodel.addRow(columnNames);\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\twhile(rs.next()) {\n\t\t\t\t\t\t\t\tfor(int i = 0; i < 4;i++) {\n\t\t\t\t\t\t\t\t\trow[i] = rs.getString(i+1);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tmodel.addRow(row);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tint avg = 0;\n\t\t\t\t\t\t\tfor(int i = 1; i <= model.getRowCount()-1;i++) {\n\t\t\t\t\t\t\t\tavg += Integer.valueOf((String) model.getValueAt(i,3));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif(model.getRowCount()-1 != 0) {\n\t\t\t\t\t\t\t\tavg /= model.getRowCount()-1;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tJLabel avgGrade = new JLabel(\"平均成绩:\"+avg);\n\t\t\t\t\t\t\ttable.setBounds(70, 50, 400, 200);\n\t\t\t\t\t\t\tavgGrade.setBounds(100,300,200,30);\n\t\t\t\t\t\t\ttable.updateUI();\n\t\t\t\t\t\t\tpanel.removeAll();\n\t\t\t\t\t\t\tpanel.add(avgGrade);\n\t\t\t\t\t\t\tpanel.add(table);\n\t\t\t\t\t\t\n\t\t\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tpanel2.removeAll();\t\n\t\t\t\t\t\tpanel.add(bg);\n\t\t\t\t\t\tpanel2.add(panel);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tif(selectedNode.equals(gradeStatics)) { //成绩统计,优秀率,不及格率\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null,\"权限不足!\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//选择成绩录入\n\t\t\t\t\tif(selectedNode.equals(gradeIn)) {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null,\"权限不足!\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(selectedNode.equals(gradeModify)) {//成绩修改\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null,\"权限不足!\");\n\t\t\t\t\t}\n\t\t\t\t}", "private void cListValueChanged(ListSelectionEvent e) {\n }", "public void valueChanged(ListSelectionEvent e) {\r\n\t\tObject source = e.getSource();\r\n\t\tif (source == this.gragraNames) {\r\n\t\t\tswitch (this.stepPanel.getStep()) {\r\n\t\t\tcase StepPanel.STEP_HOST_GRAPH:\r\n\t\t\t\tsetGraph(StepPanel.STEP_HOST_GRAPH);\r\n\t\t\t\tbreak;\r\n\t\t\tcase StepPanel.STEP_STOP_GRAPH:\r\n\t\t\t\tsetGraph(StepPanel.STEP_STOP_GRAPH);\r\n\t\t\t\tbreak;\r\n\t\t\tcase StepPanel.STEP_CRITICAL_PAIRS:\r\n\t\t\t\tsetPairs();\r\n\t\t\t\tbreak;\r\n\t\t\tcase StepPanel.STEP_FINISH:\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n public void valueChanged(ListSelectionEvent e) {\n currentRow = recordList.getSelectedIndex();\n setRowValues(currentRow, currentColumn);\n if (selectionAction == WAITING_ON_SELECTION) {\n selectionAction = SENDING_SELECTION;\n }\n if (selectionAction == SENDING_SELECTION) {\n selectionAction = FINISHED_SELECTION;\n cellNotifier.select(currentRow, currentColumn); // Notify GUI to select\n }\n \n \n }", "@Override\n\t\t\tpublic void editingStopped(ChangeEvent arg0) {\n\n\t\t\t\tSystem.out.println(tree.getCellEditor().getCellEditorValue());\n\t\t\t\ttree.getModel().valueForPathChanged(tree.getSelectionPath(),\n\t\t\t\t\t\ttree.getCellEditor().getCellEditorValue() + \"zzz\");\n\t\t\t\ttree.updateUI();\n\t\t\t}", "@Override\n public void onValueSelected(int lineIndex, int pointIndex, PointValue value) {\n }", "public interface NodeSelectionChangedListener {\n public void nodeChanged(NodeSelectedEvent evt);\n}", "public void treeStructureChanged(TreeModelEvent e) {\n //To change body of implemented methods use Options | File Templates.\n }", "@Override\n public void onValueDeselected() {\n }", "private TreeSelectionListener createTreeSelectionListener() {\n\t\treturn new TreeSelectionListener() {\n\t\t\t// valueChanged - fired when the selection changes.\n\t\t\tpublic void valueChanged(TreeSelectionEvent evt) {\n\t\t\t\tTreePath selectedPath = tree.getSelectionPath();\n\t\t\t\tif (selectedPath != null)\n\t\t\t\t\tSystem.out.println(\"In TreeSelectionListener: \"\n\t\t\t\t\t\t\t+ selectedPath.getLastPathComponent());\n\t\t\t}\n\t\t};\n\n\t}", "public void valueChanged(ListSelectionEvent e) {\n if (!e.getValueIsAdjusting()) {\n selRow = table.getSelectedRow();\n }\n }", "private void handleTreeSelectionEvent( TreeSelectionEvent e )\n {\n int row = treeTable.getSelectedRow();\n int column = treeTable.getSelectedColumn();\n validateCell( row, column );\n\n\n TreePath path = e.getPath();\n Object node = path.getLastPathComponent();\n if( node instanceof Property )\n updateToolTipPane( (Property)node );\n }", "@Override\n public void onValueDeselected() {\n\n }", "@Override\n public void onValueDeselected() {\n\n }", "@Override\n public void onValueDeselected() {\n\n }", "@Override\n public void onValueDeselected() {\n\n }", "protected void selectionChanged(IStructuredSelection selection) {\n \t}", "public void onSelectionChanged();", "public void valueChanged(ListSelectionEvent le) {\n\n int idx = jlist.getSelectedIndex();\n\n /** Display the selection */\n if (idx != -1)\n jl.setText(\"Current Selection = \" + names[idx]);\n else\n jl.setText(\"Please choose a name !\");\n }", "@Override\n\tpublic void valueChanged(ListSelectionEvent e) {\n\t\tJList lista=(JList) e.getSource();\n\t\tif(lista.getSelectedIndex()!= -1)\n\t\t\tvista.setPersona((Persona)lista.getSelectedValue());\n\t\t//System.out.println(lista.getSelectedValue().toString());\n\t}", "public void gxlValueChanged(GXLValueModificationEvent e) {\n\t}", "public native final EditorBaseEvent changedNode(Node val) /*-{\n\t\tthis.changedNode = val;\n\t\treturn this;\n\t}-*/;", "@Override\n public void valueChanged(javax.swing.event.ListSelectionEvent e)\n {\n this.choice = e.getFirstIndex();\n }", "public void treeSelection() {\n\t\tFlowTreeNode ftn = (FlowTreeNode) tree.getLastSelectedPathComponent();\n\n\t\tif (ftn == null)\n\t\t\treturn;\n\t\telse\n\n\t\t{\n\n\t\t\tftn.execute();\n\t\t\tthis.revalidate();\n\t\t\t// buildTreeView();\n\n\t\t}\n\t}", "@Override\r\n public void selectionRemoved(ChangeEvent e) {\n\r\n }", "public void changed(ObservableValue ov, Number value, Number new_value)\n {\n\n String dsMultiEmpresa = optionsEmpresa.get(new_value.intValue());\n String[] cdMultiEmpresa = dsMultiEmpresa.split(\"-\");\n carregarEstoques(consultas.listarEstoques(conexao,cdMultiEmpresa[0]));\n }", "public void valueChanged(ListSelectionEvent e)\n\t\t\t{\n\t\t\t\tint row = recipeTable.getSelectedRow();\n\t\t\t\tif(row == -1) //in case the table has not been built\n\t\t\t\t\treturn;\n\t\t\t\t//get the name of the selected recipe\n\t\t\t\tString nameSelected = (String)recipeTable.getValueAt(row, 1);\n\t\t\t\t//using the name of recipe get the JTextArea & updates the txt box\n\t\t\t\ttxtView = entryMap.get(nameSelected);\n\t\t\t\t//redraw the scroll pane with new txt box\n\t\t\t\trecipeViewer.repaint();\n\t\t\t}", "void valueChanged(CalcModel model);", "void valueChanged(CalcModel model);", "public void addSelectionTreeListener(final SelectionTreeListener listener);", "protected void onNodeChanged(AbstractNode node) {\r\n\t\t//Activator.getLogger().debug(\"Selection changed: \" + node, null);\r\n\t}", "public void valueChanged(ListSelectionEvent e) {\n\t\t\n\t\t\tiHungryRestaurant hungryRestaurant = iHungryRestaurant.getInstance();\n\t\t\tgui.getOrderGui().getOrderHistorySubPanel().setVisible(true);\n\t\t\tListSelectionModel lsm = (ListSelectionModel) e.getSource();\n\t\t\tint minIndex = lsm.getMinSelectionIndex();\t\t\n\t\t\t\n\t\t\tif(minIndex>=1)\n\t\t\t\tloop = true;\n\t\t\t\n\t\t\tif (minIndex>=0)\n\t\t\t{\n\t\t\t\tif (loop)\n\t\t\t\t{\n\t\t\t\t\tList<Order> oldOrders = new ArrayList<Order>(hungryRestaurant.getOldOrders());\n\t\t\t\t\tOrder selectedOrder = oldOrders.get(minIndex);\n\t\t\t\t\tgui.getOrderGui().getOrderHistoryOrderNo().setText(selectedOrder.getOrderID());\n\t\t\t\t\tgui.getOrderGui().getOrderHistoryCustNo().setText(selectedOrder.getCustID());\n\t\t\t\t\tString[] orderDetails = new String[50];\n\t\t\t\t\t\n\t\t\t\t\tfor (int j = 0; j < selectedOrder.getOrderItems().size(); j++) {\n\t\t\t\t\t\torderDetails[j] = selectedOrder.getOrderItems().get(j)\n\t\t\t\t\t\t\t\t.getItem().getItemName()\n\t\t\t\t\t\t\t\t+ \" \"\n\t\t\t\t\t\t\t\t+ selectedOrder.getOrderItems().get(j).getQuantity();\n\t\t\t\t\t}\n\t\t\t\t\tgui.getOrderGui().getOrderHistoryList().setListData(orderDetails);\n\t\t\t\t}\n\t\t\t\tif(minIndex==0)\n\t\t\t\t\tloop = false;\n\t\t\t}\n\t\t}", "public void selectionChanged(\r\n \t\t\t\t\t\t\t\t\tSelectionChangedEvent event) {\r\n \t\t\t\t\t\t\t\thandleContentOutlineSelection(event\r\n \t\t\t\t\t\t\t\t\t\t.getSelection());\r\n \t\t\t\t\t\t\t}", "public void valueChanged(ListSelectionEvent e)\n\t{\n\t\t//Only process the final event\n\t\tif(!e.getValueIsAdjusting())\n\t\t{\n\t\t\tpopupMenu.setVisible(false);\n\t\t\tint index=popupList.getSelectedIndex();\n\t\t\t//redraw the label\n\t\t\tsetIcon(index<0?renderer.unselectedIcon:renderer.listIcons[index]);\n\t\t\t//pass the event on\n\t\t\tActionEvent ae = new ActionEvent(this, ActionEvent.ACTION_PERFORMED, actionCommand);\n\t\t\tfor(int i = listeners.size() - 1; i >= 0; i--)\n\t\t\t{\n\t\t\t\tlisteners.get(i).actionPerformed(ae);\n\t\t\t}\n\t\t}\n\t}", "public void valueChanged(ListSelectionEvent event) {\n\tString selectionStr= \"\";\n\n\n\tif (event.getSource() instanceof JList) {\n\t JList selected=(JList)event.getSource();\n\t selectionStr=(String)selected.getSelectedValue();\n\n\t if (selected==declJList) {\n\t\t//get the selected name\n\t\t//declJListSelected=selectionStr; //do nothing for now\n\t\treturn;\n\t }\n\t return;\n\t}\n }", "public void selectionChanged(SelectionChangedEvent event) {\r\n\t\t\t\t\t\t\thandleContentOutlineSelection(event.getSelection());\r\n\t\t\t\t\t\t}", "public void valueChanged(ListSelectionEvent e) {\n\t\t\t\n\t\t\tiHungryRestaurant hungryRestaurant = iHungryRestaurant.getInstance();\n\t\t\tgui.getOrderGui().getDeclinedOrderSubPanel().setVisible(true);\n\t\t\tListSelectionModel lsm = (ListSelectionModel) e.getSource();\n\t\t\tint minIndex = lsm.getMinSelectionIndex();\n\t\t\t\n\t\t\tif(minIndex>=1)\n\t\t\t\tloop = true;\n\t\t\t\n\t\t\tif (minIndex>=0)\n\t\t\t{\t\n\t\t\t\tif(loop)\n\t\t\t\t{\n\t\t\t\t\tList<Order> declinedOrders = new ArrayList<Order>(hungryRestaurant.getDeclinedOrders());\n\t\t\t\t\tOrder selectedOrder = declinedOrders.get(minIndex);\n\t\t\t\t\tgui.getOrderGui().getDeclinedOrderOrderNo().setText(selectedOrder.getOrderID());\n\t\t\t\t\tgui.getOrderGui().getDeclinedOrderCustNo().setText(selectedOrder.getCustID());\n\t\t\t\t\tString[] orderDetails = new String[50];\n\t\t\t\t\t\n\t\t\t\t\tfor (int j = 0; j < selectedOrder.getOrderItems().size(); j++) {\n\t\t\t\t\t\torderDetails[j] = selectedOrder.getOrderItems().get(j)\n\t\t\t\t\t\t\t\t.getItem().getItemName()\n\t\t\t\t\t\t\t\t+ \" \"\n\t\t\t\t\t\t\t\t+ selectedOrder.getOrderItems().get(j).getQuantity();\n\t\t\t\t\t}\n\t\t\t\t\tgui.getOrderGui().getDeclinedOrderList().setListData(orderDetails);\n\t\t\t\t}\n\t\t\t\tif(minIndex==0)\n\t\t\t\t\tloop = false;\n\t\t\t}\n\t\t}", "public void treeRowSelectionChanged(AbstractBean beanObj) {\r\n\t}", "void valueChanged(T oldValue, T newValue);", "public void changed(ObservableValue ov, Number value, Number new_value)\n\t {\n\n\t String dsConexao = optionsConexao.get(new_value.intValue());\n\t conexao = dao.consultar(dsConexao);\n\t carregarEmpresas(consultas.listar(conexao));\n\t carregarConfigSuprii(conexao);\n\t }", "public void selectionChanged(String[][] selection);", "public void valueForPathChanged( TreePath path, Object newValue )\n {\n Object obj = path.getPath( )[ path.getPath( ).length - 1 ];\n if( obj instanceof DynamicUtilTreeNode )\n {\n try\n {\n ( ( MenuItem ) ( ( DynamicUtilTreeNode ) ( path.getPath( )[ path.getPath( ).length - 1 ] ) ).getUserObject( ) ).setName( newValue.toString( ) );\n }\n catch( SQLException e )\n {\n JOptionPane.showMessageDialog( window, \"Error inesperado tratando de actualizar el nombre del item del menu \\n \" + e.getMessage( ), \"ERROR\", JOptionPane.ERROR_MESSAGE );\n e.printStackTrace( );\n }\n }\n else if( obj instanceof DefaultMutableTreeNode )// Aqui entra cuando el MenuItem fue creado en esta secion\n {\n try\n {\n ( ( MenuItem ) ( ( DefaultMutableTreeNode ) ( path.getPath( )[ path.getPath( ).length - 1 ] ) ).getUserObject( ) ).setName( newValue.toString( ) );\n }\n catch( SQLException e )\n {\n JOptionPane.showMessageDialog( window, \"Error inesperado tratando de actualizar el nombre del item del menu \\n \" + e.getMessage( ), \"ERROR\", JOptionPane.ERROR_MESSAGE );\n e.printStackTrace( );\n }\n }\n else\n {\n System.err.println( obj.getClass( ) );\n }\n // System.out.println( ( ( MenuItem ) ( ( DynamicUtilTreeNode ) ( path.getPath( )[ path.getPath( ).length - 1 ] ) ).getUserObject( ) ) );\n // ( ( MenuItem ) ( ( DynamicUtilTreeNode ) ( path.getPath( )[ path.getPath( ).length - 1 ] ) ).getUserObject( ) ).setNombre( newValue.toString( ) );\n // System.out.println( path );\n // System.out.println( newValue );\n }", "@Override\n public void selectionChanged(SelectionChangedEvent event) {\n setInput(getProjectAdapter());\n }", "public void changed(ObservableValue ov, Number value, Number new_value)\n {\n\n String dsEstoque = optionsEstoques.get(new_value.intValue());\n String[] campoEstoque = dsEstoque.split(\"-\");\n estoque = new Estoque();\n estoque.setCdEstoque(campoEstoque[0]);\n estoque.setDsEstoque(campoEstoque[1]);\n }", "@Override\n public void valueChanged(ListSelectionEvent e) {\n ListSelectionModel mSelectionModel = (ListSelectionModel)e.getSource();\n \n if (mSelectionModel.isSelectionEmpty() == false) {\n // Find out which indexes are selected.\n int mMinIndex = mSelectionModel.getMinSelectionIndex();\n int mMaxIndex = mSelectionModel.getMaxSelectionIndex();\n \n if (mMinIndex == mMaxIndex) {\n if (mSelectionModel.isSelectedIndex(mMinIndex)) {\n try {\n fillContactDetails(mMinIndex);\n } catch (SQLException ex) {\n Logger.getLogger(frmContacts.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n //Save the selected row for the case that the next action after this is cancel.\n pSelectedRow = mMinIndex;\n }\n }\n }\n }", "public void valueChanged(ListSelectionEvent e) {\n\t\t\t\n\t\t\tiHungryRestaurant hungryRestaurant = iHungryRestaurant.getInstance();\n\t\t\tgui.getOrderGui().getSubPanel10().setVisible(true);\n\t\t\tListSelectionModel lsm = (ListSelectionModel) e.getSource();\n\t\t\tint minIndex = lsm.getMinSelectionIndex();\t\t\n\t\t\t\n\t\t\tif(minIndex>=0)\n\t\t\t{\n\t\t\t\tList<Order> pendingOrders = new ArrayList<Order>(hungryRestaurant.getPendingOrders());\n\t\t\t\tOrder selectedOrder = pendingOrders.get(minIndex);\t\t\t\n\t\t\t\tgui.getOrderGui().getOrderNoT().setText(selectedOrder.getOrderID());\n\t\t\t\tgui.getOrderGui().getCustNo().setText(selectedOrder.getCustID());\n\t\t\t\tString[] orderDetails = new String[50];\n\t\t\t\tfor (int j = 0; j < selectedOrder.getOrderItems().size(); j++) {\n\t\t\t\t\torderDetails[j] = selectedOrder.getOrderItems().get(j)\n\t\t\t\t\t\t\t.getItem().getItemName()\n\t\t\t\t\t\t\t+ \" \"\n\t\t\t\t\t\t\t+ selectedOrder.getOrderItems().get(j).getQuantity();\n\t\t\t\t}\n\t\t\t\tgui.getOrderGui().getList1().setListData(orderDetails);\n\t\t\t}\n\t\t}", "public void valueChanged(ListSelectionEvent e) {\n Object src = e.getSource();\n\n if(e.getValueIsAdjusting() && src == listaTarefasCadastradas) {\n //envio do indice da tarefa, o controle de tarefas e do seletor 1 - adicionar nova 2 editar;\n\t\t\tnew TelaDetalheTarefa().mostrarDadosTarefa(ct, listaTarefasCadastradas.getSelectedIndex(),2, p.getArrProjetos(ind));\n }\n }", "private void fireSelectionChangeNotification () {\r\n\t\tif ( selectionChangeListener!=null)\r\n\t\t\tselectionChangeListener.execute();\r\n\t}", "@Override\n\tpublic void selectionChanged(SelectionChangedEvent event) {\n\t\t\n\t\tSystem.out.printf(\"OutlinePageHost.selectionChanged: %s\\n\", event);\n\t}", "protected void childrenChanged() {\n\n }", "@Override\n\t\t\tpublic void valueChanged(ListSelectionEvent e) {\n\t\t\t\tif (e.getValueIsAdjusting()) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif(!filmJList.isSelectionEmpty()||filmJList.getMaxSelectionIndex()!=-1)\n\t\t\t\tsetDataPanel(dataJPanel,filmJList.getSelectedIndex());\n\t\t\t}", "@Override\r\n\t\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\t\r\n\t\t\t\t}", "public interface SelectionTreeNode extends TreeNode {\n public static enum State {\n NONE_SELECTED, SOME_SELECTED, ALL_SELECTED\n }\n\n /**\n * Returns this node's current state.\n *\n * @return this node's current state.\n */\n public State getState();\n\n /**\n * Updates this node's current state.\n *\n * @param state new state for this node.\n */\n public void setState(final State state);\n\n /**\n * Instructs the node to update its state. The node will then scan its children to determine whether all, some or\n * none of them are selected. If the node does not have children, the value provided by the last call of setState\n * will be retained.\n */\n public void updateState();\n\n /**\n * Adds a selection listener to the node, which will be notified when the node's state changes.\n *\n * @param listener listener to add.\n * @see net.sarcommand.swingextensions.selectiontree.SelectionTreeListener\n */\n public void addSelectionTreeListener(final SelectionTreeListener listener);\n\n /**\n * Removes a selection listener from the node.\n *\n * @param listener listener to remove.\n * @see net.sarcommand.swingextensions.selectiontree.SelectionTreeListener\n */\n public void removeSelectionTreeListener(final SelectionTreeListener listener);\n}" ]
[ "0.8790619", "0.8441967", "0.8407094", "0.8252554", "0.81498706", "0.81144375", "0.8080968", "0.78521454", "0.77540183", "0.77135414", "0.75699687", "0.7548815", "0.75450295", "0.74889654", "0.7380759", "0.73533934", "0.734021", "0.7322183", "0.7292364", "0.7284681", "0.7273003", "0.71817464", "0.71613115", "0.71321017", "0.7131459", "0.71256155", "0.7021304", "0.6999977", "0.6948813", "0.6946676", "0.69130945", "0.69091886", "0.683634", "0.6784977", "0.6784977", "0.67835563", "0.67813915", "0.6768865", "0.67292565", "0.67221993", "0.6717656", "0.6717627", "0.6708577", "0.6708577", "0.66892123", "0.66675407", "0.66528517", "0.66220826", "0.66190714", "0.6588481", "0.65734255", "0.65634704", "0.6550549", "0.6545546", "0.6516754", "0.6499319", "0.649219", "0.64761835", "0.64680636", "0.6466768", "0.6466768", "0.6466768", "0.6466768", "0.6461209", "0.64454013", "0.6443402", "0.64400285", "0.6433371", "0.6430964", "0.6415553", "0.6406931", "0.6406509", "0.6392847", "0.6378261", "0.63766104", "0.63766104", "0.6372982", "0.63725287", "0.63698906", "0.6357361", "0.6337626", "0.63341874", "0.631276", "0.6300355", "0.627666", "0.62488395", "0.62308204", "0.62280077", "0.622766", "0.6217683", "0.62170917", "0.6215454", "0.6210784", "0.6210672", "0.6207564", "0.62034833", "0.62001085", "0.61995184", "0.6192638", "0.61866266" ]
0.81274253
5
/ tree will expand listener: treeWillExpand
public void treeWillExpand(TreeExpansionEvent e) throws ExpandVetoException { TreePath path = e.getPath(); if (!tree.hasBeenExpanded(path)) { DefaultMutableTreeNode node = (DefaultMutableTreeNode) path.getLastPathComponent(); if (sheet.isMBeanNode(node) && !tree.hasMetadataNodes(node)) { tree.addMetadataNodes(node); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void expandTree() {\n tree.expand();\n }", "private TreeWillExpandListener createTreeWillExpandListener() {\n\t\treturn new TreeWillExpandListener() {\n\t\t\tpublic void treeWillCollapse(TreeExpansionEvent evt)\n\t\t\t\t\tthrows ExpandVetoException {\n\t\t\t\tDefaultMutableTreeNode node = (DefaultMutableTreeNode) evt\n\t\t\t\t\t\t.getPath().getLastPathComponent();\n\t\t\t\tSystem.out.println(\"In TreeWillExpandListener: Collapsing: \"\n\t\t\t\t\t\t+ node.getUserObject());\n\t\t\t}\n\n\t\t\tpublic void treeWillExpand(TreeExpansionEvent evt)\n\t\t\t\t\tthrows ExpandVetoException {\n\t\t\t\tDefaultMutableTreeNode node = (DefaultMutableTreeNode) evt\n\t\t\t\t\t\t.getPath().getLastPathComponent();\n\t\t\t\tSystem.out.println(\"TreeWillExpandListener: Expanding: \"\n\t\t\t\t\t\t+ node.getUserObject());\n\t\t\t}\n\n\t\t};\n\t}", "public void treeExpanded(TreeExpansionEvent e) {\n saySomething(\"Tree-expanded event detected\", e);\n }", "@Override\n\t\t\tpublic void treeExpanded(TreeExpansionEvent event) {\n\t\t\t\t// fireTableDataChanged();\n\t\t\t}", "@Override\n\t\t\t\tpublic void treeCollapsed(TreeExpansionEvent arg0) {\n\t\t\t\t}", "public void treeWillCollapse(TreeExpansionEvent e) {\n saySomething(\"Tree-will-collapse event detected\", e);\n }", "private void expandTree() {\n for (int i=0; i<tree.getRowCount(); i++) {\n tree.expandRow(i);\n }\n }", "public void treeWillExpand(TreeExpansionEvent e)\n throws ExpandVetoException {\n saySomething(\"Tree-will-expand event detected\", e);\n int n = JOptionPane.showOptionDialog(this, willExpandText,\n willExpandTitle, JOptionPane.YES_NO_OPTION,\n JOptionPane.QUESTION_MESSAGE, null, willExpandOptions,\n willExpandOptions[1]);\n if (n == 0) {\n //User said cancel expansion.\n saySomething(\"Tree expansion cancelled\", e);\n throw new ExpandVetoException(e);\n }\n }", "public void treeWillCollapse(TreeExpansionEvent e) throws ExpandVetoException {\n }", "@Override\n public void grow() {\n System.out.println(\"Tree growing\");\n }", "public void expand() {\n openItems();\n }", "public void treeCollapsed(TreeExpansionEvent e) {\n saySomething(\"Tree-collapsed event detected\", e);\n }", "void expandChilds() {\n\t\t\tenumAndExpand(this.parentItem);\n\t\t}", "public static void expandTreeView(TreeItem<?> t) {\n\t\tif(t != null && !t.isLeaf()) {\n\t\t\tt.setExpanded(true);\n\t\t\tfor(TreeItem<?> child : t.getChildren())\n\t\t\t\texpandTreeView(child);\n\t\t}\n\t}", "@Test\n public void testExpandTree() {\n // TODO: test ExpandTree\n }", "@Override\r\n public void onGroupExpand(int groupPosition) {\n }", "@Override\n public void onGroupExpand(int groupPosition) {\n }", "@JDIAction(\"Expand '{name}'\")\n public void expand() {\n if (isCollapsed()) {\n expandButton.click();\n }\n }", "void onTreeChange(TreeChangeEvent event);", "@Override\n public void onGroupExpand(int groupPosition) {\n }", "@Override\n public void onGroupExpand(int groupPosition) {\n }", "@Override\n public void onGroupExpand(int groupPosition) {\n }", "public void treeStructureChanged(TreeModelEvent e) {\n //To change body of implemented methods use Options | File Templates.\n }", "@Override\n public void onGroupExpand(int groupPosition) {\n\n }", "@Override\n public boolean isExpanded() {\n return isExpanded;\n }", "public boolean isExpanded();", "public interface MyExpandingListener {\n void onExpanded();\n void onCollapsed();\n}", "public static void expandAll(JTree tree, boolean expand) {\n TreeNode root = (TreeNode)tree.getModel().getRoot();\n\n // Traverse tree from root\n expandAll(tree, new TreePath(root), expand);\n }", "@Override\n public void onShow() {\n mExpandableLinearLayout.expand();\n }", "private void expandNode(Node parentNode) {\n VBox childrenVBox = parentNode.getChildrenVBox();\n PlaceManager placeManager = PlaceManager.getInstance();\n Place sourcePlace = placeManager.getPlace(parentNode.getNodeId());\n ArrayList<Place> childrenPlaces = sourcePlace.getChildren();\n\n if (!childrenPlaces.isEmpty()) {\n for (Place place : childrenPlaces) {\n String id = place.getId();\n String name = place.getName();\n String type = place.getType().toString();\n String displayName = place.toString();\n Node childNode = new Node(id, name, type, displayName, controller);\n nodes.add(childNode);\n childrenVBox.getChildren().add(childNode.getContainerPane());\n childrenVBox.layout();\n }\n }\n redrawEdges(parentNode);\n }", "public void expand(boolean inclChildren) {\n isExtended = true;\n if (inclChildren)\n for (BudgetAccountTableRow child : children)\n child.reduce(true);\n updateUItoExtState();\n }", "public void expand() {\n getSection().setExpanded(true);\n }", "public boolean isExpandable();", "void onGroupExpanded(int groupPosition);", "private void addListener(org.eclipse.swt.widgets.Tree tree) {\n\t\t// Listener fuer \"Folder auf machen\"\n\t\ttree.addListener(SWT.Expand, new Listener() {\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\thandleFolderOpen(event);\n\t\t\t}\n\t\t});\n\t\t// Listener fuer \"Folder auf machen\"\n\t\ttree.addListener(SWT.Collapse, new Listener() {\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\thandleFolderClose(event);\n\t\t\t}\n\t\t});\n\t\t// Listener fuer die Aktionen\n\t\ttree.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseDoubleClick(MouseEvent e) {\n\t\t\t\thandleSelect(e);\n\t\t\t}\n\t\t});\n\t}", "public void treeNodesChanged(TreeModelEvent e) {\n //To change body of implemented methods use Options | File Templates.\n }", "private void loadTree(){ \n PBarHelper.show();\n DataProvider.getTreeHierarchy(mScreenId, new DataProvider.AsyncCallback<ViewNodeJSO>() {\n @Override\n public void onError(Request r, Throwable t) {\n PBarHelper.hide();\n Window.alert(t.getMessage());\n }\n\n @Override\n public void onDownloaded(ViewNodeJSO result) {\n mRoot = result; \n CellTree.Resources res = GWT.create(CustomTreeResources.class);\n //create tree model\n mTreeViewModel = new ViewHierarchyTreeViewModel(result);\n //add selection handler to select view on canvas\n mTreeViewModel.setOnSelectionChangedListener(new OnSelectionChangedListener() { \n @Override\n public void onSelectionChanged(ViewNodeJSO viewNode, boolean selected) { \n ScreenPreviewPage.this.onViewTreeNodeSelectionChanged(viewNode, selected);\n }\n });\n //add hover listener just to highlight view\n mTreeViewModel.setOnViewNodeMouseOverListener(new OnViewNodeMouseOverListener() {\n @Override\n public void onMouseOver(ViewNodeJSO viewNode) {\n if (mTreeViewModel.getSelectedNode() == null) {\n clearCanvas();\n drawRectForView(viewNode);\n }\n }\n });\n //remove old tree if necessary, currently there is no reload support (reload page only)\n if (mCellTree != null) {\n mCellTree.removeFromParent();\n }\n mCellTree = new CellTree(mTreeViewModel, null, res); \n mCellTree.setDefaultNodeSize(1000);//no show more button\n centerPanel.add(mCellTree); \n CellTreeTools.expandAll(mCellTree.getRootTreeNode());\n mCellTree.setAnimationEnabled(true);\n PBarHelper.hide();\n } \n });\n }", "public void onExpandingFinished() {\n super.onExpandingFinished();\n this.mNotificationStackScroller.onExpansionStopped();\n this.mHeadsUpManager.onExpandingFinished();\n this.mIsExpanding = false;\n if (isFullyCollapsed()) {\n DejankUtils.postAfterTraversal(new Runnable() {\n public void run() {\n NotificationPanelViewController.this.setListening(false);\n }\n });\n this.mView.postOnAnimation(new Runnable() {\n public void run() {\n NotificationPanelViewController.this.mView.getParent().invalidateChild(NotificationPanelViewController.this.mView, NotificationPanelViewController.M_DUMMY_DIRTY_RECT);\n }\n });\n } else {\n setListening(true);\n }\n this.mQsExpandImmediate = false;\n this.mNotificationStackScroller.setShouldShowShelfOnly(false);\n this.mTwoFingerQsExpandPossible = false;\n notifyListenersTrackingHeadsUp(null);\n this.mExpandingFromHeadsUp = false;\n setPanelScrimMinFraction(0.0f);\n }", "@Override\n\tpublic void queuingFunc(TreeNode[] expandedNodes) {\n\n\t}", "public boolean hasBeenExpanded(TreePath path) {\r\n return super.hasBeenExpanded(path) ||\r\n !this.getModel().isLeaf(path.getLastPathComponent());\r\n }", "public void expandRecJTreeFromNode(TreePath path, JTree tree) {\n\n\t\tDefaultMutableTreeNode thisNode = ((DefaultMutableTreeNode)path.getLastPathComponent());\n\n\t\t//For each child\n\t\tEnumeration<?> hijos = thisNode.children();\n\t\twhile (hijos.hasMoreElements()) {\n\t\t\t//get the child\n\t\t\tDefaultMutableTreeNode hijoActual = (DefaultMutableTreeNode)hijos.nextElement();\n\t\t\tjavax.swing.tree.TreePath aux = path.pathByAddingChild(hijoActual);\n\t\t\t//expand from the child to the end\n\t\t\texpandRecJTreeFromNode(aux, tree);\n\t\t}\n\n\t\t//expand me\n\t\ttree.expandPath(path);\n\t}", "public void treeSelection() {\n\t\tFlowTreeNode ftn = (FlowTreeNode) tree.getLastSelectedPathComponent();\n\n\t\tif (ftn == null)\n\t\t\treturn;\n\t\telse\n\n\t\t{\n\n\t\t\tftn.execute();\n\t\t\tthis.revalidate();\n\t\t\t// buildTreeView();\n\n\t\t}\n\t}", "public void expand(int level)\n {\n if(isRootVisible())\n expandRow(0, level);\n else\n {\n for(int i=0; i < componentModel.getPropertyCount(); i++)\n {\n Property child = componentModel.getPropertyAt(i);\n expandRow(getRow(child), level);\n }\n }\n }", "public void treeNodesInserted(TreeModelEvent e) {\n //To change body of implemented methods use Options | File Templates.\n }", "public static void logSelectionExpanded(boolean fromTapGesture) {\n RecordHistogram.recordBooleanHistogram(\n \"Search.ContextualSearch.SelectionExpanded\", fromTapGesture);\n }", "@Override\n\t\t\tpublic void expansionStateChanged(ExpansionEvent arg0) {\n\n\t\t\t}", "@Override\n public void onGroupExpanded(int groupPosition) {\n\n }", "@Override\n public void setExpanded(boolean isExpanded) {\n mIsExpanded = isExpanded;\n }", "public void expand() {\n if (getVisibility() == View.VISIBLE) {\n return;\n }\n setVisibility(View.VISIBLE);\n mAnimatorExpand.setDuration(mDuration);\n mAnimatorExpand.start();\n }", "private void expand( Change change ) {\n if ( getPlan().isDevelopment() && change.isForInstanceOf( ModelObject.class )\n && getCommander().isLockable( change.getClassName() ) ) {\n getCommander().requestLockOn( change.getId() );\n }\n if ( change.isForInstanceOf( ModelEntity.class ) ) {\n // ModelObject entity = (ModelObject) identifiable;\n ModelObject previous = findExpandedEntity();\n if ( previous != null ) {\n /*String previousAspect = getAspectShown( previous );\n viewAspect( entity, previousAspect );*/\n collapse( new Change( Change.Type.None, previous ) );\n }\n }\n expansions.add( change.getId() );\n }", "public boolean hasBeenExpanded(Object inNode)\n\t{\n\t\tObject parent = inNode;\n\t\twhile( parent != null)\n\t\t{\n\t\t\tString path = toUrl(inNode);\n\t\t\tif( getExpandedNodes().contains(path) )\n\t\t\t{\n\t\t\t\tparent = getWebTree().getModel().getParent(parent);\n\t\t\t\t//If we get to the root and it is selected still then we are ok!\n\t\t\t\tif( parent == null)\n\t\t\t\t{\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "@Override\n public boolean onMenuItemActionExpand(MenuItem item) {\n return true;\n }", "protected void change() {\r\n\r\n // consume?\r\n if(isLoop()) return;\r\n \r\n // prevent re-entry\r\n setLoop(true);\r\n\r\n // initialize\r\n int dx = 0;\r\n int dy = 0;\r\n\r\n // set flag\r\n boolean isSelected = getToggleButton().isSelected();\r\n\r\n // any change?\r\n if(isExpanded!=isSelected) {\r\n\r\n // set flag\r\n isExpanded = isSelected;\r\n\r\n // translate selection to view\r\n if(isExpanded) {\r\n\r\n \t// get preferred size\r\n \tint max = (preferredExpandedHeight==0 ? (isPreferredSizeSet() ? super.getPreferredSize().height : 0) : preferredExpandedHeight);\r\n\r\n // get height\r\n int h = (isTmpSet(0) ? tmpSize[0].height : max);\r\n\r\n // calculate change\r\n dy = h - minimumCollapsedHeight;\r\n\r\n // apply temporary stored sizes?\r\n if(isTmpSet(1)) super.setMinimumSize(getTmpSize(1));\r\n if(isTmpSet(2)) super.setPreferredSize(getTmpSize(2));\r\n if(isTmpSet(3)) super.setMaximumSize(getTmpSize(3));\r\n\r\n // reset temporary sets\r\n resetTmpSizes();\r\n\r\n }\r\n else {\r\n\r\n // get collapsed height\r\n int h = minimumCollapsedHeight;\r\n\r\n // update temporary sizes\r\n setTmpSize(0,isDisplayable() ? super.getSize() : getPreferredSize(),true);\r\n\r\n // update temporary insets\r\n tmpInsets = super.getInsets();\r\n\r\n // calculate change\r\n dy = h - getTmpSize(0).height;\r\n\r\n // set collapsed size\r\n minimumCollapsedHeight = h;\r\n\r\n // set new insets\r\n if(headerPlacement==SwingUtilities.BOTTOM) {\r\n \tcollapsedInsets = new Insets(0, tmpInsets.left, tmpInsets.bottom, tmpInsets.right);\r\n } else {\r\n \tcollapsedInsets = new Insets(tmpInsets.top, tmpInsets.left, 0, tmpInsets.right);\r\n }\r\n \r\n\r\n }\r\n\r\n // apply change\r\n super.setBorder(createBorder());\r\n\r\n // update tool tip text\r\n getToggleButton().setToolTipText(isExpanded() ? \"Lukk\" : \"┼pne\");\r\n\r\n // notify\r\n fireToggleEvent(dx,dy);\r\n\r\n // notify manager hierarchy\r\n super.requestResize(dx, dy, true);\r\n\r\n }\r\n\r\n // resume\r\n setLoop(false);\r\n\r\n }", "public void expandAllNodes(JTree tree, int startingIndex, int rowCount){\n for(int i=startingIndex;i<rowCount;++i){\n tree.expandRow(i);\n }\n\n if(tree.getRowCount()!=rowCount){\n expandAllNodes(tree, rowCount, tree.getRowCount());\n }\n}", "public abstract List<Node> expand();", "public abstract boolean setNodeExpanded(int nodeIndex,boolean true_is_yes);", "public void onChildSizeChanged(GuiElementBase element, Direction direction)\n\t\t{ expandToFitChildren(direction); }", "private void AccessoryTree_valueChanged(\r\n\t\tTreeSelectionEvent e) {\n\t \r\n\t}", "public void updateExpandButton() {\n // Remove features that can no longer be collapsed\n featureDiagramView.checkCollapseValidity();\n menu.enableAction(featureDiagramView.hasCollapsedElements(true), ACTION_EXPAND_FEATURES);\n }", "protected void childrenChanged() {\n\n }", "public void addSelectionTreeListener(final SelectionTreeListener listener);", "private void fireTreeNodesInserted(TreeModelEvent event) {\n\t\tfor(TreeModelListener listener : _listeners) {\n\t\t\tlistener.treeNodesInserted(event);\n\t\t}\n\t}", "public void dockNodeFloated(DockNodeEvent e) {}", "public void setExpanded(boolean expanded){\n\t\tthis.expanded = expanded;\n\t}", "interface InnerOnParentExpandCollapseListener {\n /**\n * 父列表项展开后的回调\n *\n * @param pvh 被展开的父列表\n */\n boolean onParentExpand(ParentViewHolder pvh);\n\n /**\n * 父列表项折叠后的回调\n *\n * @param pvh 被折叠的父列表\n */\n boolean onParentCollapse(ParentViewHolder pvh);\n}", "@Override\r\n\tprotected Object createLowerView(Composite parent) {\n\t\tfTree = new Tree(parent, SWT.BORDER );\r\n\t\tfTree.addSelectionListener(new SelectionAdapter() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\r\n\t\t\t\t// https://jira.jboss.org/browse/JBIDE-7107\r\n\t\t\t\t// update \"OK\" button enablement\r\n\t\t\t\tupdateOkState();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t});\r\n\t\t \r\n\t\tfTreeViewer = new TreeViewer(fTree);\r\n\t\tfTreeViewer.setContentProvider( treeContentProvider );\r\n\t\tfTreeViewer.setLabelProvider(new ModelTreeLabelProvider());\r\n\t\tfTreeViewer.setInput ( null );\r\n\t\tfTreeViewer.setAutoExpandLevel( getAutoExpandLevel() );\r\n\t\t// end tree viewer for variable structure\r\n\t\tGridData data = new GridData(); \r\n\t data.grabExcessVerticalSpace = true;\r\n\t data.grabExcessHorizontalSpace = true;\r\n\t data.horizontalAlignment = GridData.FILL;\r\n\t data.verticalAlignment = GridData.FILL;\r\n\t data.minimumHeight = 200;\r\n\t fTree.setLayoutData(data);\r\n\t \r\n\t\treturn fTree;\r\n\t}", "public boolean isExpandable() {\n return term.isExpandable();\n }", "public void onExpandingStarted() {\n super.onExpandingStarted();\n this.mNotificationStackScroller.onExpansionStarted();\n this.mIsExpanding = true;\n this.mQsExpandedWhenExpandingStarted = this.mQsFullyExpanded;\n if (this.mQsExpanded) {\n onQsExpansionStarted();\n }\n C0940QS qs = this.mQs;\n if (qs != null) {\n qs.setHeaderListening(true);\n }\n }", "public boolean isExpanded() {\n return this.isExpanded;\n }", "public void expand(){\n\t\texpanded = true;\n\t\tstartRow = 0;\n\t\tslider.setLimits(0, 0, optGroup.size() - maxRows);\n\t\ttakeFocus();\n\t}", "public void dockNodeDocked(DockNodeEvent e) {}", "protected void expandAll() {\n Activity a = getCurrentActivity();\n if (a instanceof SessionsExpandableListActivity) {\n SessionsExpandableListActivity sela = (SessionsExpandableListActivity) a;\n \n sela.expandAll();\n Log.i(\"expandAll()\", \"expanded!\");\n }\n \n \n // View view = mTabHost.getCurrentTabView();\n // Log.i(\"INFO: \", view.getClass().getName());\n \n \n }", "@Override\n\t\t\tpublic void expansionStateChanging(ExpansionEvent arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void expansionStateChanging(ExpansionEvent arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void expansionStateChanging(ExpansionEvent arg0) {\n\n\t\t\t}", "public void valueChanged(TreeSelectionEvent e) {\n DefaultMutableTreeNode node = (DefaultMutableTreeNode) tree.getLastSelectedPathComponent();\n sheet.displayNode(node);\n }", "public void mousePressed(MouseEvent me) {\n if (!table.isEnabled())\n return;\n \n // we're going to check if the single click was overtop of the\n // expander button and toggle the expansion of the row if it was\n \n // extract information about the location of the click\n final JTable table = (JTable) me.getSource();\n final Point clickPoint = me.getPoint();\n final int row = table.rowAtPoint(clickPoint);\n final int column = table.columnAtPoint(clickPoint);\n \n // ensure a valid cell has clicked\n if (row == -1 || column == -1)\n return;\n \n // translate the clickPoint to be relative to the rendered component\n final Rectangle cellRect = table.getCellRect(row, column, true);\n clickPoint.translate(-cellRect.x, -cellRect.y);\n \n // if a left-click occurred over the expand/collapse button\n final TreeTableCellPanel renderedPanel = TreeTableUtilities.prepareRenderer(me);\n boolean hitNode = true;\n if (renderedPanel != null) {\n Component hit = renderedPanel.findComponentAt(clickPoint);\n hitNode = hit == renderedPanel.getNodeComponent();\n }\n if (SwingUtilities.isLeftMouseButton(me) && renderedPanel != null && renderedPanel.isPointOverExpanderButton(clickPoint)) {\n treeList.getReadWriteLock().writeLock().lock();\n try {\n // expand/collapse the row if possible\n if (treeList.getAllowsChildren(row))\n TreeTableUtilities.toggleExpansion(table, treeList, row).run();\n } finally {\n treeList.getReadWriteLock().writeLock().unlock();\n }\n \n // return early and don't allow the delegate a chance to react to the mouse click\n return;\n }\n \n if (hitNode) {\n delegate.mousePressed(me);\n }\n }", "public void expand() {\n if(!contentLayout.isVisible()) {\n toggle(false);\n }\n }", "public void actionPerformed(ActionEvent evt) {\n\t\t\t\tDefaultMutableTreeNode selected = (DefaultMutableTreeNode) tree\n\t\t\t\t\t\t.getLastSelectedPathComponent();\n\t\t\t\tif (selected == null)\n\t\t\t\t\treturn;\n\n\t\t\t\t// add a new node as the last child of the selected node\n\t\t\t\ttModel.insertNodeInto(new DefaultMutableTreeNode(\"New Node\"),\n\t\t\t\t\t\tselected, selected.getChildCount());\n\n\t\t\t\t// Lets also expand the tree to show the new node\n\t\t\t\t// Find the array of nodes that make up the path from the root\n\t\t\t\t// to the newly added node\n\t\t\t\tTreeNode[] nodes = tModel.getPathToRoot(selected\n\t\t\t\t\t\t.getChildAt(selected.getChildCount() - 1));\n\n\t\t\t\t// Create a tree path with these nodes\n\t\t\t\tTreePath path = new TreePath(nodes);\n\t\t\t\t// Make the entire path visible and make the scroller to move to\n\t\t\t\t// the last path component\n\t\t\t\ttree.scrollPathToVisible(path);\n\t\t\t}", "private void expandAll()\r\n\t{\r\n\t\tint count = listAdapter.getGroupCount();\r\n\t\tfor (int i = 0; i < count; i++)\r\n\t\t{\r\n\t\t\tmyList.expandGroup(i);\r\n\t\t}\r\n\t}", "public void expand() {\n\t\tconvertHeadToTailComponent();\n\t\taddNewHead();\n\t}", "void setExpanded(boolean expanded)\n {\n this.expanded = expanded;\n\n invalidate();\n }", "public void onChildAlignChanged(GuiElementBase element, Direction direction)\n\t\t{ expandToFitChildren(direction); }", "public void treeOpened(SrvSession sess, TreeConnection tree) {\n }", "@Override\n public boolean onMenuItemActionExpand(MenuItem item) {\n return true; // Return true to expand action view\n }", "@Override\n public boolean onMenuItemActionExpand(MenuItem item) {\n return true; // Return true to expand action view\n }", "public abstract boolean \tgetNodeExpanded(int nodeIndex);", "protected void hookViewerListeners() {\r\n\t\tsuper.hookViewerListeners();\r\n\t\tgetViewer().addDoubleClickListener(new IDoubleClickListener() {\r\n\t\t\tpublic void doubleClick(DoubleClickEvent event) {\r\n\t\t\t\tTreeViewer viewer= (TreeViewer)getViewer();\r\n\t\t\t\tObject element= ((IStructuredSelection)event.getSelection()).getFirstElement();\r\n\t\t\t\tif (viewer.isExpandable(element))\r\n\t\t\t\t\tviewer.setExpandedState(element, !viewer.getExpandedState(element));\r\n\t\t\t}\r\n\t\t});\r\n\t}", "@VTID(7)\n void treeScope(\n mmarquee.automation.uiautomation.TreeScope scope);", "public boolean isExpanded(){\n\t\treturn expanded;\n\t}", "public boolean isExpand(){\n return this == EXPAND;\n }", "@Override\n public boolean onMenuItemActionExpand(MenuItem item) {\n return true; // Return true to expand action view\n }", "@Override\n public boolean onMenuItemActionExpand(MenuItem item) {\n return true; // Return true to expand action view\n }", "@Override\n public boolean onMenuItemActionExpand(MenuItem item) {\n return true; // Return true to expand action view\n }", "public boolean isExpanded() {\n return expanded;\n }", "public void expandedItem(int index) {\n if (index < 0 || index >= getChildCount() || hasItemExpanded()) {\n return;\n }\n final View releasedChild = getChildAt(index);\n final LayoutParams lp = (LayoutParams) releasedChild.getLayoutParams();\n lp.isOpen = true;\n mDragHelper.smoothSlideViewTo(releasedChild, releasedChild.getLeft(), lp.expandTop);\n int length = getChildCount();\n for (int i = 0; i < length; i++) {\n if (i != index) {\n View child = getChildAt(i);\n playShrinkItemAnimation(child);\n }\n }\n invalidate();\n }", "@Override\n public boolean onMenuItemActionExpand(MenuItem item) {\n return true; // Return true to expand action view\n }", "public void treeStructureChanged(TreeModelEvent evt) {\n\t\t\t\tSystem.out\n\t\t\t\t\t\t.println(\"In TreeModelListener: Tree Structure Changed\");\n\t\t\t}", "@Test\r\n public void testNotificationIndicesOnCollapseItemWithSelectedChild_37366() {\r\n getView().setShowRoot(true);\r\n // select child of root\r\n int index = 3;\r\n getSelectionModel().select(index);\r\n ListChangeReport report = new ListChangeReport(getSelectedIndices());\r\n getRoot().setExpanded(false);\r\n assertEquals(1, report.getEventCount());\r\n }", "public boolean shouldExpandWhenNotFlinging() {\n boolean z = true;\n if (super.shouldExpandWhenNotFlinging()) {\n return true;\n }\n if (!this.mAllowExpandForSmallExpansion) {\n return false;\n }\n if (SystemClock.uptimeMillis() - this.mDownTime > 300) {\n z = false;\n }\n return z;\n }" ]
[ "0.7745738", "0.76037914", "0.75396335", "0.74562573", "0.7216393", "0.7164022", "0.71185493", "0.7095153", "0.6952269", "0.67677873", "0.6749441", "0.657456", "0.65324175", "0.65290236", "0.64670825", "0.6416053", "0.6389262", "0.63719875", "0.6366824", "0.6357331", "0.6357331", "0.6334105", "0.6332578", "0.6301536", "0.6260406", "0.62251973", "0.62005013", "0.6172074", "0.61476165", "0.6109258", "0.61062694", "0.6105885", "0.6096933", "0.6093911", "0.608862", "0.6064203", "0.60641134", "0.6021359", "0.59755373", "0.5972438", "0.594097", "0.5910183", "0.58915", "0.58801997", "0.58699167", "0.58594614", "0.5858587", "0.58520585", "0.5830215", "0.58267236", "0.5820335", "0.5809983", "0.5791993", "0.57834387", "0.5777268", "0.57662404", "0.57458144", "0.57437503", "0.5728662", "0.5727074", "0.5717242", "0.5701884", "0.57017344", "0.56937504", "0.56680524", "0.5664102", "0.56544614", "0.5649155", "0.5626663", "0.5625076", "0.56245935", "0.5617734", "0.5616946", "0.5616946", "0.5616946", "0.5616519", "0.55979574", "0.5592525", "0.55906504", "0.5578317", "0.55768645", "0.55727", "0.55722135", "0.55441606", "0.55440104", "0.55440104", "0.5528472", "0.55215347", "0.5515178", "0.55121344", "0.5507198", "0.5502126", "0.5502126", "0.5502126", "0.54983145", "0.5485232", "0.548401", "0.54811054", "0.54798305", "0.5478442" ]
0.7679036
1
/ tree will expand listener: treeWillCollapse
public void treeWillCollapse(TreeExpansionEvent e) throws ExpandVetoException { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void treeWillCollapse(TreeExpansionEvent e) {\n saySomething(\"Tree-will-collapse event detected\", e);\n }", "@Override\n\t\t\t\tpublic void treeCollapsed(TreeExpansionEvent arg0) {\n\t\t\t\t}", "@Override\n\t\t\tpublic void treeExpanded(TreeExpansionEvent event) {\n\t\t\t\t// fireTableDataChanged();\n\t\t\t}", "private void expandTree() {\n tree.expand();\n }", "public void treeExpanded(TreeExpansionEvent e) {\n saySomething(\"Tree-expanded event detected\", e);\n }", "public void treeWillExpand(TreeExpansionEvent e) throws ExpandVetoException {\n TreePath path = e.getPath();\n if (!tree.hasBeenExpanded(path)) {\n DefaultMutableTreeNode node = (DefaultMutableTreeNode) path.getLastPathComponent();\n if (sheet.isMBeanNode(node) && !tree.hasMetadataNodes(node)) {\n tree.addMetadataNodes(node);\n }\n }\n }", "public void treeCollapsed(TreeExpansionEvent e) {\n saySomething(\"Tree-collapsed event detected\", e);\n }", "private TreeWillExpandListener createTreeWillExpandListener() {\n\t\treturn new TreeWillExpandListener() {\n\t\t\tpublic void treeWillCollapse(TreeExpansionEvent evt)\n\t\t\t\t\tthrows ExpandVetoException {\n\t\t\t\tDefaultMutableTreeNode node = (DefaultMutableTreeNode) evt\n\t\t\t\t\t\t.getPath().getLastPathComponent();\n\t\t\t\tSystem.out.println(\"In TreeWillExpandListener: Collapsing: \"\n\t\t\t\t\t\t+ node.getUserObject());\n\t\t\t}\n\n\t\t\tpublic void treeWillExpand(TreeExpansionEvent evt)\n\t\t\t\t\tthrows ExpandVetoException {\n\t\t\t\tDefaultMutableTreeNode node = (DefaultMutableTreeNode) evt\n\t\t\t\t\t\t.getPath().getLastPathComponent();\n\t\t\t\tSystem.out.println(\"TreeWillExpandListener: Expanding: \"\n\t\t\t\t\t\t+ node.getUserObject());\n\t\t\t}\n\n\t\t};\n\t}", "private void expandTree() {\n for (int i=0; i<tree.getRowCount(); i++) {\n tree.expandRow(i);\n }\n }", "public void expand() {\n openItems();\n }", "public void treeWillExpand(TreeExpansionEvent e)\n throws ExpandVetoException {\n saySomething(\"Tree-will-expand event detected\", e);\n int n = JOptionPane.showOptionDialog(this, willExpandText,\n willExpandTitle, JOptionPane.YES_NO_OPTION,\n JOptionPane.QUESTION_MESSAGE, null, willExpandOptions,\n willExpandOptions[1]);\n if (n == 0) {\n //User said cancel expansion.\n saySomething(\"Tree expansion cancelled\", e);\n throw new ExpandVetoException(e);\n }\n }", "@Override\n public boolean isExpanded() {\n return isExpanded;\n }", "public boolean isExpanded();", "@JDIAction(\"Expand '{name}'\")\n public void expand() {\n if (isCollapsed()) {\n expandButton.click();\n }\n }", "@Override\r\n public void onGroupExpand(int groupPosition) {\n }", "void expandChilds() {\n\t\t\tenumAndExpand(this.parentItem);\n\t\t}", "@Override\n public void onGroupExpand(int groupPosition) {\n }", "@Override\n public void grow() {\n System.out.println(\"Tree growing\");\n }", "public interface MyExpandingListener {\n void onExpanded();\n void onCollapsed();\n}", "@Override\n public void onGroupExpand(int groupPosition) {\n }", "@Override\n public void onGroupExpand(int groupPosition) {\n }", "@Override\n public void onGroupExpand(int groupPosition) {\n }", "void onGroupExpanded(int groupPosition);", "@Override\n public void onGroupExpand(int groupPosition) {\n\n }", "public void onExpandingFinished() {\n super.onExpandingFinished();\n this.mNotificationStackScroller.onExpansionStopped();\n this.mHeadsUpManager.onExpandingFinished();\n this.mIsExpanding = false;\n if (isFullyCollapsed()) {\n DejankUtils.postAfterTraversal(new Runnable() {\n public void run() {\n NotificationPanelViewController.this.setListening(false);\n }\n });\n this.mView.postOnAnimation(new Runnable() {\n public void run() {\n NotificationPanelViewController.this.mView.getParent().invalidateChild(NotificationPanelViewController.this.mView, NotificationPanelViewController.M_DUMMY_DIRTY_RECT);\n }\n });\n } else {\n setListening(true);\n }\n this.mQsExpandImmediate = false;\n this.mNotificationStackScroller.setShouldShowShelfOnly(false);\n this.mTwoFingerQsExpandPossible = false;\n notifyListenersTrackingHeadsUp(null);\n this.mExpandingFromHeadsUp = false;\n setPanelScrimMinFraction(0.0f);\n }", "public void expand() {\n getSection().setExpanded(true);\n }", "public boolean isExpandable();", "@Test\n public void testExpandTree() {\n // TODO: test ExpandTree\n }", "public void treeStructureChanged(TreeModelEvent e) {\n //To change body of implemented methods use Options | File Templates.\n }", "void onTreeChange(TreeChangeEvent event);", "protected void change() {\r\n\r\n // consume?\r\n if(isLoop()) return;\r\n \r\n // prevent re-entry\r\n setLoop(true);\r\n\r\n // initialize\r\n int dx = 0;\r\n int dy = 0;\r\n\r\n // set flag\r\n boolean isSelected = getToggleButton().isSelected();\r\n\r\n // any change?\r\n if(isExpanded!=isSelected) {\r\n\r\n // set flag\r\n isExpanded = isSelected;\r\n\r\n // translate selection to view\r\n if(isExpanded) {\r\n\r\n \t// get preferred size\r\n \tint max = (preferredExpandedHeight==0 ? (isPreferredSizeSet() ? super.getPreferredSize().height : 0) : preferredExpandedHeight);\r\n\r\n // get height\r\n int h = (isTmpSet(0) ? tmpSize[0].height : max);\r\n\r\n // calculate change\r\n dy = h - minimumCollapsedHeight;\r\n\r\n // apply temporary stored sizes?\r\n if(isTmpSet(1)) super.setMinimumSize(getTmpSize(1));\r\n if(isTmpSet(2)) super.setPreferredSize(getTmpSize(2));\r\n if(isTmpSet(3)) super.setMaximumSize(getTmpSize(3));\r\n\r\n // reset temporary sets\r\n resetTmpSizes();\r\n\r\n }\r\n else {\r\n\r\n // get collapsed height\r\n int h = minimumCollapsedHeight;\r\n\r\n // update temporary sizes\r\n setTmpSize(0,isDisplayable() ? super.getSize() : getPreferredSize(),true);\r\n\r\n // update temporary insets\r\n tmpInsets = super.getInsets();\r\n\r\n // calculate change\r\n dy = h - getTmpSize(0).height;\r\n\r\n // set collapsed size\r\n minimumCollapsedHeight = h;\r\n\r\n // set new insets\r\n if(headerPlacement==SwingUtilities.BOTTOM) {\r\n \tcollapsedInsets = new Insets(0, tmpInsets.left, tmpInsets.bottom, tmpInsets.right);\r\n } else {\r\n \tcollapsedInsets = new Insets(tmpInsets.top, tmpInsets.left, 0, tmpInsets.right);\r\n }\r\n \r\n\r\n }\r\n\r\n // apply change\r\n super.setBorder(createBorder());\r\n\r\n // update tool tip text\r\n getToggleButton().setToolTipText(isExpanded() ? \"Lukk\" : \"┼pne\");\r\n\r\n // notify\r\n fireToggleEvent(dx,dy);\r\n\r\n // notify manager hierarchy\r\n super.requestResize(dx, dy, true);\r\n\r\n }\r\n\r\n // resume\r\n setLoop(false);\r\n\r\n }", "@Override\n public void onShow() {\n mExpandableLinearLayout.expand();\n }", "interface InnerOnParentExpandCollapseListener {\n /**\n * 父列表项展开后的回调\n *\n * @param pvh 被展开的父列表\n */\n boolean onParentExpand(ParentViewHolder pvh);\n\n /**\n * 父列表项折叠后的回调\n *\n * @param pvh 被折叠的父列表\n */\n boolean onParentCollapse(ParentViewHolder pvh);\n}", "@Override\n public void onGroupExpanded(int groupPosition) {\n\n }", "public static void expandTreeView(TreeItem<?> t) {\n\t\tif(t != null && !t.isLeaf()) {\n\t\t\tt.setExpanded(true);\n\t\t\tfor(TreeItem<?> child : t.getChildren())\n\t\t\t\texpandTreeView(child);\n\t\t}\n\t}", "public static void logSelectionExpanded(boolean fromTapGesture) {\n RecordHistogram.recordBooleanHistogram(\n \"Search.ContextualSearch.SelectionExpanded\", fromTapGesture);\n }", "@Override\n public void setExpanded(boolean isExpanded) {\n mIsExpanded = isExpanded;\n }", "@Override\r\n public void onGroupCollapse(int groupPosition) {\n\r\n }", "@JDIAction(\"Collapse '{name}'\")\n public void collapse() {\n if (isExpanded()) {\n expandButton.click();\n }\n }", "@Override\n public void onGroupCollapse(int groupPosition) {\n }", "public boolean hasBeenExpanded(TreePath path) {\r\n return super.hasBeenExpanded(path) ||\r\n !this.getModel().isLeaf(path.getLastPathComponent());\r\n }", "public void resetCollapseByMenu() {\n //NOTE: can only collapse on OTU metadata\n collapseByMenu.removeAll();\n JMenuItem item = new JMenuItem(\"Uncollapse All\");\n item.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n frame.uncollapseTree();\n }\n });\n collapseByMenu.add(item);\n item = new JMenuItem(\"Collapse All\");\n item.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n frame.collapseTree();\n }\n });\n collapseByMenu.add(item);\n item = new JMenuItem(\"Node Labels\");\n item.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n String value = e.getActionCommand();\n double level = Double.parseDouble(((String)JOptionPane.showInputDialog(\n frame,\n \"Enter percent threshold to collapse by:\\n\"+\n \"Use 100(%) for completely homogeneous\\n\"+\n \"collapsing\",\n \"Collapse by \"+value,\n JOptionPane.PLAIN_MESSAGE,\n null,\n null,\n \"90\")))/100;\n if(level > 0 && level <= 1)\n {\n frame.collapseTreeByNodeLabels(level);\n }\n else\n JOptionPane.showMessageDialog(frame,\n \"Invalid threshold percentage.\",\n \"Error\",\n JOptionPane.ERROR_MESSAGE);\n \n }\n });\n collapseByMenu.add(item);\n item = new JMenuItem(\"Consensus Lineage\");\n item.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n String value = e.getActionCommand();\n double level = Double.parseDouble(((String)JOptionPane.showInputDialog(\n frame,\n \"Enter percent threshold to collapse by:\\n\"+\n \"Use 100(%) for completely homogeneous\\n\"+\n \"collapsing\",\n \"Collapse by \"+value,\n JOptionPane.PLAIN_MESSAGE,\n null,\n null,\n \"90\")))/100;\n if(level > 0 && level <= 1)\n {\n frame.collapseTreeByConsensusLineage(level);\n }\n else\n JOptionPane.showMessageDialog(frame,\n \"Invalid threshold percentage.\",\n \"Error\",\n JOptionPane.ERROR_MESSAGE);\n \n }\n });\n item.setEnabled(false);\n collapseByMenu.add(item);\n collapseByMenu.add(new JSeparator());\n // \n // item = new JMenuItem(\"External Node Labels\");\n // item.addActionListener(new ActionListener() {\n // public void actionPerformed(ActionEvent e) {\n // collapseItemClicked(e);\n // }\n // });\n // collapseByMenu.add(item);\n\n if (frame.frame.otuMetadata != null) { \n ArrayList<String> data = frame.frame.otuMetadata.getColumnNames();\n //start at 1 to skip ID column\n for (int i = 1; i < data.size(); i++) {\n String value = data.get(i);\n item = new JMenuItem(value);\n item.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n collapseItemClicked(e);\n }\n });\n collapseByMenu.add(item);\n }\n }\n }", "public void expand() {\n if(!contentLayout.isVisible()) {\n toggle(false);\n }\n }", "public void expand(boolean inclChildren) {\n isExtended = true;\n if (inclChildren)\n for (BudgetAccountTableRow child : children)\n child.reduce(true);\n updateUItoExtState();\n }", "public void treeNodesChanged(TreeModelEvent e) {\n //To change body of implemented methods use Options | File Templates.\n }", "public boolean hasBeenExpanded(Object inNode)\n\t{\n\t\tObject parent = inNode;\n\t\twhile( parent != null)\n\t\t{\n\t\t\tString path = toUrl(inNode);\n\t\t\tif( getExpandedNodes().contains(path) )\n\t\t\t{\n\t\t\t\tparent = getWebTree().getModel().getParent(parent);\n\t\t\t\t//If we get to the root and it is selected still then we are ok!\n\t\t\t\tif( parent == null)\n\t\t\t\t{\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "@Override\n public boolean onMenuItemActionExpand(MenuItem item) {\n return true;\n }", "private void AccessoryTree_valueChanged(\r\n\t\tTreeSelectionEvent e) {\n\t \r\n\t}", "public static void expandAll(JTree tree, boolean expand) {\n TreeNode root = (TreeNode)tree.getModel().getRoot();\n\n // Traverse tree from root\n expandAll(tree, new TreePath(root), expand);\n }", "public void expand() {\n if (getVisibility() == View.VISIBLE) {\n return;\n }\n setVisibility(View.VISIBLE);\n mAnimatorExpand.setDuration(mDuration);\n mAnimatorExpand.start();\n }", "@Test\r\n public void testNotificationIndicesOnCollapseItemWithSelectedChild_37366() {\r\n getView().setShowRoot(true);\r\n // select child of root\r\n int index = 3;\r\n getSelectionModel().select(index);\r\n ListChangeReport report = new ListChangeReport(getSelectedIndices());\r\n getRoot().setExpanded(false);\r\n assertEquals(1, report.getEventCount());\r\n }", "private void loadTree(){ \n PBarHelper.show();\n DataProvider.getTreeHierarchy(mScreenId, new DataProvider.AsyncCallback<ViewNodeJSO>() {\n @Override\n public void onError(Request r, Throwable t) {\n PBarHelper.hide();\n Window.alert(t.getMessage());\n }\n\n @Override\n public void onDownloaded(ViewNodeJSO result) {\n mRoot = result; \n CellTree.Resources res = GWT.create(CustomTreeResources.class);\n //create tree model\n mTreeViewModel = new ViewHierarchyTreeViewModel(result);\n //add selection handler to select view on canvas\n mTreeViewModel.setOnSelectionChangedListener(new OnSelectionChangedListener() { \n @Override\n public void onSelectionChanged(ViewNodeJSO viewNode, boolean selected) { \n ScreenPreviewPage.this.onViewTreeNodeSelectionChanged(viewNode, selected);\n }\n });\n //add hover listener just to highlight view\n mTreeViewModel.setOnViewNodeMouseOverListener(new OnViewNodeMouseOverListener() {\n @Override\n public void onMouseOver(ViewNodeJSO viewNode) {\n if (mTreeViewModel.getSelectedNode() == null) {\n clearCanvas();\n drawRectForView(viewNode);\n }\n }\n });\n //remove old tree if necessary, currently there is no reload support (reload page only)\n if (mCellTree != null) {\n mCellTree.removeFromParent();\n }\n mCellTree = new CellTree(mTreeViewModel, null, res); \n mCellTree.setDefaultNodeSize(1000);//no show more button\n centerPanel.add(mCellTree); \n CellTreeTools.expandAll(mCellTree.getRootTreeNode());\n mCellTree.setAnimationEnabled(true);\n PBarHelper.hide();\n } \n });\n }", "@Test\r\n public void testSetCollapsedChildAtExpanded() {\r\n getView().setShowRoot(true);\r\n TreeItem child = createBranch(\"single-replaced-child\", true);\r\n int index = 3;\r\n setItem(index -1, child);\r\n getSelectionModel().select(index);\r\n TreeItem collapsedChild = createBranch(\"another-single-replaced\");\r\n setItem(index -1, collapsedChild);\r\n assertEquals(index, getSelectedIndex());\r\n assertEquals(collapsedChild, getSelectedItem());\r\n }", "public boolean isExpanded() {\n return this.isExpanded;\n }", "public void updateExpandButton() {\n // Remove features that can no longer be collapsed\n featureDiagramView.checkCollapseValidity();\n menu.enableAction(featureDiagramView.hasCollapsedElements(true), ACTION_EXPAND_FEATURES);\n }", "private void expandNode(Node parentNode) {\n VBox childrenVBox = parentNode.getChildrenVBox();\n PlaceManager placeManager = PlaceManager.getInstance();\n Place sourcePlace = placeManager.getPlace(parentNode.getNodeId());\n ArrayList<Place> childrenPlaces = sourcePlace.getChildren();\n\n if (!childrenPlaces.isEmpty()) {\n for (Place place : childrenPlaces) {\n String id = place.getId();\n String name = place.getName();\n String type = place.getType().toString();\n String displayName = place.toString();\n Node childNode = new Node(id, name, type, displayName, controller);\n nodes.add(childNode);\n childrenVBox.getChildren().add(childNode.getContainerPane());\n childrenVBox.layout();\n }\n }\n redrawEdges(parentNode);\n }", "void setExpanded(boolean expanded)\n {\n this.expanded = expanded;\n\n invalidate();\n }", "public void setExpanded(boolean expanded){\n\t\tthis.expanded = expanded;\n\t}", "public void mousePressed(MouseEvent me) {\n if (!table.isEnabled())\n return;\n \n // we're going to check if the single click was overtop of the\n // expander button and toggle the expansion of the row if it was\n \n // extract information about the location of the click\n final JTable table = (JTable) me.getSource();\n final Point clickPoint = me.getPoint();\n final int row = table.rowAtPoint(clickPoint);\n final int column = table.columnAtPoint(clickPoint);\n \n // ensure a valid cell has clicked\n if (row == -1 || column == -1)\n return;\n \n // translate the clickPoint to be relative to the rendered component\n final Rectangle cellRect = table.getCellRect(row, column, true);\n clickPoint.translate(-cellRect.x, -cellRect.y);\n \n // if a left-click occurred over the expand/collapse button\n final TreeTableCellPanel renderedPanel = TreeTableUtilities.prepareRenderer(me);\n boolean hitNode = true;\n if (renderedPanel != null) {\n Component hit = renderedPanel.findComponentAt(clickPoint);\n hitNode = hit == renderedPanel.getNodeComponent();\n }\n if (SwingUtilities.isLeftMouseButton(me) && renderedPanel != null && renderedPanel.isPointOverExpanderButton(clickPoint)) {\n treeList.getReadWriteLock().writeLock().lock();\n try {\n // expand/collapse the row if possible\n if (treeList.getAllowsChildren(row))\n TreeTableUtilities.toggleExpansion(table, treeList, row).run();\n } finally {\n treeList.getReadWriteLock().writeLock().unlock();\n }\n \n // return early and don't allow the delegate a chance to react to the mouse click\n return;\n }\n \n if (hitNode) {\n delegate.mousePressed(me);\n }\n }", "@Override\n\tpublic void queuingFunc(TreeNode[] expandedNodes) {\n\n\t}", "private void expand( Change change ) {\n if ( getPlan().isDevelopment() && change.isForInstanceOf( ModelObject.class )\n && getCommander().isLockable( change.getClassName() ) ) {\n getCommander().requestLockOn( change.getId() );\n }\n if ( change.isForInstanceOf( ModelEntity.class ) ) {\n // ModelObject entity = (ModelObject) identifiable;\n ModelObject previous = findExpandedEntity();\n if ( previous != null ) {\n /*String previousAspect = getAspectShown( previous );\n viewAspect( entity, previousAspect );*/\n collapse( new Change( Change.Type.None, previous ) );\n }\n }\n expansions.add( change.getId() );\n }", "@Override\n public void onGroupCollapse(int groupPosition) {\n }", "public boolean isExpanded(){\n\t\treturn syncExec(new BoolResult() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic Boolean run() {\n\t\t\t\treturn widget.isExpanded();\n\t\t\t}\n\t\t});\n\t}", "public void toggle() {\n if (isExpanded()) {\n collapse();\n } else {\n expand();\n }\n }", "@Override\n public void onGroupCollapse(int groupPosition) {\n\n }", "@Override\n public void onGroupCollapse(int groupPosition) {\n\n }", "@Override\n public void onGroupCollapse(int groupPosition) {\n\n }", "@Override\n public void onGroupCollapse(int groupPosition) {\n\n }", "public boolean isExpanded(){\n\t\treturn expanded;\n\t}", "protected void expandAll() {\n Activity a = getCurrentActivity();\n if (a instanceof SessionsExpandableListActivity) {\n SessionsExpandableListActivity sela = (SessionsExpandableListActivity) a;\n \n sela.expandAll();\n Log.i(\"expandAll()\", \"expanded!\");\n }\n \n \n // View view = mTabHost.getCurrentTabView();\n // Log.i(\"INFO: \", view.getClass().getName());\n \n \n }", "public abstract boolean setNodeExpanded(int nodeIndex,boolean true_is_yes);", "public boolean isExpanded() {\n return expanded;\n }", "private void addListener(org.eclipse.swt.widgets.Tree tree) {\n\t\t// Listener fuer \"Folder auf machen\"\n\t\ttree.addListener(SWT.Expand, new Listener() {\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\thandleFolderOpen(event);\n\t\t\t}\n\t\t});\n\t\t// Listener fuer \"Folder auf machen\"\n\t\ttree.addListener(SWT.Collapse, new Listener() {\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\thandleFolderClose(event);\n\t\t\t}\n\t\t});\n\t\t// Listener fuer die Aktionen\n\t\ttree.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseDoubleClick(MouseEvent e) {\n\t\t\t\thandleSelect(e);\n\t\t\t}\n\t\t});\n\t}", "@Override\n\tpublic void onBannerExpanded(MoPubView arg0) {\n\t\t\n\t}", "public abstract List<Node> expand();", "@Override\n public boolean onMenuItemActionExpand(MenuItem item) {\n return true; // Return true to expand action view\n }", "@Override\n public boolean onMenuItemActionExpand(MenuItem item) {\n return true; // Return true to expand action view\n }", "protected void childrenChanged() {\n\n }", "public void expand(){\n\t\texpanded = true;\n\t\tstartRow = 0;\n\t\tslider.setLimits(0, 0, optGroup.size() - maxRows);\n\t\ttakeFocus();\n\t}", "public void treeSelection() {\n\t\tFlowTreeNode ftn = (FlowTreeNode) tree.getLastSelectedPathComponent();\n\n\t\tif (ftn == null)\n\t\t\treturn;\n\t\telse\n\n\t\t{\n\n\t\t\tftn.execute();\n\t\t\tthis.revalidate();\n\t\t\t// buildTreeView();\n\n\t\t}\n\t}", "public void dockNodeFloated(DockNodeEvent e) {}", "@Override\n\t\t\tpublic void expansionStateChanged(ExpansionEvent arg0) {\n\n\t\t\t}", "public boolean isExpandable() {\n return term.isExpandable();\n }", "private void expandAll()\r\n\t{\r\n\t\tint count = listAdapter.getGroupCount();\r\n\t\tfor (int i = 0; i < count; i++)\r\n\t\t{\r\n\t\t\tmyList.expandGroup(i);\r\n\t\t}\r\n\t}", "public void expandRecJTreeFromNode(TreePath path, JTree tree) {\n\n\t\tDefaultMutableTreeNode thisNode = ((DefaultMutableTreeNode)path.getLastPathComponent());\n\n\t\t//For each child\n\t\tEnumeration<?> hijos = thisNode.children();\n\t\twhile (hijos.hasMoreElements()) {\n\t\t\t//get the child\n\t\t\tDefaultMutableTreeNode hijoActual = (DefaultMutableTreeNode)hijos.nextElement();\n\t\t\tjavax.swing.tree.TreePath aux = path.pathByAddingChild(hijoActual);\n\t\t\t//expand from the child to the end\n\t\t\texpandRecJTreeFromNode(aux, tree);\n\t\t}\n\n\t\t//expand me\n\t\ttree.expandPath(path);\n\t}", "public void expandedItem(int index) {\n if (index < 0 || index >= getChildCount() || hasItemExpanded()) {\n return;\n }\n final View releasedChild = getChildAt(index);\n final LayoutParams lp = (LayoutParams) releasedChild.getLayoutParams();\n lp.isOpen = true;\n mDragHelper.smoothSlideViewTo(releasedChild, releasedChild.getLeft(), lp.expandTop);\n int length = getChildCount();\n for (int i = 0; i < length; i++) {\n if (i != index) {\n View child = getChildAt(i);\n playShrinkItemAnimation(child);\n }\n }\n invalidate();\n }", "public void expand(int level)\n {\n if(isRootVisible())\n expandRow(0, level);\n else\n {\n for(int i=0; i < componentModel.getPropertyCount(); i++)\n {\n Property child = componentModel.getPropertyAt(i);\n expandRow(getRow(child), level);\n }\n }\n }", "public void treeNodesInserted(TreeModelEvent e) {\n //To change body of implemented methods use Options | File Templates.\n }", "public void makeAllExpand(GraphData data) {\r\n\t\tthis.collapsingList.clear();\r\n\t\tthis.unCollaspeAll(data);\r\n\t}", "@Override\n public boolean onMenuItemActionExpand(MenuItem item) {\n return true; // Return true to expand action view\n }", "@Override\n public boolean onMenuItemActionExpand(MenuItem item) {\n return true; // Return true to expand action view\n }", "@Override\n public boolean onMenuItemActionExpand(MenuItem item) {\n return true; // Return true to expand action view\n }", "public boolean isExpanded() {\n return getVisibility() == View.VISIBLE;\n }", "@Override\r\n\tprotected Object createLowerView(Composite parent) {\n\t\tfTree = new Tree(parent, SWT.BORDER );\r\n\t\tfTree.addSelectionListener(new SelectionAdapter() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\r\n\t\t\t\t// https://jira.jboss.org/browse/JBIDE-7107\r\n\t\t\t\t// update \"OK\" button enablement\r\n\t\t\t\tupdateOkState();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t});\r\n\t\t \r\n\t\tfTreeViewer = new TreeViewer(fTree);\r\n\t\tfTreeViewer.setContentProvider( treeContentProvider );\r\n\t\tfTreeViewer.setLabelProvider(new ModelTreeLabelProvider());\r\n\t\tfTreeViewer.setInput ( null );\r\n\t\tfTreeViewer.setAutoExpandLevel( getAutoExpandLevel() );\r\n\t\t// end tree viewer for variable structure\r\n\t\tGridData data = new GridData(); \r\n\t data.grabExcessVerticalSpace = true;\r\n\t data.grabExcessHorizontalSpace = true;\r\n\t data.horizontalAlignment = GridData.FILL;\r\n\t data.verticalAlignment = GridData.FILL;\r\n\t data.minimumHeight = 200;\r\n\t fTree.setLayoutData(data);\r\n\t \r\n\t\treturn fTree;\r\n\t}", "@Override\n public boolean onMenuItemActionExpand(MenuItem item) {\n return true; // Return true to expand action view\n }", "public void expandAllNodes(JTree tree, int startingIndex, int rowCount){\n for(int i=startingIndex;i<rowCount;++i){\n tree.expandRow(i);\n }\n\n if(tree.getRowCount()!=rowCount){\n expandAllNodes(tree, rowCount, tree.getRowCount());\n }\n}", "@Override\r\n\t\t\t\t\tpublic void onGroupExpand(int groupPosition) {\n\t\t\t\t\t\tfor (int i = 0; i < expListAdapter.getGroupCount(); i++) {\r\n\r\n\t\t\t\t\t\t\tif (i != groupPosition) {\r\n\t\t\t\t\t\t\t\texpandablelistView.collapseGroup(i);\r\n\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t}", "public void dockNodeDocked(DockNodeEvent e) {}", "public void run() {\n\t\t\t\tviewer.collapseToLevel(root, 2); // TODO: does not, it always collapse to level 1\n//\t\t\t\tshowSelection(par, sel);\n//\t\t\t\tif (actionCollapsAll.isChecked()) {\n//\t\t\t\t\t\n//\t\t\t\t}\n\t\t\t}", "public void treeStructureChanged(TreeModelEvent evt) {\n\t\t\t\tSystem.out\n\t\t\t\t\t\t.println(\"In TreeModelListener: Tree Structure Changed\");\n\t\t\t}" ]
[ "0.7862558", "0.7797092", "0.7503156", "0.7381973", "0.73527056", "0.7344288", "0.72781855", "0.7203036", "0.68560934", "0.6786354", "0.6733394", "0.6588772", "0.6545156", "0.6544458", "0.65341306", "0.6516874", "0.65065914", "0.64889073", "0.6475658", "0.64225006", "0.6419844", "0.6419844", "0.64133394", "0.63762", "0.63694936", "0.63398093", "0.6277194", "0.62759036", "0.6245734", "0.62419045", "0.6197203", "0.6192758", "0.61776453", "0.6175518", "0.61172277", "0.61131954", "0.6111961", "0.6053439", "0.60509866", "0.6036984", "0.60319185", "0.6024053", "0.60225517", "0.60187227", "0.5938312", "0.59238195", "0.59215295", "0.5918628", "0.5909812", "0.5907151", "0.58875966", "0.5880239", "0.5874297", "0.5865237", "0.58611643", "0.58458716", "0.5841922", "0.58306754", "0.58279043", "0.58264005", "0.57995373", "0.5774494", "0.577385", "0.5760359", "0.5741164", "0.5741164", "0.5741164", "0.5738991", "0.57379216", "0.57361674", "0.5708102", "0.57080066", "0.57020575", "0.56965816", "0.56843543", "0.56784546", "0.56784546", "0.5669847", "0.56694275", "0.56672066", "0.56530887", "0.5651959", "0.5648586", "0.5642741", "0.5636976", "0.5610336", "0.5607826", "0.56061196", "0.55947167", "0.55923414", "0.55923414", "0.55923414", "0.5591474", "0.55845356", "0.5584339", "0.5583611", "0.55716187", "0.557135", "0.5562663", "0.55440074" ]
0.7618243
2
TODO Autogenerated method stub
@Override public boolean contains(Rectangle2D arg0) { return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public boolean contains(double arg0, double arg1, double arg2, double arg3) { return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public Rectangle getBounds() { return new Rectangle(screen_x, screen_y, pinWidth, pinWidth); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public Rectangle2D getBounds2D() { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public PathIterator getPathIterator(AffineTransform arg0) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public PathIterator getPathIterator(AffineTransform arg0, double arg1) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public boolean intersects(Rectangle2D arg0) { return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public boolean intersects(double arg0, double arg1, double arg2, double arg3) { return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
Telefone celular do cliente
@ApiModelProperty(required = true, value = "Telefone celular do cliente") @JsonProperty("mobile") public String getMobile() { return mobile; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void tocarTelefone() {\n System.out.println(\"Telefone \" + getNumero() + \" está tocando!\");\n notificarTodos();\n }", "public void atenderTelefone() {\n System.out.println(\"Telefone \" + getNumero() + \" atendido!\");\n notificarTodos();\n }", "private void atualizaTabelaTelefone() {\n if (this.contato != null) {\n this.tmTelefone = new TableModelTelefone(this.contato.getTelefones());\n }\n tbTelefone.setModel(this.tmTelefone);\n tbTelefone.setAutoscrolls(true);\n\n }", "java.lang.String getTelefon();", "@AutoEscape\n\tpublic String getTelefono();", "public String RespuestaCliente()\n{\tString Muestra=\"\";\n\t\n\tMuestra+=\"DATOS DEL CLIENTE\\n\"\n\t\t\t+ \"Nombre: \"+getNombre()+\"\\n\"\n\t\t\t+ \"DNI: \"+getDni()+\"\\n\"\n\t\t\t+ \"Salario: �\"+String.format(\"%.1f\",getSalario())+\"\\n\\n\";\n\t\n\treturn Muestra;\n\t\n\t}", "public void setTelefono(String aTelefono) {\n telefono = aTelefono;\n }", "public ManterCliente() {\n try {\n initComponents();\n BloquearCampos();\n bt_salvar.setEnabled(false);\n bt_editar.setEnabled(false);\n txt_codigo.setEditable(true);\n mascaraCNPJ = new MaskFormatter(\"###.###.###/####-##\");\n mascaraCPF = new MaskFormatter(\"###.###.###-##\");\n } catch (ParseException ex) {\n JOptionPane.showMessageDialog(null, \"Erro ao carregar formulário. Contate o suporte.\");\n }\n }", "private void teletransportar(Personaje p, Celda destino) {\n // TODO implement here\n }", "public String getTelefone() {\n return telefone;\n }", "public void setTelefono(String telefono) {\n this.telefono = telefono;\n }", "public String getTelefono() {\r\n\t\treturn telefono;\r\n\t}", "BigInteger getTelefone();", "public FrmTelefone() {\n initComponents();\n // preencherTabela(\"\\\"select * from telefone order by id_telefone\\\")\");\n try {\n MaskFormatter form = new MaskFormatter(\"(##)####-####\");\n jFormattedTextFieldNum.setFormatterFactory(new DefaultFormatterFactory(form));\n \n \n \n } catch (ParseException ex) {\n JOptionPane.showMessageDialog(null, \"erros ao mostrar dados\" + ex); \n \n }\n }", "public Cliente(){\r\n this.nome = \"\";\r\n this.email = \"\";\r\n this.endereco = \"\";\r\n this.id = -1;\r\n }", "public static String getMacCliente(){\n\t\tInetAddress ip;\n\t\tbyte[] mac = null;\n\t\tStringBuilder sb = new StringBuilder();\n\t\ttry {\n\t\t\tip = InetAddress.getLocalHost();\n\t\t\tNetworkInterface network = NetworkInterface.getByInetAddress(ip);\n\n\t\t\tmac = network.getHardwareAddress();\n\t\t\tfor (int i = 0; i < mac.length; i++) {\n\t\t\t\tsb.append(String.format(\"%02X%s\", mac[i],(i < mac.length - 1) ? \"-\" : \"\"));\n\t\t\t}\n\t\t} catch (UnknownHostException e) {\n\t\t\t//Log.error(e, \"Utiles :: getMacCliente :: controlado\");\n\t\t} catch (SocketException e) {\n\t\t\t//Log.error(e, \"Utiles :: getMacCliente :: controlado\");\n\t\t} catch (NullPointerException e){\n\t\t\t//Log.error(e, \"Utiles :: getMacCliente :: controlado\");\n\t\t}\n\t\treturn sb.toString();\n\t}", "public void setTelefono(String telefono)\r\n {\r\n this.telefono = telefono;\r\n }", "public void selecionarCliente() {\n int cod = tabCliente.getSelectionModel().getSelectedItem().getCodigo();\n cli = cli.buscar(cod);\n\n cxCPF.setText(cli.getCpf());\n cxNome.setText(cli.getNome());\n cxRua.setText(cli.getRua());\n cxNumero.setText(Integer.toString(cli.getNumero()));\n cxBairro.setText(cli.getBairro());\n cxComplemento.setText(cli.getComplemento());\n cxTelefone1.setText(cli.getTelefone1());\n cxTelefone2.setText(cli.getTelefone2());\n cxEmail.setText(cli.getEmail());\n btnSalvar.setText(\"Novo\");\n bloquear(false);\n }", "public String getTelefone() {\n\t\treturn telefone;\n\t}", "public String getTelefono() {\n return telefono;\n }", "public String getTelefono() {\n return telefono;\n }", "public String getTelefono()\r\n {\r\n return telefono;\r\n }", "public void desligarTelefone() {\n System.out.println(\"Telefone \" + getNumero() + \" desligado!\");\n notificarTodos();\n }", "public Cliente(String nome, String telefone, String cpf) {\r\n\t\tthis.nome = nome;\r\n\t\tthis.telefone = telefone;\r\n\t\tthis.cpf = cpf;\r\n\t}", "public void setTelefono(long value) {\r\n this.telefono = value;\r\n }", "public void setTelefono(String telefono) {\r\n\t\tthis.telefono = telefono;\r\n\t}", "public long getTelefono() {\r\n return telefono;\r\n }", "void realizarSolicitud(Cliente cliente);", "public Cliente(String nombre,int comensales){\n\t\tthis.nombre = nombre;\n\t\tthis.comensales =comensales;\n\t}", "static Cliente parsearCliente(String linea) {\n //Dividimos cada linea en sus respectivos campos usando como referencia\n //las comas que los separan y la metemos en un array de String\n String campos[] = linea.split(\",\");\n //Inicializamos variable cliente\n Cliente cliente = null;\n //Si la longitud del array es de 4 o 5 (4 o 5 campos)\n if (campos.length == 4 || campos.length == 5) { \n //Convertimos el campo [0] en entero y se lo pasamos al atributo id\n long id = Integer.parseInt(campos[0]);\n String nombre = campos[1]; String email = campos[2];\n //Convertimos el campo[3] en tipo booleano\n boolean activo = campos[3].equals(\"true\") ? true : false;\n int duracionMax = 0;\n if (campos.length == 5) {\n /*Si detectamos que hay un quinto campo, que será el de la duración\n máxima para clientes invitados*/\n //Convertimos el campo en entero\n duracionMax = Integer.parseInt(campos[4]);\n /*Creamos objeto cliente de tipo ClienteInvitado haciendo casting,\n y le asignamos el atributo de duración máxima que hemos leido*/\n //Sólo id, nombre y email están en el constructor\n cliente = new ClienteInvitado(id, nombre, email);\n ((ClienteInvitado) cliente).setDuracionMax(duracionMax);\n } else {//Sino será tipo Cliente, creamos objeto cliente de tipo Cliente\n // y le pasamos los atributos que hemos leido\n cliente = new Cliente(id, nombre, email);\n }\n //Le asignamos el atributo activo\n cliente.setActivo(activo);\n }\n return cliente;\n }", "private void peticionDeCliente() throws IOException, InterruptedException {\n\t\tString mensaje = null;\n\t\tboolean salir = false;\n\t\twhile(!salir) {\n\t\t\tmensaje = in.readLine();\n\t\t\tif(mensaje!=null && !mensaje.split(\";\")[0].equals(\"Comprobacion\")) {\n\t\t\t\tthis.tcpServidor.colaPeticion.put(mensaje); //ALMACENA SOLICITUD EN COLA_PETICIONES\n\t\t\t\tSystem.out.println(\"Peticion del cliente \"+this.idCliente+\": \"+ mensaje);\n\t\t\t}\n\t\t}\n\t}", "public void setTelefono(String telefono);", "public ClienteModel(String nome,\n String email,\n String cpf,\n String sexo,\n String nascimento,\n String estadoCivil,\n String celular,\n String telefone,\n String endereco) {\n\n clientesCadastrados++;\n this.id = clientesCadastrados;\n this.nome = nome;\n this.email = email;\n this.cpf = cpf;\n this.nascimento = nascimento;\n this.sexo = sexo;\n this.estadoCivil = estadoCivil;\n this.celular = celular;\n this.telefone = telefone;\n this.endereco = endereco;\n }", "public Cliente getCliente() {\n\t\ttry {\n\t\t\tCalendar d_n = Calendar.getInstance();\n\t\t\td_n.setTime(dateChooser.getDate());\n\t\t\tString data_nascimento = d_n.get(Calendar.DAY_OF_WEEK) + \"-\" + d_n.get(Calendar.MONTH) + \"-\" + d_n.get(Calendar.YEAR);\n\t\t\tString nome = tfEmitente.getText();\n\t\t\tString cpf = ftfCpf.getText();\t\t\t\t\n\t\t\tcpf = cpf.replace('-',' ');\n\t\t\tcpf = cpf.replace('.',' ');\n\t\t\tcpf = cpf.trim();\n\t\t\tString rg = ftfRg.getText();\n\t\t\tString email = tfEmail.getText();\n\t\t\tString tel_fixo = ftfTelResidencial.getText();\n\t\t\ttel_fixo = tel_fixo.replaceAll(\"-\",\"\");\n\t\t\tString telefone_celular = ftfTelCelular.getText();\n\t\t\ttelefone_celular = telefone_celular.replaceAll(\"-\",\"\");\n\t\t\tString cep = ftfCep.getText();\n\t\t\tcep = cep.replaceAll(\"-\",\"\");\n\t\t\tString logradouro = tfLogradouro.getText();\n\t\t\tString numero = ftfNumero.getText();\n\t\t\tString complemento = tfComplemento.getText();\n\t\t\tString cidade = tfCidade.getText();\n\t\t\tString bairro = tfBairro.getText();\n\t\t\tString tipo = ftfTipo.getText();\n\t\t\t\n\t\t\treturn new Cliente(nome, cpf, rg, tel_fixo, telefone_celular, cep, logradouro,\n\t\t\t\t\t numero, complemento, cidade, bairro, tipo.charAt(0), email);\n\t\t} catch (NullPointerException npe) {\n\t\t\treturn null;\n\t\t}\n\n\t}", "public impresionCorreo() {\n initComponents();\n txtCorreo.setText(correoCliente);\n }", "private String mostrarCliente(int pos) {\n String mostrar = \"Cedula: \"+getCedulaCliente(pos) + \"\\n\"\n + \"Nombre: \"+getNombreCliente(pos) + \"\\n\"\n + \"Articulo: \"+getCompraRealizada(pos) + \"\\n\"\n + \"Valor: \"+getValorCompra(pos) + \"\\n\\n\";\n return mostrar;\n }", "public void AfficherListClient() throws Exception{\n laListeClient = Client_Db_Connect.tousLesClients();\n laListeClient.forEach((c) -> {\n modelClient.addRow(new Object[]{ c.getIdent(),\n c.getRaison(),\n c.getTypeSo(),\n c.getDomaine(),\n c.getAdresse(),\n c.getTel(),\n c.getCa(),\n c.getComment(),\n c.getNbrEmp(),\n c.getDateContrat(),\n c.getAdresseMail()});\n });\n }", "public String getTelefonnummer() {\n return telefonnummer;\n }", "public void carregarCliente() {\n\t\tgetConnection();\n\t\ttry {\n\t\t\tString sql = \"SELECT CLIENTE FROM CLIENTE ORDER BY CLIENTE\";\n\t\t\tst = con.createStatement();\n\t\t\trs = st.executeQuery(sql);\n\t\t\twhile(rs.next()) {\n\t\t\t\tcbCliente.addItem(rs.getString(\"CLIENTE\"));\n\t\t\t}\n\t\t}catch(SQLException e) {\n\t\t\tSystem.out.println(\"ERRO\" + e.toString());\n\t\t}\n\t}", "public Cliente() {\n setUndecorated(true);\n initComponents();\n jLabel7.setText(\"Usted Cuenta con: \"+ connecion.dinero);\n llenarTablaReservaciones(jTableMostrarReserva,\"FK_Usuario\");\n// jTableMostrarReserva.removeColumn(jTableMostrarReserva.getColumn(\"Id\"));\n// jTableMostrarReserva.removeColumn(jTableMostrarReserva.getColumn(\"Id\"));\n connecion.MostarTEsta(\"ID_Estado\", \"1\");\n this.setSize(848, 512);\n this.setLocationRelativeTo(null);\n \n }", "public Botella(int contenido_neto) {\n this.contenido_neto = contenido_neto;\n }", "public void conectar() {\n \n try {\n String host = \"localhost\";\n int port = 19999;\n StringBuffer mensaje = new StringBuffer();\n \n InetAddress ia = InetAddress.getByName(host);\n Socket connection = new Socket(ia, port);\n \n BufferedOutputStream bos = new BufferedOutputStream(connection.getOutputStream());\n OutputStreamWriter osw = new OutputStreamWriter(bos);\n \n Random r = new Random();\n \n Integer i = r.nextInt(50);\n String s;\n s = i.toString() + (char) 13;\n osw.write(s);\n osw.flush();\n \n BufferedInputStream bis = new BufferedInputStream(connection.getInputStream());\n InputStreamReader isr = new InputStreamReader(bis);\n \n int caracter;\n while ((caracter = isr.read()) != 13) {\n mensaje.append((char) caracter);\n }\n \n area.setText(mensaje.toString());\n \n connection.close();\n } catch (UnknownHostException ex) {\n System.out.println(ex.toString());\n \n } catch (IOException ex) {\n System.out.println(ex.toString());\n }\n \n }", "void grabarCliente(){\n RequestParams params = new RequestParams();\n params.put(\"nombre\",edtNombre.getText().toString().trim());\n params.put(\"apellido\",edtApellido.getText().toString().trim());\n params.put(\"correo\", edtCorreo.getText().toString().trim());\n String claveMD5 = edtClave.getText().toString().trim();\n try {\n params.put(\"clave\", ws.getMD5(claveMD5));\n } catch (Exception e) {\n e.printStackTrace();\n }\n params.put(\"id_cargo\",idCargo);\n params.put(\"autoriza\",validarCheckBoxAutoriza());\n crearUsuarioWS(params);\n }", "public String obtnerEmailClientes() {\n ArrayList tempAL = new ArrayList();\n RowKeySet rowKeys = Cliente.getClienteInstance().getClienteBinding().getTblClientes().getSelectedRowKeys();\n Iterator iterador = rowKeys.iterator();\n while (iterador.hasNext()){\n Object valor = iterador.next();\n Cliente.getClienteInstance().getClienteBinding().getTblClientes().setRowKey(valor);\n ClienteData row = (ClienteData) Cliente.getClienteInstance().getClienteBinding().getTblClientes().getRowData();\n tempAL.add(row);\n }\n String to = \"\";\n for(int i = 0; i < tempAL.size(); i++){\n to += \";\" + ((ClienteData)tempAL.get(i)).getEmail();\n }\n if(to.length() > 0){\n to = to.substring(1, to.length());\n }\n emailData.setTo(to);\n //emailData.setTo(emailBinding.getTblClientes().get);\n RequestContext rc = RequestContext.getCurrentInstance();\n rc.returnFromDialog(emailData.getTo(), null);\n //return null;\n return \"success\";\n }", "public void run() {\n\t\ttry {\n\t\t\tin = new BufferedReader(new InputStreamReader(cliente.getInputStream()));\n\t\t\tmOut = new PrintWriter(new BufferedWriter(new OutputStreamWriter(cliente.getOutputStream())), true);\n\n\t\t\tint comparar = idCliente(); //recibe id del cliente\n\t\t\tif(comparar==0) { \n\t\t\t\t//ENVIA id PARA EL CLIENTE\n\t\t\t\tthis.tcpServidor.maxCliente++;\n\t\t\t\tenviarMensaje(\"ID;\"+this.tcpServidor.maxCliente);\n\t\t\t\t//ENVIA maxCliente A TODAS LAS REPLICAS\n\t\t\t\tfor (HiloReplica h : this.tcpServidor.hiloReplica) {\n\t\t\t\t\th.enviarMensaje(\"MAXCLIENTE;\"+this.tcpServidor.maxCliente);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tthis.idCliente = comparar; //GUARDA id DEL CLIENTE\n\t\t\t}\n\t\n\t\t\tSystem.out.println(\"Cliente \"+this.idCliente+\" conectado a Balanceado \"+this.tcpServidor.id);\n\t\t\t\n\t\t\tpeticionDeCliente();\n\t\t\t\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\t//System.out.println(\"HiloCliente\" + \": Error\" + e);\n\t\t}\n\t}", "public void buscarPessoa(){\n\t\tstrCelular = CareFunctions.limpaStrFone(strCelular);\n\t\t System.out.println(\"Preparar \" + strCelular);//\n\t\t \n\t\tif (strCelular.trim().length() > 0){\n\t\t\tSystem.out.println(\"Buscar \" + strCelular);//\n\t\t\tList<Usuario> lstusuario = usuarioDAO.listPorcelular(strCelular);\n\t\t\tSystem.out.println(\"Buscou \" + lstusuario.size());\n\t\t\tsetBooIdentifiquese(false);\n\t\t\tif (lstusuario.size() > 0){\n\t\t\t\tusuario = lstusuario.get(0);\n\t\t\t\tsetBooSelecionouUsuario(true);\n\t\t\t}else{\n\t\t\t\tsetBooSelecionouUsuario(false);\t\t\t\t\n\t\t\t\tsetBooCadastrandose(true);\n\t\t\t\tusuario = new Usuario();\n\t\t\t\tusuario.setUsu_celular(strCelular);\n\t\t\t}\n\t\t\tFacesContext.getCurrentInstance().addMessage(\n\t\t\t\t\tnull,\n\t\t\t\t\tnew FacesMessage(FacesMessage.SEVERITY_INFO,\n\t\t\t\t\t\t\t\"Ahoe\", \"Bem Vindo\"));\t\n\t\t}else{\n\t\t\tSystem.out.println(\"Buscar \" + strCelular);//\n\t\t\tFacesContext.getCurrentInstance().addMessage(\n\t\t\t\t\tnull,\n\t\t\t\t\tnew FacesMessage(FacesMessage.SEVERITY_INFO,\n\t\t\t\t\t\t\t\"Você deve informar o Celular\", \"Não foi possível pesquisar\"));\t\t\t\n\t\t}\n\t}", "private void enviarPaqueteACliente(DatagramPacket recibirPaquete) throws IOException {\n try {\n\n mostrarMensaje(\"\\n\\nRepitiendo datos al cliente...\");\n byte datos[] = new byte[100];\n datos = mensaje.getBytes();\n //crea paquete a enviar\n DatagramPacket enviarPaquete = new DatagramPacket(\n datos, datos.length,\n recibirPaquete.getAddress(), recibirPaquete.getPort());\n\n socket.send(enviarPaquete);//enviar el paquete\n mostrarMensaje(\"Paquete enviado\\n\");\n } catch (NullPointerException e) {\n }\n\n }", "public void setTelefono(Integer telefono) {\r\n this.telefono = telefono;\r\n }", "public Cliente() {\r\n\t \tsetTitle(\" Cliente\");\r\n\t \r\n\t//Campo de Texto en la parte inferior\r\n\t ingresoMensaje = new JTextField();\r\n\t ingresoMensaje.setFont(new Font(\"Arial\", Font.PLAIN, 11));\r\n\t ingresoMensaje.setEditable(false);\r\n\t getContentPane().add(ingresoMensaje, BorderLayout.SOUTH);\r\n\r\n\t//Hoja del chat centrado\r\n\t pantallaChat = new JTextArea();\r\n\t pantallaChat.setFont(new Font(\"Arial\", Font.PLAIN, 15));\r\n\t pantallaChat.setEditable(false);\r\n\t getContentPane().add(new JScrollPane(pantallaChat), BorderLayout.CENTER);\r\n\t pantallaChat.setBackground(Color.white);\r\n\t pantallaChat.setForeground(Color.black);\r\n\t ingresoMensaje.setForeground(Color.BLACK);\r\n\r\n\t//Crea opcione de Salir\r\n\t JMenuItem salir = new JMenuItem(\"Salir\");\r\n\t salir.setFont(new Font(\"Arial\", Font.PLAIN, 15));\r\n\t salir.setBackground(Color.WHITE);\r\n\t salir.setForeground(Color.BLACK);\r\n\t \r\n\t JMenuBar barra = new JMenuBar();\r\n\t setJMenuBar(barra);\r\n\t barra.add(salir);\r\n\t \r\n\r\n\t//Accion que se realiza Salir\r\n\t salir.addActionListener(new ActionListener() {\r\n\t public void actionPerformed(ActionEvent e) {\r\n\t System.exit(0); //Sale de la aplicacion\r\n\t }\r\n\t });\r\n\r\n\r\n\t ipServidor = JOptionPane.showInputDialog(null, \"Introduzca IP del servidor: \");\r\n\t setSize(574, 341);//tamano de la ventana del chat\r\n\t setVisible(true);//hace visible a la ventana\r\n\t }", "public Cliente() {\r\n\t\tSystem.out.println(\"El cliente es: Diego Juarez \"+\"\\n\");\r\n\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t}", "public telefono(){\n this.telefono =\"00000000\";\n this.saldo = 0.0;\n this.marca= \"Sin Marca\";\n }", "public void setTelefone(String telefone) {\n Consistencia.consisteNaoNuloNaoVazio(telefone, \"telefone\");\n\n this.telefone = telefone;\n }", "public String getTelefonoTI() {\n return this.telefonoTI;\n }", "public Interfaz_RegistroClientes() {\n initComponents();\n limpiar();\n }", "private static Cliente llenarDatosCliente() {\r\n\t\tCliente cliente1 = new Cliente();\r\n\t\tcliente1.setApellido(\"De Assis\");\r\n\t\tcliente1.setDni(368638373);\r\n\t\tcliente1.setNombre(\"alexia\");\r\n\t\tcliente1.setId(100001);\r\n\r\n\t\treturn cliente1;\r\n\t}", "public String reporteFinMesPost()\n\t{\n\t\tString m = new String();\n\t\tif(!this.clientes.isEmpty())\n\t\t{\n\t\t\t\n\t\t\t\n\t\t\tGregorianCalendar ff = new GregorianCalendar();\n\t\t\tCliente c = new Cliente();\n\t\t\tlong dur, durc, durt, totalcliente, totalt, valorp;\n\t\t\tCuenta p;\n\t\t\tLLamada ll;\n\t\t\tSet<String> llaves = clientes.keySet();\n\t\t\tList<String> li = new ArrayList<String>(llaves);\n\t\t\tListIterator<String> it = li.listIterator();\n\t\t\tListIterator<Cuenta> cu;\n\t\t\tList<Cuenta> lista = new ArrayList<Cuenta>();\n\t\t\tList<Cliente> cli = new ArrayList<Cliente>();\n\t\t\tString s = new String();\n\n\t\t\t//Tomamos los clientes que tienen cuentas postpago\n\t\t\twhile(it.hasNext())\n\t\t\t{\n\t\t\t\ts = it.next();\n\t\t\t\tif(clientes.get(s).tienePost())\n\t\t\t\t\tcli.add(clientes.get(s));\n\t\t\t}\n\n\t\t\t//Ordenamos la lista de clientes por cedula\n\t\t\tCollections.sort(cli, new CompararCedulasClientes());\n\n\t\t\tListIterator<Cliente> itc = cli.listIterator();\n\t\t\tListIterator<LLamada> itl;\n\t\t\tList<LLamada> lisll = new ArrayList<LLamada>();\n\t\t\ttotalt = 0;\n\t\t\tdurt = 0;\n\t\t\t//Empezamos a recorrer la lista de clientes\n\t\t\twhile(itc.hasNext())\n\t\t\t{\n\t\t\t\ttotalcliente = 0;\n\t\t\t\tdurc = 0;\n\t\t\t\tc = itc.next();\n\t\t\t\tm += Utils.espacios(\"--CLIENTE: \", 12) + Utils.espacios(c.getNombre(), 15) + Utils.espacios(\", CC \",5) + Utils.espacios(String.valueOf(c.getCedula()), 10) + Utils.espacios(\", \", 3) + Utils.espacios(c.getDireccion(), 20) + \"\\n\";\n\t\t\t\t//cu recorre ahora las cuentas del cliente\n\t\t\t\tcu = c.getCuentas().listIterator(0);\n\t\t\t\tlista.clear();\n\t\t\t\twhile(cu.hasNext())\n\t\t\t\t{\n\t\t\t\t\tCuenta n = cu.next();\n\t\t\t\t\tif(n instanceof CuentaPostpago)\n\t\t\t\t\t\tlista.add(n);\n\t\t\t\t}\n\n\t\t\t\tcu = lista.listIterator(0);\n\n\t\t\t\t//En lista estan las cuentas postpago de dicho cliente\n\t\t\t\twhile(cu.hasNext())\n\t\t\t\t{\n\t\t\t\t\tp = cu.next();\n\t\t\t\t\tm += Utils.espacios(\" \", 4)+ Utils.espacios(\"Cuenta Postpago #\", 17) + Utils.espacios(String.valueOf(p.getId()), 5) + Utils.espacios(\": Num \", 6) + Utils.espacios(String.valueOf(p.getNumero()), 10) + Utils.espacios(\", Plan \", 7) + Utils.espacios(p.getPlan().getNombre(), 15) + \"\\n\\n\";\n\t\t\t\t\tm += Utils.espacios(\" \", 8) + Utils.espacios(\"Llamadas: \", 11)+ Utils.espacios(\"Fecha\", 15) + Utils.espacios(\"TelefonoDestinatario\", 21) + Utils.espacios(\"Duracion\",10 ) + Utils.espacios(\"Valor\", 8) +\"\\n\\n\";\n\t\t\t\t\t//lisll ahora tiene las llamadas de dicha cuenta de dicho cliente\n\t\t\t\t\tlisll = p.getLlamadas();\n\t\t\t\t\t//Las ordenamos por fecha\n\t\t\t\t\tCollections.sort(lisll, new CompararLLamadasFecha());\n\t\t\t\t\titl = lisll.listIterator(0);\n\t\t\t\t\tvalorp = 0;\n\t\t\t\t\tdur =0;\n\n\t\t\t\t\twhile(itl.hasNext())\n\t\t\t\t\t{\n\t\t\t\t\t\tll = itl.next();\n\t\t\t\t\t\tif (ll.getFecha().get(Calendar.MONTH) == ff.get(Calendar.MONTH) && ll.getFecha().get(Calendar.YEAR) == ff.get(Calendar.YEAR))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tvalorp += ll.getValor();\n\t\t\t\t\t\t\tdur += ll.getDuracion();\n\t\t\t\t\t\t\tm += Utils.espacios(\" \",19) + Utils.espacios(Utils.convertirFechaCadena(ll.getFecha()), 15) + Utils.espacios(String.valueOf(ll.getTelefonoDestinatario()), 21) + Utils.espacios(String.valueOf(ll.getDuracion()), 10) + Utils.espacios(String.valueOf(ll.getValor()), 8) + \"\\n\";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tm += Utils.espacios(\" \", 19) + Utils.espacios(\"TotalCuenta: ----------------------------\", 55) + Utils.espacios(String.valueOf(dur),10) + valorp + \"\\n\";\n\n\t\t\t\t\t//-------\n\t\t\t\t\tm += Utils.espacios(\" \",19) + Utils.espacios(\"Valor a Pagar: ----------------------------\", 65) + p.obtenerPagoCuenta(ff) + \"\\n\\n\";\n\t\t\t\t\ttotalcliente += p.obtenerPagoCuenta(ff);\n\t\t\t\t\tdurc += dur;\n\t\t\t\t}\n\t\t\t\ttotalt += totalcliente;\n\t\t\t\tdurt += durc;\n\t\t\t\tm += Utils.espacios(\" \",8) + Utils.espacios(\"Total Cliente: ----------------------------\", 66) + Utils.espacios(String.valueOf(durc),10) + totalcliente + \"\\n\" + \"\\n\\n\\n\";\n\t\t\t}\n\n\t\t\tm += Utils.espacios(\"TOTAL TODOS LOS CLIENTES: -----------------------\", 74) + Utils.espacios(String.valueOf(durt),10) + totalt + \"\\n\" + \"\\n\";\n\t\t}\n\t\treturn m;\n\t}", "public TelaCliente() {\n\n try {\n Handler console = new ConsoleHandler();\n Handler file = new FileHandler(\"/tmp/roquerou.log\");\n console.setLevel(Level.ALL);\n file.setLevel(Level.ALL);\n file.setFormatter(new SimpleFormatter());\n LOG.addHandler(file);\n LOG.addHandler(console);\n LOG.setUseParentHandlers(false);\n } catch (IOException io) {\n LOG.warning(\"O ficheiro hellologgin.xml não pode ser criado\");\n }\n\n initComponents();\n NivelDAO nd = new NivelDAO();\n if (nd.buscar() == 3) {\n botaoNovoCliente.setEnabled(false);\n buscarcli.setEnabled(false);\n tabelaCliente.setEnabled(false);\n popularCombo();\n setarLabels();\n\n LOG.info(\"Abertura da Tela de Clientes\");\n } else {\n popularCombo();\n setarLabels();\n\n LOG.info(\"Abertura da Tela de Clientes\");\n }\n }", "public String getCorreo() {return correo;}", "public static void getId() {\n\t\tnew Thread() {\n\t\t\tpublic void run() {\n\t\t\t\tString info = \"\";\n\t\t\t\ttry {\n\n\t\t\t\t\tserverSocket3 = new ServerSocket(51000);\n\t\t\t\t\twhile (yes) {\n\t\t\t\t\t\tSocket client = serverSocket3.accept();\n\t\t\t\t\t\tBufferedReader input = new BufferedReader(\n\t\t\t\t\t\t\t\tnew InputStreamReader(client.getInputStream()));\n\t\t\t\t\t\tinfo = input.readLine();\n\t\t\t\t\t\tSystem.out.println(info);\n\t\t\t\t\t\tString name[] = info.split(\"::\");\n\n\t\t\t\t\t\tSystem.out.print(client.getInetAddress());\n\t\t\t\t\t\tbu = Integer.parseInt(name[0]);\n\t\t\t\t\t\tb[bu].setText(name[1]);\n\t\t\t\t\t\tclientIP[bu] = client.getInetAddress();\n\t\t\t\t\t\tb[bu].setFont(new Font(\"sansserif\", Font.BOLD, 12));\n\t\t\t\t\t\tb[bu].setHorizontalAlignment(JButton.LEFT);\n\t\t\t\t\t\tb[bu].setBackground(Color.blue);\n\t\t\t\t\t\tseatTableSpace.repaint();\n\t\t\t\t\t\tfor (int i = 0; i < count; i++)\n\t\t\t\t\t\t\tb[i].setLocation(arrX[i], arrY[i]);\n\t\t\t\t\t}\n\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t}\n\t\t}.start();\n\t}", "public Cliente ddCliente(String modo){\n ClienteDAO cd = new ClienteDAO();\n Cliente c = null;\n String rz = txtCliRz.getText()+\"\";\n String nFantasia = txtCliNFant.getText()+\"\";\n String DDDTel = txtCliDDD.getText()+\"\";\n String tel = txtCliTel.getText()+\"\";\n String DDDCel = txtCliDDDTel2.getText()+\"\";\n String cel = txtCliTel2.getText()+\"\";\n String rsp = txtCliResp.getText()+\"\"; \n String cnpj = txtCliCNPJ.getText()+\"\";\n c = new Cliente();\n \n if(modo.equalsIgnoreCase(\"a\")){ \n int cod = Integer.parseInt(txtCliCod.getText());\n c.setId(cod);\n } \n \n c.setCNPJ(cnpj);\n c.setRSocial(rz);\n c.setNFantasia(nFantasia);\n c.setDDDCel(DDDCel);\n c.setTel2(cel);\n c.setRsp(rsp);\n c.setDDDTel(DDDTel);\n c.setTel(tel);\n \n return c;\n }", "public void notificar()\n\t{\n\n\t\tSocket socket;\n\t\tDataOutputStream out;\n\n\t\ttry\n\t\t{\n\t\t\tsocket = new Socket(host, port);\n\n\t\t\tout = new DataOutputStream(socket.getOutputStream());\n\n\t\t\tout.writeUTF(id);\n\n\t\t\tsocket.close();\n\n\t\t} catch (IOException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void buscarCliente(String id) {\r\n\t\ttry {\r\n\t\t\tif(txtNif.getText().equals(\"\")){\r\n\t\t\t\tString mensaje = \"Por favor, introduce el nif\";\r\n\t\t\t\tJOptionPane.showMessageDialog(this, mensaje, \"ERROR\", JOptionPane.ERROR_MESSAGE);\t\t\r\n\t\t\t\ttxtNif.setBorder(BorderFactory.createLineBorder(Color.RED));\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tCliente cliente = new Cliente();\r\n\t\t\t\tcliente=manager.getClienteById(id);\r\n\t\t\t\tmodel.removeAllElements();\r\n\t\t\t\tif(cliente.getNif().equals(null)) {\r\n\t\t\t\t\tString mensaje = \"No existe ese cliente\";\r\n\t\t\t\t\tJOptionPane.showMessageDialog(this, mensaje, \"NO EXISTE ESE CLIENTE\", JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t\ttxtNif.setBorder(BorderFactory.createLineBorder(Color.RED));\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\tmodel.addElement(cliente);\t\t\t\t\r\n\t\t\t\tcliente.toString();\r\n\t\t\t\ttxtNif.setText(\"\");\r\n\t\t\t\ttxtNif.setBorder(BorderFactory.createLineBorder(Color.BLACK));\r\n\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\tString mensaje = \"No existe ese cliente\";\r\n\t\t\tJOptionPane.showMessageDialog(this, mensaje, \"ERROR\", JOptionPane.ERROR_MESSAGE);\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t\t}\t\t\r\n\t}", "@Override\r\n\tpublic float chekearDatos(){\r\n\t\t\r\n\t\tfloat monto = 0f;\r\n\t\tfloat montoPorMes = creditoSolicitado/plazoEnMeses;\r\n\t\tdouble porcentajeDeSusIngesosMensuales = (cliente.getIngresosMensuales()*0.7);\r\n\t\t\r\n\t\tif(cliente.getIngresoAnual()>=15000f && montoPorMes<=porcentajeDeSusIngesosMensuales){\r\n\t\t\t\r\n\t\t\tmonto = this.creditoSolicitado;\r\n\t\t\tsetEstadoDeSolicitud(true);\r\n\t\t}\t\r\n\t\t\r\n\t\t\r\n\t\treturn monto;\r\n\t}", "public java.lang.String getNumeroTelefono() {\n\t\treturn _telefonoSolicitudProducto.getNumeroTelefono();\n\t}", "public void obtenerTipificacionesCliente(Participante cliente)\n throws MareException {\n \n UtilidadesLog.info(\" DAOSolicitudes.obtenerTipificacionesCliente(Par\"\n +\"ticipante cliente):Entrada\");\n BelcorpService bs;\n RecordSet respuesta;\n String codigoError;\n StringBuffer query = new StringBuffer();\n\n if (cliente.getOidCliente() == null) {\n cliente.setTipificacionCliente(null);\n if(log.isDebugEnabled()) {//sapaza -- cambio Optimizacion Logs -- 23/03/2010 \n UtilidadesLog.debug(\"---- NULO : \");\n UtilidadesLog.debug(\"---- cliente : \" + cliente.getOidCliente());\n } \n } else {\n try {\n bs = BelcorpService.getInstance();\n } catch (MareMiiServiceNotFoundException e) {\n UtilidadesLog.error(\"ERROR \", e);\n codigoError = CodigosError.ERROR_AL_PEDIR_UN_SERVICIO_MARE;\n throw new MareException(e, UtilidadesError.armarCodigoError(\n codigoError));\n }\n\n try {\n query.append(\" SELECT CLIE_OID_CLIE, \");\n query.append(\" CLAS_OID_CLAS, \");\n query.append(\" SBTI_OID_SUBT_CLIE, \");\n query.append(\" TCCL_OID_TIPO_CLASI, \");\n query.append(\" TICL_OID_TIPO_CLIE \");\n query.append(\" FROM V_MAE_TIPIF_CLIEN \");\n query.append(\" WHERE CLIE_OID_CLIE = \" + cliente\n .getOidCliente());\n respuesta = bs.dbService.executeStaticQuery(query.toString());\n \n if(log.isDebugEnabled()) //sapaza -- cambio Optimizacion Logs -- 23/03/2010 \n UtilidadesLog.debug(\"---- TIPIF : \" + respuesta);\n } catch (Exception e) {\n UtilidadesLog.error(\"ERROR \", e);\n codigoError = CodigosError.ERROR_DE_LECTURA_EN_BASE_DE_DATOS;\n throw new MareException(e, UtilidadesError.armarCodigoError(\n codigoError));\n }\n\n if (respuesta.esVacio()) {\n cliente.setTipificacionCliente(null);\n } else {\n TipificacionCliente[] tipificaciones = new TipificacionCliente[\n respuesta.getRowCount()];\n\n for (int i = 0; i < respuesta.getRowCount(); i++) {\n tipificaciones[i] = new TipificacionCliente();\n\n {\n BigDecimal oidClasificacionCliente = (BigDecimal) \n respuesta.getValueAt(i, \"CLAS_OID_CLAS\");\n tipificaciones[i].setOidClasificacionCliente((\n oidClasificacionCliente != null) ? new Long(\n oidClasificacionCliente.longValue()) : null);\n }\n\n tipificaciones[i].setOidSubTipoCliente(new Long((\n (BigDecimal) respuesta\n .getValueAt(i, \"SBTI_OID_SUBT_CLIE\")).longValue()));\n\n {\n BigDecimal oidTipoClasificacionCliente = (BigDecimal) \n respuesta.getValueAt(i, \"TCCL_OID_TIPO_CLASI\");\n tipificaciones[i].setOidTipoClasificacionCliente(\n (oidTipoClasificacionCliente != null)? new Long(\n oidTipoClasificacionCliente.longValue()) \n : null);\n }\n\n tipificaciones[i].setOidTipoCliente(new Long(((BigDecimal)\n respuesta.getValueAt(i, \"TICL_OID_TIPO_CLIE\"))\n .longValue()));\n }\n\n cliente.setTipificacionCliente(tipificaciones);\n }\n }\n UtilidadesLog.info(\" DAOSolicitudes.obtenerTipificacionesCliente(Par\"\n +\"ticipante cliente):Salida\");\n }", "private void editareClient() {\n\t\tDefaultTableModel model = Serializable.generator(\"person\", \"tmp/\");\n\t\tArrayList<String> items = new ArrayList<String>();\n\t\tint rowCount = model.getRowCount();\n\t\tSystem.out.println(\"Ajung pe aici si val. este \" + rowCount +\"\\n\");\n\t\tfor(int i=0;i<rowCount;i++) {\n\t\t\tmodel.getValueAt(i, 2);\n\t\t\titems.add(model.getValueAt(i, 1) + \". Nume client: \" + model.getValueAt(i, 2));\n\t\t}\n\t\t// Urmatoarele 3 linii de cod creeaza un array de string-uri\n\t\tString[] itemsArr = new String[items.size()];\n\t\titemsArr = items.toArray(itemsArr);\n JComboBox<String> combo = new JComboBox<String>(itemsArr);\n \n JTextField field1 = new JTextField(\"\");\n JTextField field2 = new JTextField(\"\");\n JTextField field3 = new JTextField(\"\");\n\n JPanel panel = new JPanel(new GridLayout(0, 1));\n panel.setPreferredSize(new Dimension(400, 200));\n panel.add(new JLabel(\"Alege client\"));\n panel.add(combo);\n panel.add(new JLabel(\"Nume:\"));\n panel.add(field1);\n panel.add(new JLabel(\"Email:\"));\n panel.add(field2);\n panel.add(new JLabel(\"Telefon:\"));\n panel.add(field3);\n int result = JOptionPane.showConfirmDialog(null, panel, \"Editeaza un client\",\n JOptionPane.OK_CANCEL_OPTION, JOptionPane.PLAIN_MESSAGE);\n if (result == JOptionPane.OK_OPTION) {\n \tArrayList<String> data = new ArrayList<String>();\n \tString buffer = combo.getSelectedItem().toString();\n \tString temp[] = buffer.split(\"\\\\.\");\n \tif(!temp[0].isEmpty()) {\n \t\tdata.add(field1.getText());\n \tdata.add(field2.getText());\n \tdata.add(field3.getText());\n \tint id = Integer.parseInt(temp[0]);\n \t/* Serializarea reprezinta doar crearea unui nou obiect si salvarea acestuia\n \t * cu numele actualului fisier. In felul acesta se suprascriu si gata.*/\n \tPerson nouClient = new Person(data, id);\n System.out.println(\"Clientul a fost editat. \\n\");\n \t}\n } else {\n System.out.println(\"Cancelled\");\n }\n\t}", "public void Conectar(){\n Executors.newSingleThreadExecutor().execute(() -> {\n try {\n ws.connect();\n // se indica que el proposito del mensaje es identificar este nodo.\n // para lo cual se manda en el cuerpo que se trata de una tablet origin\n // y se envia la identificacion.\n String mensaje = buildMessage(this.PROPOSITO_ID, this.id, this.TABLET_ORIG);\n ws.sendText(mensaje);\n } catch (WebSocketException e) {\n e.printStackTrace();\n }\n });\n }", "public ClienteDTO(int idTipoCliente, String nomCliente,\r\n\t\t\tString apePatCliente, String apeMatCliente, String fecNacCliente,\r\n\t\t\tString sexoCliente, String telefonoCliente, String celularCliente,\r\n\t\t\tString correoCliente, String numDocumento) {\r\n\t\tsuper();\r\n\t\tthis.idTipoCliente = idTipoCliente;\r\n\t\tthis.nomCliente = nomCliente;\r\n\t\tthis.apePatCliente = apePatCliente;\r\n\t\tthis.apeMatCliente = apeMatCliente;\r\n\t\tthis.fecNacCliente = fecNacCliente;\r\n\t\tthis.sexoCliente = sexoCliente;\r\n\t\tthis.telefonoCliente = telefonoCliente;\r\n\t\tthis.celularCliente = celularCliente;\r\n\t\tthis.correoCliente = correoCliente;\r\n\t\tthis.numDocumento = numDocumento;\r\n\t}", "public alterarSenhaCliente() {\n }", "@Override\r\n\tpublic void aggiornaUI() {\r\n\t\tString valore = input_ricerca_cliente.getText();\r\n\t\tthis.clienti.setAll(AppFacadeController.getInstance().getGestisciClientiController().cercaCliente(valore));\r\n\t}", "public String buscarCliente(int cedulaCliente) {\n String mostrar = \"\";\n if (verificarCliente(cedulaCliente)) { //Verifica si el cliente a buscar existe o no, para entrar al for, o retornar un Strign vacio\n for (int i = 0; i < posicionActual; i++) { //Si el cliente existe procede a recorrer el vector.\n if (getCedulaCliente(i) == cedulaCliente) { //Pregunta si el cliente en la poscion actual, es el que se quiere mostrar\n mostrar += mostrarCliente(i); //almacena en el String la informacion del cliente en caso de qie la condicion anterior se cumpla\n }\n }\n }\n return mostrar; //Al final retorna la variable String vacia, si el cliente no existe, o con la informacion de este si esxiste\n }", "public static String getPcNombreCliente(){\n\t\tString host=\"\";\n\t\ttry{\n\t\t\tString ips[] = getIPCliente().split(\"\\\\.\");\n\t\t\tbyte[] ipAddr = new byte[]{(byte)Integer.parseInt(ips[0]),\n\t\t\t\t\t(byte)Integer.parseInt(ips[1]),\n\t\t\t\t\t(byte)Integer.parseInt(ips[2]),\n\t\t\t\t\t(byte)Integer.parseInt(ips[3])};\n\t\t\tInetAddress inet = InetAddress.getByAddress(ipAddr);\n\t\t\thost = inet.getHostName();\n\t\t}catch(Exception ex){\n\t\t\t//Log.error(ex, \"Utiles :: getPcNombreCliente :: controlado\");\n\t\t}\n\t\treturn host;\n\t}", "public ClienteModel(int id,\n String nome,\n String email,\n String cpf,\n String sexo,\n String nascimento,\n String estadoCivil,\n String celular,\n String telefone,\n String endereco) {\n\n this.id = id;\n this.nome = nome;\n this.email = email;\n this.cpf = cpf;\n this.nascimento = nascimento;\n this.sexo = sexo;\n this.estadoCivil = estadoCivil;\n this.celular = celular;\n this.telefone = telefone;\n this.endereco = endereco;\n }", "public static String getIPCliente(){//192.168, 172.16. o 10.0.\n\t\tString ipAddress=\"\";\n\t\ttry{\n\t\t\tHttpServletRequest request = (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest();\n\t\t\tipAddress = request.getHeader(\"X-FORWARDED-FOR\");\n\t\t\tif ( ipAddress == null ) {\n\t\t\t\tipAddress = request.getRemoteAddr();\n\t\t\t\tif(ipAddress.equals(\"127.0.0.1\")){\n\t\t\t\t\ttry {\n\t\t\t\t\t\tipAddress = InetAddress.getLocalHost().getHostAddress();\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tipAddress = \"\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tString[] ips = ipAddress.split(\",\");\n\t\t\tfor(String ip : ips){\n\t\t\t\tif(!ip.trim().startsWith(\"127.0.\")){\n\t\t\t\t\tipAddress = ip;\n\t\t\t\t}\n\t\t\t}\n\t\t}catch(Exception ex){\n\t\t\tex.printStackTrace();\n\t\t}\n\t\treturn ipAddress;\n\t}", "public ClientesSenha(Cliente c) {\n initComponents();\n fldUsuario.setText(String.valueOf(c.getMatricula()));\n }", "public Cliente(String nombre, String nit, String direccion, String municipio, String departamento) {\n this.nombre = nombre;\n this.nit = nit;\n this.direccion = direccion;\n this.municipio = municipio;\n this.departamento = departamento;\n }", "public Cliente(String nombre, String nit, String direccion) {\n this.nombre = nombre;\n this.nit = nit;\n this.direccion = direccion;\n }", "public void recibir_estado_partida(){\n\n }", "public void gererPatrimoine(Client client) {\n\t\tif (calculerSoldeTotal(client) > 500000) {\n\t\t\tSystem.out.println(\"Riche client !\");\n\t\t\tSystem.out.println(\"Gestion de Patrimoine :\");\n\t\t\tAction action1 = new Action(\"Airbus\", 72, \"Paris\");\n\t\t\tacheterAction(action1);\n\t\t}\n\t}", "public void verificarDatosConsola(Cliente cliente, List<Cuenta> listaCuentas) {\n\n int codigoCliente = cliente.getCodigo();\n\n System.out.println(\"Codigo: \"+cliente.getCodigo());\n System.out.println(\"Nombre: \"+cliente.getNombre());\n System.out.println(\"DPI: \"+cliente.getDPI());\n System.out.println(\"Direccion: \"+cliente.getDireccion());\n System.out.println(\"Sexo: \"+cliente.getSexo());\n System.out.println(\"Password: \"+cliente.getPassword());\n System.out.println(\"Tipo de Usuario: \"+ 3);\n\n System.out.println(\"Nacimiento: \"+cliente.getNacimiento());\n System.out.println(\"ArchivoDPI: \"+cliente.getDPIEscaneado());\n System.out.println(\"Estado: \"+cliente.isEstado());\n \n \n for (Cuenta cuenta : listaCuentas) {\n System.out.println(\"CUENTAS DEL CLIENTE\");\n System.out.println(\"Numero de Cuenta: \"+cuenta.getNoCuenta());\n System.out.println(\"Fecha de Creacion: \"+cuenta.getFechaCreacion());\n System.out.println(\"Saldo: \"+cuenta.getSaldo());\n System.out.println(\"Codigo del Dueño: \"+codigoCliente);\n \n }\n \n\n\n }", "@Override\n public String toString() {\n return \"Client{\" +\n \"nom='\" + nom + '\\'' +\n \", prenom='\" + prenom + '\\'' +\n \", adresse='\" + adresse + '\\'' +\n \", methode tarif=\" + calculerTarif.toString() +\n \", pointsDeFidelite=\" + pointsDeFidelite +\n \", listeVehicule=\" + listeVehicule +\n + '}';\n }", "public java.lang.String getTelefon() {\n java.lang.Object ref = telefon_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n telefon_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public void preecheTabCliente(Cliente c){\n \n limpaTabela(tbClientes);\n DefaultTableModel model = (DefaultTableModel) tbClientes.getModel();\n Vector row = new Vector();\n \n row.add(c.getCNPJ());\n row.add(c.getRSocial());\n row.add(c.getNFantasia());\n row.add(c.getRsp());\n row.add(\"(\"+c.getDDDTel()+\")\"+c.getTel());\n \n model.addRow(row);\n \n }", "private void esperarPaquetes() throws SQLException {\n\n while (true) {//iterar infinitamente\n try {\n //esrtablecer el paquete\n byte datos[] = new byte[100];\n DatagramPacket recibirPaquete\n = new DatagramPacket(datos, datos.length);\n\n socket.receive(recibirPaquete);//espera al paquete\n if (recibirPaquete.getLength() != 0) {\n JOptionPane.showMessageDialog(this, \"Solicitud de Registro\");\n\n Conexion obj = new Conexion();\n conn = obj.Conexion();\n\n //***** DECLARACION DE LAS CLASES.\n Clientes_DTO cliente_dto = new Clientes_DTO();\n Movimientos_DTO movimiento_dto = new Movimientos_DTO();\n Bancos_DTO banco_dto = new Bancos_DTO();\n CuentasDTO cuentasDTO = new CuentasDTO();\n Usuario user = new Usuario();\n Seguros_DTO seguros_dto = new Seguros_DTO();\n Usuarios_DTO usuariosDTO = new Usuarios_DTO();\n Empresa_DTO dtoE = new Empresa_DTO();\n //*****\n\n String cad = (new String(recibirPaquete.getData(), 0, recibirPaquete.getLength()));\n String[] variables;\n variables = cad.split(\" \");\n\n switch (variables[0]) {\n case \"NewCliente\":\n cliente_dto.setNombre(variables[1]);\n cliente_dto.setAp_Paterno(variables[2]);\n cliente_dto.setAp_Materno(variables[3]);\n cliente_dto.setSexo(variables[4]);\n cliente_dto.setDireccion(variables[5]);\n cliente_dto.setEmail(variables[6]);\n cliente_dto.setTelefono(variables[7]);\n cliente_dto.setPais(variables[8]);\n cliente_dto.setTipo_cuenta(variables[9]);\n cliente_dto.Insert(cliente_dto, conn);\n JOptionPane.showMessageDialog(null, \"Cliente Agregado con Exito\", \"Exito!\", JOptionPane.INFORMATION_MESSAGE);\n break;\n case \"EditCliente\":\n cliente_dto.setId_clientes(variables[1]);\n cliente_dto.setNombre(variables[2]);\n cliente_dto.setAp_Paterno(variables[3]);\n cliente_dto.setAp_Materno(variables[4]);\n cliente_dto.setSexo(variables[5]);\n cliente_dto.setDireccion(variables[6]);\n cliente_dto.setEmail(variables[7]);\n cliente_dto.setTelefono(variables[8]);\n cliente_dto.setPais(variables[9]);\n cliente_dto.setTipo_cuenta(variables[10]);\n cliente_dto.Edit(cliente_dto, conn);\n JOptionPane.showMessageDialog(null, \"Cliente Editado con Exito\", \"Exito!\", JOptionPane.INFORMATION_MESSAGE);\n break;\n case \"DeleteCliente\":\n cliente_dto.setId_clientes(variables[1]);\n cliente_dto.Delete(cliente_dto, conn);\n JOptionPane.showMessageDialog(null, \"Cliente Eliminado con Exito\", \"Exito!\", JOptionPane.INFORMATION_MESSAGE);\n break;\n case \"SearchCliente\":\n cliente_dto.setId_clientes(variables[1]);\n cliente_dto.Search(cliente_dto, conn);\n mensaje = cliente_dto.getId_clientes() + \" \" + cliente_dto.getNombre() + \" \" + cliente_dto.getAp_Paterno() + \" \" + cliente_dto.getAp_Materno() + \" \" + cliente_dto.getSexo() + \" \" + cliente_dto.getDireccion() + \" \" + cliente_dto.getTelefono() + \" \" + cliente_dto.getEmail() + \" \" + cliente_dto.getPais() + \" \" + cliente_dto.getTipo_cuenta() + \" \";\n break;\n case \"NewMovimiento\":\n Date now = new Date(System.currentTimeMillis());\n movimiento_dto.setTipo_movimiento(variables[1]);\n movimiento_dto.setFecha_movimiento(String.valueOf(now));\n movimiento_dto.setSaldo(Double.parseDouble(variables[8]));\n movimiento_dto.setN_cuenta(variables[9]);\n movimiento_dto.setCuenta_destino(variables[10]);\n movimiento_dto.Insert(movimiento_dto, conn);\n JOptionPane.showMessageDialog(null, \"Movimiento Agreado con Exito\", \"Exito!\", JOptionPane.INFORMATION_MESSAGE);\n break;\n\n case \"EditMovimiento\":\n Date now1 = new Date(System.currentTimeMillis());\n movimiento_dto.setId_movimiento(variables[1]);\n movimiento_dto.setTipo_movimiento(variables[2]);\n movimiento_dto.setFecha_movimiento(String.valueOf(now1));\n movimiento_dto.setSaldo(Double.parseDouble(variables[9]));\n movimiento_dto.setN_cuenta(variables[10]);\n movimiento_dto.setCuenta_destino(variables[11]);\n\n movimiento_dto.Edit(movimiento_dto, conn);\n JOptionPane.showMessageDialog(null, \"Movimiento Editado con Exito\", \"Exito!\", JOptionPane.INFORMATION_MESSAGE);\n\n break;\n case \"DeleteMovimiento\":\n\n movimiento_dto.setId_movimiento(variables[1]);\n movimiento_dto.Delete(movimiento_dto, conn);\n JOptionPane.showMessageDialog(null, \"Movimiento Eliminado con Exito\", \"Exito!\", JOptionPane.INFORMATION_MESSAGE);\n\n break;\n case \"SearchMovimiento\":\n\n movimiento_dto.setId_movimiento(variables[1]);\n movimiento_dto.Search(movimiento_dto, conn);\n mensaje = movimiento_dto.getId_movimiento() + \" \" + movimiento_dto.getTipo_movimiento() + \" \" + movimiento_dto.getFecha_movimiento() + \" \" + movimiento_dto.getSaldo() + \" \" + movimiento_dto.getN_cuenta() + \" \" + movimiento_dto.getCuenta_destino() + \" \";\n break;\n\n case \"NewBanco\":\n banco_dto.setTelefono(variables[1]);\n banco_dto.setDireccion(variables[2]);\n banco_dto.setSucursal(variables[3]);\n banco_dto.setId_cliente(variables[4]);\n banco_dto.Insert(banco_dto, conn);\n JOptionPane.showMessageDialog(null, \"Banco Agregado con Exito\", \"Exito!\", JOptionPane.INFORMATION_MESSAGE);\n break;\n case \"EditBanco\":\n banco_dto.setId_banco(variables[1]);\n banco_dto.setTelefono(variables[2]);\n banco_dto.setDireccion(variables[3]);\n banco_dto.setSucursal(variables[4]);\n banco_dto.setId_cliente(variables[5]);\n banco_dto.Edit(banco_dto, conn);\n JOptionPane.showMessageDialog(null, \"Banco Editado con Exito\", \"Exito!\", JOptionPane.INFORMATION_MESSAGE);\n break;\n case \"DeleteBanco\":\n banco_dto.setId_banco(variables[1]);\n banco_dto.Delete(banco_dto, conn);\n JOptionPane.showMessageDialog(null, \"Banco Eliminado con Exito\", \"Exito!\", JOptionPane.INFORMATION_MESSAGE);\n break;\n case \"SearchBanco\":\n banco_dto.setId_banco(variables[1]);\n banco_dto.Search(banco_dto, conn);\n mensaje = banco_dto.getId_banco() + \" \" + banco_dto.getTelefono() + \" \" + banco_dto.getDireccion() + \" \" + banco_dto.getSucursal() + \" \" + banco_dto.getId_cliente() + \" \";\n break;\n\n case \"NewCuenta\":\n\n JOptionPane.showMessageDialog(this, variables[2]);\n cuentasDTO.setIdCliente(Integer.parseInt(variables[1]));\n cuentasDTO.setIdUsuario(Integer.parseInt(variables[2]));\n cuentasDTO.setNoDeCuenta(Integer.parseInt(variables[3]));\n cuentasDTO.setTipoCuenta(variables[4]);\n cuentasDTO.setFechaApertura(variables[5]);\n cuentasDTO.setSaldoApertura(Double.parseDouble(variables[6]));\n\n cuentasDTO.insert(cuentasDTO, conn);\n break;\n\n case \"SearchCuenta\":\n\n cuentasDTO.setNoDeCuenta(Integer.parseInt(variables[1]));\n cuentasDTO = cuentasDTO.search(cuentasDTO, conn);\n\n mensaje = String.valueOf(cuentasDTO.getIdCliente()) + \" \" + String.valueOf(cuentasDTO.getIdUsuario()) + \" \" + String.valueOf(cuentasDTO.getNoDeCuenta()) + \" \" + cuentasDTO.getFechaApertura() + \" \" + cuentasDTO.getTipoCuenta() + \" \" + String.valueOf(cuentasDTO.getSaldoApertura()) + \" \";\n break;\n\n case \"NewUser\":\n user.SetNombre(variables[1]);\n user.setPerfil(variables[2]);\n user.SetPassword(variables[3]);\n user.setA_paterno(variables[4]);\n user.setA_materno(variables[5]);\n user.setTelefono(variables[6]);\n user.setEmail(variables[7]);\n user.setDomicilio(variables[8]);\n\n user.Insert(conn);\n\n JOptionPane.showMessageDialog(null, \"Usuario Agregado con Exito\", \"Exito!\", JOptionPane.INFORMATION_MESSAGE);\n\n break;\n case \"NewSure\":\n seguros_dto.setEmpresa(variables[1]);\n seguros_dto.setTipo_seguro(variables[2]);\n seguros_dto.setMonto(variables[3]);\n seguros_dto.setCuenta(variables[4]);\n\n seguros_dto.Insert(seguros_dto, conn);\n JOptionPane.showMessageDialog(null, \"Seguro Agregado con Exito\", \"Exito!\", JOptionPane.INFORMATION_MESSAGE);\n\n break;\n case \"EditSure\":\n seguros_dto.setId_seguro(variables[1]);\n seguros_dto.setEmpresa(variables[2]);\n seguros_dto.setTipo_seguro(variables[3]);\n seguros_dto.setMonto(variables[4]);\n seguros_dto.setCuenta(variables[5]);\n\n seguros_dto.Edit(seguros_dto, conn);\n JOptionPane.showMessageDialog(null, \"Seguro Editado con Exito\", \"Exito!\", JOptionPane.INFORMATION_MESSAGE);\n\n break;\n case \"DeleteSure\":\n seguros_dto.setId_seguro(variables[1]);\n\n seguros_dto.Delete(seguros_dto, conn);\n JOptionPane.showMessageDialog(null, \"Banco Eliminado con Exito\", \"Exito!\", JOptionPane.INFORMATION_MESSAGE);\n\n break;\n case \"SearchSure\":\n seguros_dto.setId_seguro(variables[1]);\n\n seguros_dto.Search(seguros_dto, conn);\n mensaje = seguros_dto.getId_seguro() + \" \" + seguros_dto.getEmpresa() + \" \" + seguros_dto.getTipo_seguro() + \" \" + seguros_dto.getMonto() + \" \" + seguros_dto.getCuenta() + \" \";\n\n break;\n\n case \"NuevoUsuario\":\n\n usuariosDTO.setNombre(variables[1]);\n usuariosDTO.setA_paterno(variables[2]);\n usuariosDTO.setA_materno(variables[3]);\n usuariosDTO.setTelefono(variables[4]);\n usuariosDTO.setEmail(variables[5]);\n usuariosDTO.setDomicilio(variables[6]);\n\n usuariosDTO.Insert(usuariosDTO, conn);\n\n JOptionPane.showMessageDialog(this, \"Usuario agregado\");\n\n break;\n\n case \"NuevoUsuarioEditar\":\n\n usuariosDTO.setId_usuarios(variables[1]);\n usuariosDTO.setNombre(variables[2]);\n usuariosDTO.setA_paterno(variables[3]);\n usuariosDTO.setA_materno(variables[4]);\n usuariosDTO.setTelefono(variables[5]);\n usuariosDTO.setEmail(variables[6]);\n usuariosDTO.setDomicilio(variables[7]);\n\n usuariosDTO.Edit(usuariosDTO, conn);\n\n JOptionPane.showMessageDialog(this, \"Usuario Editado\");\n\n break;\n\n case \"DeleteUsuario_1\":\n\n usuariosDTO.setId_usuarios(variables[1]);\n\n usuariosDTO.Delete(usuariosDTO, conn);\n\n JOptionPane.showMessageDialog(null, \"Usuario Eliminado con Exito\", \"Exito!\", JOptionPane.INFORMATION_MESSAGE);\n\n break;\n\n case \"SearcUsuario_1\":\n usuariosDTO.setId_usuarios(variables[1]);\n\n usuariosDTO.Search(usuariosDTO, conn);\n\n mensaje = usuariosDTO.getId_usuarios() + \" \" + usuariosDTO.getNombre() + \" \" + usuariosDTO.getA_paterno() + \" \" + usuariosDTO.getA_materno() + \" \" + usuariosDTO.getTelefono() + \" \" + usuariosDTO.getEmail() + \" \" + usuariosDTO.getDomicilio() + \" \";\n\n break;\n\n case \"NewEmpresa\":\n dtoE.setFecha_apertura(variables[1]);\n dtoE.setMonto(variables[2]);\n dtoE.setPlazo(variables[3]);\n dtoE.setTaza(variables[4]);\n dtoE.setRepresentante(variables[5]);\n dtoE.setId_banco(variables[6]);\n dtoE.setTipo_cuenta(variables[7]);\n dtoE.Insert(dtoE, conn);\n JOptionPane.showMessageDialog(null, \"Empresa Agregada con Exito\", \"Exito!\", JOptionPane.INFORMATION_MESSAGE);\n break;\n\n case \"SearchEmpresa\":\n dtoE.setId_empresa(variables[1]);\n dtoE.Search(dtoE, conn);\n mensaje = dtoE.getId_empresa() + \" \" + dtoE.getFecha_apertura() + \" \" + dtoE.getMonto() + \" \" + dtoE.getPlazo() + \" \" + dtoE.getTaza() + \" \" + dtoE.getRepresentante() + \" \" + dtoE.getId_banco() + \" \" + dtoE.getTipo_cuenta() + \" \";\n break;\n case \"EditEmpresa\":\n dtoE.setId_empresa(variables[1]);\n dtoE.setFecha_apertura(variables[2]);\n dtoE.setMonto(variables[3]);\n dtoE.setPlazo(variables[4]);\n dtoE.setTaza(variables[5]);\n dtoE.setRepresentante(variables[6]);\n dtoE.setId_banco(variables[7]);\n dtoE.setTipo_cuenta(variables[8]);\n\n dtoE.Edit(dtoE, conn);\n JOptionPane.showMessageDialog(null, \"Empresa Editada con Exito\", \"Exito!\", JOptionPane.INFORMATION_MESSAGE);\n break;\n\n default:\n break;\n }\n\n }\n //mostrar la informacion del paquete recibido\n mostrarMensaje(\"\\nRegistro Ingresado:\"\n + \"\\nDel host:\" + recibirPaquete.getPort()\n + \"\\nInformacion almacenada:\\n\\t\" + new String(recibirPaquete.getData(),\n 0, recibirPaquete.getLength()) + datos);\n\n enviarPaqueteACliente(recibirPaquete);//envida paquete al cliente\n\n } //procesar los problemas que pu edan ocurrir al manipular el paquete\n catch (IOException excepcionES) {\n mostrarMensaje(excepcionES.toString() + \"\\n\");\n excepcionES.printStackTrace();\n }\n\n }//fin de intruccion while\n\n }", "public TelaCliente() {\n \n CadCli = new Dao_CadastroCliente();\n initComponents();\n BtPesquisarConsulta.setEnabled(false);\n BtSalvarCli.setEnabled(false);\n BtAlterarCli.setEnabled(false);\n TipodeViaCli.setEnabled(false);\n TxEstadoCli.setEnabled(false);\n BtBuscarCli.setEnabled(false);\n BtLimparCli.setEnabled(false);\n TxTipoPessoa.setEnabled(false);\n PnlPj.setVisible(false);\n PnlPf.setVisible(false);\n centralizarComponente();\n\n }", "@Override\r\n\tpublic void buscarCliente(String dato) {\n\t\tList<Cliente> listaEncontrados = clienteDao.buscarContrato(dato);\r\n\t\tvistaCliente.mostrarClientes(listaEncontrados);\r\n\t}", "public ListaCliente() {\n\t\tClienteRepositorio repositorio = FabricaPersistencia.fabricarCliente();\n\t\tList<Cliente> clientes = null;\n\t\ttry {\n\t\t\tclientes = repositorio.getClientes();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tclientes = new ArrayList<Cliente>();\n\t\t}\n\t\tObject[][] grid = new Object[clientes.size()][3];\n\t\tfor (int ct = 0; ct < clientes.size(); ct++) {\n\t\t\tgrid[ct] = new Object[] {clientes.get(ct).getNome(),\n\t\t\t\t\tclientes.get(ct).getEmail()};\n\t\t}\n\t\tJTable table= new JTable(grid, new String[] {\"NOME\", \"EMAIL\"});\n\t\tJScrollPane scroll = new JScrollPane(table);\n\t\tgetContentPane().add(scroll, BorderLayout.CENTER);\n\t\tsetTitle(\"Clientes Cadastrados\");\n\t\tsetSize(600,400);\n\t\tsetDefaultCloseOperation(DISPOSE_ON_CLOSE);\n\t\tsetLocationRelativeTo(null);\n\t}", "public void getEncomenda(String nome, String telefone) {\n\t\tencomendas = encomendaController.read(nome.toUpperCase().trim(), telefone.trim());\n\t}", "public Cliente(String nombre, String email, String calle, Geo coordenadas){\n this.setNombreUsuario(nombre);\n this.setEmail(email);\n //this.setApp(app);\n this.setCalle(calle);\n this.setListaDeCompras(null);\n this.setMontoGastado(0);\n this.setMontoDeCompra(0);\n this.setHistorialDeCompras(new ArrayList<ListaDeCompras>());\n this.setCoordenadas(coordenadas);\n }", "public void createNewClient(String nom, String prenom, String tel, String mail, String adresse) throws SQLException {\n\t\tint tmp = getLastClientId();\n\t\tSystem.out.println(tmp);\n\t\tif(tmp != 0) {\n\t\t\t//voir generated keys pour l'id\n\t\t\tClient tmpClient = new Client(tmp, nom, prenom, tel, mail, adresse);\n\t\t\tClient tmp2 = create(tmpClient);\n\t\t\tSystem.out.println(tmp2.getLogin());\n\t\t\tSystem.out.println(\"Succès lors de la création de l'utilisateur\");\n\t\t}else\n\t\t\tSystem.out.println(\"Erreur lors de la création de l'utilisateur\");\n\t}", "@Override\n\tpublic int editarCliente(ClienteBean cliente) throws Exception {\n\t\treturn 0;\n\t}", "@Override\r\n public Cliente buscarCliente(String cedula) throws Exception {\r\n return entity.find(Cliente.class, cedula);//busca el cliente\r\n }", "public TelaListaCliente(ListadePessoas list) {\n initComponents();\n cli = new ArrayList<>();\n \n for(Cliente c: list.getClientes()){\n cli.add(c);\n }\n \n DefaultTableModel dtm = (DefaultTableModel) jclient.getModel();\n for(Cliente c: cli){ \n Object[] dados = {c.getNome(),c.getCpf(),c.getEndereco(),c.getTelefone()};\n dtm.addRow(dados);\n }\n }", "public void Pedircarnet() {\n\t\tSystem.out.println(\"solicitar carnet para verificar si es cliente de ese consultorio\");\r\n\t}", "public void agregarDatosCliente(Integer codCliente){\n try{\n ClienteDao clienteDao = new ClienteDaoImp();\n //obtenemos la instancia de Cliente en Base a su codigo\n this.cliente = clienteDao.obtenerClientePorCodigo(codCliente);\n //Mensaje de confirmacion de exito de la operacion\n FacesMessage message = new FacesMessage(FacesMessage.SEVERITY_INFO,\"Correcto\", \"Cliente agregado correctamente!\");\n FacesContext.getCurrentInstance().addMessage(null, message);\n }catch(Exception e){\n e.printStackTrace();\n }\n \n }", "public HiloCliente(TCPServidor tcpServidor, Socket cliente, int numeroDeCliente) {\n\t\tthis.tcpServidor = tcpServidor;\n\t\tthis.cliente = cliente;\n\t\tthis.idCliente = numeroDeCliente;\n\t}", "public java.lang.String getTelefon() {\n java.lang.Object ref = telefon_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n telefon_ = s;\n return s;\n }\n }", "@Override\r\n\tpublic void alterar(Telefone vo) throws Exception {\n\t\t\r\n\t}", "public String getTelefono(){\n return telefono;\n }", "public void fecharConta() {\n\t\tcliente.setConta(new Conta());\r\n\t\tRepositorioCliente repositorioCliente = new FabricaRepositorio().getRepCliente();\r\n\t\trepositorioCliente.editar((ClienteIndividual)cliente);\r\n//\t\tGerenciadorContaImpl contaImpl = new GerenciadorContaImpl();\r\n//\t\ttry {\r\n//\t\t\tcontaImpl.fecharConta(cliente);\r\n//\t\t} catch (OperacaoInvalidaException e) {\r\n//\t\t\te.printStackTrace();\r\n//\t\t}\r\n\t}" ]
[ "0.77789676", "0.708051", "0.64222705", "0.63119704", "0.63085765", "0.6270152", "0.6246798", "0.6242941", "0.62291104", "0.6203916", "0.61854464", "0.6158519", "0.6136545", "0.6118974", "0.6114485", "0.6109834", "0.6108032", "0.6092941", "0.6075674", "0.60612", "0.60612", "0.6034207", "0.5997504", "0.59750575", "0.5962772", "0.59618956", "0.5939024", "0.5906343", "0.59010255", "0.58914673", "0.5890527", "0.5846207", "0.5840293", "0.58351046", "0.58159524", "0.5812959", "0.58096445", "0.5795352", "0.57905954", "0.5785164", "0.5776861", "0.5769672", "0.57677525", "0.5755339", "0.57447505", "0.5743425", "0.5742675", "0.5737621", "0.5734137", "0.5714876", "0.5707933", "0.5703476", "0.56763774", "0.56759536", "0.56648105", "0.56620586", "0.5658498", "0.5656582", "0.56528723", "0.564979", "0.564771", "0.5646313", "0.5631438", "0.5621263", "0.56197995", "0.5617378", "0.5613923", "0.5610412", "0.5609993", "0.560817", "0.56043255", "0.5602112", "0.5593324", "0.55871105", "0.557545", "0.55747986", "0.55731595", "0.5571583", "0.55713034", "0.55706674", "0.55706626", "0.5567274", "0.5564102", "0.55605245", "0.5559153", "0.55566907", "0.55526036", "0.5552292", "0.5551867", "0.5551385", "0.5545819", "0.5543244", "0.5541395", "0.5535003", "0.55340815", "0.55317014", "0.55286384", "0.55274427", "0.5527251", "0.55250776" ]
0.55373615
93
Telefone residencial do cliente
@ApiModelProperty(required = true, value = "Telefone residencial do cliente") @JsonProperty("home") public String getHome() { return home; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void tocarTelefone() {\n System.out.println(\"Telefone \" + getNumero() + \" está tocando!\");\n notificarTodos();\n }", "java.lang.String getTelefon();", "public String getTelefone() {\n return telefone;\n }", "public String getTelefone() {\n\t\treturn telefone;\n\t}", "public void atenderTelefone() {\n System.out.println(\"Telefone \" + getNumero() + \" atendido!\");\n notificarTodos();\n }", "BigInteger getTelefone();", "public String getTelefono() {\r\n\t\treturn telefono;\r\n\t}", "@AutoEscape\n\tpublic String getTelefono();", "public String RespuestaCliente()\n{\tString Muestra=\"\";\n\t\n\tMuestra+=\"DATOS DEL CLIENTE\\n\"\n\t\t\t+ \"Nombre: \"+getNombre()+\"\\n\"\n\t\t\t+ \"DNI: \"+getDni()+\"\\n\"\n\t\t\t+ \"Salario: �\"+String.format(\"%.1f\",getSalario())+\"\\n\\n\";\n\t\n\treturn Muestra;\n\t\n\t}", "public void setTelefono(String aTelefono) {\n telefono = aTelefono;\n }", "public void setTelefono(String telefono) {\n this.telefono = telefono;\n }", "public String getTelefono()\r\n {\r\n return telefono;\r\n }", "public String getTelefono() {\n return telefono;\n }", "public String getTelefono() {\n return telefono;\n }", "public String getTelefonnummer() {\n return telefonnummer;\n }", "public void setTelefone(String telefone) {\n Consistencia.consisteNaoNuloNaoVazio(telefone, \"telefone\");\n\n this.telefone = telefone;\n }", "public void setTelefono(String telefono)\r\n {\r\n this.telefono = telefono;\r\n }", "void grabarCliente(){\n RequestParams params = new RequestParams();\n params.put(\"nombre\",edtNombre.getText().toString().trim());\n params.put(\"apellido\",edtApellido.getText().toString().trim());\n params.put(\"correo\", edtCorreo.getText().toString().trim());\n String claveMD5 = edtClave.getText().toString().trim();\n try {\n params.put(\"clave\", ws.getMD5(claveMD5));\n } catch (Exception e) {\n e.printStackTrace();\n }\n params.put(\"id_cargo\",idCargo);\n params.put(\"autoriza\",validarCheckBoxAutoriza());\n crearUsuarioWS(params);\n }", "private void teletransportar(Personaje p, Celda destino) {\n // TODO implement here\n }", "public java.lang.String getTelefon() {\n java.lang.Object ref = telefon_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n telefon_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public void setTelefono(String telefono) {\r\n\t\tthis.telefono = telefono;\r\n\t}", "public long getTelefono() {\r\n return telefono;\r\n }", "public void desligarTelefone() {\n System.out.println(\"Telefone \" + getNumero() + \" desligado!\");\n notificarTodos();\n }", "public java.lang.String getTelefon() {\n java.lang.Object ref = telefon_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n telefon_ = s;\n return s;\n }\n }", "public String getTelephone() {\n return telephone;\n }", "public String getTelephone() {\n return telephone;\n }", "void realizarSolicitud(Cliente cliente);", "public Cliente(String nome, String telefone, String cpf) {\r\n\t\tthis.nome = nome;\r\n\t\tthis.telefone = telefone;\r\n\t\tthis.cpf = cpf;\r\n\t}", "public String getCorreo() {return correo;}", "public Express(String Telefono, String Direccion, String Fecha, String ClientePedido) {\n super(Fecha, ClientePedido);\n this.Telefono = Telefono;\n this.Direccion = Direccion;\n }", "public Cliente(){\r\n this.nome = \"\";\r\n this.email = \"\";\r\n this.endereco = \"\";\r\n this.id = -1;\r\n }", "public java.lang.String getTel() {\r\n return localTel;\r\n }", "private static Cliente llenarDatosCliente() {\r\n\t\tCliente cliente1 = new Cliente();\r\n\t\tcliente1.setApellido(\"De Assis\");\r\n\t\tcliente1.setDni(368638373);\r\n\t\tcliente1.setNombre(\"alexia\");\r\n\t\tcliente1.setId(100001);\r\n\r\n\t\treturn cliente1;\r\n\t}", "public void setTelefono(long value) {\r\n this.telefono = value;\r\n }", "public java.lang.String getNumeroTelefono() {\n\t\treturn _telefonoSolicitudProducto.getNumeroTelefono();\n\t}", "public String getTel() {\r\n return tel;\r\n }", "public void setTelefono(String telefono);", "public String getTel() {\n return tel;\n }", "public String getTel() {\n return tel;\n }", "public String getTel() {\n return tel;\n }", "public String getTel() {\n return tel;\n }", "public String getTel() {\n return tel;\n }", "public String getTel() {\n return tel;\n }", "public String getTel() {\n return tel;\n }", "public String getTel() {\n return tel;\n }", "public String getTel() {\n return tel;\n }", "static Cliente parsearCliente(String linea) {\n //Dividimos cada linea en sus respectivos campos usando como referencia\n //las comas que los separan y la metemos en un array de String\n String campos[] = linea.split(\",\");\n //Inicializamos variable cliente\n Cliente cliente = null;\n //Si la longitud del array es de 4 o 5 (4 o 5 campos)\n if (campos.length == 4 || campos.length == 5) { \n //Convertimos el campo [0] en entero y se lo pasamos al atributo id\n long id = Integer.parseInt(campos[0]);\n String nombre = campos[1]; String email = campos[2];\n //Convertimos el campo[3] en tipo booleano\n boolean activo = campos[3].equals(\"true\") ? true : false;\n int duracionMax = 0;\n if (campos.length == 5) {\n /*Si detectamos que hay un quinto campo, que será el de la duración\n máxima para clientes invitados*/\n //Convertimos el campo en entero\n duracionMax = Integer.parseInt(campos[4]);\n /*Creamos objeto cliente de tipo ClienteInvitado haciendo casting,\n y le asignamos el atributo de duración máxima que hemos leido*/\n //Sólo id, nombre y email están en el constructor\n cliente = new ClienteInvitado(id, nombre, email);\n ((ClienteInvitado) cliente).setDuracionMax(duracionMax);\n } else {//Sino será tipo Cliente, creamos objeto cliente de tipo Cliente\n // y le pasamos los atributos que hemos leido\n cliente = new Cliente(id, nombre, email);\n }\n //Le asignamos el atributo activo\n cliente.setActivo(activo);\n }\n return cliente;\n }", "public void Pedircarnet() {\n\t\tSystem.out.println(\"solicitar carnet para verificar si es cliente de ese consultorio\");\r\n\t}", "@Override\r\n public void getCliente(Cliente cliente) {\r\n if (cliente!=null){\r\n this.cliente = cliente;\r\n nomeClientejTextField.setText(cliente.getNome());\r\n }\r\n }", "public Cliente getCliente() {\n\t\ttry {\n\t\t\tCalendar d_n = Calendar.getInstance();\n\t\t\td_n.setTime(dateChooser.getDate());\n\t\t\tString data_nascimento = d_n.get(Calendar.DAY_OF_WEEK) + \"-\" + d_n.get(Calendar.MONTH) + \"-\" + d_n.get(Calendar.YEAR);\n\t\t\tString nome = tfEmitente.getText();\n\t\t\tString cpf = ftfCpf.getText();\t\t\t\t\n\t\t\tcpf = cpf.replace('-',' ');\n\t\t\tcpf = cpf.replace('.',' ');\n\t\t\tcpf = cpf.trim();\n\t\t\tString rg = ftfRg.getText();\n\t\t\tString email = tfEmail.getText();\n\t\t\tString tel_fixo = ftfTelResidencial.getText();\n\t\t\ttel_fixo = tel_fixo.replaceAll(\"-\",\"\");\n\t\t\tString telefone_celular = ftfTelCelular.getText();\n\t\t\ttelefone_celular = telefone_celular.replaceAll(\"-\",\"\");\n\t\t\tString cep = ftfCep.getText();\n\t\t\tcep = cep.replaceAll(\"-\",\"\");\n\t\t\tString logradouro = tfLogradouro.getText();\n\t\t\tString numero = ftfNumero.getText();\n\t\t\tString complemento = tfComplemento.getText();\n\t\t\tString cidade = tfCidade.getText();\n\t\t\tString bairro = tfBairro.getText();\n\t\t\tString tipo = ftfTipo.getText();\n\t\t\t\n\t\t\treturn new Cliente(nome, cpf, rg, tel_fixo, telefone_celular, cep, logradouro,\n\t\t\t\t\t numero, complemento, cidade, bairro, tipo.charAt(0), email);\n\t\t} catch (NullPointerException npe) {\n\t\t\treturn null;\n\t\t}\n\n\t}", "String getEndereco2();", "public java.lang.String getTelePhone() {\r\n return telePhone;\r\n }", "public String getCorreo() {\r\n return correo;\r\n }", "public String getTelefoneRequerenteItem() {\r\n\t\treturn this.emprestimoid.getTelefoneRequerenteItem();\r\n\t}", "public String getAnserTelphone() {\r\n return anserTelphone;\r\n }", "public String getTelNo() {\n return telNo;\n }", "public void selecionarCliente() {\n int cod = tabCliente.getSelectionModel().getSelectedItem().getCodigo();\n cli = cli.buscar(cod);\n\n cxCPF.setText(cli.getCpf());\n cxNome.setText(cli.getNome());\n cxRua.setText(cli.getRua());\n cxNumero.setText(Integer.toString(cli.getNumero()));\n cxBairro.setText(cli.getBairro());\n cxComplemento.setText(cli.getComplemento());\n cxTelefone1.setText(cli.getTelefone1());\n cxTelefone2.setText(cli.getTelefone2());\n cxEmail.setText(cli.getEmail());\n btnSalvar.setText(\"Novo\");\n bloquear(false);\n }", "public String getTelefono(){\n return telefono;\n }", "public String getCorreo(){\r\n return correo;\r\n }", "public String getCorreo() {\n return correo;\n }", "public CustomerAddressQuery telephone() {\n startField(\"telephone\");\n\n return this;\n }", "public String getTelphone() {\n return telphone;\n }", "public String getTelphone() {\n return telphone;\n }", "public String getTelphone() {\n return telphone;\n }", "public void obtenerTipificacionesCliente(Participante cliente)\n throws MareException {\n \n UtilidadesLog.info(\" DAOSolicitudes.obtenerTipificacionesCliente(Par\"\n +\"ticipante cliente):Entrada\");\n BelcorpService bs;\n RecordSet respuesta;\n String codigoError;\n StringBuffer query = new StringBuffer();\n\n if (cliente.getOidCliente() == null) {\n cliente.setTipificacionCliente(null);\n if(log.isDebugEnabled()) {//sapaza -- cambio Optimizacion Logs -- 23/03/2010 \n UtilidadesLog.debug(\"---- NULO : \");\n UtilidadesLog.debug(\"---- cliente : \" + cliente.getOidCliente());\n } \n } else {\n try {\n bs = BelcorpService.getInstance();\n } catch (MareMiiServiceNotFoundException e) {\n UtilidadesLog.error(\"ERROR \", e);\n codigoError = CodigosError.ERROR_AL_PEDIR_UN_SERVICIO_MARE;\n throw new MareException(e, UtilidadesError.armarCodigoError(\n codigoError));\n }\n\n try {\n query.append(\" SELECT CLIE_OID_CLIE, \");\n query.append(\" CLAS_OID_CLAS, \");\n query.append(\" SBTI_OID_SUBT_CLIE, \");\n query.append(\" TCCL_OID_TIPO_CLASI, \");\n query.append(\" TICL_OID_TIPO_CLIE \");\n query.append(\" FROM V_MAE_TIPIF_CLIEN \");\n query.append(\" WHERE CLIE_OID_CLIE = \" + cliente\n .getOidCliente());\n respuesta = bs.dbService.executeStaticQuery(query.toString());\n \n if(log.isDebugEnabled()) //sapaza -- cambio Optimizacion Logs -- 23/03/2010 \n UtilidadesLog.debug(\"---- TIPIF : \" + respuesta);\n } catch (Exception e) {\n UtilidadesLog.error(\"ERROR \", e);\n codigoError = CodigosError.ERROR_DE_LECTURA_EN_BASE_DE_DATOS;\n throw new MareException(e, UtilidadesError.armarCodigoError(\n codigoError));\n }\n\n if (respuesta.esVacio()) {\n cliente.setTipificacionCliente(null);\n } else {\n TipificacionCliente[] tipificaciones = new TipificacionCliente[\n respuesta.getRowCount()];\n\n for (int i = 0; i < respuesta.getRowCount(); i++) {\n tipificaciones[i] = new TipificacionCliente();\n\n {\n BigDecimal oidClasificacionCliente = (BigDecimal) \n respuesta.getValueAt(i, \"CLAS_OID_CLAS\");\n tipificaciones[i].setOidClasificacionCliente((\n oidClasificacionCliente != null) ? new Long(\n oidClasificacionCliente.longValue()) : null);\n }\n\n tipificaciones[i].setOidSubTipoCliente(new Long((\n (BigDecimal) respuesta\n .getValueAt(i, \"SBTI_OID_SUBT_CLIE\")).longValue()));\n\n {\n BigDecimal oidTipoClasificacionCliente = (BigDecimal) \n respuesta.getValueAt(i, \"TCCL_OID_TIPO_CLASI\");\n tipificaciones[i].setOidTipoClasificacionCliente(\n (oidTipoClasificacionCliente != null)? new Long(\n oidTipoClasificacionCliente.longValue()) \n : null);\n }\n\n tipificaciones[i].setOidTipoCliente(new Long(((BigDecimal)\n respuesta.getValueAt(i, \"TICL_OID_TIPO_CLIE\"))\n .longValue()));\n }\n\n cliente.setTipificacionCliente(tipificaciones);\n }\n }\n UtilidadesLog.info(\" DAOSolicitudes.obtenerTipificacionesCliente(Par\"\n +\"ticipante cliente):Salida\");\n }", "public static String getIPCliente(){//192.168, 172.16. o 10.0.\n\t\tString ipAddress=\"\";\n\t\ttry{\n\t\t\tHttpServletRequest request = (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest();\n\t\t\tipAddress = request.getHeader(\"X-FORWARDED-FOR\");\n\t\t\tif ( ipAddress == null ) {\n\t\t\t\tipAddress = request.getRemoteAddr();\n\t\t\t\tif(ipAddress.equals(\"127.0.0.1\")){\n\t\t\t\t\ttry {\n\t\t\t\t\t\tipAddress = InetAddress.getLocalHost().getHostAddress();\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tipAddress = \"\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tString[] ips = ipAddress.split(\",\");\n\t\t\tfor(String ip : ips){\n\t\t\t\tif(!ip.trim().startsWith(\"127.0.\")){\n\t\t\t\t\tipAddress = ip;\n\t\t\t\t}\n\t\t\t}\n\t\t}catch(Exception ex){\n\t\t\tex.printStackTrace();\n\t\t}\n\t\treturn ipAddress;\n\t}", "public static String getMacCliente(){\n\t\tInetAddress ip;\n\t\tbyte[] mac = null;\n\t\tStringBuilder sb = new StringBuilder();\n\t\ttry {\n\t\t\tip = InetAddress.getLocalHost();\n\t\t\tNetworkInterface network = NetworkInterface.getByInetAddress(ip);\n\n\t\t\tmac = network.getHardwareAddress();\n\t\t\tfor (int i = 0; i < mac.length; i++) {\n\t\t\t\tsb.append(String.format(\"%02X%s\", mac[i],(i < mac.length - 1) ? \"-\" : \"\"));\n\t\t\t}\n\t\t} catch (UnknownHostException e) {\n\t\t\t//Log.error(e, \"Utiles :: getMacCliente :: controlado\");\n\t\t} catch (SocketException e) {\n\t\t\t//Log.error(e, \"Utiles :: getMacCliente :: controlado\");\n\t\t} catch (NullPointerException e){\n\t\t\t//Log.error(e, \"Utiles :: getMacCliente :: controlado\");\n\t\t}\n\t\treturn sb.toString();\n\t}", "public void gererPatrimoine(Client client) {\n\t\tif (calculerSoldeTotal(client) > 500000) {\n\t\t\tSystem.out.println(\"Riche client !\");\n\t\t\tSystem.out.println(\"Gestion de Patrimoine :\");\n\t\t\tAction action1 = new Action(\"Airbus\", 72, \"Paris\");\n\t\t\tacheterAction(action1);\n\t\t}\n\t}", "public String getTelNo() {\n return telNo;\n }", "private Cliente obtenerCliente(Long oidCliente, Solicitud solicitud)\n throws MareException {\n UtilidadesLog.info(\" DAOSolicitudes.obtenerCliente(Long oidCliente,\"\n +\"Solicitud solicitud):Entrada\");\n\n /*Descripcion: este metodo retorna un objeto de la clase Cliente\n con todos sus datos recuperados.\n\n Implementacion:\n\n 1- Invocar al metodo obtenerDatosGeneralesCliente pasandole por\n parametro el oidCliente. Este metodo retornara un objeto de la clase\n Cliente el cual debe ser asignado a la propiedad cliente de la \n Solicitud.\n 2- Invocar al metodo obtenerTipificacionesCliente pasandole por\n parametro el objeto cliente. Este metodo creara un array de objetos\n de la clase TipificacionCliente el cual asignara al atributo\n tipificacionCliente del cliente pasado por parametro.\n 3- Invocar al metodo obtenerHistoricoEstatusCliente pasandole por\n parametro el objeto cliente. Este metodo asignara un array de objetos\n de la clase HistoricoEstatusCliente al atributo \n historicoEstatusCliente\n del cliente pasado por parametro.\n 4- Invocar al metodo obtenerPeriodosConPedidosCliente pasandole por\n parametro el objeto cliente. Este metodo asignara un array de objetos\n de la clase Periodo al atributo periodosConPedidos del cliente pasado\n por parametro.\n 5- Invocar al metodo obtenerClienteRecomendante pasandole por\n parametro el objeto cliente. Este metodo asignara un objeto de la\n calse ClienteRecomendante al atributo clienteRecomendante del cliente\n recibido por parametro.\n 6- Invocar al metodo obtenerDatosGerentes pasandole por parametro el\n objeto cliente.\n */\n\n //1\n Cliente cliente = this.obtenerDatosGeneralesCliente(oidCliente, \n solicitud.getPeriodo());\n solicitud.setCliente(cliente);\n\n //2\n UtilidadesLog.debug(\"****obtenerCliente 1****\");\n this.obtenerTipificacionesCliente(cliente);\n UtilidadesLog.debug(\"****obtenerCliente 2****\");\n\n //3\n this.obtenerHistoricoEstatusCliente(cliente);\n UtilidadesLog.debug(\"****obtenerCliente 3****\");\n\n //4\n this.obtenerPeriodosConPedidosCliente(cliente);\n UtilidadesLog.debug(\"****obtenerCliente 4****\");\n\n //5\n //jrivas 4/7/2005\n //Inc 16978 \n this.obtenerClienteRecomendante(cliente, solicitud.getOidPais());\n\n // 5.1\n // JVM - sicc 20070237, calling obtenerClienteRecomendado\n this.obtenerClienteRecomendado(cliente, solicitud.getOidPais());\n\n //6\n this.obtenerDatosGerentes(cliente, solicitud.getPeriodo());\n if(log.isDebugEnabled()) //sapaza -- cambio Optimizacion Logs -- 23/03/2010 \n UtilidadesLog.debug(\"Salio de obtenerCliente - DAOSolicitudes\");\n \n // vbongiov 22/9/2005 inc 20940\n cliente.setIndRecomendante(this.esClienteRecomendante(cliente.getOidCliente(), solicitud.getPeriodo()));\n\n // jrivas 30/8//2006 inc DBLG5000839\n cliente.setIndRecomendado(this.esClienteRecomendado(cliente.getOidCliente(), solicitud.getPeriodo()));\n \n UtilidadesLog.info(\" DAOSolicitudes.obtenerCliente(Long oidCliente, \"\n +\"Solicitud solicitud):Salida\");\n return cliente;\n }", "public String getEnderecoImovel() {\r\n return enderecoImovel;\r\n }", "@Override\n public String toString() {\n return \"Client{\" +\n \"nom='\" + nom + '\\'' +\n \", prenom='\" + prenom + '\\'' +\n \", adresse='\" + adresse + '\\'' +\n \", methode tarif=\" + calculerTarif.toString() +\n \", pointsDeFidelite=\" + pointsDeFidelite +\n \", listeVehicule=\" + listeVehicule +\n + '}';\n }", "public void setCorreo(String correo) {this.correo = correo;}", "public ManterCliente() {\n try {\n initComponents();\n BloquearCampos();\n bt_salvar.setEnabled(false);\n bt_editar.setEnabled(false);\n txt_codigo.setEditable(true);\n mascaraCNPJ = new MaskFormatter(\"###.###.###/####-##\");\n mascaraCPF = new MaskFormatter(\"###.###.###-##\");\n } catch (ParseException ex) {\n JOptionPane.showMessageDialog(null, \"Erro ao carregar formulário. Contate o suporte.\");\n }\n }", "private void enviarPaqueteACliente(DatagramPacket recibirPaquete) throws IOException {\n try {\n\n mostrarMensaje(\"\\n\\nRepitiendo datos al cliente...\");\n byte datos[] = new byte[100];\n datos = mensaje.getBytes();\n //crea paquete a enviar\n DatagramPacket enviarPaquete = new DatagramPacket(\n datos, datos.length,\n recibirPaquete.getAddress(), recibirPaquete.getPort());\n\n socket.send(enviarPaquete);//enviar el paquete\n mostrarMensaje(\"Paquete enviado\\n\");\n } catch (NullPointerException e) {\n }\n\n }", "public String getCorpTel() {\n return corpTel;\n }", "public ClienteVO getFormCliente() {\n try {\n String nome = cadastroView.getTxtNome().getText();\n String cpf = cadastroView.getTxtCPF().getText().trim().replaceAll(\"\\\\.\", \"\").replaceAll(\"-\", \"\");\n String rg = cadastroView.getTxtRG().getText().trim();\n String email = cadastroView.getTxtEmail().getText().trim();\n String fone = cadastroView.getTxtTelefone().getText().trim().replace(\"(\", \"\").replace(\")\", \"\");\n return new ClienteVO(nome, cpf, rg, email, fone);\n } catch (Exception e) {\n System.out.println(e.getMessage());\n e.printStackTrace();\n }\n return null;\n }", "public String getTelNo()\r\n\t{\r\n\t\treturn this.telNo;\r\n\t}", "public String getPrincipalTel() {\n return principalTel;\n }", "public void verificarDatosConsola(Cliente cliente, List<Cuenta> listaCuentas) {\n\n int codigoCliente = cliente.getCodigo();\n\n System.out.println(\"Codigo: \"+cliente.getCodigo());\n System.out.println(\"Nombre: \"+cliente.getNombre());\n System.out.println(\"DPI: \"+cliente.getDPI());\n System.out.println(\"Direccion: \"+cliente.getDireccion());\n System.out.println(\"Sexo: \"+cliente.getSexo());\n System.out.println(\"Password: \"+cliente.getPassword());\n System.out.println(\"Tipo de Usuario: \"+ 3);\n\n System.out.println(\"Nacimiento: \"+cliente.getNacimiento());\n System.out.println(\"ArchivoDPI: \"+cliente.getDPIEscaneado());\n System.out.println(\"Estado: \"+cliente.isEstado());\n \n \n for (Cuenta cuenta : listaCuentas) {\n System.out.println(\"CUENTAS DEL CLIENTE\");\n System.out.println(\"Numero de Cuenta: \"+cuenta.getNoCuenta());\n System.out.println(\"Fecha de Creacion: \"+cuenta.getFechaCreacion());\n System.out.println(\"Saldo: \"+cuenta.getSaldo());\n System.out.println(\"Codigo del Dueño: \"+codigoCliente);\n \n }\n \n\n\n }", "public String getSenderPhoneNumber();", "@Override\n public String provideCustomerMobilePhone( )\n {\n return _signaleur.getIdTelephone( );\n }", "com.google.protobuf.ByteString\n getTelefonBytes();", "String getEndereco1();", "public String getTelefonoTI() {\n return this.telefonoTI;\n }", "public String getContactTel() {\n return contactTel;\n }", "public void createNewClient(String nom, String prenom, String tel, String mail, String adresse) throws SQLException {\n\t\tint tmp = getLastClientId();\n\t\tSystem.out.println(tmp);\n\t\tif(tmp != 0) {\n\t\t\t//voir generated keys pour l'id\n\t\t\tClient tmpClient = new Client(tmp, nom, prenom, tel, mail, adresse);\n\t\t\tClient tmp2 = create(tmpClient);\n\t\t\tSystem.out.println(tmp2.getLogin());\n\t\t\tSystem.out.println(\"Succès lors de la création de l'utilisateur\");\n\t\t}else\n\t\t\tSystem.out.println(\"Erreur lors de la création de l'utilisateur\");\n\t}", "public Cliente getCliente() {\n return cliente;\n }", "public Integer getTel() {\n return tel;\n }", "public List<Telefono> getTelefonos(String dni);", "public void setCorreo(String correo){\r\n this.correo = correo;\r\n }", "public com.google.protobuf.ByteString\n getTelefonBytes() {\n java.lang.Object ref = telefon_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n telefon_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getClient()\n {\n return \"DOE\";\n }", "public String getTelefoneDonoItem() {\r\n\t\treturn this.emprestimoid.getTelefoneDonoItem();\r\n\t}", "public String getTelefono() {\r\n\treturn telefono;\r\n}", "public Cliente(String nombre, String nit, String direccion) {\n this.nombre = nombre;\n this.nit = nit;\n this.direccion = direccion;\n }", "public void setTelefone(String telefone) {\n String oldTelefone = this.telefone;\n this.telefone = telefone;\n propertyChangeSupport.firePropertyChange(PROP_TELEFONE, oldTelefone, telefone);\n }", "public String getUserTelephone() {\n return userTelephone;\n }", "public String getEndereco(){\r\n return this.endereco;\r\n }", "@Name(\"creditoDisponivel\")\n public Endereco endereco(@Source Usuario u) {\n return new Endereco();\n }", "public Cliente(String nombre, String nit, String direccion, String municipio, String departamento) {\n this.nombre = nombre;\n this.nit = nit;\n this.direccion = direccion;\n this.municipio = municipio;\n this.departamento = departamento;\n }" ]
[ "0.71744454", "0.6996243", "0.6958354", "0.6839051", "0.67344904", "0.6694547", "0.6380134", "0.6378449", "0.6355965", "0.63315433", "0.6274884", "0.6257647", "0.6252659", "0.6252659", "0.62155634", "0.6192717", "0.6189521", "0.6170305", "0.613307", "0.6102455", "0.60936666", "0.6071938", "0.6050196", "0.6038641", "0.6025078", "0.6025078", "0.6022564", "0.6017041", "0.6016118", "0.59830695", "0.59513557", "0.5941336", "0.59261394", "0.59004813", "0.58963835", "0.58823675", "0.5866406", "0.58652407", "0.58652407", "0.58652407", "0.58652407", "0.58652407", "0.58652407", "0.58652407", "0.58652407", "0.58652407", "0.5861054", "0.5855817", "0.58421415", "0.5837788", "0.5834424", "0.5833157", "0.5832726", "0.582114", "0.5816173", "0.5808026", "0.57870257", "0.57749146", "0.5768548", "0.57660717", "0.5764027", "0.5762257", "0.5762257", "0.5762257", "0.5742686", "0.57338417", "0.5733305", "0.5717929", "0.57151103", "0.5694683", "0.5691458", "0.5688047", "0.5683704", "0.5677257", "0.5675661", "0.5675017", "0.5673968", "0.5673214", "0.5668435", "0.5663138", "0.5655804", "0.56514", "0.56481177", "0.56402296", "0.5638561", "0.56354374", "0.5629089", "0.56289476", "0.5621926", "0.56180954", "0.56118155", "0.56060064", "0.56049544", "0.56001335", "0.5599401", "0.5583367", "0.55640906", "0.5560997", "0.55558854", "0.55539453", "0.5553383" ]
0.0
-1
Telefone de trabalho do cliente
@ApiModelProperty(required = true, value = "Telefone de trabalho do cliente") @JsonProperty("office") public String getOffice() { return office; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void tocarTelefone() {\n System.out.println(\"Telefone \" + getNumero() + \" está tocando!\");\n notificarTodos();\n }", "public String getTelefone() {\n return telefone;\n }", "public String getTelefone() {\n\t\treturn telefone;\n\t}", "public void atenderTelefone() {\n System.out.println(\"Telefone \" + getNumero() + \" atendido!\");\n notificarTodos();\n }", "java.lang.String getTelefon();", "public String getTelefono() {\r\n\t\treturn telefono;\r\n\t}", "@AutoEscape\n\tpublic String getTelefono();", "public String getTelefonnummer() {\n return telefonnummer;\n }", "public String getTelefono() {\n return telefono;\n }", "public String getTelefono() {\n return telefono;\n }", "BigInteger getTelefone();", "private void teletransportar(Personaje p, Celda destino) {\n // TODO implement here\n }", "public String getTelefono()\r\n {\r\n return telefono;\r\n }", "public void setTelefono(String aTelefono) {\n telefono = aTelefono;\n }", "public void setTelefono(String telefono) {\n this.telefono = telefono;\n }", "public java.lang.String getTelefon() {\n java.lang.Object ref = telefon_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n telefon_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public long getTelefono() {\r\n return telefono;\r\n }", "public Cliente(String nome, String telefone, String cpf) {\r\n\t\tthis.nome = nome;\r\n\t\tthis.telefone = telefone;\r\n\t\tthis.cpf = cpf;\r\n\t}", "public java.lang.String getTelefon() {\n java.lang.Object ref = telefon_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n telefon_ = s;\n return s;\n }\n }", "public void setTelefono(String telefono)\r\n {\r\n this.telefono = telefono;\r\n }", "public String RespuestaCliente()\n{\tString Muestra=\"\";\n\t\n\tMuestra+=\"DATOS DEL CLIENTE\\n\"\n\t\t\t+ \"Nombre: \"+getNombre()+\"\\n\"\n\t\t\t+ \"DNI: \"+getDni()+\"\\n\"\n\t\t\t+ \"Salario: �\"+String.format(\"%.1f\",getSalario())+\"\\n\\n\";\n\t\n\treturn Muestra;\n\t\n\t}", "public void setTelefone(String telefone) {\n Consistencia.consisteNaoNuloNaoVazio(telefone, \"telefone\");\n\n this.telefone = telefone;\n }", "public Cliente(){\r\n this.nome = \"\";\r\n this.email = \"\";\r\n this.endereco = \"\";\r\n this.id = -1;\r\n }", "public String getTelefonoTI() {\n return this.telefonoTI;\n }", "public static String getMacCliente(){\n\t\tInetAddress ip;\n\t\tbyte[] mac = null;\n\t\tStringBuilder sb = new StringBuilder();\n\t\ttry {\n\t\t\tip = InetAddress.getLocalHost();\n\t\t\tNetworkInterface network = NetworkInterface.getByInetAddress(ip);\n\n\t\t\tmac = network.getHardwareAddress();\n\t\t\tfor (int i = 0; i < mac.length; i++) {\n\t\t\t\tsb.append(String.format(\"%02X%s\", mac[i],(i < mac.length - 1) ? \"-\" : \"\"));\n\t\t\t}\n\t\t} catch (UnknownHostException e) {\n\t\t\t//Log.error(e, \"Utiles :: getMacCliente :: controlado\");\n\t\t} catch (SocketException e) {\n\t\t\t//Log.error(e, \"Utiles :: getMacCliente :: controlado\");\n\t\t} catch (NullPointerException e){\n\t\t\t//Log.error(e, \"Utiles :: getMacCliente :: controlado\");\n\t\t}\n\t\treturn sb.toString();\n\t}", "void grabarCliente(){\n RequestParams params = new RequestParams();\n params.put(\"nombre\",edtNombre.getText().toString().trim());\n params.put(\"apellido\",edtApellido.getText().toString().trim());\n params.put(\"correo\", edtCorreo.getText().toString().trim());\n String claveMD5 = edtClave.getText().toString().trim();\n try {\n params.put(\"clave\", ws.getMD5(claveMD5));\n } catch (Exception e) {\n e.printStackTrace();\n }\n params.put(\"id_cargo\",idCargo);\n params.put(\"autoriza\",validarCheckBoxAutoriza());\n crearUsuarioWS(params);\n }", "public void setTelefono(String telefono) {\r\n\t\tthis.telefono = telefono;\r\n\t}", "public java.lang.String getTel() {\r\n return localTel;\r\n }", "public static String getIPCliente(){//192.168, 172.16. o 10.0.\n\t\tString ipAddress=\"\";\n\t\ttry{\n\t\t\tHttpServletRequest request = (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest();\n\t\t\tipAddress = request.getHeader(\"X-FORWARDED-FOR\");\n\t\t\tif ( ipAddress == null ) {\n\t\t\t\tipAddress = request.getRemoteAddr();\n\t\t\t\tif(ipAddress.equals(\"127.0.0.1\")){\n\t\t\t\t\ttry {\n\t\t\t\t\t\tipAddress = InetAddress.getLocalHost().getHostAddress();\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tipAddress = \"\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tString[] ips = ipAddress.split(\",\");\n\t\t\tfor(String ip : ips){\n\t\t\t\tif(!ip.trim().startsWith(\"127.0.\")){\n\t\t\t\t\tipAddress = ip;\n\t\t\t\t}\n\t\t\t}\n\t\t}catch(Exception ex){\n\t\t\tex.printStackTrace();\n\t\t}\n\t\treturn ipAddress;\n\t}", "public java.lang.String getNumeroTelefono() {\n\t\treturn _telefonoSolicitudProducto.getNumeroTelefono();\n\t}", "public static String getPcNombreCliente(){\n\t\tString host=\"\";\n\t\ttry{\n\t\t\tString ips[] = getIPCliente().split(\"\\\\.\");\n\t\t\tbyte[] ipAddr = new byte[]{(byte)Integer.parseInt(ips[0]),\n\t\t\t\t\t(byte)Integer.parseInt(ips[1]),\n\t\t\t\t\t(byte)Integer.parseInt(ips[2]),\n\t\t\t\t\t(byte)Integer.parseInt(ips[3])};\n\t\t\tInetAddress inet = InetAddress.getByAddress(ipAddr);\n\t\t\thost = inet.getHostName();\n\t\t}catch(Exception ex){\n\t\t\t//Log.error(ex, \"Utiles :: getPcNombreCliente :: controlado\");\n\t\t}\n\t\treturn host;\n\t}", "public String getClientePedido() {\n return ClientePedido;\n }", "public String getTel() {\r\n return tel;\r\n }", "public Cliente getCliente() {\n\t\ttry {\n\t\t\tCalendar d_n = Calendar.getInstance();\n\t\t\td_n.setTime(dateChooser.getDate());\n\t\t\tString data_nascimento = d_n.get(Calendar.DAY_OF_WEEK) + \"-\" + d_n.get(Calendar.MONTH) + \"-\" + d_n.get(Calendar.YEAR);\n\t\t\tString nome = tfEmitente.getText();\n\t\t\tString cpf = ftfCpf.getText();\t\t\t\t\n\t\t\tcpf = cpf.replace('-',' ');\n\t\t\tcpf = cpf.replace('.',' ');\n\t\t\tcpf = cpf.trim();\n\t\t\tString rg = ftfRg.getText();\n\t\t\tString email = tfEmail.getText();\n\t\t\tString tel_fixo = ftfTelResidencial.getText();\n\t\t\ttel_fixo = tel_fixo.replaceAll(\"-\",\"\");\n\t\t\tString telefone_celular = ftfTelCelular.getText();\n\t\t\ttelefone_celular = telefone_celular.replaceAll(\"-\",\"\");\n\t\t\tString cep = ftfCep.getText();\n\t\t\tcep = cep.replaceAll(\"-\",\"\");\n\t\t\tString logradouro = tfLogradouro.getText();\n\t\t\tString numero = ftfNumero.getText();\n\t\t\tString complemento = tfComplemento.getText();\n\t\t\tString cidade = tfCidade.getText();\n\t\t\tString bairro = tfBairro.getText();\n\t\t\tString tipo = ftfTipo.getText();\n\t\t\t\n\t\t\treturn new Cliente(nome, cpf, rg, tel_fixo, telefone_celular, cep, logradouro,\n\t\t\t\t\t numero, complemento, cidade, bairro, tipo.charAt(0), email);\n\t\t} catch (NullPointerException npe) {\n\t\t\treturn null;\n\t\t}\n\n\t}", "public String getTel() {\n return tel;\n }", "public String getTel() {\n return tel;\n }", "public String getTel() {\n return tel;\n }", "public String getTel() {\n return tel;\n }", "public String getTel() {\n return tel;\n }", "public String getTel() {\n return tel;\n }", "public String getTel() {\n return tel;\n }", "public String getTel() {\n return tel;\n }", "public String getTel() {\n return tel;\n }", "public void desligarTelefone() {\n System.out.println(\"Telefone \" + getNumero() + \" desligado!\");\n notificarTodos();\n }", "public java.lang.String getTelePhone() {\r\n return telePhone;\r\n }", "public String getTelephone() {\n return telephone;\n }", "public String getTelephone() {\n return telephone;\n }", "public String getCorreo() {return correo;}", "public Cliente getCliente() {\n return cliente;\n }", "public String getTelefoneDonoItem() {\r\n\t\treturn this.emprestimoid.getTelefoneDonoItem();\r\n\t}", "public String getTelNo() {\n return telNo;\n }", "@Override\r\n public void getCliente(Cliente cliente) {\r\n if (cliente!=null){\r\n this.cliente = cliente;\r\n nomeClientejTextField.setText(cliente.getNome());\r\n }\r\n }", "public void setTelefono(String telefono);", "public String getPrincipalTel() {\n return principalTel;\n }", "void realizarSolicitud(Cliente cliente);", "public String getTelefoneRequerenteItem() {\r\n\t\treturn this.emprestimoid.getTelefoneRequerenteItem();\r\n\t}", "public String getTelNo() {\n return telNo;\n }", "public String getUserTel() {\n return userTel;\n }", "public String getUserTel() {\n return userTel;\n }", "public String getTelefono(){\n return telefono;\n }", "public int getClientePorHora() {\r\n return clientePorHora;\r\n }", "private void enviarPaqueteACliente(DatagramPacket recibirPaquete) throws IOException {\n try {\n\n mostrarMensaje(\"\\n\\nRepitiendo datos al cliente...\");\n byte datos[] = new byte[100];\n datos = mensaje.getBytes();\n //crea paquete a enviar\n DatagramPacket enviarPaquete = new DatagramPacket(\n datos, datos.length,\n recibirPaquete.getAddress(), recibirPaquete.getPort());\n\n socket.send(enviarPaquete);//enviar el paquete\n mostrarMensaje(\"Paquete enviado\\n\");\n } catch (NullPointerException e) {\n }\n\n }", "public String getClient()\n {\n return \"DOE\";\n }", "public java.lang.String getIDTipoTelefono() {\n\t\treturn IDTipoTelefono;\n\t}", "public String getTelNo()\r\n\t{\r\n\t\treturn this.telNo;\r\n\t}", "public String getCorreo() {\r\n return correo;\r\n }", "private static Cliente llenarDatosCliente() {\r\n\t\tCliente cliente1 = new Cliente();\r\n\t\tcliente1.setApellido(\"De Assis\");\r\n\t\tcliente1.setDni(368638373);\r\n\t\tcliente1.setNombre(\"alexia\");\r\n\t\tcliente1.setId(100001);\r\n\r\n\t\treturn cliente1;\r\n\t}", "public void setTelefono(long value) {\r\n this.telefono = value;\r\n }", "@Override\n public String toString() {\n return \"Client{\" +\n \"nom='\" + nom + '\\'' +\n \", prenom='\" + prenom + '\\'' +\n \", adresse='\" + adresse + '\\'' +\n \", methode tarif=\" + calculerTarif.toString() +\n \", pointsDeFidelite=\" + pointsDeFidelite +\n \", listeVehicule=\" + listeVehicule +\n + '}';\n }", "public String getPaisongTel() {\n return paisongTel;\n }", "public void createNewClient(String nom, String prenom, String tel, String mail, String adresse) throws SQLException {\n\t\tint tmp = getLastClientId();\n\t\tSystem.out.println(tmp);\n\t\tif(tmp != 0) {\n\t\t\t//voir generated keys pour l'id\n\t\t\tClient tmpClient = new Client(tmp, nom, prenom, tel, mail, adresse);\n\t\t\tClient tmp2 = create(tmpClient);\n\t\t\tSystem.out.println(tmp2.getLogin());\n\t\t\tSystem.out.println(\"Succès lors de la création de l'utilisateur\");\n\t\t}else\n\t\t\tSystem.out.println(\"Erreur lors de la création de l'utilisateur\");\n\t}", "public String getEnderecoImovel() {\r\n return enderecoImovel;\r\n }", "public String getAdminTel() {\n return adminTel;\n }", "public Cliente getCliente() {\n return objCliente;\n }", "public String getCorpTel() {\n return corpTel;\n }", "public String getTelphone() {\n return telphone;\n }", "public String getTelphone() {\n return telphone;\n }", "public String getTelphone() {\n return telphone;\n }", "public String getContactTel() {\n return contactTel;\n }", "public com.google.protobuf.ByteString\n getTelefonBytes() {\n java.lang.Object ref = telefon_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n telefon_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getCorreo() {\n return correo;\n }", "public String getTelefono() {\r\n\treturn telefono;\r\n}", "public String getCorreo(){\r\n return correo;\r\n }", "public void setClientePedido(String ClientePedido) {\n this.ClientePedido = ClientePedido;\n }", "Cliente(){}", "public alterarSenhaCliente() {\n }", "public Express(String Telefono, String Direccion, String Fecha, String ClientePedido) {\n super(Fecha, ClientePedido);\n this.Telefono = Telefono;\n this.Direccion = Direccion;\n }", "public void Pedircarnet() {\n\t\tSystem.out.println(\"solicitar carnet para verificar si es cliente de ese consultorio\");\r\n\t}", "public ManterCliente() {\n try {\n initComponents();\n BloquearCampos();\n bt_salvar.setEnabled(false);\n bt_editar.setEnabled(false);\n txt_codigo.setEditable(true);\n mascaraCNPJ = new MaskFormatter(\"###.###.###/####-##\");\n mascaraCPF = new MaskFormatter(\"###.###.###-##\");\n } catch (ParseException ex) {\n JOptionPane.showMessageDialog(null, \"Erro ao carregar formulário. Contate o suporte.\");\n }\n }", "public Cliente(String nombre, String nit, String direccion) {\n this.nombre = nombre;\n this.nit = nit;\n this.direccion = direccion;\n }", "public Integer getTel() {\n return tel;\n }", "public ClienteVO getFormCliente() {\n try {\n String nome = cadastroView.getTxtNome().getText();\n String cpf = cadastroView.getTxtCPF().getText().trim().replaceAll(\"\\\\.\", \"\").replaceAll(\"-\", \"\");\n String rg = cadastroView.getTxtRG().getText().trim();\n String email = cadastroView.getTxtEmail().getText().trim();\n String fone = cadastroView.getTxtTelefone().getText().trim().replace(\"(\", \"\").replace(\")\", \"\");\n return new ClienteVO(nome, cpf, rg, email, fone);\n } catch (Exception e) {\n System.out.println(e.getMessage());\n e.printStackTrace();\n }\n return null;\n }", "public void selecionarCliente() {\n int cod = tabCliente.getSelectionModel().getSelectedItem().getCodigo();\n cli = cli.buscar(cod);\n\n cxCPF.setText(cli.getCpf());\n cxNome.setText(cli.getNome());\n cxRua.setText(cli.getRua());\n cxNumero.setText(Integer.toString(cli.getNumero()));\n cxBairro.setText(cli.getBairro());\n cxComplemento.setText(cli.getComplemento());\n cxTelefone1.setText(cli.getTelefone1());\n cxTelefone2.setText(cli.getTelefone2());\n cxEmail.setText(cli.getEmail());\n btnSalvar.setText(\"Novo\");\n bloquear(false);\n }", "@Override\r\n\tpublic String toString() {\r\n\t\treturn \"Client [nom=\" + nom + \", prenom=\" + prenom + \", adresse=\" + adresse + \", dateapprentissage=\"\r\n\t\t\t\t+ dateapprentissage + \", datepermis=\" + datepermis + \"]\";\r\n\t}", "public Cliente(String nombre, String nit, String direccion, String municipio, String departamento) {\n this.nombre = nombre;\n this.nit = nit;\n this.direccion = direccion;\n this.municipio = municipio;\n this.departamento = departamento;\n }", "public ICliente getCodCli();", "public Cliente() {\r\n\t\tSystem.out.println(\"El cliente es: Diego Juarez \"+\"\\n\");\r\n\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t}", "@Override\n public String getMACAddress()\n {\n String id = client.properties().getString(Keys.client_id);\n if (id == null)\n {\n ClientIDGenerator gen = new ClientIDGenerator();\n id = gen.generateId();\n client.properties().setString(Keys.client_id, id);\n }\n return id;\n //return AppUtil.getMACAddress(this);\n }", "public String getSenderPhoneNumber();", "public String enviarAServidor() {\n return \"\";\n }", "public void setTelefone(String telefone) {\n String oldTelefone = this.telefone;\n this.telefone = telefone;\n propertyChangeSupport.firePropertyChange(PROP_TELEFONE, oldTelefone, telefone);\n }" ]
[ "0.76667094", "0.72750264", "0.72115976", "0.703398", "0.6984771", "0.6748284", "0.66853863", "0.65826344", "0.65221715", "0.65221715", "0.651297", "0.6499878", "0.64671344", "0.6376039", "0.63275146", "0.6246856", "0.6246283", "0.6240215", "0.62276256", "0.62250054", "0.62229013", "0.6198407", "0.618896", "0.61883336", "0.6175526", "0.6169641", "0.6168189", "0.6142222", "0.6118538", "0.6085557", "0.6079738", "0.6072185", "0.60452664", "0.604439", "0.6041516", "0.6041516", "0.6041516", "0.6041516", "0.6041516", "0.6041516", "0.6041516", "0.6041516", "0.6041516", "0.603053", "0.59949857", "0.59845006", "0.59845006", "0.597844", "0.5958273", "0.5942567", "0.59395474", "0.5914842", "0.59070456", "0.59034014", "0.5888182", "0.58858114", "0.5877899", "0.58724976", "0.58724976", "0.5864665", "0.58524615", "0.5842474", "0.5833283", "0.5821283", "0.58198166", "0.5817687", "0.58173156", "0.58159393", "0.5813363", "0.58089626", "0.58046854", "0.58046734", "0.5802923", "0.58025587", "0.57948214", "0.57604045", "0.57604045", "0.57604045", "0.57566696", "0.57494855", "0.57421035", "0.5738363", "0.5737937", "0.5730472", "0.57252395", "0.57244205", "0.5717667", "0.5716252", "0.5714519", "0.57139146", "0.57102144", "0.5710037", "0.5705648", "0.5704208", "0.5686765", "0.5681132", "0.5679703", "0.5672932", "0.5663653", "0.5663635", "0.56597203" ]
0.0
-1
checks if stack is empty
public boolean isEmpty() { if (length == 0) { return true; } else { return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic boolean isEmpty() {\r\n\t\treturn stack.isEmpty();\r\n\t}", "public boolean isEmpty() {\n \treturn stack.size() == 0;\n }", "public boolean stackEmpty() {\r\n\t\treturn (top == -1) ? true : false;\r\n\t }", "public boolean isEmpty() {return stackList.isEmpty();}", "public boolean isEmpty(){\n return this.stack.isEmpty();\n\n }", "public boolean isEmpty()\n {\n return stack.size() == 0;\n }", "public boolean emptyStack() {\n return (expStack.size() == 0);\n }", "public boolean isEmpty()\n {\n return stack.isEmpty();\n }", "public boolean isEmpty(){\r\n \treturn stack1.isEmpty();\r\n }", "public boolean empty() {\r\n return stack.isEmpty();\r\n }", "public boolean empty() {\r\n return stack.isEmpty();\r\n }", "public boolean isEmpty(){\r\n\t\treturn stackData.isEmpty();\r\n\t}", "public boolean empty() {\n return stack.isEmpty();\n }", "public boolean empty() {\n return stack.isEmpty();\n }", "public boolean empty() {\n return stack.isEmpty();\n }", "@Override\r\n\tpublic boolean isFull() {\r\n\t\treturn stack.size() == size;\r\n\t}", "public boolean empty() {\r\n return this.stack.isEmpty();\r\n }", "public boolean empty() {\n return stack.empty();\n }", "public boolean empty() {\n System.out.println(stack.isEmpty());\n return stack.isEmpty();\n }", "public boolean empty() {\n\t\tif(stackTmp.isEmpty() && stack.isEmpty()){\n\t\t\treturn true;\n\t\t}\n\t\telse{\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean isEmpty() {\n return downStack.isEmpty();\n }", "public boolean isEmpty() {\n return stackImpl.isEmpty();\n }", "public boolean empty() {\n return this.stack2.size() == 0 && this.stack1.size() == 0;\n }", "public boolean isCarStackEmpty() {\n boolean carStackEmpty = false;\n if(top < 0) {\n carStackEmpty = true;\n }\n return carStackEmpty;\n }", "@Override\r\n\tpublic boolean isFull() {\r\n\t\tif(topIndex == stack.length -1) {\r\n\t\t\treturn true;\r\n\t\t}else {\r\n\t\t\treturn false;\r\n\t\t}\t\r\n\t}", "public boolean empty() {\n return popStack.empty() && pushStack.empty();\n }", "public boolean empty() {\n return stack1.empty();\n }", "public boolean empty() {\n return this.stack1.empty() && this.stack2.empty();\n }", "private static boolean isStackEmpty(SessionState state)\n\t{\n\t\tStack operations_stack = (Stack) state.getAttribute(STATE_SUSPENDED_OPERATIONS_STACK);\n\t\tif(operations_stack == null)\n\t\t{\n\t\t\toperations_stack = new Stack();\n\t\t\tstate.setAttribute(STATE_SUSPENDED_OPERATIONS_STACK, operations_stack);\n\t\t}\n\t\treturn operations_stack.isEmpty();\n\t}", "public boolean empty() {\n return popStack.isEmpty();\n }", "public boolean empty() {\r\n return inStack.empty() && outStack.empty();\r\n }", "public void testIsEmpty() {\n assertTrue(this.empty.isEmpty());\n assertFalse(this.stack.isEmpty());\n }", "public boolean isEmpty() {\n\t\treturn (stackSize == 0 ? true : false);\n\t}", "public boolean isFull() {\n return (this.top == this.stack.length);\n }", "public boolean isEmpty() \n {\n return stack1.isEmpty() && stack2.isEmpty();\n }", "boolean isFull(Stack stack){\n\t\tif(stack.getStackSize() >= 100) return true;\r\n\t\telse return false;\t\r\n\t}", "public boolean empty() {\n /**\n * 当两个栈中都没有元素时,说明队列中也没有元素\n */\n return stack.isEmpty() && otherStack.isEmpty();\n }", "public boolean empty() {\n return rearStack.isEmpty() && frontStack.isEmpty();\n }", "public boolean isEmpty(){\n return (top == 0);\n }", "public final boolean isEmpty() {\n\t\treturn !(opstack.size() > 0);\n\t}", "public boolean isEmpty()\r\n\t{\r\n\t\treturn top<=0;\r\n\t}", "public boolean isEmpty() {\r\n return (top == null);\r\n }", "public boolean empty() {\n if (stackIn.empty() && stackOut.empty()) {\n return true;\n }\n return false;\n }", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn top < 0;\n\t}", "public boolean empty() {\n return stack1.isEmpty() && stack2.isEmpty();\n }", "public boolean isFull(){\n return (top == employeeStack.length);\n }", "public boolean isEmpty() {\n return stack.isListEmpty();\n }", "@Override\r\n\tpublic boolean isEmpty() {\n\t\treturn top==null;\r\n\t}", "boolean isEmpty() {\r\n\t\treturn top==0;\r\n\t}", "public boolean isEmpty() {\n return top==-1;\n }", "public boolean isEmpty()\n\t{\n\t\treturn top == null;\n\t}", "public boolean isEmpty()\r\n {\n return this.top == null;\r\n }", "public boolean isEmpty(){\n \treturn top==-1;\n\t}", "public boolean isEmpty() {\n return top == null;\n }", "public boolean isEmpty() {\n return top == null;\n }", "public boolean isEmpty() {\n\n return (top == null);\n }", "@Test\r\n public void isEmptyTest1(){\r\n stack.pop();\r\n stack.pop();\r\n stack.pop();\r\n assertThat(stack.isEmpty(), is(true));\r\n }", "public boolean isEmpty() {\n return this.top == null;\n }", "public boolean empty() {\n return mStack1.isEmpty() && mStack2.isEmpty();\n }", "public boolean empty(){\n return this.top == -1;\n }", "public boolean isEmpty() {\n return (this.top == 0);\n }", "public boolean isEmpty() {\n if (opStack.size() == 0) {\n return true;\n }\n return false;\n }", "public boolean isEmpty() {\n\t\t\n\t\treturn top == null;\n\t}", "public boolean empty() \n { \n\treturn(top==-1);\n \n }", "public boolean isEmpty() {\n\t\treturn (top == null) ? true : false;\n\t}", "public boolean isEmpty(){\n if(top == null)return true;\n return false;\n }", "boolean isEmpty() {\n // -\n if(top == null)\n return true;\n return false;\n }", "@SubL(source = \"cycl/stacks.lisp\", position = 2117) \n public static final SubLObject stack_empty_p(SubLObject stack) {\n checkType(stack, $sym1$STACK_P);\n return Types.sublisp_null(stack_struc_elements(stack));\n }", "public boolean empty() { \n if (top == -1) {\n return true;\n }\n else {\n return false;\n }\n }", "@Test\n public void testIsEmpty() {\n System.out.println(\"isEmpty\");\n instance = new Stack();\n assertTrue(instance.isEmpty());\n instance.push(\"ab\");\n instance.push(\"cd\");\n assertFalse(instance.isEmpty());\n instance.pop();\n instance.pop();\n assertTrue(instance.isEmpty());\n }", "@Override\r\n\tpublic boolean isEmpty() {\r\n\t\treturn topIndex < 0;\r\n\t}", "protected void stackEmptyButton() {\n \tif (stack.empty()) {\n \t\tenter();\n \t}\n \telse {\n \t\tstack.pop();\n \t\tif (stack.empty()) {\n \t\t\tenter();\n \t}\n \t}\n }", "@Test\n public void isEmpty() {\n SimpleStack stack = new DefaultSimpleStack();\n\n // then the stack is empty\n assertTrue(stack.isEmpty());\n }", "public boolean empty() {\n return storeStack.isEmpty();\n }", "public boolean empty() {\n return storeStack.isEmpty();\n }", "public boolean empty() {\n return storeStack.isEmpty();\n }", "@Test\r\n public void testIsEmptyShouldReturnFalseWhenStackNotEmpty() {\r\n stackInstance=new StackUsingLinkedList<Integer>();\r\n stackInstance.push(90);\r\n stackInstance.push(5);\r\n boolean actualOutput=stackInstance.isEmpty();\r\n assertEquals(false,actualOutput);\r\n }", "@Test /*Test 18 - implemented isEmpty() method to NumStack class. Refactored isEmpty() to now \n call the size() method of the Stack object in NumStack to determine if it is empty, rather than \n always returning true.*/\n public void testIsEmpty() {\n assertTrue(\"NumStack object should be empty after creation\", numStackTest.isEmpty());\n }", "public boolean isEmpty() {\n if(this.top== -1) {\n return true;\n }\n return false;\n }", "@Test\n public void isEmptyTest() {\n ResourceStack stack5 = new ResourceStack(1,0,0,0);\n assertFalse(stack5.isEmpty());\n stack5 = new ResourceStack(0,1,0,0);\n assertFalse(stack5.isEmpty());\n stack5 = new ResourceStack(0,0,1,0);\n assertFalse(stack5.isEmpty());\n stack5 = new ResourceStack(0,0,0,1);\n assertFalse(stack5.isEmpty());\n\n stack5 = new ResourceStack(0,0,0,0);\n assertTrue(stack5.isEmpty());\n }", "public boolean isEmpty() {\n return topIndex < 0;\n }", "@Test\n public void testIsEmpty(){\n ms = new MyStack();\n assertTrue(ms.IsEmpty());\n }", "public boolean empty() {\n return push.isEmpty();\n }", "void onStackEmpty();", "boolean isEmpty() \r\n { \r\n //Write your code here\r\n if(top==-1)\r\n return true;\r\n else\r\n return false;\r\n }", "private boolean isEmpty()\r\n\t{\r\n\t\treturn getRoot() == null;\r\n\t}", "public boolean isEmpty()\n\t{ \n\t\treturn (front==-1);\n\t}", "public boolean isEmpty() {\n\t\treturn front == null;\n\t}", "public boolean isCarStackFull() {\n boolean carStackFull = false;\n if(top >= 4) {\n carStackFull = true;\n }\n return carStackFull;\n }", "public boolean isFull() {\n if(this.top==(size - 1)) {\n return true;\n }\n return false;\n }", "public boolean isEmpty() {\r\n\t\t\r\n\t\treturn topNode == null; // Checks if topNode is null;\r\n\t\t\r\n\t}", "public static boolean isEmpty()\n { return currentSize==0; }", "public void testClear() {\n assertEquals(this.stack.size(), 10, 0.01);\n this.stack.clear();\n assertEquals(this.stack.size(), 0, 0.01);\n Exception exception = null;\n try {\n this.empty.pop();\n }\n catch (Exception e) {\n exception = e;\n }\n assertNotNull(exception);\n assertTrue(exception instanceof EmptyStackException);\n }", "boolean isEmpty()\n\t{\n\t\treturn front==-1;\n\t}", "@Test\n void whenPopTillStackEmptyReturnNodeShouldBeFirstNode() {\n\n MyNode<Integer> myFirstNode = new MyNode<>(70);\n MyNode<Integer> mySecondNode = new MyNode<>(30);\n MyNode<Integer> myThirdNode = new MyNode<>(56);\n MyStack myStack = new MyStack();\n myStack.push(myFirstNode);\n myStack.push(mySecondNode);\n myStack.push(myThirdNode);\n boolean isEmpty = myStack.popTillEmpty();\n\n System.out.println(isEmpty);\n boolean result = myStack.head == null && myStack.tail == null;\n }", "public boolean isEmpty() {\n return top == ' ';\n }", "public boolean empty() {\n return stk1.isEmpty() && stk2.isEmpty();\n }", "public boolean isEmpty() {\n\t\treturn heap.size() == 0;\n\t}", "public boolean isEmpty() {\n\t\treturn heap.size() == 0;\n\t}", "public boolean isEmpty() {\n\t\treturn heap.isEmpty();\n\t}", "boolean isEmpty() {\n return (bottom < top.getReference());\n }" ]
[ "0.86205834", "0.86011016", "0.85845524", "0.85611725", "0.85191804", "0.8476551", "0.8437041", "0.84172183", "0.83527434", "0.83170617", "0.8305479", "0.8268317", "0.8267061", "0.8267061", "0.8260317", "0.82591677", "0.82481295", "0.82427764", "0.81997484", "0.81927556", "0.81862485", "0.81627893", "0.81578815", "0.8104424", "0.81029034", "0.80650926", "0.80368584", "0.80208325", "0.80161303", "0.800147", "0.79532325", "0.7927534", "0.7918664", "0.7871917", "0.7860482", "0.7848163", "0.78477806", "0.78468055", "0.7826031", "0.7803545", "0.779017", "0.77875406", "0.7753799", "0.7752462", "0.7748054", "0.774284", "0.7738452", "0.77259517", "0.77046037", "0.76564854", "0.7648036", "0.7645674", "0.76451844", "0.76418334", "0.76418334", "0.76320374", "0.7615071", "0.76031417", "0.7602322", "0.7600073", "0.7575834", "0.7550919", "0.7547868", "0.7544683", "0.7527581", "0.75209713", "0.7486839", "0.74722505", "0.746655", "0.74584174", "0.7427386", "0.7413567", "0.73992616", "0.73845834", "0.73845834", "0.73845834", "0.73781484", "0.7362065", "0.73617697", "0.73151565", "0.7296613", "0.7246557", "0.7196809", "0.7185843", "0.7119175", "0.70555216", "0.70477176", "0.7028578", "0.69754016", "0.6969237", "0.69615173", "0.69608206", "0.6955032", "0.6925138", "0.69165134", "0.68933994", "0.6887648", "0.6885219", "0.6885219", "0.68842924", "0.6877206" ]
0.0
-1
remove and return the top element
public T pop() { StackNode tempNode = peekNode(); if(length > 1) { lastNode = peekNode().getParent(); tempNode.setParent(null); length--; return (T) tempNode.getTData(); } else if(length == 1) { lastNode = new StackNode(); length--; return (T) tempNode.getTData(); } else { throw new IndexOutOfBoundsException("Your stack is empty!"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void removeTop()\n {\n \tif(first!=null)\t\t\t\n \t{\n \t\tfirst=first.next;\n \t\tif(first!=null)\n \t\t\tfirst.prev=null;\n \t}\n }", "protected T removeBeginning() {\r\n\t\tif (!this.isEmpty()) {\r\n\t\t\tSNode<T> startNode = this.getHead().getPrev();\r\n\t\t\tthis.getHead().setPrev(startNode.getPrev());\r\n\t\t\tsize--;\r\n\t\t\treturn startNode.getValue();\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public E removeFirst() {\n return pop();\n }", "private Element popElement() {\r\n return ((Element)this.elements.remove(this.elements.size() - 1));\r\n }", "public T pop() {\r\n\t\tT ele = top.ele;\r\n\t\ttop = top.next;\r\n\t\tsize--;\r\n\t\t\r\n\t\treturn ele;\r\n\t}", "public T removeFirst(){\n\tT ret = _front.getCargo();\n\t_front = _front.getPrev();\n\t_front.setNext(null);\n\t_size--;\n\treturn ret;\n }", "public Card removeTopCard(){\n\t\treturn this.pile.remove(0);\n\t}", "public E removeFirst() {\n if(isEmpty()){\n return null;\n }else{\n return remove(header.getNext());\n }\n }", "public E pop(){\n\t\tif(top == null){\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tE retval = top.element;\n\t\ttop = top.next;\n\t\t\n\t\treturn retval;\n\t}", "public T removeFirst() {\r\n \r\n if (size == 0) {\r\n return null;\r\n }\r\n \r\n T deleted = front.element;\r\n front = front.next;\r\n size--;\r\n \r\n return deleted;\r\n }", "@Override\n public Item removeFirst() {\n nextFirst = moveForward(nextFirst, 1);\n Item output = items[nextFirst];\n items[nextFirst] = null;\n size -= 1;\n return output;\n }", "public int top() {\n return topElem;\n }", "public T removeFirst( ){\r\n\t\t//calls remove onfirst\r\n\t\tT toRemove = getFirst();\r\n\t\treturn remove(toRemove);\r\n\t}", "public T removeFirst() {\n if (size == 0) {\n return null;\n }\n if (size == 1) {\n size--;\n return array[front];\n }\n this.checkReSizeDown();\n size--;\n front++;\n this.updatePointer();\n return array[Math.floorMod(front - 1, array.length)];\n }", "public E removeFirst(){\r\n return null;\r\n }", "public Item removeFirst() {\n if (isEmpty()) {\n throw new NoSuchElementException(\"queue is empty\");\n }\n Item a;\n a = first.item;\n first = first.next;\n if (first == null) {\n last = null;\n }\n else first.prev = null;\n size--;\n return a;\n }", "public Item removeFirst() {\n if (size == 0) {\n return null;\n } else if (size == 1) {\n StuffNode i = sentinel.next;\n sentinel.next = sentinel;\n sentinel.prev = sentinel;\n size -= 1;\n return i.item;\n } else {\n StuffNode i = sentinel.next;\n sentinel.next = i.next;\n i.next.prev = sentinel;\n size -= 1;\n return i.item;\n }\n }", "public T removeFront() {\n\t\tT found = start.value;\n\t\tstart = start.next;\n\t\treturn found;\n\t}", "public E removeFirst() {\n\t\t// Bitte fertig ausprogrammieren:\n\t\treturn null;\n\t}", "public synchronized Object removeFirstElement() {\n return _queue.remove(0);\n }", "public E removeMin() {\n // TODO: YOUR CODE HERE\n E min = getElement(1);\n swap(1, size());\n setElement(size(), null);\n bubbleDown(1);\n size -= 1;\n return min;\n }", "public Object removeFirst() {\r\n Object first = header.next.element;\r\n remove(header.next);\r\n return first;\r\n }", "public Object removeFirst(){\n if (first == null)\n throw new NoSuchElementException();\n Object element = first.data;\n first = first.next;\n return element ;\n }", "public E removeFirst();", "private E removeFirst ()\n {\n Node<E> temp = head;\n if (head != null) {\n head = head.next;\n size--;\n return temp.data;\n }\n else\n return null;\n }", "@Override\r\n\tpublic E removeFirst() {\n\t\treturn null;\r\n\t}", "public E pop(){\r\n\t\tObject temp = peek();\r\n\t\t/**top points to the penultimate element*/\r\n\t\ttop--;\r\n\t\treturn (E)temp;\r\n\t}", "public Item removeFirst() {\n if (!isEmpty()) {\n Item item = first.item;\n first = first.back;\n size--;\n if (size != 0)\n first.front = null;\n return item;\n } else throw new NoSuchElementException(\"?\");\n }", "public Location remove() {\n\t\t//empty set\n\t\tif (head == null){\n\t\t\treturn null;\n\t\t}\n\n\t\t//removes and returns the SquarePosition object from the top of the set\n\t\tLocation removedLocation = head.getElement();\n\t\thead = head.next;\n\t\tsize --;\n\t\treturn removedLocation;\n\t}", "public T pop(){\n\t\tif(start == null)\r\n\t\t\treturn null;\r\n\t\telse{\r\n\t\t\tT toReturn = start.elem;\r\n\t\t\tstart = start.next;\r\n\t\t\treturn toReturn;\r\n\t\t}\t\r\n\t}", "public T removeFirst() {\n if (size == 0) {\n return null;\n }\n nextFirst = plusOne(nextFirst);\n size -= 1;\n T toRemove = items[nextFirst];\n items[nextFirst] = null;\n if (isSparse()) {\n resize(capacity / 2);\n }\n return toRemove;\n }", "public E popTop() {\n // FILL IN\n }", "public Runnable popTop() {\n int[] stamp = new int[1];\n int oldTop = top.get(stamp), newTop = oldTop + 1;\n int oldStamp = stamp[0], newStamp = oldStamp + 1;\n if (bottom <= oldTop) // empty\n return null;\n Runnable r = tasks[oldTop];\n if (top.compareAndSet(oldTop, newTop, oldStamp, newStamp))\n return r;\n return null;\n }", "public T removeFirst()\r\n {\r\n T removedData; // holds data from removed node\r\n\r\n if (numElements == 0)\r\n throw new NoSuchElementException(\r\n \"Remove attempted on empty list\\n\");\r\n removedData = front.data;\r\n front = front.next;\r\n if (numElements == 1)\r\n rear = null;\r\n \r\n numElements--;\r\n return removedData;\r\n }", "void pop() {\n if (s.isEmpty()) {\n System.out.println(\"Stack is empty\");\n return;\n }\n System.out.print(\"Top Most Element Removed: \");\n Integer t = s.pop();\n // minEle must be updated as the curr minEle is being Removed\n if (t < minEle) {\n System.out.println(minEle);\n minEle = 2 * minEle - t;\n } else {\n System.out.println(t);\n }\n }", "Object removeFirst();", "public Team pop()\n { \n \t//get first element\n Team element = first.getElement();\n //update next\n first = first.getNext();\n //decrement total\n total--;\n return element;\n }", "protected Tree remove(){\n if(noItems<=0){\n System.out.println(\"Q Empty. Cant remove\");\n return null;\n }else{\n return array[--noItems];\n }\n }", "public Item removeFirst(){\n\t\tif(isEmpty()){\n\t\t\tthrow new NoSuchElementException(\"Queue underflow\");\n\t\t}else{\n\t\t\t//save item to return\n\t\t\tItem returnItem = first.item;\n\t\t\t//delete first node\n\t\t\tfirst = first.next;\n\t\t\tn--;\n\t\t\tif(isEmpty()){\n\t\t\t\tlast = null; // to avoid loitering\n\t\t\t}else{\n\t\t\t\tfirst.prev = null;\n\t\t\t}\n\t\t\treturn returnItem;\n\t\t}\n\t}", "private Node popNode() {\n\t\treturn open.remove(0);\n\t}", "public Item removeFirst() {\n if (isEmpty()) {\n throw new NoSuchElementException();\n }\n Item item = first.item;\n first = first.next;\n if (first == null) {\n last = null;\n }\n else {\n first.pre = null;\n }\n len--;\n return item;\n }", "public E pollLast() {\n\t\tif (mSize == 0)\n\t\t\treturn null;\n\t\n\t\tE retVal = remove(getNode(size() - 1));\n\n\t\tmSize--;\n\t\tmodCount++;\n\n\t\treturn retVal;\n\t}", "private E remove(){\n E tmp = array[0];\n swap(0,--lastPosition);\n array[lastPosition] = null;\n trickleDown(0);\n array = Arrays.copyOfRange(array,0,array.length);\n return tmp;\n }", "public Object pop()\r\n {\n assert !this.isEmpty();\r\n\t\t\r\n Node oldTop = this.top;\r\n this.top = oldTop.getNext();\r\n oldTop.setNext(null); // enable garbage collection\r\n return oldTop.getItem();\r\n }", "T pop(){\n\tif(m.size() == 0){\n\t throw new NoSuchElementException();\n\t}\n\tT answer = m.remove(0);\n\treturn answer;\n }", "public Item pop() {\n if(isEmpty()) return null;\n Item item = top.data;\n top = top.next;\n size--;\n return item;\n\n }", "public T removeFirst();", "public Node removeFirst() {\r\n\t\treturn removeNode(0);\r\n\t}", "private T pop(Node topNode)\n {\n if (isEmpty())\n {\n return null;\n }\n else // not empty\n {\n T result = (T) topNode.getData();\n first = topNode.getNextNode();\n return result;\n }\n }", "public int topElement() {\n\t\tif(isEmpty()){\n\t\t\tthrow new AssertionError();\n\t\t}\n\t\telse {\n\t\t\treturn heap.get(0).element;\n\t\t\n\t\t}\n\t}", "public E top() {\n return !isEmpty() ? head.item : null;\n }", "public Item removeFirst(){\r\n\t\tif (isEmpty()) throw new NoSuchElementException(\"Queue underflow\");\r\n\t\tItem tmp = list[first];\r\n\t\tlist[first++] = null;\r\n\t\tn--;\r\n\t\tprior=first-1;\r\n\t\tif(first==list.length){first=0;}\r\n\t\tif (n > 0 && n == list.length/4) resize(list.length/2); \r\n\t\treturn tmp;}", "public T pop()\n {\n if (ll.getSize()==0){\n return null;\n }else {\n T temp = ll.getData(ll.getSize() - 1);\n ll.remove(ll.getSize() - 1);\n\n return temp;\n }\n }", "public Item removeFirst() {\n\t\tif (count == 0) throw new NoSuchElementException();\n\t\tcount--;\n\t\tItem target = first.item;\n\t\tNode nextNode = first.next;\n\t\tfirst = null;\n\t\tif (count > 0) {\n\t\t\tfirst = nextNode;\n\t\t} \n\t\treturn target;\n\t}", "public Item removeFirst() {\n\t\tif (first == null) {\n\t\t\tthrow new java.util.NoSuchElementException();\n\t\t}\n\t\tItem temp = first.item;\n\t\tif (first == last) {\n\t\t\tlast = null;\n\t\t\tfirst = null;\n\t\t} else {\n\t\t\tfirst = first.next;\n\t\t\tfirst.previous = null;\n\t\t}\n\t\tsize--;\n\t\treturn temp;\n\t}", "public E removeFront() {\n\t\tif (count == 0) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\tE temp = head.value;\n\t\t\thead = head.next;\n\t\t\tcount--;\n\t\t\treturn temp;\n\t\t}\n\t}", "public E removeFirst() { // removes and returns the first element\n // TODO\n if (isEmpty( )) return null;\n Node<E> head = tail.getNext();\n if (head == tail) tail = null;\n else tail.setNext(head.getNext( ));\n size--;\n return head.getElement( );\n }", "public Object removeLast() {\r\n Object last = header.previous.element;\r\n remove(header.previous);\r\n return last;\r\n }", "public E removeFirst() {\n\n\t\tif (mSize == 0)\n\t\t\tthrow new NoSuchElementException();\n\n\t\tE retVal = remove(mHead.next);\n\n\t\tmSize--;\n\t\tmodCount++;\n\n\t\treturn retVal;\n\t}", "public T pop()\n\t{\n\t\treturn list.removeFirst();\n\t}", "public L removeFromFront(){\n\t\tif(isEmpty())//throw exception if List is empty\n\t\tthrow new IllegalStateException(\"List \" + name + \" is empty\");\n\n\t\tL removedItem = (L) firstNode.data; //retrieve data being removed\n\n\t\t//update references firstNode and lastNode\n\t\tif(firstNode == lastNode)\n\t\tfirstNode = lastNode = null;\n\t\telse\n\t\tfirstNode = firstNode.getNext();\n\n\t\treturn removedItem; //return removed node data\n\t}", "public T extractMin() {\n\t\tif (heapSize > 0) {\n\t\t\tSystem.out.print(\"LIST: \" );\n\t\t\tprintList();\n\t\t\tT retEle = lstEle.get(0);\n\t\t\tSystem.out.println(\"\\tRemoving : \" +retEle);\n\t\t\tlstEle.set(0, lstEle.get(heapSize - 1));\n\t\t\tlstEle.set(heapSize - 1, null);\n\t\t\theapSize--;\n\t\t\theapify();\n\t\t\tSystem.out.print(\"After HEAPIFY : \");\n\t\t\tprintList();\n\t\t\treturn retEle;\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "protected int removeLast() {\n if (size > 0) {\n return heap[size--];\n }\n return null;\n }", "public Object pop(){\n if(first == null){\n throw new NoSuchElementException();\n }\n else\n {\n Object element = first.data;\n first = first.next;\n return element;\n }\n }", "public Item removeFirst() {\n if (isEmpty()) {\n throw new NoSuchElementException();\n }\n\n Node oldFirst = this.first;\n this.first = oldFirst.next;\n this.size--;\n\n if (this.size != 0) {\n this.first.prev = null;\n } else {\n this.last = null;\n }\n\n return oldFirst.item;\n }", "public int top() { return 0; }", "public final void removeFirst() {\n this.size--;\n setFirst((Node) ((Node) get()).get());\n }", "public E removeLast() {\n\t\t// low-level methods should be efficient - don't call other rmv()\n\t\tif (mSize == 0)\n\t\t\tthrow new NoSuchElementException();\n\n\t\tE retVal = remove(getNode(size() - 1));\n\n\t\tmSize--;\n\t\tmodCount++;\n\n\t\treturn retVal;\n\t}", "public int top() {\n \treturn list.get(list.size()-1);\n }", "@Override\n public T removeFirst() {\n if (size == 0) {\n return null;\n }\n\n int position = plusOne(nextFirst);\n T itemToReturn = array[position];\n array[position] = null;\n nextFirst = position;\n size -= 1;\n\n if ((double)size / array.length < 0.25 && array.length >= 16) {\n resize(array.length / 2);\n }\n return itemToReturn;\n }", "public T removeFirst() \r\n {\r\n if (isEmpty()) throw new NoSuchElementException();\r\n Node<T> currFirst = sentinel.next;\r\n Node<T> toBeFirst = currFirst.next;\r\n T currFirstVal = currFirst.getValue();\r\n toBeFirst.prev = sentinel;\r\n sentinel.next = toBeFirst;\r\n currFirst = null;\r\n size--;\r\n return currFirstVal;\r\n }", "public T popFront() {\n\t\tif(tamanio==0)\n\t\t\treturn null;\n\t\tNodo<T> aux= inicio.getSiguiente();\n\t\tT dato = inicio.getDato();\n\t\tinicio=null;\n\t\tinicio=aux;\n\t\ttamanio--;\n\t\treturn dato;\n\t}", "public Item removeFirst() {\n if (isEmpty())\n throw new NoSuchElementException();\n Item item = first.item;\n first = first.next;\n if (first != null)\n first.prev = null;\n else\n last = first;\n size--;\n return item;\n }", "public T pop() {\n\t\tT value = null;\n\t\tif (!isEmpty()) {\n\t\t\ttop = top.next;\n\t\t\tvalue = top.value;\n\t\t}\n\t\treturn value; // returning popped value\n\t}", "public int removeFirstNode() {\n\t\tint tmp = getFirstElement();\n\t\thead = head.next;\n\t\treturn tmp;\n\t}", "public T removeFirst() {\n return remove(sentinel.next);\n }", "protected int removeFirst() throws Exception {\n if (size > 0) {\n int temp = heap[1];\n heap[1] = heap[size];\n heap[size] = 0;\n size--;\n return temp;\n } else {\n throw new Exception(\"No Item in the heap\");\n }\n }", "public E removeFront() {\r\n if (elem[front] == null) {\r\n throw new NoSuchElementException();\r\n } else {\r\n E temp = elem[front];\r\n elem[front] = null;\r\n front++;\r\n return temp;\r\n }\r\n }", "T removeFromTail() {\n if (this.size() == 0) {\n throw new RuntimeException(\"Cannot remove from an empty list\");\n }\n return header.removeFromTail();\n }", "public TypeHere removeLast() {\n TypeHere x = getLast();\n items[size - 1] = null;\n size -= 1; \n return x;\n }", "public E remove(){\r\n if(isEmpty())\r\n return null;\r\n \r\n //since the array is ordered, the highest priority will always be at the end of the queue\r\n //--currentSize will find the last index (highest priority) and remove it\r\n return queue[--currentSize];\r\n }", "public Item removeFirst(){\n return this.doublyLinkedList.removeFirst();\n }", "T pop() {\n return contents.removeFromHead();\n }", "E top();", "public Item removeFirst() {\n if (this.isEmpty())\n throw new java.util.NoSuchElementException();\n\n Item ret = this.first.item;\n\n this.first = this.first.next;\n if (this.first != null)\n this.first.prev = null;\n else\n this.last = null;\n --this.n;\n\n return ret;\n }", "public Item removeFirst() {\n if (first == null)\n throw new NoSuchElementException();\n \n final Item element = first.item;\n final Node<Item> next = first.next;\n first.item = null;\n first.next = null; // help GC\n first = next;\n if (next == null)\n last = null;\n else\n next.prev = null;\n size--;\n \n return element;\n }", "Node removeFirst() {\n\t\tNode tmp = head;\n\t\thead = head.next;\n\t\treturn tmp;\n\t}", "public K pop() {\n\t\tK data = null;\r\n\t\tif(top!=null){\r\n\t\t\tdata = top.data;\r\n\t\t\ttop = top.next;\r\n\t\t\tsize--;\r\n\t\t}\r\n\t\treturn data;\r\n\t}", "public Object removeFirst() {\n if(head == null) return null;\n if(head.getNext() == null) {\n Object temp = head.getElement();\n head = tail = null;\n return temp;\n }\n\n Object temp = head.getElement();\n Node n = head.getNext();\n n.setPrevious(null);\n head = n;\n\n return temp;\n }", "public Item removeFirst() {\n\t\tif (isEmpty()) {\n\t\t\tthrow new NoSuchElementException();\n\t\t}\n\t\tNode<Item> tmp = head;\n\t\thead = head.next;\n\t\tif (head == null) {\n\t\t\ttail = null;\n\t\t} else {\n\t\t\thead.prev = null;\n\t\t}\n\t\tN--;\n\t\ttmp.next = null;\n\t\treturn tmp.item;\n\t}", "public int remove() {\n int result = peek();\n\n // move rightmost leaf to become new root\n elementData[1] = elementData[size];\n size--;\n \n // \"bubble down\" root as necessary to fix ordering\n int index = 1;\n boolean found = false; // have we found the proper place yet?\n while (!found && hasLeftChild(index)) {\n int left = leftChild(index);\n int right = rightChild(index);\n int child = left;\n if (hasRightChild(index) &&\n elementData[right] < elementData[left]) {\n child = right;\n }\n \n if (elementData[index] > elementData[child]) {\n swap(elementData, index, child);\n index = child;\n } else {\n found = true; // found proper location; stop the loop\n }\n }\n \n return result;\n }", "public T removeFromFront() {\n DoublyLinkedListNode<T> temp = head;\n if (size == 0) {\n throw new NoSuchElementException(\"The list is empty, so there\"\n + \" is nothing to get.\");\n } else {\n if (head == tail) {\n head = tail;\n tail = null;\n return temp.getData();\n } else {\n head = head.getNext();\n head.setPrevious(null);\n size -= 1;\n return temp.getData();\n }\n }\n\n\n }", "public Node remove() {\n Node result = peek();\n\n //new root is last leaf\n heap[1] = heap[size];\n heap[size] = null;\n size--;\n\n //reconstruct heap\n shiftDown();\n\n return result;\n }", "T removeFromHead() {\n if (this.size() == 0) {\n throw new RuntimeException(\"Cannot remove from an empty list\");\n }\n return header.removeFromHead();\n }", "@Override\n public T remove() {\n //make sure there is something in the set\n if (first == null)\n return null;\n //make a reference to the data in the first node, then\n //update the reference to the second node\n T val = first.value;\n first = first.next;\n //return the data\n numItems--;\n return val;\n }", "public Package remove() {\r\n\t\tif (first == null)\r\n\t\t\treturn null;\r\n\t\tcount--;\r\n\t\treturn first.next;\r\n\t}", "@Override\n public E deleteMin()\n {\n return list.removeFirst();\n }", "@Override\n public T remove() {\n if(numItems == 0)\n return null;\n return this.arr[--numItems];\n }", "public T pop() {\n\t\tif (isEmpty()) {\n\t\t\tthrow new EmptyStackException();\n\t\t}\n\t\t//remove top element from stack\n\t\t//and \"clear to let GC do its work\"\n\t\treturn elements.remove(elements.size() - 1);\n\t}", "public int pop() {\n int res= q1.remove();\n if (!q1.isEmpty())\n top = q1.peek();\n return res;\n }", "public Object pop() {\n\t\tObject lastElement = peek();\n\t\t\n\t\tint indexOfLastElement = collection.size() - 1;\n\t\tcollection.remove(indexOfLastElement);\n\t\t\n\t\treturn lastElement;\n\t}" ]
[ "0.7545013", "0.7349618", "0.7335131", "0.7292299", "0.72124255", "0.7165298", "0.7144624", "0.7107783", "0.709278", "0.70496726", "0.70044804", "0.69877774", "0.6984144", "0.6933679", "0.6923668", "0.69235694", "0.6923484", "0.6919333", "0.69118243", "0.691016", "0.68985534", "0.6895356", "0.68926036", "0.68840647", "0.68689656", "0.6864778", "0.6861652", "0.68432236", "0.6839539", "0.6833118", "0.683183", "0.6830448", "0.6825092", "0.68103385", "0.6805481", "0.68001896", "0.6797627", "0.67947936", "0.6793492", "0.67913634", "0.6790587", "0.67758065", "0.6772476", "0.67717123", "0.6770306", "0.6768684", "0.6762137", "0.67507607", "0.67474985", "0.6737708", "0.6735743", "0.6734971", "0.67271674", "0.6714307", "0.6712799", "0.6697003", "0.6694805", "0.6689151", "0.66874087", "0.6686688", "0.66822034", "0.6668799", "0.66687495", "0.6664912", "0.66586894", "0.66504145", "0.6648495", "0.6642052", "0.66389734", "0.66287893", "0.66249496", "0.662459", "0.6622418", "0.66206354", "0.6615034", "0.6614395", "0.66140836", "0.6612449", "0.66090155", "0.6602656", "0.6601265", "0.66011685", "0.65989965", "0.6592763", "0.6589897", "0.6574101", "0.65737987", "0.65708065", "0.6570768", "0.6569219", "0.6568666", "0.65675575", "0.65662664", "0.6564842", "0.65639484", "0.6560452", "0.655904", "0.6553926", "0.65433156", "0.6542588", "0.6542112" ]
0.0
-1
look at the top node without removing
public StackNode peekNode() { return lastNode; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Node top() {\r\n\t\treturn start;\r\n\t}", "public Node<T> getTopNode() {\n\t\treturn topNode;\n\t}", "private void TopView(NodeTopView root) { \n\t\t\tclass QueueObj { \n\t\t\t\tNodeTopView NodeTopView; \n\t\t\t\tint hd; \n\n\t\t\t\tQueueObj(NodeTopView NodeTopView, int hd) { \n\t\t\t\t\tthis.NodeTopView = NodeTopView; \n\t\t\t\t\tthis.hd = hd; \n\t\t\t\t} \n\t\t\t} \n\t\t\tQueue<QueueObj> q = new LinkedList<QueueObj>(); \n\t\t\tMap<Integer, NodeTopView> topViewMap = new TreeMap<Integer, NodeTopView>(); \n\n\t\t\tif (root == null) { \n\t\t\t\treturn; \n\t\t\t} else { \n\t\t\t\tq.add(new QueueObj(root, 0)); \n\t\t\t} \n\n\t\t\tSystem.out.println(\"The top view of the tree is : \"); \n\t\t\t\n\t\t\t// count function returns 1 if the container \n\t\t\t// contains an element whose key is equivalent \n\t\t\t// to hd, or returns zero otherwise. \n\t\t\twhile (!q.isEmpty()) { \n\t\t\t\tQueueObj tmpNodeTopView = q.poll(); \n\t\t\t\tif (!topViewMap.containsKey(tmpNodeTopView.hd)) { \n\t\t\t\t\ttopViewMap.put(tmpNodeTopView.hd, tmpNodeTopView.NodeTopView); \n\t\t\t\t} \n\n\t\t\t\tif (tmpNodeTopView.NodeTopView.left != null) { \n\t\t\t\t\tq.add(new QueueObj(tmpNodeTopView.NodeTopView.left, tmpNodeTopView.hd - 1)); \n\t\t\t\t} \n\t\t\t\tif (tmpNodeTopView.NodeTopView.right != null) { \n\t\t\t\t\tq.add(new QueueObj(tmpNodeTopView.NodeTopView.right, tmpNodeTopView.hd + 1)); \n\t\t\t\t} \n\n\t\t\t} \n\t\t\tfor (Entry<Integer, NodeTopView> entry : topViewMap.entrySet()) { \n\t\t\t\tSystem.out.print(entry.getValue().data + \" \"); \n\t\t\t} \n\t\t}", "public int top() { return 0; }", "public abstract Object top();", "E top();", "public int top() {\n return topElem;\n }", "void removeTop()\n {\n \tif(first!=null)\t\t\t\n \t{\n \t\tfirst=first.next;\n \t\tif(first!=null)\n \t\t\tfirst.prev=null;\n \t}\n }", "public E top() {\n return !isEmpty() ? head.item : null;\n }", "public Node setTopNode(Node node);", "public T peek() {\r\n\t\tT ele = top.ele;\r\n\t\treturn ele;\r\n\t}", "public int top();", "Node<UnderlyingData> getTopLineNode();", "public T getTop( );", "public E top() {\n return head.prev.data;\n }", "static void topView( Node root) \n{ \n\t// Base case \n\tif (root == null) { \n\t\treturn; \n\t} \n\n\t// Take a temporary node \n\tNode temp = null; \n\n\t// Queue to do BFS \n\tQueue<Pair > q = new LinkedList<Pair>(); \n\n\t// map to store node at each vartical distance \n\tMap<Integer, Integer> mp = new TreeMap<Integer, Integer>(); \n\n\tq.add(new Pair( root, 0 )); \n\n\t// BFS \n\twhile (q.size()>0) { \n\n\t\ttemp = q.peek().first; \n\t\tint d = q.peek().second; \n\t\tq.remove(); \n\n\t\t// If any node is not at that vertical distance \n\t\t// just insert that node in map and print it \n\t\tif (mp.get(d) == null) {mp.put(d, temp.data); \n\t\t} \n\n\t\t// Continue for left node \n\t\tif (temp.left!=null) { \n\t\t\tq.add(new Pair( temp.left, d - 1 )); \n\t\t} \n\n\t\t// Continue for right node \n\t\tif (temp.right!=null) { \n\t\t\tq.add(new Pair( temp.right, d + 1 )); \n\t\t} \n\t} \n\tfor(Integer data:mp.values()){ \n\tSystem.out.print( data + \" \"); \n\t} \n}", "public E popTop() {\n // FILL IN\n }", "HNode getFirstChild();", "public T top();", "private T pop(Node topNode)\n {\n if (isEmpty())\n {\n return null;\n }\n else // not empty\n {\n T result = (T) topNode.getData();\n first = topNode.getNextNode();\n return result;\n }\n }", "public E peek(){\n\t\treturn top.element;\n\t}", "public int top() {\r\n return top;\r\n }", "public int top() {\r\n return top;\r\n }", "public int topElement() {\n\t\tif(isEmpty()){\n\t\t\tthrow new AssertionError();\n\t\t}\n\t\telse {\n\t\t\treturn heap.get(0).element;\n\t\t\n\t\t}\n\t}", "int top();", "public int top() {\n\t return q.peek();\n\t }", "private ProblemModel findCheapestNode(){\n\t\tProblemModel ret = unvisitedPM.peek();\n\t\t\n\t\tfor(ProblemModel p : unvisitedPM){ \n\t\t\t//f(s) = depth + cost to make this move\n\t\t\tif(p.getCost() + p.getDepth() <= ret.getCost() + ret.getDepth()) ret = p;\n\t\t}\n\t\tunvisitedPM.remove(ret);\n\t\treturn ret;\n\t}", "public E top()\n\tthrows EmptyStackException;", "Location getTop() {\n // -\n if(!isEmpty())\n return top.getLocation();\n return null;\n }", "ElementNode gethead(){\r\n\t\t\treturn this.head;\r\n\t\t}", "private Node popNode() {\n\t\treturn open.remove(0);\n\t}", "public Node peek() {\n \t\t// TODO Complete this method!\n \t\treturn getNode(1);\n \t}", "public T top() {\n \treturn stack.get(stack.size() - 1);\n }", "public Object peek()\r\n {\n assert !this.isEmpty();\r\n return this.top.getItem();\r\n }", "protected T removeBeginning() {\r\n\t\tif (!this.isEmpty()) {\r\n\t\t\tSNode<T> startNode = this.getHead().getPrev();\r\n\t\t\tthis.getHead().setPrev(startNode.getPrev());\r\n\t\t\tsize--;\r\n\t\t\treturn startNode.getValue();\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public E peek(){\r\n Node<E> curr = top;\r\n return (E)curr.getData();\r\n \r\n }", "private Node locatePrevNode(K key) { \n\t\tNode p = null; \n\t\tNode current = first; \n\t\twhile (current != null && current.getData().getKey().compareTo(key) < 0) {\n\t\t\tp = current; \n\t\t\tcurrent = current.getNext(); \n\t\t}\n\t\treturn p; \n\t}", "public int getTop() {\n\t\treturn this.top;\n\t}", "public Integer peek() {\n if (hasTop)\n return top;\n top = it.next();\n hasTop = true;\n return top;\n }", "public E pop(){\n\t\tif(top == null){\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tE retval = top.element;\n\t\ttop = top.next;\n\t\t\n\t\treturn retval;\n\t}", "public int top() {\n \treturn list.get(list.size()-1);\n }", "public int top() {\n return (int) one.peek();\n \n }", "public int getTop() {\n\treturn top;\n }", "public int top() {\n return list.peek();\n }", "@Override\n\tpublic T top()\n\t{\n if(list.size()==0)\n {\n throw new IllegalStateException(\"Stack is empty\");\n }\n return list.get(getSize()-1);\n\t}", "public int top() {\n return One.peek();\n }", "public int top() {\n return q.peek();\n }", "public Node getPrev() {\n return null;\n }", "public int top() {\n return top;\n }", "public Node getFirst() {\r\n\t\treturn getNode(1);\r\n\t}", "public void printTopView() {\r\n\t\tfinal ArrayList<Integer> nodeDataList = new ArrayList<>();\r\n\r\n\t\tgetLeftChildren(rootNode.left, nodeDataList);\r\n\t\tnodeDataList.add(rootNode.data);\r\n\t\tgetRightChildren(rootNode.right, nodeDataList);\r\n\r\n\t\tSystem.out.println(\"Printing Top View\");\r\n\r\n\t\tnodeDataList.forEach(nodeData -> {\r\n\t\t\tSystem.out.print(nodeData + \" \");\r\n\t\t});\r\n\t}", "void pop() {\n // -\n top = top.getNextNode();\n }", "public E top()\n {\n E topVal = stack.peekFirst();\n return topVal;\n }", "public Node<T> getFirst() \r\n {\r\n if (isEmpty()) return sentinel;\r\n return sentinel.next;\r\n }", "public Node<E> getFirst(){\n Node<E> toReturn = head.getNext();\n return toReturn == tail ? null: toReturn;\n }", "public int top() {\n if(!q1.isEmpty())return q1.peek();\n else return -1;\n }", "public T removeFront() {\n\t\tT found = start.value;\n\t\tstart = start.next;\n\t\treturn found;\n\t}", "@Override\n public T peekFront() {\n if (isEmpty()) {\n return null;\n }\n return head.peekFront();\n }", "public GenericStack peek(){\n // checks if stack is empty\n if(top == null){\n System.out.println(\"Stack is empty.\");\n return null;\n //System.exit(0);\n }\n return top;\n }", "Node firstNode() {\r\n\t\treturn first.next.n;\r\n\t}", "private Position<E> firstLeaf(){\n\t\tPosition<E> aux=null;\n\t\tif(tree.isEmpty())\n\t\t\treturn aux;\n\t\telse\n\t\t\taux=tree.root();\n\t\twhile(this.tree.hasLeft(aux)){\n\t\t\taux=tree.left(aux);\n\t\t}\n\t\treturn aux;\n\t}", "public Node getHeadNode();", "public int top() {\n\t\treturn stack.peek();\n \n }", "void peek() {\n if (s.isEmpty()) {\n System.out.println(\"Stack is empty\");\n return;\n }\n Integer t = s.peek();\n System.out.print(\"topEle is: \");\n // If t < minEle that means minEle stores value of t\n if (t < minEle) {\n System.out.println(minEle);\n } else {\n System.out.println(t);\n }\n }", "public Object pop()\r\n {\n assert !this.isEmpty();\r\n\t\t\r\n Node oldTop = this.top;\r\n this.top = oldTop.getNext();\r\n oldTop.setNext(null); // enable garbage collection\r\n return oldTop.getItem();\r\n }", "public int top() {\n return objects.peek();\n }", "@Override\r\n\t\tpublic Node getFirstChild()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "public E first() {\n if (this.isEmpty()) return null;\r\n return this.head.getElement();\r\n }", "public Node getFirstNode() {\n\t return firstNode;\r\n\t }", "public void setTopNode(Node<T> topNode) {\n\t\tthis.topNode = topNode;\n\t}", "public Iteratable<IRNode> topDown(IRNode subtree);", "@Override\n\tpublic Node removeNode() {\n\t\tif(isEmpty())\n\t\t\treturn null;\n\t\t// BreadthFirstSearch using a queue, first in first out principle\n\t\treturn frontier.removeFirst();\n\t}", "public Node getFront(){\n return this.front;\n }", "public int getTop() {\n return top;\n }", "public Node<T> getFirst() {\r\n\t\treturn first;\r\n\t}", "int peek() \r\n {\n if(top <0){\r\n System.out.println(\"Stack Empty\");\r\n return -1;\r\n }\r\n return a[top];\r\n }", "Node getFirst() {\n return this.first;\n }", "public int peekFront();", "public Runnable popTop() {\n int[] stamp = new int[1];\n int oldTop = top.get(stamp), newTop = oldTop + 1;\n int oldStamp = stamp[0], newStamp = oldStamp + 1;\n if (bottom <= oldTop) // empty\n return null;\n Runnable r = tasks[oldTop];\n if (top.compareAndSet(oldTop, newTop, oldStamp, newStamp))\n return r;\n return null;\n }", "public node getFirst() {\n\t\treturn head;\n\t\t//OR\n\t\t//getAt(0);\n\t}", "public OSMNode firstNode() {\n return nodes.get(0);\n }", "public int top() {\n return q1.peek();\n }", "public E top() {\n\t\tif (this.top == null) {\n\t\t\tthrow new EmptyStackException( );\n\t\t}\n\t\treturn this.top.data;\n\t\t\t\n\t}", "int size() {\r\n\t\treturn top; \r\n\t}", "@Override\n\tpublic Node getPreviousChild(Node existing) {\n\t\treturn null;\n\t}", "public boolean isEmpty(){\n \treturn top==-1;\n\t}", "public int removeFirstNode() {\n\t\tint tmp = getFirstElement();\n\t\thead = head.next;\n\t\treturn tmp;\n\t}", "static void topView(TreeNode root) \n\t{ \n\t fillMap(root, 0, 0); \n\t \n\t for (Map.Entry<Integer, \n\t \t\tPairNode> entry : m.entrySet()) \n\t { \n\t System.out.print(entry.getValue().first + \" \"); \n\t } \n\t}", "public int top() {\n return q1.getFirst();\n }", "public int top() {\r\n int size = this.queueMain.size();\r\n if(size == 1) return this.queueMain.element();\r\n // 转移n-1\r\n while(size != 1){\r\n this.queueHelp.offer(this.queueMain.poll());\r\n size--;\r\n }\r\n // 然后取出第n个元素\r\n int res = this.queueHelp.element();\r\n // 转移到辅助队列\r\n this.queueHelp.offer(this.queueMain.poll());\r\n // 再调换\r\n Queue<Integer> temp = this.queueMain;\r\n this.queueMain = this.queueHelp;\r\n this.queueHelp = temp;\r\n\r\n return res;\r\n }", "private E removeFirst ()\n {\n Node<E> temp = head;\n if (head != null) {\n head = head.next;\n size--;\n return temp.data;\n }\n else\n return null;\n }", "public void removeAtFront(){\r\n\t head = head.getLink();\r\n\t cursor = head; \r\n\t precursor = null; \r\n\t \r\n\t manyNodes--;\r\n }", "public int top() {\n return top.value;\n }", "public Dog findOldest() {\r\n\t\tif (root == null)\r\n\t\t\treturn null;\r\n\t\t\r\n\t\treturn root.findOldest();\r\n\t}", "protected T nextUnvisited() {\r\n\t\tfor (T node: getNodes()) {\r\n\t\t\tif (!visited.contains(node)) {\r\n\t\t\t\treturn node;\r\n\t\t\t}\r\n\t\t} \r\n\t\t\treturn null;\r\n\t}", "public int viewTop(){\r\n\t\treturn queue[0];\r\n\t}", "public L removeFromFront(){\n\t\tif(isEmpty())//throw exception if List is empty\n\t\tthrow new IllegalStateException(\"List \" + name + \" is empty\");\n\n\t\tL removedItem = (L) firstNode.data; //retrieve data being removed\n\n\t\t//update references firstNode and lastNode\n\t\tif(firstNode == lastNode)\n\t\tfirstNode = lastNode = null;\n\t\telse\n\t\tfirstNode = firstNode.getNext();\n\n\t\treturn removedItem; //return removed node data\n\t}", "public Item peek() throws NoSuchElementException\r\n {\r\n if (size == 0)\r\n throw new NoSuchElementException();\r\n return heap[1]; // root siempre esta en la posicion 1\r\n }", "HNode getPreviousSibling();", "public T pop(){\n\t\tif(start == null)\r\n\t\t\treturn null;\r\n\t\telse{\r\n\t\t\tT toReturn = start.elem;\r\n\t\t\tstart = start.next;\r\n\t\t\treturn toReturn;\r\n\t\t}\t\r\n\t}", "public K topValue() {\n\t\tif(top!=null)\r\n\t\t\treturn top.data;\r\n\t\t\r\n\t\treturn null;\r\n\t}" ]
[ "0.72753", "0.6902521", "0.6855259", "0.68328243", "0.6794497", "0.677893", "0.6734927", "0.66963315", "0.6685683", "0.66590977", "0.65896344", "0.6578328", "0.6546299", "0.6531895", "0.6497644", "0.64687246", "0.64548624", "0.6426659", "0.639707", "0.6382668", "0.63713944", "0.6363724", "0.6363724", "0.6348071", "0.63424987", "0.63424385", "0.63039505", "0.63028276", "0.63026047", "0.6266719", "0.62587607", "0.6249903", "0.6248349", "0.62377167", "0.62294215", "0.62197745", "0.6216716", "0.62007624", "0.61900425", "0.61857283", "0.61825067", "0.6179292", "0.6178208", "0.617608", "0.61743724", "0.6170551", "0.6166113", "0.6158114", "0.6149605", "0.6144737", "0.6131248", "0.61275756", "0.61264116", "0.61225253", "0.6111365", "0.60986286", "0.6095861", "0.60940707", "0.60870326", "0.6085277", "0.6073752", "0.60724354", "0.6064126", "0.60639477", "0.6062936", "0.60608745", "0.6054872", "0.60508853", "0.60452116", "0.6044628", "0.6035014", "0.60241395", "0.6012971", "0.60067534", "0.6001601", "0.59961534", "0.59924275", "0.5980585", "0.59707534", "0.59535015", "0.5952652", "0.5950525", "0.59474915", "0.5946357", "0.594472", "0.59441423", "0.5941197", "0.59388053", "0.5935654", "0.5934053", "0.5931307", "0.5927514", "0.5925328", "0.59125745", "0.59028333", "0.5900561", "0.589952", "0.58987474", "0.58969754", "0.58963823", "0.588316" ]
0.0
-1
look at the top element without removing
public T peek() { return (T) peekNode().getTData(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int top() {\n return topElem;\n }", "public int top() { return 0; }", "public int topElement() {\n\t\tif(isEmpty()){\n\t\t\tthrow new AssertionError();\n\t\t}\n\t\telse {\n\t\t\treturn heap.get(0).element;\n\t\t\n\t\t}\n\t}", "public E peek(){\n\t\treturn top.element;\n\t}", "void removeTop()\n {\n \tif(first!=null)\t\t\t\n \t{\n \t\tfirst=first.next;\n \t\tif(first!=null)\n \t\t\tfirst.prev=null;\n \t}\n }", "E top();", "public T peek() {\r\n\t\tT ele = top.ele;\r\n\t\treturn ele;\r\n\t}", "public E popTop() {\n // FILL IN\n }", "public abstract Object top();", "public T getTop( );", "public int top();", "public E top() {\n return !isEmpty() ? head.item : null;\n }", "int size() {\r\n\t\treturn top; \r\n\t}", "public Node top() {\r\n\t\treturn start;\r\n\t}", "public int top() {\r\n return top;\r\n }", "public int top() {\r\n return top;\r\n }", "public int top() {\n\t return q.peek();\n\t }", "@DISPID(-2147417103)\n @PropGet\n int offsetTop();", "public int getTop() {\n return position[0] - (size - 1) / 2;\n }", "private void findPrev() {\n \tthis.find(false);\n }", "public int getTop() {\n\treturn top;\n }", "public int size()\r\n {\r\n return top;\r\n }", "public int top() {\n \treturn list.get(list.size()-1);\n }", "Location getTop() {\n // -\n if(!isEmpty())\n return top.getLocation();\n return null;\n }", "public int top() {\n return (int) one.peek();\n \n }", "public Integer peek() {\n if (hasTop)\n return top;\n top = it.next();\n hasTop = true;\n return top;\n }", "public T top();", "public int top() {\n return One.peek();\n }", "public E top()\n\tthrows EmptyStackException;", "public int getTop() {\n\t\treturn this.top;\n\t}", "public int top() {\n return list.peek();\n }", "void peek() {\n if (s.isEmpty()) {\n System.out.println(\"Stack is empty\");\n return;\n }\n Integer t = s.peek();\n System.out.print(\"topEle is: \");\n // If t < minEle that means minEle stores value of t\n if (t < minEle) {\n System.out.println(minEle);\n } else {\n System.out.println(t);\n }\n }", "@Override\n\tpublic int size() {\n\t\treturn top;\n\t}", "public Object peek()\r\n {\n assert !this.isEmpty();\r\n return this.top.getItem();\r\n }", "@Override\n\tpublic T top()\n\t{\n if(list.size()==0)\n {\n throw new IllegalStateException(\"Stack is empty\");\n }\n return list.get(getSize()-1);\n\t}", "public E top() {\n return head.prev.data;\n }", "private Element peekElement() {\r\n return ((Element)this.elements.get(this.elements.size() - 1));\r\n }", "public int top() {\n return q.peek();\n }", "public float getTop() {\n return internalGroup.getTop();\n }", "public int top() {\n return top;\n }", "public int getTop() {\n return top;\n }", "public T peek() {\n\t\tif (isEmpty()) {\n\t\t\tthrow new EmptyStackException();\n\t\t}\n\t\t//returns the top element.\n\t\treturn elements.get(elements.size()-1);\n\t}", "int top();", "public int top() {\r\n int size = this.queueMain.size();\r\n if(size == 1) return this.queueMain.element();\r\n // 转移n-1\r\n while(size != 1){\r\n this.queueHelp.offer(this.queueMain.poll());\r\n size--;\r\n }\r\n // 然后取出第n个元素\r\n int res = this.queueHelp.element();\r\n // 转移到辅助队列\r\n this.queueHelp.offer(this.queueMain.poll());\r\n // 再调换\r\n Queue<Integer> temp = this.queueMain;\r\n this.queueMain = this.queueHelp;\r\n this.queueHelp = temp;\r\n\r\n return res;\r\n }", "public int top() {\n return objects.peek();\n }", "@Test\r\npublic void testTop()\r\n{\n\tassertEquals(null,myStack.top());\r\n\r\n\tassertEquals(true, myStack.push(new Element(2,\"Basel\")));\t\r\n\tassertEquals(true, myStack.push(new Element(4,\"Wil\")));\t\r\n\tassertEquals(true, myStack.push(new Element(27,\"Chur\")));\r\n\tassertEquals(27,myStack.top().getId());\r\n\tassertEquals(27,myStack.pop().getId());\r\n\tassertEquals(4,myStack.top().getId());\r\n\tassertEquals(4,myStack.pop().getId());\r\n\tassertEquals(2,myStack.pop().getId());\r\n\t\r\n\t// Stack leer\r\n\tassertEquals(null,myStack.top());\r\n\r\n}", "public int viewTop(){\r\n\t\treturn queue[0];\r\n\t}", "private int indexOfTop(int stackNum) {\n\t\tint offset = stackNum * stackCapacity;\r\n\t\tint size = sizes[stackNum];\r\n\t\treturn offset+size-1;\r\n\t}", "Layer getTopMostVisible();", "public T top() {\n \treturn stack.get(stack.size() - 1);\n }", "public int top() {\n if(!q1.isEmpty())return q1.peek();\n else return -1;\n }", "public E pop(){\n\t\tif(top == null){\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tE retval = top.element;\n\t\ttop = top.next;\n\t\t\n\t\treturn retval;\n\t}", "protected abstract String getTopElementDesc();", "void pop() {\n if (s.isEmpty()) {\n System.out.println(\"Stack is empty\");\n return;\n }\n System.out.print(\"Top Most Element Removed: \");\n Integer t = s.pop();\n // minEle must be updated as the curr minEle is being Removed\n if (t < minEle) {\n System.out.println(minEle);\n minEle = 2 * minEle - t;\n } else {\n System.out.println(t);\n }\n }", "int peek() \r\n {\n if(top <0){\r\n System.out.println(\"Stack Empty\");\r\n return -1;\r\n }\r\n return a[top];\r\n }", "public int size() {\n return this.top;\n }", "public Runnable popTop() {\n int[] stamp = new int[1];\n int oldTop = top.get(stamp), newTop = oldTop + 1;\n int oldStamp = stamp[0], newStamp = oldStamp + 1;\n if (bottom <= oldTop) // empty\n return null;\n Runnable r = tasks[oldTop];\n if (top.compareAndSet(oldTop, newTop, oldStamp, newStamp))\n return r;\n return null;\n }", "@Override\n\tpublic E top() throws EmptyStackException {\n\t\tif (isEmpty()) {\n\t\t\tthrow new EmptyStackException(\"Empty Stack\");\n\t\t}\n\t\treturn arr[top];\n\t}", "public int top() {\n return q1.peek();\n }", "public int getElementAtTopOfStack() {\n if (isEmpty()) throw new RuntimeException(\"Stack underflow\");\n return myarray[top];\n \n }", "public int top() {\n\t\treturn list.get(list.size() - 1);\n\t}", "public int top() {\n return q1.getFirst();\n }", "public E top()\n {\n E topVal = stack.peekFirst();\n return topVal;\n }", "private int hopsToTop(Block nextBlock, State goal, int blkLoc) {\n\t\tint idx = 0;\n\t\tfor(int i=0; i<stacksNum; i++){\n\t\t\tidx =1;\t//reset for every stack\n\t\t\tStack<Block> s =this.getStack(i);\n\t\t\tIterator<Block> iter = s.iterator();\n\t\t\twhile (iter.hasNext()) {\n\t\t\t\tif(iter.next().getCh() != nextBlock.getCh()){\n\t\t\t\t\tidx++;\n\t\t\t\t}else{\n\t\t\t\t\treturn s.size()-idx+1;\t\t//as counted from bottom to top, hops will be subtracted\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t} \n\t\treturn idx;\n\t}", "public MeasurementCSSImpl getTop()\n\t{\n\t\treturn top;\n\t}", "public int top() {\n\t\treturn stack.peek();\n \n }", "public View getTopView() {\n\t\tint topViewIndex = getChildCount() - 1;\n\t\treturn getChildAt(topViewIndex);\n\t}", "@Override\r\n public Element findElement()\r\n {\n return null;\r\n }", "public Item peek(){\n\t\tif(isEmpty()){\r\n\t\t\tthrow new NoSuchElementException(\"Stack Underflow\"); // if stack is empty , ,t throws an exception\r\n\t\t}\r\n\t\treturn first.item;\r\n\t}", "public T removeFront() {\n\t\tT found = start.value;\n\t\tstart = start.next;\n\t\treturn found;\n\t}", "protected T removeBeginning() {\r\n\t\tif (!this.isEmpty()) {\r\n\t\t\tSNode<T> startNode = this.getHead().getPrev();\r\n\t\t\tthis.getHead().setPrev(startNode.getPrev());\r\n\t\t\tsize--;\r\n\t\t\treturn startNode.getValue();\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public boolean isEmpty(){\n \treturn top==-1;\n\t}", "public int peekFront();", "@Override\n\tpublic int size() {\n\t\treturn top + 1;\n\t}", "public int top() {\n return top.value;\n }", "private void TopView(NodeTopView root) { \n\t\t\tclass QueueObj { \n\t\t\t\tNodeTopView NodeTopView; \n\t\t\t\tint hd; \n\n\t\t\t\tQueueObj(NodeTopView NodeTopView, int hd) { \n\t\t\t\t\tthis.NodeTopView = NodeTopView; \n\t\t\t\t\tthis.hd = hd; \n\t\t\t\t} \n\t\t\t} \n\t\t\tQueue<QueueObj> q = new LinkedList<QueueObj>(); \n\t\t\tMap<Integer, NodeTopView> topViewMap = new TreeMap<Integer, NodeTopView>(); \n\n\t\t\tif (root == null) { \n\t\t\t\treturn; \n\t\t\t} else { \n\t\t\t\tq.add(new QueueObj(root, 0)); \n\t\t\t} \n\n\t\t\tSystem.out.println(\"The top view of the tree is : \"); \n\t\t\t\n\t\t\t// count function returns 1 if the container \n\t\t\t// contains an element whose key is equivalent \n\t\t\t// to hd, or returns zero otherwise. \n\t\t\twhile (!q.isEmpty()) { \n\t\t\t\tQueueObj tmpNodeTopView = q.poll(); \n\t\t\t\tif (!topViewMap.containsKey(tmpNodeTopView.hd)) { \n\t\t\t\t\ttopViewMap.put(tmpNodeTopView.hd, tmpNodeTopView.NodeTopView); \n\t\t\t\t} \n\n\t\t\t\tif (tmpNodeTopView.NodeTopView.left != null) { \n\t\t\t\t\tq.add(new QueueObj(tmpNodeTopView.NodeTopView.left, tmpNodeTopView.hd - 1)); \n\t\t\t\t} \n\t\t\t\tif (tmpNodeTopView.NodeTopView.right != null) { \n\t\t\t\t\tq.add(new QueueObj(tmpNodeTopView.NodeTopView.right, tmpNodeTopView.hd + 1)); \n\t\t\t\t} \n\n\t\t\t} \n\t\t\tfor (Entry<Integer, NodeTopView> entry : topViewMap.entrySet()) { \n\t\t\t\tSystem.out.print(entry.getValue().data + \" \"); \n\t\t\t} \n\t\t}", "public Integer getTop() {\n return top;\n }", "public Card viewTopCardInPlay(){\n if(cardsInPlayStack.isEmpty()) {\n return null;\n }\n return cardsInPlayStack.peek();\n }", "public int top() {\n\t\treturn count == 0? -1 : st[count-1];\r\n\t}", "@VisibleForTesting\n public TaskStack getTopStack() {\n if (DisplayContent.this.mTaskStackContainers.getChildCount() > 0) {\n return (TaskStack) DisplayContent.this.mTaskStackContainers.getChildAt(DisplayContent.this.mTaskStackContainers.getChildCount() - 1);\n }\n return null;\n }", "@Override\n\tpublic int size() {\n\t\treturn (top + 1);\n\t}", "public ILocation top()\n {\n EmptyStackException ex = new EmptyStackException();\n if (top <= 0)\n {\n throw ex;\n }\n else\n {\n return stack.get(top - 1);\n }\n }", "@Override\r\n\tpublic void findElement() {\n\t\t\r\n\t}", "void hideTop() {\n }", "public E top() throws StackUnderflowException {\r\n E item = null;\r\n if(!isEmpty()) item = items.get(0);\r\n else throw new StackUnderflowException(\"Stack Empty\");\r\n \r\n return item;\r\n }", "public Message peek() \n { \n return elements[head]; \n }", "public GenericStack peek(){\n // checks if stack is empty\n if(top == null){\n System.out.println(\"Stack is empty.\");\n return null;\n //System.exit(0);\n }\n return top;\n }", "public E top() {\n\t\tif (this.top == null) {\n\t\t\tthrow new EmptyStackException( );\n\t\t}\n\t\treturn this.top.data;\n\t\t\t\n\t}", "public void scrollToTop()\n {\n ensureIndexIsVisible(0);\n }", "@Override\r\n\tpublic T top() throws StackUnderflowException{\r\n\t\tif (!isEmpty()) {\r\n\t\t\tT e = stack.get(size()-1);\r\n\t\t\treturn e;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthrow new StackUnderflowException();\r\n\t\t}\r\n\t}", "public boolean empty(){\n return this.top == -1;\n }", "public int top() {\n int size = q.size();\n for(int i = 1; i<size;i++){\n q.offer(q.poll());\n }\n int value = q.peek();\n q.offer(q.poll());\n \n return value;\n }", "public Item peek() throws NoSuchElementException\r\n {\r\n if (size == 0)\r\n throw new NoSuchElementException();\r\n return heap[1]; // root siempre esta en la posicion 1\r\n }", "Point getTopXY();", "public Item peek()\n {\n if (isEmpty()) throw new NoSuchElementException(\"Stack underflow\");\n return top.item;\n }", "public T top() throws StackUnderflowException;", "public int stackTop() {\r\n\t return array[top];\r\n\t }", "public Card getTopCard()\r\n {\r\n Card tmp;\r\n\r\n if ( valid <= 0)\r\n return null;\r\n else\r\n {\r\n valid--;\r\n tmp = cards[valid];\r\n cards[valid] = null;\r\n return tmp;\r\n }\r\n }", "@Override\n\tpublic final int getBodyOffsetTop() {\n\t\treturn DOMImpl.impl.getBodyOffsetTop(documentFor());\n\t}", "public E first() {\n if (this.isEmpty()) return null;\r\n return this.head.getElement();\r\n }", "public int top() {\n return queue.element();\n }" ]
[ "0.6889561", "0.66392624", "0.6574659", "0.65692234", "0.65377915", "0.6506381", "0.6477635", "0.6476592", "0.6408169", "0.64002776", "0.6276411", "0.62306917", "0.6206019", "0.6199877", "0.6193394", "0.6193394", "0.61330354", "0.61236405", "0.61151385", "0.61005807", "0.6088552", "0.60876423", "0.607847", "0.6072767", "0.6060519", "0.6059636", "0.6039243", "0.6037975", "0.6029471", "0.6024444", "0.6009963", "0.59914106", "0.5988859", "0.59762484", "0.5973684", "0.59721535", "0.5969383", "0.5967954", "0.5957047", "0.5951928", "0.5938099", "0.59320825", "0.59285593", "0.59239346", "0.59175396", "0.59142774", "0.5900479", "0.58861566", "0.5843801", "0.58052486", "0.5804551", "0.5795207", "0.57944363", "0.5794053", "0.57913274", "0.5779877", "0.57763976", "0.5773214", "0.5755548", "0.5749895", "0.5742289", "0.57361025", "0.57353526", "0.5720399", "0.5714201", "0.57086617", "0.56836224", "0.567799", "0.5677048", "0.56729114", "0.5663549", "0.5658714", "0.56559557", "0.564732", "0.56248224", "0.5620746", "0.56193435", "0.5616533", "0.5615047", "0.56075615", "0.5606346", "0.5597756", "0.5595548", "0.55939376", "0.55795306", "0.557783", "0.5570636", "0.55650765", "0.55642855", "0.55629957", "0.5552235", "0.55376965", "0.5536674", "0.55282044", "0.5524902", "0.55225056", "0.55156314", "0.5515444", "0.55145293", "0.55095136", "0.55093926" ]
0.0
-1
TODO Autogenerated method stub
@Override public void annotate(JCas arg0) throws AnalysisEngineProcessException { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub Employee emp = new Employee("Harsh","Jaipur", LocalDate.of(1997, 12, 8), 100, 100000 ); emp.show(); /Student std = new Student(1, "Harsh","Jaipur", LocalDate.of(1997, 12, 8), 100); std.show(); Polymorphism
public static void main(String[] args) { Person p; System.out.println("----------------"); p= new Employee("Harsh","Jaipur", LocalDate.of(1997, 12, 8), 100, 100000); p.show(); System.out.println("----------------"); p= new Student(1, "Harsh","Jaipur", LocalDate.of(1997, 12, 8), 100); p.show(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void LessonInheritance() {\n Employee employee1 = new Employee();\n\n //Set Id , firstName and lastName of Employee from Person Class and BaseBO\n employee1.setId(13);\n employee1.setFirstName(\"Jordan(e)\");\n employee1.setLastName(\"Walker(e)\");\n\n //Print info out\n System.out.println(\"Id#\" + employee1.getId() + \" \" + employee1.getFirstName() + \" \" + employee1.getLastName());\n\n //create a Person object and inherit from BaseBO class Id\n Person person3 = new Person();\n person3.setId(7);\n person3.setFirstName(\"Jordan(p)\");\n person3.setLastName(\"Walker(p)\");\n\n System.out.println(\"Id#\" + person3.getId() + \" \" + person3.getFirstName() + \" \" + person3.getLastName());\n }", "private static void LessonPolymorphism() {\n Employee empOne = new Employee(\"Bob\");\n Employee empTwo = new Employee(\"Linda\", \"Belcher\");\n System.out.println(empOne.getFirstName());\n System.out.println(empTwo.getFirstName() + \" \" + empTwo.getLastName());\n // run-time polymorphism - override\n //Override a method that is in a super class in a lower class\n // Create a method in BaseBO and create the same method in Empl\n BaseBO obj1 = new BaseBO();\n System.out.println(obj1.test_method());\n\n EntityType obj2 = new EntityType();\n System.out.println(obj2.test_method());\n }", "public static void main(String[] args) {\n\r\n\t\tPerson person = new Person(\"Kali\", \"Sofia\", \"+359 88 0000000\", \"[email protected]\");\r\n\t\tSystem.out.println(person.toString());\r\n\t\tStudent student = new Student(\"Sofi\", \"Sofia\", \"+359 88 0000000\", \"[email protected]\", ClassStatus.FRESHMAN);\r\n\t\tSystem.out.println(student.toString());\r\n\t\tEmployee employee = new Employee(\"George\", \"Sofia\", \"+359 88 0000000\", \"[email protected]\", \"Office 1\", 3000, \"02.10.2018\");\r\n\t\tSystem.out.println(employee.toString());\r\n\t\tFaculty faculty = new Faculty(\"George\", \"Sofia\", \"+359 88 0000000\", \"[email protected]\", \"Office 1\", 3000, \"02.10.2018\", 8, \"Professor\");\r\n\t\tSystem.out.println(faculty.toString());\r\n\t\tStaff staff = new Staff(\"George\", \"Sofia\", \"+359 88 0000000\", \"[email protected]\", \"Office 1\", 3000, \"02.10.2018\", \"Manager\");\r\n\t\tSystem.out.println(staff.toString());\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n \r\n\t\tPerson person1 = new Person(\"Ravali\",\"Springfield\");\r\n\t\tSystem.out.println(person1);\r\n\t\t\r\n\t\tString[] arr = new String[3];\r\n\t\tarr[0] = \"Computer Network Principles\";\r\n\t\tarr[1] = \"GRS\";\r\n\t\tarr[2] = \"Computer Organization\";\r\n\t\t\r\n\t\tPerson person2 = new Teacher(3,arr);\r\n\t\tperson2.setName(\"Renuka\");\r\n\t\tperson2.setAddress(\"India\");\r\n\t\t//Here toString method of Teacher class is being called and overrides the parent class method at runtime.Hence Runtime Polymorphism\r\n\t\tSystem.out.println(person2);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "public void xxx() {\n System.out.println(\"Salary: \" + salary);\n printInfo();\n\n Employee e = new Employee(\"Andy\", \"123\", 26);\n// System.out.println(\"Name: \" + e.name + \"; Age: \" + e.age + \";ID: \" + e.id);\n\n Manager m = new Manager(\"Andylee\", \"124\", 27);\n// System.out.println(\"Name: \" + m.name + \"; Age: \" + m.age + \";ID: \" + m.id);\n\n }", "public static void main(String[] args) {\n\r\n\r\n Employee e1=new Employee();\r\n\r\n e1.name=\"avinash\";\r\n e1.city=\"ongole\";\r\n e1.age=58;\r\n\r\n e1.display();\r\n }", "public static void main(String[] args) {\n Teacher phyTeacher1 = new PhyTeacher(\"Binod Sir\",\"Physics\", 56.78);//java: cannot find symbol symbol: method display()\n //PhysicsTeacher chemTeacher = new PhysicsTeacher(\"Chemistry\");\n //PhysicsTeacher matTeacher = new PhysicsTeacher(\"Maths\");\n phyTeacher1.display();\n BioTeacher bioTeacher = new BioTeacher(\"Vivek Sir\",\"Biology\",100.25);\n bioTeacher.display();\n /*Dynamic Polymorphism through method overriding\n School physics= new PhyTeacher(\"Adv. Physics\");\n physics.display();\n School biology= new BioTeacher(\"Adv. Biology\");\n physics.display();\n */\n }", "public static void main(String[] args) {\n\t\t\n\t\tEmployee theEmployee = new Employee();\n\t\t\n//\t\twhat does it mean below setter? by this section we assign value to variables.\n\t\ttheEmployee.setId(1000);\n\t\ttheEmployee.setName(\"Ramesh\");\n\t\ttheEmployee.setPosition(\"Mangaer\");\n\t\ttheEmployee.setSalary(10000.88);\n//\t\tby thes getters we print the data.\n\t\tSystem.out.println(theEmployee.getId());\n\t\tSystem.out.println(theEmployee.getName());\n\t\tSystem.out.println(theEmployee.getPosition());\n\t\tSystem.out.println(theEmployee.getSalary());\n\t\tSystem.out.println(theEmployee.getClass());\n\t\n\t\tSystem.out.println(\"====================================\");\n\t\t\n\t\tEmployee theEmployee1 = new Employee();\n\t\t\n\t\ttheEmployee1.setId(2);\n\t\ttheEmployee1.setName(\"Rahim\");\n\t\ttheEmployee1.setPosition(\"Team leader\");\n\t\ttheEmployee1.setSalary(22.88);\n\t\t\n\t\tSystem.out.println(theEmployee1.getId());\n\t\tSystem.out.println(theEmployee1.getName());\n\t\tSystem.out.println(theEmployee1.getPosition());\n\t\tSystem.out.println(theEmployee1.getSalary());\n\t\tSystem.out.println(theEmployee1.getClass());\n\t\t\n\t\t\n\tSystem.out.println(\"============================\");\n\t\n\tEmployee theEmployee2 = new Employee();\n\t\n\ttheEmployee2.setId(9);\n\ttheEmployee2.setName(\"Ramin\");\n\ttheEmployee2.setPosition(\"Superwiser\");\n\ttheEmployee2.setSalary(15000.00);\n\t\n\tSystem.out.println(theEmployee2.getId());\n\tSystem.out.println(theEmployee2.getName());\n\tSystem.out.println(theEmployee2.getPosition());\n\tSystem.out.println(theEmployee2.getSalary());\n\tSystem.out.println(theEmployee2.getClass());\n\t\n\t\t\n\t}", "public static void main(String[] args) {\nEmployee emp = new Employee();\r\nemp.setId(101);\r\n\t\temp.setName(\"Mrunal\");\r\n\t\tSystem.out.println(\"Id:\"+emp.getId()+\"EmpName:\"+emp.getName());;\r\n\t\t\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\tEmployee e1=new Employee();\n\t\tSystem.out.println(e1);\n\t\tEmployee e2=new Employee(2,\"XYZ\",33333,new date(16,2,2014));\n\t\tSystem.out.println(e2);\n\t}", "public Employee(){\n\t\t\n\t}", "public Employee(){\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tPerson person = new Person();\r\n\t\tperson.setName(\"Jon Snow\");\r\n\t\tperson.setAddress(\"Castle Black, 82\");\r\n\t\tperson.setEmail(\"[email protected]\");\r\n\t\tperson.setPhone(061666666);\r\n\t\tSystem.out.println(person);\r\n\r\n\t\t// creating a instance of Staff\r\n\t\tStaff staff = new Staff();\r\n\t\tSystem.out.println();\r\n\t\tstaff.setName(\"Ned Stark\");\r\n\t\tstaff.setTitle(\"King of North\");\r\n\t\tSystem.out.println(staff);\r\n\r\n\t\t// creating a instance of Faculty\r\n\t\tFaculty faculty = new Faculty();\r\n\t\tSystem.out.println();\r\n\t\tfaculty.setName(\"Zdravko\");\r\n\t\tfaculty.setOfficeHours(40);\r\n\t\tfaculty.setRank(\"Profesor\");\r\n\t\tSystem.out.println(faculty);\r\n\r\n\t\t// creating a instance og Employee\r\n\t\tEmployee employee = new Employee();\r\n\t\tSystem.out.println();\r\n\t\temployee.setName(\"Nedim\");\r\n\t\temployee.setOffice(\"Post Office\");\r\n\t\temployee.setSalary(2000);\r\n\t\tSystem.out.println(employee);\r\n\r\n\t\t// creating a instance of Student\r\n\t\tStudent student = new Student();\r\n\t\tSystem.out.println();\r\n\t\tstudent.setName(\"Ljubisa\");\r\n\t\tstudent.setStatus(2);\r\n\t\tSystem.out.println(student);\r\n\t}", "public static void main(String[] args) {\n\t\temployee employee =new employee (\"hilal\",5000,20,2021);\n\t System.out.println(employee.toString());\n \n\t}", "public static void main(String[] args) {\n\n// Creating a object\n// Employee e = new Employee();\n// e.data=34; //public int is from the Employee.java\n\n Employee e1 = new Employee();\n e1.data=44;\n\n Employee e = new Employee();\n e.doSomething();\n\n// System.out.println(e.data);\n// System.out.println(e1.data);\n \n\n\n }", "public static void main(String[] args) {\nnew Employee();// Calling the Constructor.\r\n\t}", "public static void main(String[] args) throws IOException {\r\n\t\t\r\n\t\tScanner input = new Scanner(System.in);\r\n\t\tSystem.out.print(\"Enter employee ID: \");\r\n\t\tint empId = input.nextInt();\r\n\t\tSystem.out.println(\"-----------------------------------------------\");\r\n\t\tinput.close();\r\n\t\t\r\n\t\t/*\r\n\t\t * I figured it would be more efficient to call the subclasses from the\r\n\t\t * superclass. To stay within the guidelines of the assignment I will\r\n\t\t * call the superclass so that I can correctly fill the array and allow\r\n\t\t * the status of the employee to determine which subclass will be used.\r\n\t\t */\r\n\t\t\r\n\t\tEmployee e1 = new Employee(empId);\r\n\t\tString stat = e1.getStatus();\r\n\t\t\r\n\t\tif(stat.equals(\"Full Time\")) {\r\n\t\t\t\r\n\t\t\tSalaryEmployee se1 = new SalaryEmployee(empId);\r\n\r\n\t\t} else if(stat.equals(\"Part Time\")) {\r\n\t\t\t\r\n\t\t\tHourlyEmployee he1 = new HourlyEmployee(empId);\r\n\t\t\t\r\n\t\t} else if(stat.equals(\"Commission\")) {\r\n\t\t\t\r\n\t\t\tCommissionEmployee ce1 = new CommissionEmployee(empId);\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\t\r\n\t\t\te1.setPay(0.00);\r\n\t\t\te1.printEmployee();\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n//\t\tse1.printEmployee();\r\n\t\t\r\n//\t\tEmployee e1 = new Employee(empId);\r\n//\t\te1.getEmployee();\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n Student st = new Student(\"Vinod\" , 31);\n Student st1 = new Student(\"Vaghella\", 31);\n System.out.println(st.getName());\n System.out.println(st.getAge());\n System.out.println(st1.getName());\n System.out.println(st1.getAge());\n }", "public static void main(String[] args) {\n\t\t\r\n\t\tEmployee emp1 = new Employee();\r\n\t\tEmployee emp2 = new Employee();\r\n\t\t\r\n\t\temp1.empName = \"Rob\";\r\n\t\temp1.empid = 200;\r\n\t\temp1.empsalary = 12345;\r\n\t\t\r\n\t\temp1.displayEmployeebonus();\r\n\t\t\r\n\t\temp2.empName = \"Rob\";\r\n\t\temp2.empid = 300;\r\n\t\temp2.empsalary = 98765;\r\n\t\t\r\n\t\temp2.displayEmployeebonus();\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\r\n\t}", "public abstract String printEmployeeInformation();", "public static void main(String[] args) {\n Emp e=new Emp(\"tinku\",\"u\",\"hyd\",50000,(float)0.5);\n Emp m=new Emp(\"venu\",\"G\",\"hyd\",50000,(float)0.25);\n Emp k=new Emp(\"Srikanth\",\"v\",\"hyd\",75000,(float)0.15);\n Emp t=new Emp(\"sahith\",\"G\",\"hyd\",85000,(float)0.2);\n System.out.println(e);\n System.out.println(e.claculateNetSalary());\n System.out.println(m.claculateNetSalary());\n System.out.println(k.claculateNetSalary());\n System.out.println(t.claculateNetSalary());\n \t}", "public Employee() {\r\n\t\t// super should be 1st line \r\n\t\tsuper();\r\n\t\tSystem.out.println(\"Hi i'm from constructor \");\r\n\t}", "public Employee(){\r\n }", "public static void main(String[] args) {\nEmployee emp1 =new Employee();\n\nemp1.name=\"MarufJon\";\nemp1.jobTitle=\"Teacher\";\nemp1.gender='m';\nemp1.age=22;\n\n\n\nEmployee emp2= new Employee() ;\nemp2.name=\"kiki\";\nemp2.jobTitle=\"HR\";\nemp2.age=26;\nemp2.gender='f';\n\n\nemp1.work();\nemp2.work();\n\t\n\nemp1.eat(\"chicken kesadia\");\nemp2.eat(\"salad\");\nemp1.walk();\nemp1.sleep(5);\nemp2.sleep(8);\n\t}", "public Employee() {\n\t\tsuper();\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\tEmployee_Demo ans= new Employee_Demo();\r\n\t\t\r\n\t\tans.setAge(25);\r\n\t\tans.setEmployeeName(\"sankar suresh\");\r\n\t\tans.setCity(\"pondicherry\");\r\n\t\tans.setemployeID(785303);\r\n\t\tans.setSalary(30000);\r\n\t\tans.setSex(\"male\");\r\n\t\tSystem.out.println(\"age of the emp :\"+ans.getAge());\r\n\t\tSystem.out.println(\"City of the emp :\"+ans.getCity());\r\n\t\tSystem.out.println(\" salary of the emp :\"+ans.getSalary());\r\n\t\tSystem.out.println(ans.getEmployeID());\r\n\t\tSystem.out.println(ans.getSex());\r\n\r\n\t\t\r\n\r\n\t}", "public static void main(String[] args) {\n\t\tPerson_19 p = new Person_19(\"Taeyong\", \"Itaewon\", \"0123456789\", \"[email protected]\");\r\n\t\tStudent_19 s = new Student_19(\"Taeyong\", \"Itaewon\", \"0123456789\", \"[email protected]\",\"senior\"); //zaplata\r\n\t\tEmployee_19 e = new Employee_19(\"Jackson\", \"Trimage\", \"0123456789\", \"[email protected]\",\"office 7\", 1000, \"11:00-18:00\");\r\n\t\tFaculty_19 f = new Faculty_19(\"Jungkook\", \"Gangnam\", \"0123456789\", \"[email protected]\",\"office 7\", 666, null, \"11:00-18:00\", 1);\r\n\t\tStaff_19 st = new Staff_19(\"Taeyong\", \"Itaewon\", \"0123456789\", \"[email protected]\",\"office 23\", 1234, null, \"11:00-18:00\");\r\n\t\tSystem.out.println(p.toString());\r\n//\t\tSystem.out.println();\r\n\t\tSystem.out.println(s.toString());\r\n//\t\tSystem.out.println();\r\n\t\tSystem.out.println(f.toString());\r\n//\t\tSystem.out.println();\r\n\t\tSystem.out.println(st.toString());\r\n\t\tSystem.out.println(e.toString());\r\n\t}", "public static void main(String[] args) {\n EmployeeTimed employeeTimed = null;\n try {\n employeeTimed = new EmployeeTimed(120000000000004L, \"Employee 1\", 100);\n } catch (IDException e) {\n e.printStackTrace();\n }\n /*\n try {\n employeeTimed.setID(1000000L);\n } catch (IDException e) {\n e.printStackTrace();\n }\n */\n System.out.println(employeeTimed.toString());\n\n// System.out.println(employeeSalaried.CalculateSalary());\n System.out.println(employeeTimed.CalculateSalary());\n\n }", "public static void main(String[] args) {\n\t\tEmployee emp1 = new Employee();// 객체생성\r\n\t\temp1.display();\r\n\t\t\r\n\t\tEmployee emp2 = new Employee();\r\n\t\temp2.setAge(01);\r\n\t\temp2.setName(\"홍길동\");\r\n\t\temp2.setDept(\"인사부\");\r\n\t\temp2.setSingle(true);\r\n\t\temp2.display();\r\n\r\n\t\tEmployee emp3 = new Employee();\r\n\t\temp3.setAge(02);\r\n\t\temp3.setName(\"고길동\");\r\n\t\temp3.setDept(\"영업부\");\r\n\t\temp2.setSingle(false);\r\n\t\temp3.display();\r\n\t}", "Employees() { \r\n\t\t this(100,\"Hari\",\"TestLeaf\");\r\n\t\t System.out.println(\"default Constructor\"); \r\n\t }", "@Override\npublic String toString()\n{\n Employee emp = new Employee();\n \n StringBuilder sb = new StringBuilder();\n sb.append(\"Employee{\");\n sb.append(\"Name=\");\n sb.append(emp.getName());\n sb.append(\",Salary complement=\");\n sb.append(emp.getSalary_complement());\n sb.append(\"}\");\n\n return sb.toString();\n}", "public static void main(String[] args) {\n student mark=new student();//----->object or instance\n // here we create an instance or object call mark for our class student.\n mark.setAge(15); //mark.age=15;\n mark.setId(1); //mark.id=1;\n mark.setName(\"mark\"); //mark.name=\"mark\";\n // System.out.println(mark.name+\" \"+\"is\"+\" \"+mark.age+\" \"+\"years old\");\n // now after change to get this value will change to bellow.\n System.out.println(mark.getName()+\" \"+\"is\"+\" \"+mark.getAge()+\" \"+\"years old\");\n \n student tom=new student(); //-----> 2 /second object or instance\n // here we create second 2 instance or object call tom for our class student.\n tom.setAge(14); //tom.age=14;\n tom.setId(2); //tom.id=2;\n tom.setName(\"tom\"); //tom.name=\"tom\";\n // System.out.println(tom.name+\" \"+\"is\"+\" \"+tom.age+\" \"+\"years old\");\n System.out.println(tom.getName()+\" \"+\"is\"+\" \"+tom.getAge()+\" \"+\"years old\");\n\t}", "Employee(int id, String name, String birthDate, int eage, double esalary){\r\n ID=id; \r\n NAME=name; \r\n BIRTHDATE=birthDate; \r\n age=eage; \r\n salary=esalary; \r\n }", "public static void main(String[] args) {\n\t\tDate d=new Date(2,5,2019);\r\n\t\tEmployee e=new Employee(100,\"ram\",10000,d);\r\n\t\tSystem.out.println(e);\r\n\r\n\t}", "public static void main(String[] args) {\n Employee employee = new GovernmentEmployee();\n\n GovernmentEmployee employee2 = (GovernmentEmployee) employee;\n employee.commonMethod();\n \n GovernmentEmployee governmentEmployee = new GovernmentEmployee();\n Employee governmentEmployee1 = governmentEmployee;\n\n\n }", "Employee() {\n\t}", "public EmpName() {\n\t\tsuper(\"Aditi\",\"Tyagi\");\n\t\t//this(10);\n\t\tSystem.out.println(\"Employee name is Vipin\");\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tEmployee e1 = new Professor(\"Ami\",300.0,LocalDate.of(2019, 8, 3),2);\n\t\tEmployee s1 = new Secretary(\"Jim\",400.0,LocalDate.of(2019, 2, 10),10);\n\t\t\n\n\t\t\n\t\tArrayList<Employee> list = new ArrayList<Employee>();\n\t\tlist.add(e1);\n\t\tlist.add(s1);\n\t\t\n\t\tSystem.out.println(s1);\n\t\t\n\t\tlist.forEach((e) -> {\n\t\t\t\n\t\t\tif (e instanceof Secretary)\n\t\t\t{\n\t\t\t\tSecretary s = (Secretary)e;\n\t\t\t\tSystem.out.println(s);\n\t\t\t\ts.setOverTimeHour(50);\n\t\t\t}\n\t\t\n\t\t\tSystem.out.println(String.format(\"Name : %s \\nSalary : %.2f\",e.getName(), e.computeSalary()));\n\t\t});\n\t\t\n\n\t}", "abstract public void getStudent();", "@Override\r\n public String toString() {\r\n return \"Employee{\" + super.toString() + \", \" + \"employeeNumber=\" + employeeNumber + \", salary=\" + salary + '}';\r\n }", "public Employee(String n, double s)\n {\n name = n;\n salary = s;\n }", "public Employee(String id) {\n super(id);\n }", "public Employee() {\t}", "@Override\n\tprotected Employee factoryMethod() {\n\t\treturn new Developer();\n\t}", "public Employee(String fName, String lName, String gender, double salary) {\n this.fName = fName;\n this.lName = lName;\n this.gender = gender;\n this.salary = salary; \n }", "public Employee() {\n }", "public Employee() {\n }", "public Employee() {\n }", "public Employee() {\n\t\t\n\t}", "public static void main(String[] args) {\n Employee[] employees = new Employee[5]; \n\n // initialize array with Employees\n employees[0] = new SalariedEmployee(\n \"John\", \"Smith\", \"111-11-1111\", 800.00);\n employees[1] = new HourlyEmployee(\n \"Karen\", \"Price\", \"222-22-2222\", 16.75, 40);\n employees[2] = new CommissionEmployee(\n \"Sue\", \"Jones\", \"333-33-3333\", 10000, .06); \n employees[3] = new BasePlusCommissionEmployee(\n \"Bob\", \"Lewis\", \"444-44-4444\", 5000, .04, 300);\n employees[4] = new PieceWorker(\n \"Victor\", \"Figueroa\", \"555-555-5555\", 90, 100);\n \n System.out.println(\"Employees processed polymorphically:\\n\");\n \n // generically process each element in array employees\n for (Employee currentEmployee : employees) {\n System.out.println(currentEmployee); // invokes toString\n System.out.printf(\"earned $%,.2f\\n\\n\", currentEmployee.earnings());\n } // end for\n }", "public static void main(String[] args) {\n\t\tPerson p1=new Person(\"Poe\", \"Monywa\");\r\n\t\tPerson p2=new Person(\"Phyo\", \"Yangon\");\r\n\t\tStudent stu=new Student(p1.name,p1.address,\"Foundation Level\",1,100000.0);\r\n\t\t\r\n\t\tStaff stf=new Staff(p2.name,p2.address,\"HH\",100000.0);\r\n\t\tSystem.out.println(\"Student Information:\");\r\n\t\tSystem.out.println(\"Name:\"+stu.name+\"\\nAddress:\"+stu.address+\"\\nProgram:\"+stu.program+\"\\nYear:\"+stu.year+\"\\nFee:\"+stu.fee);\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"Staff Information:\");\r\n\t\tSystem.out.println(\"Name:\"+stf.name+\"\\nAddress:\"+stf.address+\"\\nSchool:\"+stf.school+\"\\nPay:\"+stf.pay);\r\n\t}", "public static void main(String[] args) {\n\t\tSalariedEmployee salariedemployee = new SalariedEmployee(\"John\",\"Smith\",\"111-11-1111\",new Date(9,25,1993),800.0);\n\t\tHourlyEmployee hourlyemployee = new HourlyEmployee(\"Karen\",\"Price\",\"222-22-2222\",new Date(10,25,1993),900.0,40);\n\t\t\n\t\tCommissionEmployee commissionemployee = new CommissionEmployee(\"jahn\",\"L\",\"333-33-333\",new Date(11,25,1993),1000.0,.06);\n\t\t\n\t\tBasePlusCommissionEmployee basepluscommissionemployee = new BasePlusCommissionEmployee(\"bob\",\"L\",\"444-44-444\",new Date(12,25,1993),1800.0,.04,300);\n\t\t\n\t\tPieceWorker pieceworker = new PieceWorker(\"julee\",\"hong\", \"555-55-555\",new Date(12,25,1993) , 1200, 10);\n\t\tSystem.out.println(\"Employees processes individually\");\n\t\t//System.out.printf(\"%n%s%n%s: $%,.2f%n%n\", SalariedEmployee,\"earned\",SalariedEmployee.earnings());\n\n\t\t//creating employee array\n\t\t\n\t\tEmployee[] employees = new Employee[5];\n\t\t\n\t\t//intializing array with employees \n\t\temployees[0] = salariedemployee;\n\t\temployees[1] = hourlyemployee;\n\t employees[2] = commissionemployee;\n\t\temployees[3] = basepluscommissionemployee;\n\t\temployees[4]= pieceworker;\n\t\t\n\t\tSystem.out.println(\"employees processed polymorphically\");\n\t\tCalendar cal = Calendar.getInstance();\n\t\tSystem.out.println(new SimpleDateFormat(\"MM\").format(cal.getTime()));\n\t\tint currentMonth = Integer.parseInt(new SimpleDateFormat(\"MM\").format(cal.getTime()));\n\t\t\n\t\t//processing each element into the array\n\t\tfor(Employee currentemployee:employees){\n\t\t\t\n\t\t\t/*if(currentemployee.getBirthDate().getMonth()==currentMonth)\n\t\tSystem.out.println(\"current earnings\"+(currentemployee.earnings()+100));\n\t\t\telse\n\t\t\t\tSystem.out.println(\"current earnings\"+currentemployee.earnings());\n\t\t\t\t*/\n\t\t\tSystem.out.println(currentemployee.toString());\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tPerson p = new Student();\r\n\t\tPerson p2 = new Student(10);\r\n\t\t\r\n//\t\tStudent s = new Student();\r\n//\t\tPerson p3 = s; 두개가 아래와 같다.\r\n\t\tPerson p3 = new Student();\r\n\t\t\r\n\t\tStudent s = (Student)p3; //down casting 명시적(explicit) 캐스팅을 해야 한다.\r\n\t\t//같은 객체일때만 가능하다.\r\n\t\t\r\n\t\tPerson p4 = s; //up casting 암시적(implicit) 캐스팅을 안해줘도 된다.\r\n\t\t\r\n\t\t\r\n\t}", "public static void main(String[] args) throws CloneNotSupportedException {\n\t\tStudent s=new Student();\r\n\t\t//Cloneable标记接口\r\n\t\ts.setName(\"张三\");\r\n\t\tObject obj=s.clone();\r\n\t\tStudent s2=(Student)obj;\r\n\t\tSystem.out.println(s.getName()+\"-----\"+s2.getName());\r\n\t}", "public static void main(String args[]){\n Student Student1 = new Student (\"Josh\", 80);\n System.out.println(Student1.getGrade());\nSystem.out.println(Student1);\n }", "public static void main(String[] args) {\n\t\tSawon s1=new Sawon();\r\n\t\ts1.name=\"홍길동\";\r\n\t\ts1.dept=\"영업부\";\r\n\t\ts1.print();\r\n\t\tSawon s2=s1;\r\n\t\ts2.name=\"심청이\";\r\n\t\ts2.dept=\"개발부\";\r\n\t\ts2.print();\r\n\t\ts1.print(); //이건 복제가 아니라 주소 참조\r\n\t\t\r\n\t\tStudent s3=new Student();\r\n\t\ts3.id=\"hong\";\r\n\t\tSystem.out.println(\"s3.id:\"+s3.id);\r\n\t\tStudent s4=s3.display();\r\n\t\ts4.id=\"shim\";\r\n\t\tSystem.out.println(\"s4.id:\"+s4.id);\r\n\t}", "public Employee() {}", "public Employee() {\n \n }", "@Override\n public Class<Employee> getType() {\n return Employee.class;\n }", "public StudentDemo(){\r\n \r\n \r\n \r\n }", "public static void main(String[] args) {\n Student ram = new Student();\n \n ram.setRollNumber(202);\n ram.setStudentName(\"Rakshitha\");\n ram.setMarkScored(-98);\n ram.setEmail(\"[email protected]\");\n \n \n System.out.println(ram.getMarkScored());\n \n Student shyam = new Student(203,\"Shyam\",97,\"[email protected]\");\n \n System.out.println(shyam.getStudentName());\n System.out.println(shyam.getMarkScored());\n\t}", "public Employee(String firstName, String lastName, int age, double salary) {\r\n //envoke the super class's constructor\r\n super(firstName, lastName, age);\r\n \r\n //set the instance variables specific to this class. \r\n this.salary = salary;\r\n employeeNumber = nextEmployeeNumber;\r\n nextEmployeeNumber++;\r\n }", "public Employee() {\n\n\t}", "public static void main(String[] args) {\nmanager xx=new manager(\"sarath\",34,\"9895639874\",\"eloor\",30000,\"BPO\");\r\nemployee xx1=new employee(\"jomon\",24,\"9899999999\",\"eloor\",50000,\"testing\");\r\n\r\n\t}", "@Override\n\tpublic void createEmployee(Employee e) {\n\t\t\n\t}", "public static void main(String[] args){\n\t\tStudent s=new Student(); \r\n\t\t\r\n\t\t\r\n\t\t//setting value in the name member \r\n\t\t\r\n\t\t\r\n\t\ts.setName(\"vijay\"); \r\n\t\ts.setId(35);\r\n\t\ts.SetSalary(25000);\r\n\t\ts.SetTax(2055.543536f);\r\n\t\ts.SetBusName(\"RedBus\");\r\n\t\t//getting value of the name member \r\n\t\t\r\n\t\tSystem.out.println(\"This is Name :\"+s.getName()); \r\n\t\tSystem.out.println(\"This is id :\"+s.getEmpId());\r\n\t\tSystem.out.println(\"This is Salary :\"+s.getSalary());\r\n\t\tSystem.out.println(\"This is Tax :\"+s.getTax());\r\n\t\tSystem.out.println(\"This is BusName :\"+s.GetBusName());\r\n\t\t\r\n\t\t}", "Student createStudent();", "public Employee(String name, int id, String position, double salary) { \n super(name, id);\n this.position = position;\n this.salary = salary;\n }", "public Employee(String Name) {\r\n this.Name = Name;\r\n }", "public Employee(String nama, int usia) {\r\n // Constructor digunakan untuk inisialisasi value, yang di inisiate saat melakukan instantiation\r\n this.nama = nama;\r\n this.usia = usia;\r\n }", "public void empDetails() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n Employ obj1 = new Janani(1, \"Janani\", 757438);\n Employ obj2 = new Raghu(2, \"Raghu\", 73647);\n Employ[] arrEmploy = new Employ[]{obj1,obj2};\n for (Employ employ : arrEmploy) {\n System.out.println(employ);\n }\n }", "public static void main(String[] args) {\n\t\tDept dept= new Dept(1212, \"IT\", \"Bangalore\");\n\t\tEmp emp = new Emp(1234, \"Tarun\", 9999999999L, dept);\n\t\tSystem.out.println(emp);\n\t\tEmp e1=null;\n\t\ttry {\n\t\t\te1 = (Emp) emp.clone();\n\t\t\t\n\t\t} catch (CloneNotSupportedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tdept.setLocation(\"Chennai\");\n\t\tSystem.out.println(e1);\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tPerson firstPerson = new Person();//instansiasi by reference variable\n\t\tPerson secondPerson = new Person(\"Rizalddi\", \"Rnensia\", \"Male\", \"Music, Food\", 21);//instansiasi by konstruktor\n\t\tPerson thirdPerson = new Person(\"Arul\", \"Aral\", \"Male\", \"soccer\", 30);//instansiasi by konstruktor\n\t\t\n\t\t\n\t\tfirstPerson.firstName\t= \"Rizaldi\";// instansiasi by reference variable\n\t\tfirstPerson.lastName\t= \"Rnensia\";\n\t\tfirstPerson.age\t\t\t= 29;\n\t\tfirstPerson.gender\t\t= \"Male\";\n\t\tfirstPerson.interest\t= \"Music, food, travel\";\n\t\t\n\t\tSystem.out.println(\"Orang ke 1 : \");\n\t\tfirstPerson.biodata();// instansiasi by method\n\t\tfirstPerson.greeting();\n\t\tSystem.out.println(\"Orang ke 2 : \");\n\t\tsecondPerson.biodata();// instansiasi by method\n\t\tsecondPerson.greeting();\n\t\tSystem.out.println(\"Orang ke 3 : \");\n\t\tthirdPerson.biodata();// instansiasi by method\n\t\tthirdPerson.greeting();\n\t\tthirdPerson.sayThanks();\n\t\t\n\t\tTeacher firstTeacher = new Teacher();\n\t\tfirstTeacher.firstName\t= \"asep\";\n\t\tfirstTeacher.lastName\t= \"Sutiawan\";\n\t\tfirstTeacher.age\t\t= 29;\n\t\tfirstTeacher.gender\t\t= \"Male\";\n\t\tfirstTeacher.interest\t= \"noodles\";\n\t\tfirstTeacher.subject\t= \"Math\";\n\t\t\n\t\tSystem.out.println(\"\\nGuru ke 1 : \");\n\t\tfirstTeacher.biodata();\n\t\tfirstTeacher.greeting();\n\n\t\tStudent firstStudent = new Student(\"Richa\", \"Fitria\", \"Female\", \"Makan\", 20);\n\t\t\n\t\tSystem.out.println(\"\\nMurid ke 1 : \");\n\t\tfirstStudent.biodata();\n\t\tfirstStudent.greeting();\n\t}", "public static void main(String[] args) {\n\t\tEmployee oscar = new Employee(\"Oscar\", 01, \"Marketing\", \"Sales\");\n\t\tSystem.out.println(oscar);\n\t\t\n\t\tEmployee mary = new Employee(\"Mary\", 02, \"Accounting\", \"Finance\");\n\t\tSystem.out.println(\"\\n\" + mary);\n\t\t\n\t\tEmployee tom = new Employee(\"Tom\", 03, \"Front Desk\", \"Receptionist\");\n\t\tSystem.out.println(\"\\n\" + tom);\n\t\t\n\t\t//here shows how the getter methods are printed\n\t\tSystem.out.println(\"\\n\" + oscar.getName());\n\t\tSystem.out.println(oscar.getIdNumber());\n\t\tSystem.out.println(oscar.getDepartment());\n\t\tSystem.out.println(oscar.getPosition());\n\t\t\n\t\t//here shows how setter methods set newer values to the objects\n\t\toscar.setName(\"Daniel\");\n\t\toscar.setIdNumber(04);\n\t\toscar.setDepartment(\"Research\");\n\t\toscar.setPosition(\"Research Associate\");\n\t\tSystem.out.println(\"\\n\" + oscar);\n\t\t\n\t\t\n\t}", "public String toString()\n\t//return employee values\n\t{\n\t\treturn \"Id \" + id + \" Start date \" + start + \" Salary \" + salary + super.toString() + \" Job Title \" + jobTitle;\n\t}", "public static void main(String[] args) {\n\n Shape circle = new Circle(5);\n System.out.println(circle.getArea());\n System.out.println(circle.getCircuit());\n Shape triangle = new Triangle(3,5,4,3);\n System.out.println(triangle.getCircuit());\n System.out.println(triangle.getArea());\n Shape square = new Square(5);\n System.out.println(square.getArea());\n System.out.println(square.getCircuit());\n\n Person person = new Person(\"Grzegorz\",40,new Medical(1111,\"Kierowanie Karetką\"));\n System.out.println(person.getResponsibilities());\n\n }", "public EmployeeRecord(){}", "public static void main(String[] args) {\n\t\tStudent2 s2 = new Student2(123, \"Hans\", \"UP\", 'I');\r\n\t\tSystem.out.println(s2.id + \" \" + s2.name + \" \" + s2.address);\r\n\t\t// creating multiple object of same type.\r\n\t\tStudent2 s3 = new Student2(123, \"mohan\", \"Naini\", 'N'), s4 = new Student2(123, \"rani\", \"nainital\", 'u');\r\n\t}", "@Override\n\tString toString(Employee obj) {\n\t\treturn null;\n\t}", "public static void main (String[] args) //self testing main method\r\n {\n Employee emp = new Employee (\"John\", \"Smith\", \"P0444444\");\r\n System.out.println(emp.toString());\r\n System.out.println(emp.getFirstName());\r\n System.out.println(emp.getLastName());\r\n System.out.println(emp.getID());\r\n // change employee information\r\n emp.setFirstName(\"Joanne\");\r\n emp.setLastName(\"Johnson\");\r\n emp.setID(\"P0123456\");\r\n // display again\r\n System.out.println(emp.toString());\r\n }", "@Override\r\n public String toString() {\r\n return \"Student: \" + super.toString();\r\n }", "public EmployeeRecords(String n, int s){ // defined a parameterized constructor\r\n this.name = n; // assigning a local variable value to a global variable\r\n this.salary = s; // assigning a local variable value to a global variable\r\n }", "public static void main(String[] args) {// we can create psvm method but cannot create objects in abstract class\n\t\tSchool.bonus();// as bonus method is static we can print it without create class name so we can use\n\t\t\t\t\t\t// with classname.mthdname hence it is accepted in abstract class\n\t\tSystem.out.println(\"i am from main method\");// we can write anything in main mthd it prints automatically without\n\t\t\t\t\t\t\t\t\t\t\t\t\t// creating obj\n\t}", "public Employee () {\r\n lName = \"NO LAST NAME\";\r\n fName = \"NO FIRST NAME\";\r\n empID = \"NO EMPLOYEE ID\";\r\n salary = -1;\r\n }", "public static void main(String[] args) {\n Student student1 = new Student(10000, 20000, \"Sang\", \"Shin\", \"Good School\");\r\n \r\n // You can assign the object instance to\r\n // StudentInterface type.\r\n StudentInterface studentinterface1 = student1;\r\n \r\n // Display data from student1 and studentinterface1.\r\n // Observe that they refer to the same object instance.\r\n System.out.println(\"student1.getName() = \" + student1.getName() + \",\" +\r\n \" student1.computeTotalWealth() = \" + student1.computeTotalWealth()+ \",\" +\r\n \" student1.findSchool() = \" + student1.findSchool());\r\n \r\n System.out.println(\"studentinterface1.getName() = \" + studentinterface1.getName() + \",\" +\r\n \" studentinterface1.computeTotalWealth() = \" + studentinterface1.computeTotalWealth()+ \",\" +\r\n \" studentinterface1.findSchool() = \" + studentinterface1.findSchool());\r\n \r\n // Check of object instance that is referred by student1 and\r\n // studentinterface1 is the same object instance.\r\n boolean b1 = (student1 == studentinterface1);\r\n System.out.println(\"Do student1 and studentinterface1 point to the same object instance? \" + b1);\r\n \r\n }", "public Employee(String name){\r\n\t\tthis.employeeName = name;\r\n\t\tthis.salary = 0;\r\n\t}", "public static void main(String[] args) {\n\n Address tomAddress = new Address();\n tomAddress.address1 = \"Peter Drive\";\n tomAddress.address2 = \"Marine Street\";\n tomAddress.zip = \"3333\";\n tomAddress.country = \"India\";\n\n Student tom = new Student();\n tom.name = \"Tom\";\n tom.height = 4;\n tom.weigth = 50;\n tom.address = tomAddress;\n\n Student peter = new Student();\n peter.name = \"Peter\";\n peter.height = 5;\n peter.weigth = 55;\n\n Address peterAddress = new Address();\n peterAddress.address1 = \"Doll Wood\";\n peterAddress.address2 = \"Cota Street\";\n peterAddress.zip = \"322\";\n peterAddress.country = \"USA\";\n peter.address = peterAddress;\n\n// String address = new String(\"Some Drive\");\n// String address = (\"Some Drive\");\n// SpecialKitchen kitchen;\n }", "interface Employee {\n\tpublic void showEmployeeDetails();\n}", "public Employee(String proffesion) {\n\n this.name = rnd.randomCharName(8);\n this.surname = rnd.randomCharName(7);\n this.hourSalary = rnd.randomNumber(75,100);\n this.profession = proffesion;\n this.workingHour = WORKING_HOURS;\n this.moneyEarned = 0;\n this.moneyEarned = 0;\n this.isAbleTowork = true; \n }", "public static void main(String[] args)\n\t\t\tthrows CloneNotSupportedException\n\t{\n\t\t\n\t\tEmployee e1 = new Employee(210,\"Raj\");\n\t\tDepartment dep = new Department(\"Administration\",\"A298\");\n\t\te1.show();\n\t\tEmployee e2 = (Employee)e1.clone();\n\t\te2.show();\n\t\tdep.show();\n\t\tDepartment dep1 = (Department)dep.clone();\n\t\tdep1.show();\n\t\t\n\t\n\t\t\n\t}", "interface EmployeeInfo{\n void details();\n}", "public static void main(String[] args) {\n Student12 obj1 = new Student12();\n\n //parametrised constructor invocation to initialize the object\n Student12 obj2 = new Student12(134,\"aaa\");\n\n obj1.show(); // to print obj1 attributes value\n obj2.show(); // to print obj2 attributes value\n\n }", "public String toString(){\n return \"Name: \"+this.name+\" Salary: \"+this.salary; // returning emp name and salary\r\n }", "@Override\n\tpublic String toString() {\n\t\treturn super.toString() + \"----\" + \"Employee [salary=\" + salary + \", profession=\" + profession + \"]\";\n\t}", "public Employee() {\n\t\tSystem.out.println(\"Employee Contructor Called...\");\n\t}", "static void bar(Employee emp){\n\n\n\n}", "public Employee(String firstName, String lastName, String SSN){\r\n this.firstName=firstName;\r\n this.lastName=lastName;\r\n this.SSN=SSN;\r\n }", "public static void main(String[] args) {\n Student student = Student.createInstanceByIdAndFirstName(10 , \"Jhn\");\n Student student1 = Student.createInstanceByIdAndLastName(11, \"Smith\");\n }", "public EmployeesImpl() {\r\n }" ]
[ "0.7153252", "0.71210814", "0.6827804", "0.681076", "0.6809306", "0.6569898", "0.6542944", "0.64718026", "0.635246", "0.63458276", "0.6328614", "0.6328614", "0.63012284", "0.62949634", "0.6273735", "0.62501794", "0.6237446", "0.62071085", "0.6206128", "0.6195971", "0.61894137", "0.61887413", "0.6173491", "0.616194", "0.6160938", "0.6146993", "0.61340547", "0.6130171", "0.6118039", "0.6111566", "0.61028296", "0.6098891", "0.6094461", "0.60886604", "0.6075852", "0.60672957", "0.6060915", "0.60540384", "0.6052629", "0.60408974", "0.6036382", "0.6022151", "0.6008987", "0.6002828", "0.59983873", "0.5984327", "0.5984327", "0.5984327", "0.5979931", "0.5968684", "0.59658015", "0.59620965", "0.5952925", "0.5945285", "0.5943265", "0.5937004", "0.5935622", "0.5927846", "0.5924542", "0.5915894", "0.59001166", "0.5878613", "0.58759445", "0.583454", "0.5809039", "0.58019024", "0.5801264", "0.57907665", "0.57765055", "0.57699037", "0.57692647", "0.5764972", "0.5763898", "0.5761968", "0.5761289", "0.57608837", "0.5753016", "0.57450944", "0.57379603", "0.5736843", "0.5730796", "0.57303125", "0.5730209", "0.5726628", "0.5723081", "0.5718162", "0.5717801", "0.5704552", "0.570193", "0.5701554", "0.57003194", "0.5692348", "0.5686882", "0.5678323", "0.5673232", "0.5672653", "0.5667566", "0.56672305", "0.5665023", "0.5654848" ]
0.6719995
5
Advantage of poly as we need only one method to show Employee,Student,Person as emp and stu are subclass of person.
static void operate(Person o){ o.show(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void LessonPolymorphism() {\n Employee empOne = new Employee(\"Bob\");\n Employee empTwo = new Employee(\"Linda\", \"Belcher\");\n System.out.println(empOne.getFirstName());\n System.out.println(empTwo.getFirstName() + \" \" + empTwo.getLastName());\n // run-time polymorphism - override\n //Override a method that is in a super class in a lower class\n // Create a method in BaseBO and create the same method in Empl\n BaseBO obj1 = new BaseBO();\n System.out.println(obj1.test_method());\n\n EntityType obj2 = new EntityType();\n System.out.println(obj2.test_method());\n }", "public static void main(String[] args) {\n\r\n\t\tPerson person = new Person(\"Kali\", \"Sofia\", \"+359 88 0000000\", \"[email protected]\");\r\n\t\tSystem.out.println(person.toString());\r\n\t\tStudent student = new Student(\"Sofi\", \"Sofia\", \"+359 88 0000000\", \"[email protected]\", ClassStatus.FRESHMAN);\r\n\t\tSystem.out.println(student.toString());\r\n\t\tEmployee employee = new Employee(\"George\", \"Sofia\", \"+359 88 0000000\", \"[email protected]\", \"Office 1\", 3000, \"02.10.2018\");\r\n\t\tSystem.out.println(employee.toString());\r\n\t\tFaculty faculty = new Faculty(\"George\", \"Sofia\", \"+359 88 0000000\", \"[email protected]\", \"Office 1\", 3000, \"02.10.2018\", 8, \"Professor\");\r\n\t\tSystem.out.println(faculty.toString());\r\n\t\tStaff staff = new Staff(\"George\", \"Sofia\", \"+359 88 0000000\", \"[email protected]\", \"Office 1\", 3000, \"02.10.2018\", \"Manager\");\r\n\t\tSystem.out.println(staff.toString());\r\n\t\t\r\n\t}", "private static void LessonInheritance() {\n Employee employee1 = new Employee();\n\n //Set Id , firstName and lastName of Employee from Person Class and BaseBO\n employee1.setId(13);\n employee1.setFirstName(\"Jordan(e)\");\n employee1.setLastName(\"Walker(e)\");\n\n //Print info out\n System.out.println(\"Id#\" + employee1.getId() + \" \" + employee1.getFirstName() + \" \" + employee1.getLastName());\n\n //create a Person object and inherit from BaseBO class Id\n Person person3 = new Person();\n person3.setId(7);\n person3.setFirstName(\"Jordan(p)\");\n person3.setLastName(\"Walker(p)\");\n\n System.out.println(\"Id#\" + person3.getId() + \" \" + person3.getFirstName() + \" \" + person3.getLastName());\n }", "public static void main(String[] args) {\n \r\n\t\tPerson person1 = new Person(\"Ravali\",\"Springfield\");\r\n\t\tSystem.out.println(person1);\r\n\t\t\r\n\t\tString[] arr = new String[3];\r\n\t\tarr[0] = \"Computer Network Principles\";\r\n\t\tarr[1] = \"GRS\";\r\n\t\tarr[2] = \"Computer Organization\";\r\n\t\t\r\n\t\tPerson person2 = new Teacher(3,arr);\r\n\t\tperson2.setName(\"Renuka\");\r\n\t\tperson2.setAddress(\"India\");\r\n\t\t//Here toString method of Teacher class is being called and overrides the parent class method at runtime.Hence Runtime Polymorphism\r\n\t\tSystem.out.println(person2);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString() + \"----\" + \"Employee [salary=\" + salary + \", profession=\" + profession + \"]\";\n\t}", "public static void main(String[] args) {\n\t\tPerson_19 p = new Person_19(\"Taeyong\", \"Itaewon\", \"0123456789\", \"[email protected]\");\r\n\t\tStudent_19 s = new Student_19(\"Taeyong\", \"Itaewon\", \"0123456789\", \"[email protected]\",\"senior\"); //zaplata\r\n\t\tEmployee_19 e = new Employee_19(\"Jackson\", \"Trimage\", \"0123456789\", \"[email protected]\",\"office 7\", 1000, \"11:00-18:00\");\r\n\t\tFaculty_19 f = new Faculty_19(\"Jungkook\", \"Gangnam\", \"0123456789\", \"[email protected]\",\"office 7\", 666, null, \"11:00-18:00\", 1);\r\n\t\tStaff_19 st = new Staff_19(\"Taeyong\", \"Itaewon\", \"0123456789\", \"[email protected]\",\"office 23\", 1234, null, \"11:00-18:00\");\r\n\t\tSystem.out.println(p.toString());\r\n//\t\tSystem.out.println();\r\n\t\tSystem.out.println(s.toString());\r\n//\t\tSystem.out.println();\r\n\t\tSystem.out.println(f.toString());\r\n//\t\tSystem.out.println();\r\n\t\tSystem.out.println(st.toString());\r\n\t\tSystem.out.println(e.toString());\r\n\t}", "public abstract String getBelongsToPersonOrDepartment();", "@Override\npublic String toString()\n{\n Employee emp = new Employee();\n \n StringBuilder sb = new StringBuilder();\n sb.append(\"Employee{\");\n sb.append(\"Name=\");\n sb.append(emp.getName());\n sb.append(\",Salary complement=\");\n sb.append(emp.getSalary_complement());\n sb.append(\"}\");\n\n return sb.toString();\n}", "public static void main(String[] args) {\n\n Shape circle = new Circle(5);\n System.out.println(circle.getArea());\n System.out.println(circle.getCircuit());\n Shape triangle = new Triangle(3,5,4,3);\n System.out.println(triangle.getCircuit());\n System.out.println(triangle.getArea());\n Shape square = new Square(5);\n System.out.println(square.getArea());\n System.out.println(square.getCircuit());\n\n Person person = new Person(\"Grzegorz\",40,new Medical(1111,\"Kierowanie Karetką\"));\n System.out.println(person.getResponsibilities());\n\n }", "public static void arrayListSubtypeTest()\r\n\t{\r\n\t\tArrayList<Person> persons = new ArrayList<Person>();\r\n\t persons.add(new Person(\"twoa\"));\r\n\t persons.add(new Person(\"threea\"));\r\n\t PrintCollection(persons);\r\n\t // PrintCollection1(persons);\r\n\t PrintCollection2(persons);\r\n\t}", "private TypicalPersons() {}", "private TypicalPersons() {}", "com.demo.springprotobuff.Demoproto.Student.PhoneType getType();", "@Override\n public String toString(){\n String empDetails = super.toString() + \"::FULL TIME::Annual Salary \"\n \t\t+ doubleToDollar(this.annualSalary);\n return empDetails;\n }", "private static void LessonClassObjects() {\n Person person1 = new Person();\n Person person2 = new Person();\n\n //Set title, firstname and lastname\n person1.setTitle(\"Mr.\");\n person1.setFirstName(\"Jordan\");\n person1.setLastName(\"Walker\");\n\n person2.setTitle(\"Mrs.\");\n person2.setFirstName(\"Kelsey\");\n person2.setLastName(\"Walker\");\n\n //Print out\n System.out.println(person1.getTitle()+ \" \" + person1.getFirstName() + \" \" + person1.getLastName());\n System.out.println(person2.getTitle()+ \" \" + person2.getFirstName() + \" \" + person2.getLastName());\n\n // Set super BaseBO class\n person1.setId(7);\n System.out.println(person1.getFirstName() + \" Id is: \" + person1.getId());\n }", "public abstract String printEmployeeInformation();", "public String toStringWithRelation();", "@Override\r\n public String toString() {\r\n return \"Employee{\" + super.toString() + \", \" + \"employeeNumber=\" + employeeNumber + \", salary=\" + salary + '}';\r\n }", "public PersonType_Tp getPersonType() { return personType; }", "private static Employees toSting() {\n\t\treturn null;\n\t}", "public String toString(){\n StringBuilder builder = new StringBuilder();\n builder.append(\"Employee :[ Name : \" + name + \", dept : \" + dept + \", salary :\"\n + salary+\", subordinates = \\n\");\n for(Employee e : this.subordinates) {\n builder.append(\"\\t\" + e + \"\\n\");\n }\n builder.append(\" ]\");\n return builder.toString();\n }", "@Override\n\tString toString(Employee obj) {\n\t\treturn null;\n\t}", "@Override\r\n public String toString() {\r\n return \"Person{\" + \"l=\" + l + \", firstName=\" + firstName + \", lastName=\" + lastName + \", age=\" + age + \", height=\" + height + \", weight=\" + weight + \", eyeColor=\" + eyeColor + \", gender=\" + gender + '}';\r\n }", "public static void main(String[] args) {\n\t\tPerson person = new Person();\r\n\t\tperson.setName(\"Jon Snow\");\r\n\t\tperson.setAddress(\"Castle Black, 82\");\r\n\t\tperson.setEmail(\"[email protected]\");\r\n\t\tperson.setPhone(061666666);\r\n\t\tSystem.out.println(person);\r\n\r\n\t\t// creating a instance of Staff\r\n\t\tStaff staff = new Staff();\r\n\t\tSystem.out.println();\r\n\t\tstaff.setName(\"Ned Stark\");\r\n\t\tstaff.setTitle(\"King of North\");\r\n\t\tSystem.out.println(staff);\r\n\r\n\t\t// creating a instance of Faculty\r\n\t\tFaculty faculty = new Faculty();\r\n\t\tSystem.out.println();\r\n\t\tfaculty.setName(\"Zdravko\");\r\n\t\tfaculty.setOfficeHours(40);\r\n\t\tfaculty.setRank(\"Profesor\");\r\n\t\tSystem.out.println(faculty);\r\n\r\n\t\t// creating a instance og Employee\r\n\t\tEmployee employee = new Employee();\r\n\t\tSystem.out.println();\r\n\t\temployee.setName(\"Nedim\");\r\n\t\temployee.setOffice(\"Post Office\");\r\n\t\temployee.setSalary(2000);\r\n\t\tSystem.out.println(employee);\r\n\r\n\t\t// creating a instance of Student\r\n\t\tStudent student = new Student();\r\n\t\tSystem.out.println();\r\n\t\tstudent.setName(\"Ljubisa\");\r\n\t\tstudent.setStatus(2);\r\n\t\tSystem.out.println(student);\r\n\t}", "@Override\n\tpublic Types getType() {\n\t\treturn GameObject.Types.PERSON;\n\t}", "public MsgSubsidiaryType() {\r\n\t\tsuper();\r\n\t\t// _INDIVIDUALList = new ArrayList();\r\n\t\t_DEALERList = new ArrayList();\r\n\t}", "public String toString(){\n return \"Name: \"+this.name+\" Salary: \"+this.salary; // returning emp name and salary\r\n }", "RelatedPerson<Person, Person> relatePerson(String person1, String person2, String relation);", "@Override\r\n public String toString() {\r\n return \"Student: \" + super.toString();\r\n }", "public static void main(String[] args) {\n\t\tArrayList<Person> people = new ArrayList<Person>();\r\n\t\tfor (int i = 0; i < 7; i++) {\r\n\t\t\tpeople.add(new Student());\r\n\t\t\tpeople.add(new Teacher());\r\n\t\t}\r\n\t\tfor (Person temp : people) {\r\n\t\t\tif (temp instanceof Teacher)\r\n\t\t\t\t((Teacher) temp).payMe();\r\n\t\t\tif (temp instanceof Student) {\r\n\t\t\t\t((Student) temp).outSick();\r\n\t\t\tSystem.out.println(temp.getName());\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void testAbstraction() {\n Shape triangle = new Triangle();\n\n Shape circle = new Circle();\n\n //Since square implements IShape but not Shape, so we cannot create instance of Shape using Square\n Square square = new Square();\n\n //The end user only calls getNoOfSides(). But does not see implementation in Shape class.\n //Here it picks implementation from Triangle class, so it will return a 3.\n System.out.println(\"No of sides in a triangle: \" + triangle.getNoOfSides());\n System.out.println(\"No of sides in a circle: \" + circle.getNoOfSides());\n System.out.println(\"No of sides in a square: \" + square.getNoOfSides());\n }", "public static void main(String[] args) {\n\t\tArrayList ar=new ArrayList();\n\t\tar.add(new Emp(25,\"Boss\"));// Warper class\n\t\tar.add(new Student(10,\"Bhaskar\"));\n\t\tar.add(new Emp(25,\"Sai\"));\n\t\t\n\t\tArrayList arr=new ArrayList();\n\t\tarr.add(\"String Rama\");\n\t\tarr.add(25);\n\t\tarr.add(25.15);\n\t\tarr.add(125.25f);\n\t\tarr.add('B');\n\t\tarr.addAll(ar);\n\t\tSystem.out.println(ar.get(0));\n\t\t\n\t\tfor(Object a:arr) {\n\t\t\tif(a instanceof Student) {\n\t\t\t\tStudent s=(Student)a;\n\t\t\t\tSystem.out.println(s.sId+\" \"+s.sName);\n\t\t\t}\n\t\t\telse if(a instanceof Emp) {\n\t\t\t\tEmp e=(Emp)a;\n\t\t\t\tSystem.out.println(e.eId+\",\"+e.eName);\n\t\t\t}\n\t\t\telse if(a instanceof Integer) {\n\t\t\t\tSystem.out.println(a);\n\t\t\t}\n\t\t\telse if(a instanceof String)\n\t\t\t{\n\t\t\t\tSystem.out.println(a);\n\t\t\t}\n\t\t\telse if(a instanceof Double)\n\t\t\t\tSystem.out.println(a);\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\t// what happen internal in warper class\n\t\t\n\tArrayList a1=new ArrayList();\n\t\n\t\t\t\t\t\n\t\t\n\t\t\n\t\t\n\t\t\t\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn \"\\ntoStringcalled\\t\"+name+\"\\t\"+age+\"\\t\"+salary;\n\t}", "public String toString()\n\t{\n\t\treturn \"Faculty \"+super.toString()+\" exp in yrs \"+expInYears+\" expert in \"+sme;\n\t}", "public String showPerson(){\n return _person.toString();\n }", "@Override\n public String toString() {\n String s = this.empID + \",\" + this.lastName + \",\" + this.firstName;\n s += String.format(\",%09d\", this.ssNum);\n s += \",\" + HRDateUtils.dateToStr(this.hireDate);\n s += String.format(\",%.2f\", this.salary);\n return s;\n\n }", "ImmutableList<SchemaOrgType> getAccountablePersonList();", "@Override\n public Class<Employee> getType() {\n return Employee.class;\n }", "interface EmployeeInfo{\n void details();\n}", "public static void main(String[] args) {\n\t\t\n\t\tEmployee e1 = new Professor(\"Ami\",300.0,LocalDate.of(2019, 8, 3),2);\n\t\tEmployee s1 = new Secretary(\"Jim\",400.0,LocalDate.of(2019, 2, 10),10);\n\t\t\n\n\t\t\n\t\tArrayList<Employee> list = new ArrayList<Employee>();\n\t\tlist.add(e1);\n\t\tlist.add(s1);\n\t\t\n\t\tSystem.out.println(s1);\n\t\t\n\t\tlist.forEach((e) -> {\n\t\t\t\n\t\t\tif (e instanceof Secretary)\n\t\t\t{\n\t\t\t\tSecretary s = (Secretary)e;\n\t\t\t\tSystem.out.println(s);\n\t\t\t\ts.setOverTimeHour(50);\n\t\t\t}\n\t\t\n\t\t\tSystem.out.println(String.format(\"Name : %s \\nSalary : %.2f\",e.getName(), e.computeSalary()));\n\t\t});\n\t\t\n\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString() + \"\\nEmployees: \" + getEmployees();\n\t}", "@Override\n public String toString() {\n String s = this.empID + \",\" + this.lastName + \",\" + this.firstName;\n s += String.format(\",%09d\", this.ssNum);\n s += \",\" + HRUtility.dateToStr(this.hireDate);\n s += String.format(\",%.2f\", this.salary);\n return s;\n }", "public abstract Koordinate schuss();", "@Override\r\n\tpublic String toString() {\r\n\t\tif ((personName != null) && (person == null)) {\r\n\t\t\tperson = new PersonType();\r\n\t\t}\r\n\t\tif (personName != null) {\r\n\t\t\tperson.getPersonName().add(personName);\r\n\t\t}\r\n\t\tif (person != null) {\r\n\t\t\tcriteria.setPerson(person);\r\n\t\t}\r\n\r\n\t\tthis.setPersonSearchCriteria(criteria);\r\n\r\n\t\tjava.io.OutputStream stream = new java.io.ByteArrayOutputStream();\r\n\t\ttry {\r\n\t\t\tJAXBContext jaxbContext = JAXBContext.newInstance(JAXB_CONTEXT);\r\n\t\t\tMarshaller marshaller = jaxbContext.createMarshaller();\r\n\t\t\tmarshaller.setProperty(\"jaxb.formatted.output\", true);\r\n\t\t\t// marshaller.setProperty(\"JMMarshallerImpl.JAXME_INDENTATION_STRING\",\r\n\t\t\t// \"\\r\\n\");\r\n\t\t\t// marshaller.setProperty(\"jaxb.noNamespaceSchemaLocation\",\r\n\t\t\t// \"http://uscis.gov/uscis/xsd/services/verification/2.0/verification\");\r\n\t\t\tmarshaller\r\n\t\t\t\t\t.setProperty(\"jaxb.schemaLocation\",\r\n\t\t\t\t\t\t\t\"http://uscis.gov/uscis/xsd/services/verification/2.0/verification\");\r\n\t\t\tmarshaller.marshal(this, stream);\r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\t\t\t// If you return the error message it might not be caught up front.\r\n\t\t\treturn \"\";\r\n\t\t}\r\n\t\treturn stream.toString();\r\n\t}", "@Override\n public String toString(){\n return String.format(\"Hourly Employee : %s\\n%s : %,.2f\", \n super.toString(), \"Hourly Wage\", getWage());\n }", "public void printType(){\n\t\tSystem.out.println(\"X Type : \"+objXReff.getClass().getName());\n\t\tSystem.out.println(\"Y Type : \"+objYReff.getClass().getName());\n\t}", "public interface Shape {\n\n String getDescription();\n}", "public static void oldTest1()\r\n\t{\n\t\tArrayList personlist = new ArrayList();\r\n\t\tpersonlist.add(new Person(\"one\"));\r\n\t\tpersonlist.add(new Person(\"two\"));\r\n\t\tpersonlist.add(new Person(\"three\"));\r\n\t\tpersonlist.add(new Worker(\"oneA\", \"job1\"));\r\n\t\tpersonlist.add(new Worker(\"oneA\", \"job2\"));\r\n\t\tPrintCollection1(personlist);\r\n\t\tPrintCollection(personlist);\r\n\t}", "public static void main(String[] args) {\n Teacher phyTeacher1 = new PhyTeacher(\"Binod Sir\",\"Physics\", 56.78);//java: cannot find symbol symbol: method display()\n //PhysicsTeacher chemTeacher = new PhysicsTeacher(\"Chemistry\");\n //PhysicsTeacher matTeacher = new PhysicsTeacher(\"Maths\");\n phyTeacher1.display();\n BioTeacher bioTeacher = new BioTeacher(\"Vivek Sir\",\"Biology\",100.25);\n bioTeacher.display();\n /*Dynamic Polymorphism through method overriding\n School physics= new PhyTeacher(\"Adv. Physics\");\n physics.display();\n School biology= new BioTeacher(\"Adv. Biology\");\n physics.display();\n */\n }", "public static void main(String[] args) {\n Employ obj1 = new Janani(1, \"Janani\", 757438);\n Employ obj2 = new Raghu(2, \"Raghu\", 73647);\n Employ[] arrEmploy = new Employ[]{obj1,obj2};\n for (Employ employ : arrEmploy) {\n System.out.println(employ);\n }\n }", "@Test\n public void toStringPrettyPrintTest() throws ParsingException, ParseException, NoSuchFieldException, IllegalAccessException {\n //Init\n Person person = new Person(null);\n Person partner = new Person(null);\n Union union = new Union(person, partner, new FullDate(\"05 MAR 2020\"), new Town(\"Saintes\", \"Charente-Maritime\"), UnionType.HETERO_MAR);\n\n //Reflection init\n Field idField = person.getClass().getDeclaredField(\"id\");\n Field nameField = person.getClass().getDeclaredField(\"name\");\n Field surnameField = person.getClass().getDeclaredField(\"surname\");\n idField.setAccessible(true);\n nameField.setAccessible(true);\n surnameField.setAccessible(true);\n\n //Reflection set\n idField.set(person, \"1\");\n idField.set(partner, \"2\");\n nameField.set(person, \"Pierre\");\n nameField.set(partner, \"Marie\");\n surnameField.set(person, \"Jean\");\n surnameField.set(partner, \"Georgette\");\n\n //Verification\n assertEquals(\"HETERO_MAR with Georgette Marie on 05/03/2020 at Saintes (Charente-Maritime)\", union.toStringPrettyPrint(\"1\"));\n assertEquals(\"HETERO_MAR with Jean Pierre on 05/03/2020 at Saintes (Charente-Maritime)\", union.toStringPrettyPrint(\"2\"));\n assertNull(union.toStringPrettyPrint(\"3\"));\n }", "@Override//overring a library function\n public String toString() {\n return shape + \" \" + name;//toString() is called everytime printing is done\n }", "public abstract String getStudentType();", "public String toString()\n\t//return employee values\n\t{\n\t\treturn \"Id \" + id + \" Start date \" + start + \" Salary \" + salary + super.toString() + \" Job Title \" + jobTitle;\n\t}", "public abstract String getObjectType();", "public static void main(String[] args) {\n\t\tPerson p;\n\n\t\tSystem.out.println(\"----------------\");\n\t\tp= new Employee(\"Harsh\",\"Jaipur\", LocalDate.of(1997, 12, 8), 100, 100000);\n\t\tp.show();\n\t\tSystem.out.println(\"----------------\");\n\t\tp= new Student(1, \"Harsh\",\"Jaipur\", LocalDate.of(1997, 12, 8), 100);\n\t\tp.show();\n\t\t\n\t\t\n\t\t\n\t}", "public EmployerRecord() {\n super(Employer.EMPLOYER);\n }", "interface Surgeon extends Doctor {\n\t\n}", "public interface PartOfRelation\r\n{\r\n\r\n\t/**\r\n\t * Sets author\r\n\t * \r\n\t * @param author\r\n\t */\r\n\tvoid setAuthor(String author);\r\n\r\n\r\n\t/**\r\n\t * @return Author\r\n\t */\r\n\tString getAuthor();\r\n\r\n\t/**\r\n\t * Sets class type, one typical value is '300'\r\n\t * \r\n\t * @param classType\r\n\t */\r\n\tvoid setClassType(String classType);\r\n\r\n\t/**\r\n\t * @return class type\r\n\t */\r\n\tString getClassType();\r\n\r\n\t/**\r\n\t * Sets object key, for material items this is the product ID.\r\n\t * \r\n\t * @param objectKey\r\n\t */\r\n\tvoid setObjectKey(String objectKey);\r\n\r\n\t/**\r\n\t * @return Object key.\r\n\t */\r\n\tString getObjectKey();\r\n\r\n\t/**\r\n\t * Sets object type, product or an abstract product representative\r\n\t * \r\n\t * @param objectType\r\n\t */\r\n\tvoid setObjectType(String objectType);\r\n\r\n\t/**\r\n\t * @return Object type\r\n\t */\r\n\tString getObjectType();\r\n\r\n\t/**\r\n\t * Sets position in the BOM\r\n\t * \r\n\t * @param posNr\r\n\t */\r\n\tvoid setPosNr(String posNr);\r\n\r\n\t/**\r\n\t * @return Position number\r\n\t */\r\n\tString getPosNr();\r\n\r\n\t/**\r\n\t * Sets parent instance ID\r\n\t * \r\n\t * @param parentInstId\r\n\t */\r\n\tvoid setParentInstId(String parentInstId);\r\n\r\n\t/**\r\n\t * @return Parent instance ID\r\n\t */\r\n\tString getParentInstId();\r\n\r\n\t/**\r\n\t * Sets child instance ID\r\n\t * \r\n\t * @param instId\r\n\t */\r\n\tvoid setInstId(String instId);\r\n\r\n\t/**\r\n\t * @return Child instance ID\r\n\t */\r\n\tString getInstId();\r\n}", "@Override\n public String toString() {\n return \"Person{\" + getId() + \" : \" + getUsername() + \" : \" + getJmeno() + \" \" + getPrijmeni() + '}';\n }", "public String toString(){\r\n return getNumber() + \":\" + getLastName() + \",\" + getFirstName() + \",\" + \"Sales Employee\";\r\n }", "public void setPersonType(PersonType_Tp type) { this.personType = type; }", "@Override\n\tpublic String toString() {\n\t\tStringBuffer s1 = new StringBuffer();\n\t\ts1.append(\"Employee name : \");\n\t\ts1.append(this.name);\n\t\ts1.append(\" Id is: \");\n\t\ts1.append(Integer.toString(this.id));\n\t\ts1.append(\" salary is \");\n\t\ts1.append(Integer.toString(this.salary));\n\t\treturn s1.toString();\n\n\t}", "@Override\n public String toString() { \n return super.getName() + getP1().toString() + \", \" + getP2().toString() \n + \", \" + getP3().toString();\n }", "public static void main(String[] args) {\n Employee[] employees = new Employee[5]; \n\n // initialize array with Employees\n employees[0] = new SalariedEmployee(\n \"John\", \"Smith\", \"111-11-1111\", 800.00);\n employees[1] = new HourlyEmployee(\n \"Karen\", \"Price\", \"222-22-2222\", 16.75, 40);\n employees[2] = new CommissionEmployee(\n \"Sue\", \"Jones\", \"333-33-3333\", 10000, .06); \n employees[3] = new BasePlusCommissionEmployee(\n \"Bob\", \"Lewis\", \"444-44-4444\", 5000, .04, 300);\n employees[4] = new PieceWorker(\n \"Victor\", \"Figueroa\", \"555-555-5555\", 90, 100);\n \n System.out.println(\"Employees processed polymorphically:\\n\");\n \n // generically process each element in array employees\n for (Employee currentEmployee : employees) {\n System.out.println(currentEmployee); // invokes toString\n System.out.printf(\"earned $%,.2f\\n\\n\", currentEmployee.earnings());\n } // end for\n }", "@Override public String toString(){\n\t\treturn String.format(\"%s %s %s\", firstName, middleName, lastName);\n\t}", "public interface SentenceMember {\n @Override\n String toString();\n\n SentenceMember reverse();\n}", "@Override\n\tpublic String toString() {\n\t\treturn name + \" \" + age + \" \" + sex;\n\t}", "public static void main(String[] args) {\n\t\tPerson firstPerson = new Person();//instansiasi by reference variable\n\t\tPerson secondPerson = new Person(\"Rizalddi\", \"Rnensia\", \"Male\", \"Music, Food\", 21);//instansiasi by konstruktor\n\t\tPerson thirdPerson = new Person(\"Arul\", \"Aral\", \"Male\", \"soccer\", 30);//instansiasi by konstruktor\n\t\t\n\t\t\n\t\tfirstPerson.firstName\t= \"Rizaldi\";// instansiasi by reference variable\n\t\tfirstPerson.lastName\t= \"Rnensia\";\n\t\tfirstPerson.age\t\t\t= 29;\n\t\tfirstPerson.gender\t\t= \"Male\";\n\t\tfirstPerson.interest\t= \"Music, food, travel\";\n\t\t\n\t\tSystem.out.println(\"Orang ke 1 : \");\n\t\tfirstPerson.biodata();// instansiasi by method\n\t\tfirstPerson.greeting();\n\t\tSystem.out.println(\"Orang ke 2 : \");\n\t\tsecondPerson.biodata();// instansiasi by method\n\t\tsecondPerson.greeting();\n\t\tSystem.out.println(\"Orang ke 3 : \");\n\t\tthirdPerson.biodata();// instansiasi by method\n\t\tthirdPerson.greeting();\n\t\tthirdPerson.sayThanks();\n\t\t\n\t\tTeacher firstTeacher = new Teacher();\n\t\tfirstTeacher.firstName\t= \"asep\";\n\t\tfirstTeacher.lastName\t= \"Sutiawan\";\n\t\tfirstTeacher.age\t\t= 29;\n\t\tfirstTeacher.gender\t\t= \"Male\";\n\t\tfirstTeacher.interest\t= \"noodles\";\n\t\tfirstTeacher.subject\t= \"Math\";\n\t\t\n\t\tSystem.out.println(\"\\nGuru ke 1 : \");\n\t\tfirstTeacher.biodata();\n\t\tfirstTeacher.greeting();\n\n\t\tStudent firstStudent = new Student(\"Richa\", \"Fitria\", \"Female\", \"Makan\", 20);\n\t\t\n\t\tSystem.out.println(\"\\nMurid ke 1 : \");\n\t\tfirstStudent.biodata();\n\t\tfirstStudent.greeting();\n\t}", "public String getType() {\n\t\t\treturn \"person\";\n\t\t}", "public String toString()\r\n {\r\n return super.toString() + \",\" + level + \", \" + Department + \"\\n\";\r\n }", "@Override //indicates that this method overrides a superclass method\n public String toString(){\n\n return String.format(\"%s: %s %s%n%s : %s%n%s: %.2f%n%s: %.2f\",\"commission employee\",firstName,lastName,\n \"pan number\",panCardNumber,\"gross sales\",grossSales,\"commission rate\",commissionRate);\n }", "String getReferenceType();", "public String toStringWithRelation() {\r\n StringBuilder sb = new StringBuilder();\r\n sb.append(toString());\r\n String l = \"\\n \";\r\n if (_member != null)\r\n { sb.append(l).append(xbRDS(_member, \"member\")); }\r\n if (_region != null)\r\n { sb.append(l).append(xbRDS(_region, \"region\")); }\r\n return sb.toString();\r\n }", "@Override\n public String toString ()\n {\n String format = \"Employee %s: %s , %s\\n Commission Rate: $%.1f\\n Sales: $%.2f\\n\";\n\n return String.format(format, this.getId(), this.getLastName(), this.getFirstName(), this.getRate(), this.getSales());\n }", "public static void main(String[] args) {\n\t\tSalariedEmployee salariedemployee = new SalariedEmployee(\"John\",\"Smith\",\"111-11-1111\",new Date(9,25,1993),800.0);\n\t\tHourlyEmployee hourlyemployee = new HourlyEmployee(\"Karen\",\"Price\",\"222-22-2222\",new Date(10,25,1993),900.0,40);\n\t\t\n\t\tCommissionEmployee commissionemployee = new CommissionEmployee(\"jahn\",\"L\",\"333-33-333\",new Date(11,25,1993),1000.0,.06);\n\t\t\n\t\tBasePlusCommissionEmployee basepluscommissionemployee = new BasePlusCommissionEmployee(\"bob\",\"L\",\"444-44-444\",new Date(12,25,1993),1800.0,.04,300);\n\t\t\n\t\tPieceWorker pieceworker = new PieceWorker(\"julee\",\"hong\", \"555-55-555\",new Date(12,25,1993) , 1200, 10);\n\t\tSystem.out.println(\"Employees processes individually\");\n\t\t//System.out.printf(\"%n%s%n%s: $%,.2f%n%n\", SalariedEmployee,\"earned\",SalariedEmployee.earnings());\n\n\t\t//creating employee array\n\t\t\n\t\tEmployee[] employees = new Employee[5];\n\t\t\n\t\t//intializing array with employees \n\t\temployees[0] = salariedemployee;\n\t\temployees[1] = hourlyemployee;\n\t employees[2] = commissionemployee;\n\t\temployees[3] = basepluscommissionemployee;\n\t\temployees[4]= pieceworker;\n\t\t\n\t\tSystem.out.println(\"employees processed polymorphically\");\n\t\tCalendar cal = Calendar.getInstance();\n\t\tSystem.out.println(new SimpleDateFormat(\"MM\").format(cal.getTime()));\n\t\tint currentMonth = Integer.parseInt(new SimpleDateFormat(\"MM\").format(cal.getTime()));\n\t\t\n\t\t//processing each element into the array\n\t\tfor(Employee currentemployee:employees){\n\t\t\t\n\t\t\t/*if(currentemployee.getBirthDate().getMonth()==currentMonth)\n\t\tSystem.out.println(\"current earnings\"+(currentemployee.earnings()+100));\n\t\t\telse\n\t\t\t\tSystem.out.println(\"current earnings\"+currentemployee.earnings());\n\t\t\t\t*/\n\t\t\tSystem.out.println(currentemployee.toString());\n\t\t}\n\t}", "public Person(){\r\n\t\tsuper();\r\n\t}", "public interface SRSTet extends Tetromino {\r\n @Override\r\n default String getName() {\r\n return \"SRS \" + getType();\r\n }\r\n}", "public interface Occupant extends Person {\n\n /* ***************************************************\n * Property http://ontology.cybershare.utep.edu/smart-cities/Mobility#contains\n */\n \n /**\n * Gets all property values for the contains property.<p>\n * \n * @returns a collection of values for the contains property.\n */\n Collection<? extends WrappedIndividual> getContains();\n\n /**\n * Checks if the class has a contains property value.<p>\n * \n * @return true if there is a contains property value.\n */\n boolean hasContains();\n\n /**\n * Adds a contains property value.<p>\n * \n * @param newContains the contains property value to be added\n */\n void addContains(WrappedIndividual newContains);\n\n /**\n * Removes a contains property value.<p>\n * \n * @param oldContains the contains property value to be removed.\n */\n void removeContains(WrappedIndividual oldContains);\n\n\n /* ***************************************************\n * Property http://ontology.cybershare.utep.edu/smart-cities/Mobility#has\n */\n \n /**\n * Gets all property values for the has property.<p>\n * \n * @returns a collection of values for the has property.\n */\n Collection<? extends WrappedIndividual> getHas();\n\n /**\n * Checks if the class has a has property value.<p>\n * \n * @return true if there is a has property value.\n */\n boolean hasHas();\n\n /**\n * Adds a has property value.<p>\n * \n * @param newHas the has property value to be added\n */\n void addHas(WrappedIndividual newHas);\n\n /**\n * Removes a has property value.<p>\n * \n * @param oldHas the has property value to be removed.\n */\n void removeHas(WrappedIndividual oldHas);\n\n\n /* ***************************************************\n * Property http://ontology.cybershare.utep.edu/smart-cities/Mobility#hasAge\n */\n \n /**\n * Gets all property values for the hasAge property.<p>\n * \n * @returns a collection of values for the hasAge property.\n */\n Collection<? extends Integer> getHasAge();\n\n /**\n * Checks if the class has a hasAge property value.<p>\n * \n * @return true if there is a hasAge property value.\n */\n boolean hasHasAge();\n\n /**\n * Adds a hasAge property value.<p>\n * \n * @param newHasAge the hasAge property value to be added\n */\n void addHasAge(Integer newHasAge);\n\n /**\n * Removes a hasAge property value.<p>\n * \n * @param oldHasAge the hasAge property value to be removed.\n */\n void removeHasAge(Integer oldHasAge);\n\n\n\n /* ***************************************************\n * Property http://ontology.cybershare.utep.edu/smart-cities/Mobility#hasAlcohol\n */\n \n /**\n * Gets all property values for the hasAlcohol property.<p>\n * \n * @returns a collection of values for the hasAlcohol property.\n */\n Collection<? extends Object> getHasAlcohol();\n\n /**\n * Checks if the class has a hasAlcohol property value.<p>\n * \n * @return true if there is a hasAlcohol property value.\n */\n boolean hasHasAlcohol();\n\n /**\n * Adds a hasAlcohol property value.<p>\n * \n * @param newHasAlcohol the hasAlcohol property value to be added\n */\n void addHasAlcohol(Object newHasAlcohol);\n\n /**\n * Removes a hasAlcohol property value.<p>\n * \n * @param oldHasAlcohol the hasAlcohol property value to be removed.\n */\n void removeHasAlcohol(Object oldHasAlcohol);\n\n\n\n /* ***************************************************\n * Property http://ontology.cybershare.utep.edu/smart-cities/Mobility#hasAlcoholBloodContent\n */\n \n /**\n * Gets all property values for the hasAlcoholBloodContent property.<p>\n * \n * @returns a collection of values for the hasAlcoholBloodContent property.\n */\n Collection<? extends Object> getHasAlcoholBloodContent();\n\n /**\n * Checks if the class has a hasAlcoholBloodContent property value.<p>\n * \n * @return true if there is a hasAlcoholBloodContent property value.\n */\n boolean hasHasAlcoholBloodContent();\n\n /**\n * Adds a hasAlcoholBloodContent property value.<p>\n * \n * @param newHasAlcoholBloodContent the hasAlcoholBloodContent property value to be added\n */\n void addHasAlcoholBloodContent(Object newHasAlcoholBloodContent);\n\n /**\n * Removes a hasAlcoholBloodContent property value.<p>\n * \n * @param oldHasAlcoholBloodContent the hasAlcoholBloodContent property value to be removed.\n */\n void removeHasAlcoholBloodContent(Object oldHasAlcoholBloodContent);\n\n\n\n /* ***************************************************\n * Property http://ontology.cybershare.utep.edu/smart-cities/Mobility#hasAlcoholResult\n */\n \n /**\n * Gets all property values for the hasAlcoholResult property.<p>\n * \n * @returns a collection of values for the hasAlcoholResult property.\n */\n Collection<? extends Object> getHasAlcoholResult();\n\n /**\n * Checks if the class has a hasAlcoholResult property value.<p>\n * \n * @return true if there is a hasAlcoholResult property value.\n */\n boolean hasHasAlcoholResult();\n\n /**\n * Adds a hasAlcoholResult property value.<p>\n * \n * @param newHasAlcoholResult the hasAlcoholResult property value to be added\n */\n void addHasAlcoholResult(Object newHasAlcoholResult);\n\n /**\n * Removes a hasAlcoholResult property value.<p>\n * \n * @param oldHasAlcoholResult the hasAlcoholResult property value to be removed.\n */\n void removeHasAlcoholResult(Object oldHasAlcoholResult);\n\n\n\n /* ***************************************************\n * Property http://ontology.cybershare.utep.edu/smart-cities/Mobility#hasAlcoholSpecimanType\n */\n \n /**\n * Gets all property values for the hasAlcoholSpecimanType property.<p>\n * \n * @returns a collection of values for the hasAlcoholSpecimanType property.\n */\n Collection<? extends Integer> getHasAlcoholSpecimanType();\n\n /**\n * Checks if the class has a hasAlcoholSpecimanType property value.<p>\n * \n * @return true if there is a hasAlcoholSpecimanType property value.\n */\n boolean hasHasAlcoholSpecimanType();\n\n /**\n * Adds a hasAlcoholSpecimanType property value.<p>\n * \n * @param newHasAlcoholSpecimanType the hasAlcoholSpecimanType property value to be added\n */\n void addHasAlcoholSpecimanType(Integer newHasAlcoholSpecimanType);\n\n /**\n * Removes a hasAlcoholSpecimanType property value.<p>\n * \n * @param oldHasAlcoholSpecimanType the hasAlcoholSpecimanType property value to be removed.\n */\n void removeHasAlcoholSpecimanType(Integer oldHasAlcoholSpecimanType);\n\n\n\n /* ***************************************************\n * Property http://ontology.cybershare.utep.edu/smart-cities/Mobility#hasDeployedAirbag\n */\n \n /**\n * Gets all property values for the hasDeployedAirbag property.<p>\n * \n * @returns a collection of values for the hasDeployedAirbag property.\n */\n Collection<? extends Integer> getHasDeployedAirbag();\n\n /**\n * Checks if the class has a hasDeployedAirbag property value.<p>\n * \n * @return true if there is a hasDeployedAirbag property value.\n */\n boolean hasHasDeployedAirbag();\n\n /**\n * Adds a hasDeployedAirbag property value.<p>\n * \n * @param newHasDeployedAirbag the hasDeployedAirbag property value to be added\n */\n void addHasDeployedAirbag(Integer newHasDeployedAirbag);\n\n /**\n * Removes a hasDeployedAirbag property value.<p>\n * \n * @param oldHasDeployedAirbag the hasDeployedAirbag property value to be removed.\n */\n void removeHasDeployedAirbag(Integer oldHasDeployedAirbag);\n\n\n\n /* ***************************************************\n * Property http://ontology.cybershare.utep.edu/smart-cities/Mobility#hasGender\n */\n \n /**\n * Gets all property values for the hasGender property.<p>\n * \n * @returns a collection of values for the hasGender property.\n */\n Collection<? extends Integer> getHasGender();\n\n /**\n * Checks if the class has a hasGender property value.<p>\n * \n * @return true if there is a hasGender property value.\n */\n boolean hasHasGender();\n\n /**\n * Adds a hasGender property value.<p>\n * \n * @param newHasGender the hasGender property value to be added\n */\n void addHasGender(Integer newHasGender);\n\n /**\n * Removes a hasGender property value.<p>\n * \n * @param oldHasGender the hasGender property value to be removed.\n */\n void removeHasGender(Integer oldHasGender);\n\n\n\n /* ***************************************************\n * Property http://ontology.cybershare.utep.edu/smart-cities/Mobility#hasHelmet\n */\n \n /**\n * Gets all property values for the hasHelmet property.<p>\n * \n * @returns a collection of values for the hasHelmet property.\n */\n Collection<? extends Integer> getHasHelmet();\n\n /**\n * Checks if the class has a hasHelmet property value.<p>\n * \n * @return true if there is a hasHelmet property value.\n */\n boolean hasHasHelmet();\n\n /**\n * Adds a hasHelmet property value.<p>\n * \n * @param newHasHelmet the hasHelmet property value to be added\n */\n void addHasHelmet(Integer newHasHelmet);\n\n /**\n * Removes a hasHelmet property value.<p>\n * \n * @param oldHasHelmet the hasHelmet property value to be removed.\n */\n void removeHasHelmet(Integer oldHasHelmet);\n\n\n\n /* ***************************************************\n * Property http://ontology.cybershare.utep.edu/smart-cities/Mobility#hasInjury\n */\n \n /**\n * Gets all property values for the hasInjury property.<p>\n * \n * @returns a collection of values for the hasInjury property.\n */\n Collection<? extends Integer> getHasInjury();\n\n /**\n * Checks if the class has a hasInjury property value.<p>\n * \n * @return true if there is a hasInjury property value.\n */\n boolean hasHasInjury();\n\n /**\n * Adds a hasInjury property value.<p>\n * \n * @param newHasInjury the hasInjury property value to be added\n */\n void addHasInjury(Integer newHasInjury);\n\n /**\n * Removes a hasInjury property value.<p>\n * \n * @param oldHasInjury the hasInjury property value to be removed.\n */\n void removeHasInjury(Integer oldHasInjury);\n\n\n\n /* ***************************************************\n * Property http://ontology.cybershare.utep.edu/smart-cities/Mobility#hasInjurySeverity\n */\n \n /**\n * Gets all property values for the hasInjurySeverity property.<p>\n * \n * @returns a collection of values for the hasInjurySeverity property.\n */\n Collection<? extends Integer> getHasInjurySeverity();\n\n /**\n * Checks if the class has a hasInjurySeverity property value.<p>\n * \n * @return true if there is a hasInjurySeverity property value.\n */\n boolean hasHasInjurySeverity();\n\n /**\n * Adds a hasInjurySeverity property value.<p>\n * \n * @param newHasInjurySeverity the hasInjurySeverity property value to be added\n */\n void addHasInjurySeverity(Integer newHasInjurySeverity);\n\n /**\n * Removes a hasInjurySeverity property value.<p>\n * \n * @param oldHasInjurySeverity the hasInjurySeverity property value to be removed.\n */\n void removeHasInjurySeverity(Integer oldHasInjurySeverity);\n\n\n\n /* ***************************************************\n * Property http://ontology.cybershare.utep.edu/smart-cities/Mobility#hasRestraintType\n */\n \n /**\n * Gets all property values for the hasRestraintType property.<p>\n * \n * @returns a collection of values for the hasRestraintType property.\n */\n Collection<? extends Integer> getHasRestraintType();\n\n /**\n * Checks if the class has a hasRestraintType property value.<p>\n * \n * @return true if there is a hasRestraintType property value.\n */\n boolean hasHasRestraintType();\n\n /**\n * Adds a hasRestraintType property value.<p>\n * \n * @param newHasRestraintType the hasRestraintType property value to be added\n */\n void addHasRestraintType(Integer newHasRestraintType);\n\n /**\n * Removes a hasRestraintType property value.<p>\n * \n * @param oldHasRestraintType the hasRestraintType property value to be removed.\n */\n void removeHasRestraintType(Integer oldHasRestraintType);\n\n\n\n /* ***************************************************\n * Property http://ontology.cybershare.utep.edu/smart-cities/Mobility#isPersonType\n */\n \n /**\n * Gets all property values for the isPersonType property.<p>\n * \n * @returns a collection of values for the isPersonType property.\n */\n Collection<? extends Integer> getIsPersonType();\n\n /**\n * Checks if the class has a isPersonType property value.<p>\n * \n * @return true if there is a isPersonType property value.\n */\n boolean hasIsPersonType();\n\n /**\n * Adds a isPersonType property value.<p>\n * \n * @param newIsPersonType the isPersonType property value to be added\n */\n void addIsPersonType(Integer newIsPersonType);\n\n /**\n * Removes a isPersonType property value.<p>\n * \n * @param oldIsPersonType the isPersonType property value to be removed.\n */\n void removeIsPersonType(Integer oldIsPersonType);\n\n\n\n /* ***************************************************\n * Common interfaces\n */\n\n OWLNamedIndividual getOwlIndividual();\n\n OWLOntology getOwlOntology();\n\n void delete();\n\n}", "public Employee getHRhead();", "@Override\r\n\tpublic String toString() {\r\n\t\treturn \"Employee [id=\" + id + \", name=\" + name + \", salary=\" + salary + \", designation=\" + designation\r\n\t\t\t\t+ \", department=\" + department + \", address=\" + address + \"]\";\r\n\t}", "public static void main(String[] args) {\n\t\tPerson p1=new Person(\"Poe\", \"Monywa\");\r\n\t\tPerson p2=new Person(\"Phyo\", \"Yangon\");\r\n\t\tStudent stu=new Student(p1.name,p1.address,\"Foundation Level\",1,100000.0);\r\n\t\t\r\n\t\tStaff stf=new Staff(p2.name,p2.address,\"HH\",100000.0);\r\n\t\tSystem.out.println(\"Student Information:\");\r\n\t\tSystem.out.println(\"Name:\"+stu.name+\"\\nAddress:\"+stu.address+\"\\nProgram:\"+stu.program+\"\\nYear:\"+stu.year+\"\\nFee:\"+stu.fee);\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"Staff Information:\");\r\n\t\tSystem.out.println(\"Name:\"+stf.name+\"\\nAddress:\"+stf.address+\"\\nSchool:\"+stf.school+\"\\nPay:\"+stf.pay);\r\n\t}", "public static void main(String[] args) {\n\t\tProfesor profesor = new Alumno();\r\n\t\tSystem.out.println(\"Profesor: \"+profesor.devolverNombre());\r\n\t\tSystem.out.println(\"Edad: \"+profesor.devolverEdad());\r\n\t\tSystem.out.println();\r\n\t\tPersona persona = new Alumno();\r\n\t\tSystem.out.println(\"Edad: \"+persona.devolverEdad());\r\n\t\tSystem.out.println(\"Nombre: \"+persona.devolverNombre());\r\n\t\t\r\n\t\tPersona persona2 = new Profesor();\r\n\t\tSystem.out.println(\"Edad: \"+persona2.devolverEdad());\r\n\t\tSystem.out.println(\"Nombre: \"+persona2.devolverNombre());\r\n\t\t\r\n\t\tArrayList<Persona> personas = new ArrayList<Persona>();\r\n\t\tpersonas.add(persona);\r\n\t\tpersonas.add(persona2);\r\n\t\t\r\n\t\tfor (Persona persona3 : personas) {\r\n\t\t\tSystem.out.println(\"ENTRO AL FOR\");\r\n\t\t\tSystem.out.println(\"Edad: \"+persona3.devolverEdad());\r\n\t\t\tSystem.out.println(\"Nombre: \"+persona3.devolverNombre());\r\n\t\t}\r\n\t}", "@Override\n public final String getAsString(FacesContext context, UIComponent component, Object value) {\n if (value == null || value.equals(\"\")) {\n return null;\n } else {\n //Get ID from the Person Object (primitive operation in the subclass)\n Integer id = getIdFromObjectPerson(value);\n //Create an Array for persisting personal Info (FirstName, LastName, E-mail - 3 fields)\n String [] personalInfo = getPersonalInfo(value);\n //Create String from the Person object\n String toString = getNewStringFromPerson(id, personalInfo[0], personalInfo[1], personalInfo[2]);\n \n return toString;\n }\n }", "@Override \n public String toString() \n { \n return String.format(\"salaried employee: %s%n%s: $%,.2f\",\n super.toString(), \"weekly salary\", getWeeklySalary());\n }", "@Override\n\tpublic String toString(){\n\n\t}", "public static void main(String[] args) {\n\t\tPersoon p = new Persoon();\n\t\tPersoon a = new Persoon();\n\t\tStudent s = new Student();\n\t\tPersoon k = new Student();\n\t\tSystem.out.println(Persoon.getAantal());\n\t\tSystem.out.println(Student.getAantal());\n\t\t//System.out.println(k);\n//\t\ts.setLeerkrediet(145);\n//\t\tk.print();\n\t\t//System.out.println(s.getNaam());\n\t}", "public static void main(String[] args) \r\n\t{\n\t\tSystem.out.print(\"*****Lab Description: Design and implement a class hierarchy representing individuals involved in a business***** \\n\");\r\n\t\tSystem.out.print(\"**[A. The Company Executive list]:***************************************** \\n\");\r\n\t\tSystem.out.print(\"\\n\");\r\n\t\t\t\r\n\t\tAddress E1 = new Address();\r\n\t\tExecutive EX1 = new Executive(\"Bob\", \"Jim\", 18, 1001);\r\n\t\tE1.setCity(\"San Jose\");\r\n\t\tE1.setState(\"CA\");\r\n\t\tE1.setStreetName(\"S 11st street\");\r\n\t\tE1.setZipCode(98119);\r\n\t\tE1.setStreetNumber(89);\r\n\t\tEX1.setEmployeeId(\"EX-01\");\r\n\t\tEX1.setlevelOfEducation(\"Master\");\r\n\t\tEX1.setspecoalAccomo(\"NO\");\r\n\t\tEX1.setYearlyBonus(8000);\r\n\t\tEX1.setYearlySalary(380000);\r\n\t\tEX1.computePay();\r\n\t\tSystem.out.print(\"1. \");\r\n\t\tEX1.introduce();\r\n\t\tSystem.out.print(\"[Address]: \");\r\n\t\tE1.Dispaly();\r\n\t\tSystem.out.print(\"\\n\");\r\n\t\t\r\n\t\tAddress E2 = new Address();\r\n\t\tExecutive EX2 = new Executive(\"Sam\", \"Time\", 26, 1002);\t\r\n\t\tE2.setCity(\"San Jose\");\r\n\t\tE2.setState(\"CA\");\r\n\t\tE2.setStreetName(\"N 68st street\");\r\n\t\tE2.setZipCode(92269);\r\n\t\tE2.setStreetNumber(669);\r\n\t\tEX2.setEmployeeId(\"EX-02\");\r\n\t\tEX2.setlevelOfEducation(\"Master\");\r\n\t\tEX2.setspecoalAccomo(\"NO\");\r\n\t\tEX2.setYearlyBonus(5000);\r\n\t\tEX2.setYearlySalary(520000);\r\n\t\tEX2.computePay();\r\n\t\tSystem.out.print(\"2. \");\r\n\t\tEX2.introduce();\r\n\t\tSystem.out.print(\"[Address]: \");\r\n\t\tE2.Dispaly();\r\n\t\tSystem.out.print(\"\\n\");\r\n\t\t\t\t\r\n\t\tSystem.out.print(\"**[B. The Company Full-time Salaried Employees list]:***************************************** \\n\");\r\n\t\tSystem.out.print(\"\\n\");\r\n\t\tAddress F1 = new Address();\r\n\t\tFullTimeSalaryEmployee FS1 = new FullTimeSalaryEmployee(\"Kit\", \"Amy\", 24, 2001);\r\n\t\tF1.setCity(\"San, Jose\");\r\n\t\tF1.setState(\"CA\");\r\n\t\tF1.setStreetName(\"W 16th strret\");\r\n\t\tF1.setStreetNumber(669);\r\n\t\tF1.setZipCode(96335);\r\n\t\tFS1.setEmployeeId(\"FS-2001\");\r\n\t\tFS1.setlevelOfEducation(\"Undergraduate Degree\");\r\n\t\tFS1.setspecoalAccomo(\"Yes\");\r\n\t\tFS1.setYearlySalary(30000);\r\n\t\tFS1.setYearlyBonus(2000);\r\n\t\tFS1.computePay(4);\r\n\t\tSystem.out.print(\"1. \");\r\n\t\tFS1.introduce();\r\n\t\tSystem.out.print(\"[Address]: \");\r\n\t\tF1.Dispaly();\r\n\t\tSystem.out.print(\"\\n\");\r\n\t\t\r\n\t\tAddress F2 = new Address();\r\n\t\tFullTimeSalaryEmployee FS2 = new FullTimeSalaryEmployee(\"Him\", \"Lmy\", 28, 2002);\r\n\t\tF2.setCity(\"San, Cruz\");\r\n\t\tF2.setState(\"CA\");\r\n\t\tF2.setStreetName(\"E 169th strret\");\r\n\t\tF2.setStreetNumber(42);\r\n\t\tF2.setZipCode(94561);\r\n\t\tFS2.setEmployeeId(\"FS-2002\");\r\n\t\tFS2.setlevelOfEducation(\"Undergraduate Degree\");\r\n\t\tFS2.setspecoalAccomo(\"NO\");\r\n\t\tFS2.setYearlySalary(45000);\r\n\t\tFS2.setYearlyBonus(2000);\r\n\t\tFS2.computePay(3);\r\n\t\tSystem.out.print(\"2. \");\r\n\t\tFS2.introduce();\r\n\t\tSystem.out.print(\"[Address]: \");\r\n\t\tF2.Dispaly();\r\n\t\tSystem.out.print(\"\\n\");\r\n\t\t\r\n\t\tSystem.out.print(\"**[C. The Company Full-time Hourly Employees list]:***************************************** \\n\");\r\n\t\tSystem.out.print(\"\\n\");\r\n\t\tAddress H1 = new Address();\r\n\t\tFullTimeHourlyEmployee FH1 = new FullTimeHourlyEmployee(\"Lk\", \"Bit\", 19, 3001);\r\n\t\tH1.setCity(\"San Jose\");\r\n\t\tH1.setState(\"CA\");\r\n\t\tH1.setStreetName(\"Willmams Street\");\r\n\t\tH1.setStreetNumber(779);\r\n\t\tH1.setZipCode(96654);\r\n\t\tFH1.setEmployeeId(\"FH-3001\");\r\n\t\tFH1.setlevelOfEducation(\"Undergraduate Degree\");\r\n\t\tFH1.setspecoalAccomo(\"NO\");\r\n\t\tFH1.setHourlyPay(100);\r\n\t\tFH1.setOverTimePay(200);\r\n\t\tFH1.computePay(43);\r\n\t\tSystem.out.print(\"1. \");\r\n\t\tFH1.introduce();\r\n\t\tSystem.out.print(\"[Address]: \");\r\n\t\tH1.Dispaly();\r\n\t\tSystem.out.print(\"\\n\");\r\n\t\t\r\n\t\tAddress H2 = new Address();\r\n\t\tFullTimeHourlyEmployee FH2 = new FullTimeHourlyEmployee(\"Ak\", \"Jit\", 21, 3002);\r\n\t\tH2.setCity(\"San Jose\");\r\n\t\tH2.setState(\"CA\");\r\n\t\tH2.setStreetName(\"Willmams Street\");\r\n\t\tH2.setStreetNumber(779);\r\n\t\tH2.setZipCode(96654);\r\n\t\tFH2.setEmployeeId(\"FH-3002\");\r\n\t\tFH2.setlevelOfEducation(\"Undergraduate Degree\");\r\n\t\tFH2.setspecoalAccomo(\"NO\");\r\n\t\tFH2.setHourlyPay(100);\r\n\t\tFH2.setOverTimePay(200);\r\n\t\tFH2.computePay(38);\r\n\t\tSystem.out.print(\"2. \");\r\n\t\tFH2.introduce();\r\n\t\tSystem.out.print(\"[Address]: \");\r\n\t\tH1.Dispaly();\r\n\t\tSystem.out.print(\"\\n\");\r\n\t\t\r\n\t\tSystem.out.print(\"**[D. The Company Part-time Hourly Employees list]:***************************************** \\n\");\r\n\t\tSystem.out.print(\"\\n\");\r\n\t\tAddress P1 = new Address();\r\n\t\tPartTimeHourlyEmployee PH1 = new PartTimeHourlyEmployee(\"Kitch\", \"Aml\", 18, 4001);\r\n\t\tP1.setCity(\"San jose\");\r\n\t\tP1.setState(\"CA\");\r\n\t\tP1.setStreetName(\"Jim Street\");\r\n\t\tP1.setStreetNumber(66);\r\n\t\tP1.setZipCode(96334);\r\n\t\tPH1.setlevelOfEducation(\"Master\");\r\n\t\tPH1.setspecoalAccomo(\"NO\");\r\n\t\tPH1.setHourlyPay(60);\r\n\t\tPH1.computePay(30);\r\n\t\tSystem.out.print(\"1. \");\r\n\t\tPH1.introduce();\r\n\t\tSystem.out.print(\"[Address]: \");\r\n\t\tP1.Dispaly();\r\n\t\tSystem.out.print(\"\\n\");\r\n\t\t\r\n\t\tAddress P2 = new Address();\r\n\t\tPartTimeHourlyEmployee PH2 = new PartTimeHourlyEmployee(\"Kim\", \"Boy\", 19, 4002);\r\n\t\tP2.setCity(\"San jose\");\r\n\t\tP2.setState(\"CA\");\r\n\t\tP2.setStreetName(\"Amy Street\");\r\n\t\tP2.setStreetNumber(696);\r\n\t\tP2.setZipCode(96465);\r\n\t\tPH2.setlevelOfEducation(\"Master\");\r\n\t\tPH2.setspecoalAccomo(\"NO\");\r\n\t\tPH2.setHourlyPay(60);\r\n\t\tPH2.computePay(30);\r\n\t\tSystem.out.print(\"2. \");\r\n\t\tPH2.introduce();\r\n\t\tSystem.out.print(\"[Address]: \");\r\n\t\tP2.Dispaly();\r\n\t\tSystem.out.print(\"\\n\");\r\n\t\t\r\n\t\tSystem.out.print(\"**[E. The Company Hourly Paid Contractors list]:***************************************** \\n\");\r\n\t\tSystem.out.print(\"\\n\");\r\n\t\tAddress c1 = new Address();\r\n\t\tContractor C1 = new Contractor(\"Ace\", \"EL\", 27, 5001);\r\n\t\tc1.setCity(\"San Jose\");\r\n\t\tc1.setState(\"CA\");\r\n\t\tc1.setStreetNumber(556);\r\n\t\tc1.setStreetName(\"S 28th Street\");\r\n\t\tc1.setZipCode(96348);\r\n\t\tC1.setEmployeeId(\"CO-5001\");\r\n\t\tC1.setlevelOfEducation(\"Undergraduate Degree\");\r\n\t\tC1.setspecoalAccomo(\"NO\");\r\n\t\tC1.setHourlyPay(180.5);\r\n\t\tC1.setOverTimePay(400);\r\n\t\tC1.computePay(40);\r\n\t\tSystem.out.print(\"1. \");\r\n\t\tC1.introduce();\r\n\t\tSystem.out.print(\"[Address]: \");\r\n\t\tc1.Dispaly();\r\n\t\tSystem.out.print(\"\\n\");\r\n\r\n\t\tAddress c2 = new Address();\r\n\t\tContractor C2 = new Contractor(\"Aty\", \"Jack\", 24, 5002);\r\n\t\tc2.setCity(\"San Jose\");\r\n\t\tc2.setState(\"CA\");\r\n\t\tc2.setStreetNumber(556);\r\n\t\tc2.setStreetName(\"W 18th Street\");\r\n\t\tc2.setZipCode(96987);\r\n\t\tC2.setEmployeeId(\"CO-5002\");\r\n\t\tC2.setlevelOfEducation(\"Undergraduate Degree\");\r\n\t\tC2.setspecoalAccomo(\"NO\");\r\n\t\tC2.setHourlyPay(150.5);\r\n\t\tC2.setOverTimePay(300);\r\n\t\tC2.computePay(42);\r\n\t\tSystem.out.print(\"2. \");\r\n\t\tC2.introduce();\r\n\t\tSystem.out.print(\"[Address]: \");\r\n\t\tc2.Dispaly();\r\n\t\tSystem.out.print(\"\\n\");\r\n\t\t\r\n\t\tSystem.out.print(\"**[F. The Company Customers/Clients list]:***************************************** \\n\");\r\n\t\tSystem.out.print(\"\\n\");\r\n\t\tAddress U1 = new Address();\r\n\t\tCustomer CU1 = new Customer(\"Cat\", \"AP\", 34, 6001);\r\n\t\tU1.setCity(\"LA\");\r\n\t\tU1.setState(\"CA\");\r\n\t\tU1.setStreetName(\"Josh Street\");\r\n\t\tU1.setStreetNumber(447);\r\n\t\tU1.setZipCode(50063);\r\n\t\tCU1.setCustomerId(\"CU-6001\");\r\n\t\tCU1.setDirectDeposit(\"YES\");\r\n\t\tCU1.setlevelOfEducation(\"Master\");\r\n\t\tCU1.setPaymentMethod(\"Credit Card\");\r\n\t\tCU1.setPreferredMethod(\"Credit Card\");\r\n\t\tCU1.setspecoalAccomo(\"NO\");\r\n\t\tCU1.makePayment();\r\n\t\tSystem.out.print(\"1. \");\r\n\t\tCU1.introduce();\r\n\t\tSystem.out.print(\"[Address]: \");\r\n\t\tU1.Dispaly();\r\n\t\tSystem.out.print(\"\\n\");\r\n\t\t\r\n\t\tAddress U2 = new Address();\r\n\t\tCustomer CU2 = new Customer(\"Frank\", \"Keeny\", 29, 6002);\r\n\t\tU2.setCity(\"San Jose\");\r\n\t\tU2.setState(\"CA\");\r\n\t\tU2.setStreetName(\"E 19th Street\");\r\n\t\tU2.setStreetNumber(112);\r\n\t\tU2.setZipCode(92663);\r\n\t\tCU2.setCustomerId(\"CU-6002\");\r\n\t\tCU2.setDirectDeposit(\"NO\");\r\n\t\tCU2.setlevelOfEducation(\"Undergraduate Degree\");\r\n\t\tCU2.setPaymentMethod(\"Cash\");\r\n\t\tCU2.setPreferredMethod(\"Cash Check\");\r\n\t\tCU2.setspecoalAccomo(\"NO\");\r\n\t\tCU2.makePayment();\r\n\t\tSystem.out.print(\"2. \");\r\n\t\tCU2.introduce();\r\n\t\tSystem.out.print(\"[Address]: \");\r\n\t\tU1.Dispaly();\r\n\t\tSystem.out.print(\"\\n\");\t\r\n\t}", "public static void main(String[] args) {\n\t\tArrayList<Person> arr = new ArrayList<>();\n\t\tarr.add(new Person(\"billy\", \"123 Main St\", \"123456789\", \"[email protected]\"));\n\t\tarr.add(new Student(\"bob\", \"321 Cool St\", \"987654321\", \"[email protected]\", StatusType.FRESHMAN));\n\t\tarr.add(new Employee(\"emp\", \"789 Wow St\", \"564738291\", \"[email protected]\", \"B1200\", 50000.0, new MyDate(-System.currentTimeMillis())));\n\t\tarr.add(new Faculty(\"Fac\", \"789 Some St\", \"564738291\", \"[email protected]\", \"B1200\", 50000.0, new MyDate(2019, 2, 28), 8, 4, Rank.B));\n\t\tarr.add(new Faculty(\"InvalidDateFac\", \"789 CPP St\", \"564738291\", \"[email protected]\", \"B1200\", 50000.0, new MyDate(2019, 1, 29), 8, 4, Rank.D));\n\t\tarr.add(new Faculty(\"InvalidDateFac2\", \"789 CPP St\", \"564738291\", \"[email protected]\", \"B1200\", 50000.0, new MyDate(2019, 12, 15), 8, 4, Rank.D));\n\t\tarr.add(new Staff(\"staff\", \"789 Java St\", \"564738291\", \"[email protected]\", \"B1200\", 50000.0, new MyDate(), \"Cool Title\"));\n\n\t\ttry {\n\t\t\tarr.add(new Staff(\"InvlidSalStaff\", \"789 Java St\", \"564738291\", \"[email protected]\", \"B1200\", -10000.0, new MyDate(), \"Cool Title\"));\n\t\t} catch(IllegalArgumentException e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\n\t\t// print the information to the screen...\n\t\tSystem.out.println(\"Information\");\n\t\tSystem.out.println(\"-----------\");\n\t\tfor(Person p : arr) {\n\t\t\tSystem.out.println(p);\n\t\t}\n\n\t}", "public static void main(String[] args) {\n\t\tRegularPolygon poly0 = new RegularPolygon();\r\n\t\tRegularPolygon poly1 = new RegularPolygon(6,4);\r\n\t\tRegularPolygon poly2 = new RegularPolygon(10, 4 ,5.6, 7.8);\r\n\t\t\r\n\t\t\r\n\t\t//ispis rezultata\r\n\t\tSystem.out.println(\"Perimeter for object polyO is \" +poly0.getPerimeter()+ \" and area is: \"+ poly0.getArea());\r\n\t\tSystem.out.println(\"Perimeter for object poly1 is \" +poly1.getPerimeter()+ \" and area is: \"+ poly1.getArea());\r\n\t\tSystem.out.println(\"Perimeter for object poly2 is \" +poly2.getPerimeter()+ \" and area is: \"+ poly2.getArea());\r\n\t}", "@Override\r\n public String toString()\r\n {\r\n return \"Professor: name=\" + name + \" and id=\" + id;\r\n }", "@Override \n public String toString() \n { \n return \"user\" + \n \"\\n\\t RecordNo: \" + this.recordNo + \n \"\\n\\t EmployeeName: \" + this.name + \n \"\\n\\t Age: \" + this.age + \n \"\\n\\t Sex: \" + this.sex + \n \"\\n\\t Date of Birth: \" + this.dob + \n \"\\n\\t Remark: \" + this.remark; \n }", "public void xxx() {\n System.out.println(\"Salary: \" + salary);\n printInfo();\n\n Employee e = new Employee(\"Andy\", \"123\", 26);\n// System.out.println(\"Name: \" + e.name + \"; Age: \" + e.age + \";ID: \" + e.id);\n\n Manager m = new Manager(\"Andylee\", \"124\", 27);\n// System.out.println(\"Name: \" + m.name + \"; Age: \" + m.age + \";ID: \" + m.id);\n\n }", "@Override\n public String toString()\n {\n return super.toString() + \"::FULL TIME::Annual Salary \" + toDollars(annualSalary);\n }", "abstract public void getStudent();", "private static void LessonComplexProperties() {\n EntityType emailWorkType = new EntityType(\"Work\");\n emailWorkType.setEntityTypeId(1);\n\n //instance of an object using constructor sending email in\n Email myEmail = new Email(\"[email protected]\");\n //setting email type on the Email object that is connected to EntityType Object through an instance\n myEmail.setEmailType(emailWorkType);\n\n //myEmail.getEmailType().getEntityTypeName() object within and object accessed with dot notation\n System.out.println(myEmail.getEmailAddress() + \" Type: \" + myEmail.getEmailType().getEntityTypeName() +\n myEmail.getEmailType().getEntityTypeId());\n\n //collection/list of complex(nested) objects as a property\n Employee myEmployee = new Employee();\n //Employee inherits from Person which has getEmails which sends back a List\n //then you use .add to add more emails to that List and create new Email object in that list\n myEmployee.getEmails().add(new Email(\"[email protected]\"));\n myEmployee.getEmails().add(new Email(\"[email protected]\"));\n myEmployee.getEmails().add(new Email(\"[email protected]\"));\n\n //for each statement reads email with in myEmployee object then list using getEmails\n for(Email email : myEmployee.getEmails()) {\n System.out.println(email.getEmailAddress());\n }\n\n }", "public SubpType // (##6)\nfindSubpType();", "@Override\n public String toString(){\n return name + \":\" + age;\n }", "@Override\n\tpublic abstract String toString ();", "public void empDetails() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t}", "public List<SamplePerson> getAllPeople() {\n //TODO\n throw new NotImplementedException();\n }" ]
[ "0.60660934", "0.5976141", "0.58953995", "0.58277804", "0.5546649", "0.5546107", "0.54490334", "0.54403883", "0.5414647", "0.53747857", "0.5374667", "0.5374667", "0.53315836", "0.5247731", "0.5210803", "0.51958674", "0.5152838", "0.5152772", "0.51493204", "0.5136909", "0.5136435", "0.5093411", "0.5080204", "0.5066966", "0.50544125", "0.5046788", "0.5046005", "0.50412095", "0.50325066", "0.50319", "0.5030698", "0.5024558", "0.5021197", "0.5020263", "0.5019861", "0.5016246", "0.5009926", "0.4988218", "0.49879634", "0.49819198", "0.4970252", "0.49674", "0.49599117", "0.49567965", "0.4955774", "0.49498975", "0.49477094", "0.49447882", "0.49412957", "0.4935631", "0.49091852", "0.4907295", "0.48875913", "0.48860177", "0.4885982", "0.4870498", "0.48628858", "0.48591834", "0.48536465", "0.48491812", "0.48376235", "0.48321652", "0.48273107", "0.4825638", "0.48183304", "0.48161831", "0.48118043", "0.4808665", "0.47913077", "0.4790463", "0.47876287", "0.4782956", "0.47717482", "0.47650838", "0.47647515", "0.4760867", "0.47605762", "0.47567955", "0.47537586", "0.47516462", "0.47462517", "0.47452995", "0.47353137", "0.4734923", "0.4731713", "0.47314397", "0.47309572", "0.4730089", "0.47278073", "0.47238007", "0.47213066", "0.47184345", "0.4717073", "0.4713392", "0.47090995", "0.47073305", "0.47062638", "0.47059968", "0.47050592", "0.4703361", "0.47017366" ]
0.0
-1
System.out.println("TRANSFORM " + className);
private byte[] transform(byte[] classfileBuffer, String onlyMethod, String className) { ClassReader cr = new ClassReader(classfileBuffer); ClassWriter cw = new ClassWriter(cr, ClassWriter.COMPUTE_FRAMES); ClassAdapter profiler = new ProfileClassAdapter(cw, className); // ClassVisitor cv = new LogMethodClassVisitor(cw, className); cr.accept(profiler, 0); return cw.toByteArray(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Transform getTransform() {return transform;}", "public AffineTransform getTransform()\n/* */ {\n/* 194 */ return this.transform;\n/* */ }", "public String toString()\n\t{\n\t\treturn \"Base animation\";\n\t}", "@Override \n public String toString() {\n return getName() + \"(\" + getClass().getName() + \")\";\n }", "public Matrix getTransform()\n {\n return transform;\n }", "@Override\n\tpublic String getName() {\n\t\treturn String.format(\"%s|%.1f|%d\", this.getClass().getName(), this.scale, this.targetContent);\n\t}", "public Transform() {\n setIdentity();\n }", "public AxesTransform() {\n\n\t}", "public Transform() {\n }", "public String toString() {return classSimpleName+\"#\"+name;}", "@Override\r\n\tpublic void transform(ClassNode cn) {\n\t\t\r\n\t}", "@Override\n public String toString()\n {\n\treturn getClass().getSimpleName() + \" (\" + getLength() + \"x\" + getWidth() + \")\";\n }", "public void setTransform(Transform transform);", "public String toString() {\r\n\t\treturn \"PlayAnimation\";\r\n\t}", "@Override//overring a library function\n public String toString() {\n return shape + \" \" + name;//toString() is called everytime printing is done\n }", "@Override\n protected void internalTransform(String arg0, Map arg1) {\n for (SootClass c : Scene.v().getApplicationClasses()) {\n //if (c.getName().startsWith(\"com\"))//TODO\n // if(c.getName().start)\n try {\n transform(c);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n\n }\n }", "public String toString()\n{\n StringBuffer sb = new StringBuffer(getClass().getSimpleName()).append(' ');\n if(getName()!=null) sb.append(getName()).append(' ');\n sb.append(getFrame().toString());\n return sb.toString();\n}", "public String getClassConstruct() {\n return super.getClassConstruct();\n }", "public\nDiagFormat_proximity()\n{\n}", "public String getTransformType();", "public String toString() {\n\t\tif (hierarchy.equals(\"n\")) {\n\t\t\treturn visability + \" class \" + className + \"{ \\n \";\n\t\t} else if (isFinished == true) {\n\n\t\t\treturn \"}\";\n\t\t} else {\n\t\t\treturn visability + \" \" + hierarchy + \" class \" + className\n\t\t\t\t\t+ \"{ \\n \";\n\t\t}\n\t}", "@Override\n public String toString() {\n return \"Class \" + className + \":\\n\" +\n \"\\tFields: \" + fields;\n }", "public void transform(AffineTransform Tx)\r\n\t{\r\n\t\t// System.out.println(\"transform\");\r\n\t}", "public RMTransform getTransform()\n{\n return new RMTransform(getX(), getY(), getRoll(), getWidth()/2, getHeight()/2,\n getScaleX(), getScaleY(), getSkewX(), getSkewY());\n}", "public String getName() {\n return className;\n }", "@Override\n public String toStringAnimationChange() {\n String result = \"scales from Width: \" + String.format(\"%.1f\", this.fromSx)\n + \", Height: \" + String.format(\"%.1f\", this.fromSy) + \" to \"\n + \"Width: \" + String.format(\"%.1f\", this.toSx)\n + \", Height: \" + String.format(\"%.1f\", this.toSy);\n return result;\n }", "void printClassCcft(ClassCcft iClassCcft)\n {\n System.out.println(iClassCcft.getElementValue());\n }", "public String toString() {\n/* 318 */ switch (this.h) {\n/* */ case 1:\n/* 320 */ return \"Forward RCT\";\n/* */ case 2:\n/* 322 */ return \"Forward ICT\";\n/* */ case 0:\n/* 324 */ return \"No component transformation\";\n/* */ } \n/* 326 */ throw new IllegalArgumentException(\"Non JPEG 2000 part I component transformation\");\n/* */ }", "public static void printClassSIGLA(Object _class[][],int line,int column){\r\n \r\n for (int i = 0; i < line; i++) {\r\n for (int j = 0; j < column; j++) {\r\n if(_class[i][j] != null){\r\n int array[] = (int[]) _class[i][j];\r\n System.out.print(DadosEngenhariaComputacaoMatutino.getClassLabel(array[0]));\r\n System.out.print(\"|\");\r\n }\r\n else{\r\n System.out.print(\" - |\");\r\n }\r\n \r\n }\r\n System.out.println();\r\n }\r\n }", "public String getClassName() { return className; }", "public final native void transform(String transform, Element node) /*-{ this.transform(transform, node) }-*/;", "Transforms getTransforms();", "public String toString()\n\t{\n\t\treturn \"#\"+ this.getStepLineNumber() + \" \" + this.getClass().getSimpleName();\n\t}", "public String toString()\n\t{\n\t\treturn \"#\"+ this.getStepLineNumber() + \" \" + this.getClass().getSimpleName();\n\t}", "String getOutputName();", "public String getClassName () { return _className; }", "@Override\n public synchronized String toString ()\n {\n return (super.toString () + \"[\" + Main.CLASS_NAME + \": \" +\n \"]\");\n }", "@Override\r\n\tpublic String toString(\r\n\t) {\r\n\t\treturn( \"Ray: \" + mDirection + \", Origin: \" + mOrigin );\r\n\t}", "public void printAllComponentsOnStdOut() {\r\n System.out.println(\"PackageComponent: \" + this.getName());\r\n System.out.println(\"Contains these ClassDiagramComponents: \");\r\n int counter = 1;\r\n for (ComponentBase component : classDiagramComponents) {\r\n System.out.println(\"Component no.\" + counter + \": \\t\" + component.getName());\r\n counter++;\r\n }\r\n }", "@Override\n final public String getTransform() {\n String transform = ScijavaGsonHelper.getGson(context).toJson(rt, RealTransform.class);\n //logger.debug(\"Serialization result = \"+transform);\n return transform;\n }", "void printClassAcft(ClassAcft iClassAcft)\n {\n System.out.println(iClassAcft.getElementValue());\n }", "public String toString(){\n return \"Neo[\"+getName()+\"]: CRS:\"+getCRS()+\" Bounds:\"+getBounds();\n }", "private void cmdInfoClass(String classname) throws NoSystemException {\n MSystem system = system();\n MClass cls = system.model().getClass(classname);\n if (cls == null)\n Log.error(\"Class `\" + classname + \"' not found.\");\n else {\n MMVisitor v = new MMPrintVisitor(new PrintWriter(System.out, true));\n cls.processWithVisitor(v);\n int numObjects = system.state().objectsOfClass(cls).size();\n System.out.println(numObjects + \" object\"\n + ((numObjects == 1) ? \"\" : \"s\")\n + \" of this class in current state.\");\n }\n }", "@Override\n public void displayShape() {\n System.out.println(\"Shape is Circle\");\n }", "@Override public String toString() {\n return \"\" + super.toString(); // NOI18N\n }", "@Override\n\tpublic String toString() {\n\t\treturn this.getClass().getName();\n\t}", "@Override\n\tpublic String draw() {\n\t\treturn \"Geometry Draws\";\n\t}", "@Override\n\t\tpublic GLGroupTransform transforms() { return transforms; }", "@Override\n\tpublic void orgasm() {\n\t\t\n\t}", "@Override\n public String toString() {\n return getClass().getSimpleName() + \"[\" + _name + \"]\";\n }", "String getResultClass();", "@Override\n\tpublic void acreage() {\n\t\tSystem.out.println(\"梯形的面积\"+getAcreage());\n\t}", "public String toString ()\n {\n return \"function:\" + _vname;\n }", "@Override\r\n public void draw()\r\n {\n\r\n }", "public void afficher()\n\t{\n\t\tSystem.out.println(\"Centre du cercle en \" + getPosX() + \", \" + getPosY());\n\t\tSystem.out.println(\"Rayon : \" + getRayon());\n\t}", "@Override\n\tprotected void print() {\n\t\tSystem.out.println(\"-----------\"+this.getName()+\"\");\n\t}", "public void printType(){\n\t\tSystem.out.println(\"X Type : \"+objXReff.getClass().getName());\n\t\tSystem.out.println(\"Y Type : \"+objYReff.getClass().getName());\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn \"class ChildClass\";\n\t}", "@Override\n public String toString(){\n\n return this.getClass().getSimpleName();\n }", "@Override\n\tpublic void draw() {\n\n\t}", "@Override\n\tpublic void draw() {\n\n\t}", "public String toString(){\n\t\treturn logicalClass.toString();\n\t}", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tCFX cfx = new CFX(5, 6);\n\t\tSystem.out.println(\"长方形的周长:\" + cfx.r());\n\t\tSystem.out.println(\"长方形的面积:\" + cfx.s());\n\t}", "public String getInfo()\n\t{\n\t\treturn \"Decorate\";\n\t}", "public void setTransform(AffineTransform Tx)\r\n\t{\r\n\t\t// System.out.println(\"setTransform\");\r\n\t}", "@Override\n\tpublic void draw() {\n\t}", "public String getName() {\n\t\treturn className;\n\t}", "public String toString(){\n \tint longest = longestClassName;\n StringBuffer sb = new StringBuffer();\n PrintfFormat\tformat = null;\n \n if (attributeDefinitions.getLongestName() > longest)\n \tlongest = attributeDefinitions.getLongestName();\n \n String\tlongestStr = \"\" + longest;\n format = new PrintfFormat(\"%-\" + longestStr + \"s \");\n\n sb.append(\"*** Attributes\\n\");\n TreeMap<DefinitionName,AttributeDefinition> sattrs = new TreeMap<DefinitionName, AttributeDefinition>();\n \n for(AttributeDefinition ad: attributeDefinitions.values())\n \tsattrs.put(ad.getName(), ad);\n \n for(AttributeDefinition ad : sattrs.values())\n sb.append(format.sprintf(ad.getObjectName()) + ad.getDefinedIn().getName() + \"\\n\");\n \n sb.append(\"*** Classes\\n\");\n// TreeMap<DefinitionName,ClassDefinition> scdefs = new TreeMap<DefinitionName, ClassDefinition>();\n// \n// for(ClassDefinition cd : classDefs.values())\n// \tscdefs.put(cd.getName(), cd);\n// \n// for(ClassDefinition cd : scdefs.values()){\n// sb.append(format.sprintf(cd.getObjectName()));\n// if (cd.getAbbrev() != null)\n// sb.append(\" AB \" + cd.getAbbrev());\n// sb.append(cd.getDefinedIn().getName() + \"\\n\");\n// }\n \n for(ClassDefinition cd : classDefinitions.values()){\n sb.append(format.sprintf(cd.getObjectName()));\n if (cd.getAbbrev() != null)\n sb.append(\" AB \" + cd.getAbbrev());\n sb.append(cd.getDefinedIn().getName() + \"\\n\");\n }\n \n return(new String(sb.toString()));\n }", "public String getName()\r\n {\n return \"arctan2\";\r\n }", "CrossAlign getCrossAlign();", "@Override\r\n\tpublic void name() {\n\t\tSystem.out.println(\"Hamilton\");\r\n\t}", "@Override\n\tvoid output() {\n\t\t\n\t}", "@Override\r\n\tpublic void typeform() {\n\t\tSystem.out.println(\"Type Carre\");\r\n\t}", "@Override\n public String getName() {\n return getDeclaringClass().getName();\n }", "public Pam() { //you dont need anything in this bc its only relvent for the class Alignment \n\n }", "private static String classArrayToString(Class[] pts) {\n StringBuilder result = new StringBuilder();\n for (int i = 0; i < pts.length; i++) {\n result.append(getTypeName(pts[i]));\n if (i < pts.length - 1)\n result.append(\",\");\n }\n return result.toString();\n }", "@Override\n public void draw() {\n }", "@Override\n public String toString() {\n return position.toString()\n + rotation.toString()\n + scale.toString();\n }", "@Override\n\tpublic void getName() {\n\t\tSystem.out.println(\"TESLA\");\n\t}", "public String getCommandClass() {\n\treturn className;\n }", "public void setTransform(AffineTransform transform)\n/* */ {\n/* 202 */ AffineTransform old = getTransform();\n/* 203 */ this.transform = transform;\n/* 204 */ setDirty(true);\n/* 205 */ firePropertyChange(\"transform\", old, transform);\n/* */ }", "public String toString() {\n\t\treturn getClass().getName();\n\t}", "public AffineTransform getTransform()\r\n\t{\r\n\t\treturn _g2.getTransform();\r\n\t}", "public ColorTransform(int transformType) {\n\ttype = transformType;\n\tname = TRANSF_NAMES[type];\n }", "protected void addPropNames()\n{\n addPropNames(\"Visible\", \"X\", \"Y\", \"Width\", \"Height\", \"Roll\", \"ScaleX\", \"ScaleY\",\n \"Font\", \"TextColor\", \"FillColor\", \"StrokeColor\", \"URL\");\n}", "public static void printClassAll(Object _class[][],int line,int column){\r\n \r\n for (int i = 0; i < line; i++) {\r\n for (int j = 0; j < column; j++) {\r\n if(_class[i][j] != null){\r\n int array[] = (int[]) _class[i][j];\r\n String label = DadosEngenhariaComputacaoMatutino.getClassLabel(array[0]).trim();\r\n int lengthLabel = label.length();\r\n \r\n while(label.length() <6)\r\n label = label+\" \";\r\n \r\n System.out.print(label);//Label disciplina\r\n System.out.print(\"????? \");//professor\r\n String periodo = \"\";\r\n if(array[2] < 10)\r\n periodo = \"0\"+array[2];\r\n else if(array[2] < 99)\r\n periodo = \"\"+array[2];\r\n \r\n System.out.print(periodo+\" \");//periodo\r\n System.out.print(array[3]+\" \");//Carga Horaria\r\n System.out.print(CONSTANTS.getNameTypeClass(array[4])+\" \");//Tipo de Sala\r\n String sala = \"\";\r\n if(array[5] < 10)\r\n sala = \"00\"+array[5];\r\n else if(array[5] < 100)\r\n sala = \"0\"+array[5];\r\n else\r\n sala = \"0\"+array[5];\r\n System.out.print(\" \"+sala);// Sala\r\n System.out.print(\"|\");\r\n }\r\n else{\r\n System.out.print(\" - |\");\r\n }\r\n \r\n }\r\n System.out.println();\r\n }\r\n }", "@Override\n public String simpleName() {\n if (this == class_) {\n return \"class\";\n }\n return name();\n }", "godot.wire.Wire.Transform getTransformValue();", "@Override\n public void draw()\n {\n }", "void setTransforms(Transforms transforms);", "public String toString(){\n return \"NORMAL\";\n }", "private String name() {\r\n return cls.getSimpleName() + '.' + mth;\r\n }", "public Addwritingcenter() {\n\t\n}", "public String getSerializableClassName()\n {\n return \"bm.vm.ScriptingClass\";\n }", "public void draw() {\r\n System.out.print(this);\r\n }", "@Override\r\n public void draw() {\n }", "public static void main(String[] args){\n\n String clazz = Thread.currentThread().getStackTrace()[1].getClassName();\n String methodName = Thread.currentThread().getStackTrace()[1].getMethodName();\n int lineNumber = Thread.currentThread().getStackTrace()[1].getLineNumber();\n System.out.println(\"class:\"+ clazz+\",method:\"+methodName+\",lineNum:\"+lineNumber);\n\n System.out.println(LogBox.getInstance().getClassName());\n System.out.println(LogBox.getRuntimeClassName());\n System.out.println(LogBox.getRuntimeMethodName());\n System.out.println(LogBox.getRuntimeLineNumber());\n System.out.println();\n System.out.println(LogBox.getTraceInfo());\n }", "protected StringBuffer getAttributes()\r\n\t{\r\n\t\t// Output buffer\r\n\t\tStringBuffer transformBuff\t= new StringBuffer();\r\n\t\t// The various transformation buffers.\r\n\t\tStringBuffer rotateBuff\t\t= new StringBuffer();\r\n\t\tStringBuffer translateBuff\t= new StringBuffer();\r\n\t\tStringBuffer scaleBuff \t\t= new StringBuffer();\r\n\r\n\t\t\r\n\t\t// now let's calculate our transformation information if any.\r\n\t\t////////////////// Rotate the object ////////////\r\n\t\t// you may want to play with this if it doesn't work\r\n\t\t// Transformation a followed by tranformation b is not the\r\n\t\t// same as transformation b followed by transformation a.\r\n\t\t// Page 65 SVG Essentials, J. David Eisenberg, O'Reilly Press.\r\n\t\tif (Rotation != 0.0)\r\n\t\t{\r\n\t\t\trotateBuff.append(\"rotate(\");\r\n\t\t\trotateBuff.append(Rotation + \" \");\r\n\t\t\t// Blocks are rotated around their insertion point.\r\n\t\t\trotateBuff.append(Anchor.toTransformCoordinate());\r\n\t\t\trotateBuff.append(\") \");\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\r\n\r\n\t\t///////////////// Scale the object //////////////\r\n\t\tif ((xScale != 1.0) || (yScale != 1.0))\r\n\t\t{\r\n\t\t\tscaleBuff.append(\" scale(\"+xScale);\r\n\t\t\tif (xScale != yScale)\r\n\t\t\t\tscaleBuff.append(\",\"+yScale);\r\n\t\t\tscaleBuff.append(\")\");\r\n\t\t\t\r\n\t\t\t// Now we have to compensate for any scaling in the y axis \r\n\t\t\t// because Dxf scales objects from the lower left corner of\r\n\t\t\t// the drawing and SVG scales from the top left.\r\n\t\t\t//\r\n\t\t\t// This requires a little explanation as it took some time \r\n\t\t\t// to work out exactly what is going on between DXF and SVG.\r\n\t\t\t//\r\n\t\t\t// Blocks in AutoCAD have their own space. When you choose \r\n\t\t\t// an insertion point for a block you are telling the block\r\n\t\t\t// that it's new origin is the insert point, not the drawing's\r\n\t\t\t// origin.\r\n\t\t\t//\r\n\t\t\t// Dxf2Svg reads the blocks section of the DXF and interprets the\r\n\t\t\t// entities within a block literally and converts them into \r\n\t\t\t// XML entities with the insert point as their origin.\r\n\t\t\t// \r\n\t\t\t// Now DXF's drawing origin is in the bottom lefthand corner of the page.\r\n\t\t\t// SVG's origin is the top left hand corner. That means that all blocks \r\n\t\t\t// are drawn in reference to the lower left corner. We have already converted\r\n\t\t\t// the blocks entities to assume that the origin is SVG style (top left)\r\n\t\t\t// so when we try to specify an insert point in SVG, we have a problem. The\r\n\t\t\t// references are from different corners of the page.\r\n\t\t\t//\r\n\t\t\t// To compensate blocks have two points; an Anchor like all other graphic \r\n\t\t\t// objects and a Virtual DXF Coordinate (VDC). The VDC is basically\r\n\t\t\t// the x, and y values from the DXF file, converted to USR_UNITS.\r\n\t\t\t// That's all. It is not converted to SVG space. \r\n\t\t\t// \r\n\t\t\t// First you \r\n\t\t\t// must imagine that you are overlaying SVG space (0,0 top left) on top\r\n\t\t\t// of DXF space (0,0 bottom left). To get objects to appear in the same\r\n\t\t\t// location as they did in the DXF you must move that insertion point\r\n\t\t\t// up above the SVG y = 0 line (so y becomes negative in SVG).\r\n\t\t\t// This requires knowing the height of \r\n\t\t\t// the drawing which SvgUtil.java can provide. Once you know the height\r\n\t\t\t// you find out how subtract the anchor's y coordinate from the height\r\n\t\t\t// thus in effect you are flipping between the two drawing spaces.\r\n\t\t\t//\r\n\t\t\t// Inserting an object is easy now; just use the VDC as the anchor and \r\n\t\t\t// reference the block within a &lt;g&gt; tag. If you want to scale\r\n\t\t\t// that object, things get a little more complicated. The y\r\n\t\t\t// value is in the negative 'y' range of the SVG space. Any scaling of\r\n\t\t\t// that object will be in reference to that point.\r\n\t\t\t//\r\n\t\t\t// So to get the object to appear in it's original position we must move\r\n\t\t\t// it further up into negative y SVG space by the distance it would \r\n\t\t\t// have grown during transformation. I.e. if the object grew by 25% or\r\n\t\t\t// 1.25 in AutoCAD, and the object is 1 inch in height then the growth\r\n\t\t\t// through scaling is 1 * (1.25 -1) or 1 * 0.25 or 0.25 inches.\r\n\t\t\t//\r\n\t\t\t// Now we need to now the distance of the VDC from the SVG object's\r\n\t\t\t// origin. That should be the height of the drawing, but to be sure \r\n\t\t\t// add the absolute value of the distance from SVG y = 0 to the object's\r\n\t\t\t// origin in negative y SVG space, and add it to the distance from \r\n\t\t\t// SVG y = 0 to the VDC y coordinate. Now if you multiply that distance\r\n\t\t\t// by the above 0.25, and subtract that from the SVG origin point\r\n\t\t\t// in negative SVG y space you will have compensated for the shift of \r\n\t\t\t// due to scaling.\r\n\t\t\t//\r\n\t\t\t// We don't need to do anything with the x value because it is \r\n\t\t\t// just the VDC x value, which has a one-to-one relationship to\r\n\t\t\t// SVG space except that it is not in SVG space, but in DXF space.\r\n\t\t\t//\r\n\t\t\t// I'm sorry this would have benifited from a picture so perhaps you\r\n\t\t\t// should browse through the paper documentation as there is a diagram\r\n\t\t\t// that I used to formulate the algorithm.\r\n\t\t\t\r\n\t\t\t//double VDCx = virtualDxfPoint.getX();\r\n\t\t\tdouble VDCy = virtualDxfPoint.getY();\r\n\t\t\t//double Ax\t= Anchor.getX();\r\n\t\t\tdouble Ay\t= Anchor.getY();\r\n\t\t\t\r\n\t\t\t////////////////////////////////\r\n\t\t\t//VDCx = VDCx;\r\n\t\t\tVDCy = VDCy - ((Ay + Math.abs(VDCy))*(yScale -1));\r\n\t\t\t////////////////////////////////\r\n\r\n\t\t\t// We do not need to set the x value for this point. I don't know why.\r\n\t\t\t//virtualDxfPoint.setXUU(VDCx);\r\n\t\t\tvirtualDxfPoint.setYUU(VDCy);\r\n\t\t}\r\n\t\t\r\n\t\t// We do this last because we might have adjusted the virtualDxfPoint's y \r\n\t\t// value, but the transformation is best done after the rotation and it seems\r\n\t\t// before the scale. \r\n\t\ttranslateBuff.append(\"translate(\");\r\n\t\ttranslateBuff.append(virtualDxfPoint.toTransformCoordinate());\r\n\t\ttranslateBuff.append(\")\");\r\n\t\t\r\n\t\t\r\n\t\t// Put all three parts together now.\r\n\t\ttransformBuff.append(\" transform=\\\"\");\r\n\t\t// Can only do this with Java 1.4\r\n\t\t// The transformation ordering can be changed here.\r\n\t\ttransformBuff.append(rotateBuff);\r\n\t\ttransformBuff.append(translateBuff);\r\n\t\ttransformBuff.append(scaleBuff);\t// this may be an empty buffer.\r\n\t\t// closing quote on the transformation string.\r\n\t\ttransformBuff.append(\"\\\"\");\r\n\t\ttransformBuff.append(getAdditionalAttributes());\r\n\t\t\r\n\t\treturn transformBuff;\r\n\t}", "public String getClassName()\n {\n return _className;\n }" ]
[ "0.5853609", "0.5606233", "0.5587068", "0.5464213", "0.5429277", "0.54157674", "0.53842837", "0.5380961", "0.5377257", "0.52698225", "0.52085716", "0.5201221", "0.5188436", "0.5170252", "0.5136503", "0.5135537", "0.51029927", "0.5100836", "0.5098184", "0.50881124", "0.506067", "0.5056016", "0.5054377", "0.50250703", "0.5024139", "0.49879614", "0.4979707", "0.4970658", "0.4950698", "0.49377418", "0.49329373", "0.49288517", "0.49154985", "0.49154985", "0.49111912", "0.49092838", "0.49067852", "0.48957518", "0.4892032", "0.4888607", "0.48815686", "0.4880652", "0.48700342", "0.48691013", "0.48526543", "0.48426226", "0.483722", "0.4835423", "0.48347035", "0.48326313", "0.4823465", "0.48226285", "0.48159605", "0.48138833", "0.48115206", "0.4804958", "0.4775707", "0.47657862", "0.47647294", "0.4756469", "0.4756469", "0.47538882", "0.47533378", "0.47533378", "0.47501957", "0.47484723", "0.47458127", "0.47436705", "0.47402325", "0.4733818", "0.47335556", "0.4733453", "0.47334006", "0.47319797", "0.47315004", "0.47288975", "0.472557", "0.47243947", "0.47193623", "0.47180197", "0.47149795", "0.47104827", "0.4710287", "0.47089148", "0.47081074", "0.47012493", "0.46999893", "0.46975356", "0.46946782", "0.4690431", "0.46885958", "0.46878016", "0.46877044", "0.46861795", "0.46787477", "0.46762294", "0.46730152", "0.467287", "0.46632403", "0.46594015", "0.46585745" ]
0.0
-1
method.addLocalVariable("__start", CtClass.longType); method.addLocalVariable("__stop", CtClass.longType); method.insertBefore(" __start = System.currentTimeMillis();"); method.insertAfter(" __stop = System.currentTimeMillis() __start;"); method.addLocalVariable("__start", CtClass.longType); method.addLocalVariable("__stop", CtClass.longType);
private void changeMethod(CtBehavior method) throws NotFoundException, CannotCompileException { // method.insertBefore(" __start = System.currentTimeMillis();"); // method.insertAfter(" __stop = System.currentTimeMillis() - // __start;"); // method.addLocalVariable("__start", CtClass.longType); // method.addLocalVariable("__stop", CtClass.longType); String longName = method.getDeclaringClass().getSimpleName() + "." + method.getName(); method.insertBefore("ProfileSession.opStart(\"" + longName + "\", $args);"); method.insertAfter("ProfileSession.opStop(\"" + longName + "\");", true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void method_1949() {\n this.field_1249 = System.nanoTime();\n }", "void takeBefore(){\n beforeTimeNs=System.nanoTime();\n }", "public static void startTimeMeasure() {\n \tstartTime = System.nanoTime();\n }", "public void setTimeInNs(long r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e7 in method: android.location.GpsClock.setTimeInNs(long):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.location.GpsClock.setTimeInNs(long):void\");\n }", "protected void setupTime() {\n this.start = System.currentTimeMillis();\n }", "public void setStartTime (long x)\r\n {\r\n startTime = x;\r\n }", "public String getBeginTime() {\n/* 28 */ return this.beginTime;\n/* */ }", "public long startTime();", "public void mo133110n() {\n this.f113321t = System.currentTimeMillis();\n }", "private void startTiming() {\n m_startTime = Calendar.getInstance().getTimeInMillis();\n }", "private /* synthetic */ SpeedRunType() {\n void var2_-1;\n void var1_-1;\n SpeedRunType a2;\n }", "private long CurrentTime(){\n return (TotalRunTime + System.nanoTime() - StartTime)/1000000;\n }", "public void start(){\n\n stopWatchStartTimeNanoSecs = magicBean.getCurrentThreadCpuTime();\n\n }", "protected void rememberCurTime(String varName)\n\t{\n\t\ttext(\"long \").text(varName).text(\" = System.currentTimeMillis()\").endCodeLine();\n\t}", "private static double pythonTime() {\n return System.currentTimeMillis() / 1000;\n }", "public static void insertStopwatchBefore(String methodName){\r\n if(!times.containsKey(methodName)){\r\n //System.out.println(\"Measuring method: \" + methodName);\r\n TimeMeasurement timeMeasurementUnit = new TimeMeasurement();\r\n timeMeasurementUnit.methodName = methodName;\r\n times.put(methodName, timeMeasurementUnit);\r\n }else{\r\n times.get(methodName).createNewMethodRun();\r\n }\r\n //System.out.println(times.size());\r\n }", "public long getTotalTime() {\n/* 73 */ return this.totalTime;\n/* */ }", "public void setStart(long start) { this.start = start; }", "public long getStartTime ()\r\n {\r\n return startTime;\r\n }", "net.opengis.gml.x32.TimeInstantPropertyType addNewBegin();", "static final long getStartTimeMillis()\n {\n long startTime;\n if ((startTime = ExitMain.vmStartTime) == 0L) /* hack */\n {\n startTime = VMSystem.currentTimeMillis();\n ExitMain.vmStartTime = startTime;\n }\n return startTime;\n }", "public void time(int value) \n{\n runtimes = value;\n}", "long getStartTime() {\n return startTime;\n }", "public long getBeginTime() { return beginTime; }", "net.opengis.gml.x32.TimePositionType addNewBeginPosition();", "private static String elapsed(long start) {\r\n\treturn \": elapsed : \" + (System.currentTimeMillis() - start) + \" ms \";\r\n }", "public int start() { return _start; }", "Instant getStart();", "long getStartTime();", "public void startTiming() {\n elapsedTime = 0;\n startTime = System.currentTimeMillis();\n }", "public void step() {\n \tinternaltime ++;\n \n }", "public void method_197(class_1549 var1, long var2) {}", "public long startTimeNanos();", "@Override\r\n\tpublic void preExcute(long arg0) {\n\t\tstartTime = arg0;\r\n\r\n\t}", "long getElapsedTime();", "@Test(timeout = 4000)\n public void test034() throws Throwable {\n ClassWriter classWriter0 = new ClassWriter((-1267));\n String[] stringArray0 = new String[4];\n stringArray0[0] = \"LocalVariableTypeTable\";\n stringArray0[1] = \"QL\";\n stringArray0[2] = \"LocalVariableTypeTable\";\n stringArray0[3] = \"LocalVariableTypeTable\";\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, (-2431), \"QL\", \"LocalVariableTypeTable\", \"RuntimeInvisibleAnnotations\", stringArray0, false, false);\n methodWriter0.visitIincInsn((-1267), 2684);\n }", "public String getBeginTime(){return beginTime;}", "public void IncTimeInProc() {\n this.TimeInProc++;\n }", "int getStart();", "int getCPU_time();", "public void startStopwatch() {\n startingTime = System.nanoTime();\n currentNanoTime = () -> System.nanoTime() - startingTime;\n }", "@Override\r\n\tpublic void startTime() {\n\t\tSystem.out.println(\"인터페이스 ISports2메소드 --> startTime()\");\r\n\t\t\r\n\t}", "public M csolAddTimeStart(Object start){this.put(\"csolAddTimeStart\", start);return this;}", "long getExecutionTime();", "public String startTime(){\r\n\t\treturn startTime;\r\n\t}", "public void setBeginTime(String time){beginTime = time;}", "private void startTime()\n {\n timer.start();\n }", "public void setStartTime() {\r\n startTime = System.currentTimeMillis();\r\n }", "static void setTiming(){\n killTime=(Pars.txType!=0) ? Pars.txSt+Pars.txDur+60 : Pars.collectTimesB[2]+Pars.dataTime[1]+60;//time to kill simulation\n tracksTime=(Pars.tracks && Pars.txType==0) ? Pars.collectTimesI[1]:(Pars.tracks)? Pars.collectTimesBTx[1]:100*24*60;//time to record tracks\n }", "public final void mo118712a() {\n f97549f = System.currentTimeMillis();\n }", "static void GetSecondTime() {\n\t}", "public static String _process_globals() throws Exception{\n_vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv5 = new anywheresoftware.b4a.objects.Timer();\n //BA.debugLineNum = 10;BA.debugLine=\"Private TimerAnimacionEntrada As Timer\";\n_vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv6 = new anywheresoftware.b4a.objects.Timer();\n //BA.debugLineNum = 11;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "int getStartTime();", "int getStartTime();", "int getStartTime();", "@Override\n\tpublic float getStartTime()\n\t{\n\t\treturn _tbeg;\n\t}", "@Test\n\tpublic void testStartTiming() {\n\t\tip = new ImagePlus();\n\t\tip.startTiming();\n\t}", "Time started() {\n return started;\n }", "public long getStartTime();", "public long getStartTime();", "public int getTime() { return _time; }", "public M csmiAddTimeStart(Object start){this.put(\"csmiAddTimeStart\", start);return this;}", "long getTsUpdate();", "public long getStart_time() {\n return start_time;\n }", "private int i()\r\n/* 107: */ {\r\n/* 108:111 */ return --this.duration;\r\n/* 109: */ }", "public String c()\r\n/* 30: */ {\r\n/* 31:175 */ return \"step.\" + this.a;\r\n/* 32: */ }", "@Override\n public void run() {\n long startTime = System.nanoTime();\n\n int value = 99;\n int i = 0;\n System.gc();\n\n int time1 = MainActivity.intMethod2(value);\n MainActivity tester = new MainActivity();\n int time2 = tester.intMethod(value);;\n \n long finishTime = System.nanoTime();\n\n long totalTime = finishTime - startTime;\n\n long displayTime1 = (totalTime / 1000);\n long displayTime2 = (displayTime1 / 1000);\n long displayTime3 = (displayTime2 / 1000);\n Log.d(\"MAIN ACTIVITY\", \"total time: \" + totalTime + \" display: \"\n + displayTime1 + \", \" + displayTime2 + \", \" + displayTime3);\n longToChange = displayTime1;\n Toast.makeText(\n getApplicationContext(),\n \"Value: \" + value + \"Total Time : \" + displayTime1\n + \" μs. \" + displayTime2 + \" ms. \" + displayTime3\n + \" ns.\", Toast.LENGTH_LONG).show();\n\n }", "MethodStart createMethodStart();", "public M csmiUpdateTimeStart(Object start){this.put(\"csmiUpdateTimeStart\", start);return this;}", "@Override\n\tpublic Long updateStartTime() {\n\t\treturn null;\n\t}", "public abstract double calculateStartTime();", "public static void start() { \r\n\t\ttempo_inicial = System.nanoTime(); \r\n\t\ttempo_final = 0; \r\n\t\tdiftempo = 0; \r\n\t}", "private static void showTime(String comment,long entryPoint, long endPoint) {\n long elapsedTime = endPoint - entryPoint;\n System.out.println(comment+elapsedTime+\" msec\");\n }", "public void setTimes(long startCpuTime, long startSystemTime) {\r\n this.startCpuTime = startCpuTime;\r\n this.startSystemTime = startSystemTime;\r\n }", "@Override\n\tpublic void setStartTime(float t) \n\t{\n\t\t_tbeg = t;\n\t}", "private long calculatePostTime() {\n return System.currentTimeMillis();\n }", "protected double getStartTime() {\n\t\treturn startTime;\n\t}", "@Override\n\tpublic void setStartTime(int t) {\n\t\t\n\t}", "public long getStartTime () {\n if (isPerformance) {\n return System.currentTimeMillis();\n }\n else\n {\n return 0;\n }\n }", "public long getStartCpuTime() {\r\n return startCpuTime;\r\n }", "@Override\n\t\tpublic long getStartMillis() {\n\t\t\treturn 0;\n\t\t}", "@Test(timeout = 4000)\n public void test028() throws Throwable {\n ClassWriter classWriter0 = new ClassWriter((-1983180370));\n String[] stringArray0 = new String[8];\n stringArray0[0] = \"LocalVariableTypeTable\";\n stringArray0[1] = \"QL\";\n stringArray0[2] = \"QL\";\n stringArray0[3] = \"QL\";\n stringArray0[4] = \"QL\";\n stringArray0[5] = \"QL\";\n stringArray0[6] = \"LocalVariableTypeTable\";\n stringArray0[7] = \"QL\";\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, 1, \"LocalVariableTypeTable\", \"LocalVariableTypeTable\", \"QL\", stringArray0, false, false);\n methodWriter0.visitIincInsn(1, 2);\n methodWriter0.getSize();\n methodWriter0.visitIincInsn(54, (-2994));\n }", "public void genInitialSPOffset() {\n addFirstInstruction(new ADDSP(methodTableSize + nbVar));\n addFirstComment(\"ADDSP : method table size : \" + methodTableSize + \", nb of var \" + nbVar);\n }", "public double getStartTime();", "protected void printExecutionTime(){\n //Do nothing\n }", "void setStart(Instant instant);", "LTimeConstant createLTimeConstant();", "int checkElapsedTime(){\r\n\t\treturn gc.getElapsedTime();\r\n\t}", "public M csseUpdateTimeStart(Object start){this.put(\"csseUpdateTimeStart\", start);return this;}", "public static void ComienzaTimer(){\n timer = System.nanoTime();\n }", "public void setStart_time(long start_time) {\n this.start_time = start_time;\n }", "public static long getStartTime() {\n return startTime;\n }", "int getEvalTm();", "public long elapsedMillis() {\n/* 162 */ return elapsedTime(TimeUnit.MILLISECONDS);\n/* */ }", "@Override\n\tpublic long getTime() {\n\t\treturn System.nanoTime() - startTime;\n\t}", "public Date getCreateTime()\n/* */ {\n/* 177 */ return this.createTime;\n/* */ }", "protected EditorLanguage timeDiff(String varStart, String varEnd)\n\t{\n\t\treturn text('(').text(varEnd).text(\" - \").text(varStart).text(\") / 1000.0\");\n\t}", "public void start() {\n startTime = System.currentTimeMillis();\n }", "net.opengis.gml.x32.TimeInstantPropertyType addNewEnd();", "private long now() {\n\treturn System.currentTimeMillis();\n }" ]
[ "0.6320357", "0.60653317", "0.59308755", "0.5796102", "0.5691507", "0.5672769", "0.56481457", "0.55790454", "0.5501448", "0.5491386", "0.547683", "0.547582", "0.5470891", "0.54405904", "0.5437472", "0.54364187", "0.5433469", "0.5411764", "0.5393554", "0.53926915", "0.53788614", "0.5377692", "0.53749776", "0.53512406", "0.5350072", "0.53462815", "0.5340488", "0.5317234", "0.53079665", "0.53016406", "0.5300845", "0.5292773", "0.52616656", "0.52577525", "0.52366906", "0.52351034", "0.52222204", "0.5215608", "0.52066356", "0.52042866", "0.5203702", "0.51947886", "0.51865304", "0.5158514", "0.51521236", "0.51456624", "0.5143411", "0.5135057", "0.51334304", "0.5129818", "0.5127881", "0.51094526", "0.50933564", "0.50933564", "0.50933564", "0.5084313", "0.5082946", "0.5080125", "0.50756836", "0.50756836", "0.5069075", "0.5067899", "0.50630856", "0.50603575", "0.505937", "0.50582564", "0.505605", "0.50553936", "0.50440085", "0.5034725", "0.50243795", "0.5021188", "0.50168544", "0.5014168", "0.501182", "0.5011408", "0.50108004", "0.50018626", "0.49910614", "0.49885452", "0.49875394", "0.49842814", "0.4981052", "0.49786824", "0.49731153", "0.49724555", "0.49700698", "0.49578926", "0.4956312", "0.49561867", "0.49533886", "0.49532986", "0.49521905", "0.49495012", "0.49477273", "0.4939013", "0.4937471", "0.49242672", "0.4916902", "0.49145946" ]
0.6383563
0
Creates a new GameDataJPanel. When what's drawn is larger or smaller than the supplied width and height, the drawn image will stretch to meet the current container's size.
public GameDataJPanel(GameData gameData) { this.gameData = gameData; // Setting up the swing components; JPanel programTitlePanel = new JPanel(new FlowLayout()); JLabel title = new JLabel("Actively rendering graphics and Swing " + "Components!"); programTitlePanel.add(title); changeColor = new JButton("Change color"); changeColor.addActionListener(this); JPanel changeColorPanel = new JPanel(new FlowLayout()); changeColorPanel.add(changeColor); limitFps = new JButton("Unlimit FPS"); limitFps.addActionListener(this); JPanel fpsAndUpdatePanel = new JPanel(new FlowLayout()); fpsAndUpdatePanel.add(limitFps); JPanel holder = new JPanel(new GridLayout(2, 1)); holder.add(programTitlePanel); holder.add(changeColorPanel); this.setLayout(new BorderLayout()); this.add(BorderLayout.NORTH, holder); this.add(BorderLayout.SOUTH, fpsAndUpdatePanel); // Now set the JPanel's opaque, along with other Swing components // whose backgrounds we don't want shown, so we can see the // application's graphics underneath those components! // (Try commenting some out to see what would otherwise happen!) changeColorPanel.setOpaque(false); this.setOpaque(false); title.setOpaque(false); programTitlePanel.setOpaque(false); fpsAndUpdatePanel.setOpaque(false); holder.setOpaque(false); limitingFPS = true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public GamePanel(int width, int height) {\n\t\tthis.width = width;\n\t\tthis.height = height;\n\t\tthis.tileSize = 64;\n\n\t\tsetPreferredSize(new Dimension(width, height));\n\t\tsetFocusable(true);\n\t\tsetDoubleBuffered(true);\n\n\t\timg = new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB);\n\t\timgG2 = img.createGraphics();\n\t\timgG2.setFont(new Font(\"default\", Font.BOLD, 20));\n\n\t}", "public JPanel drawToJPanel(int width, int height) {\n width = ((width - XOffSet) / increments) * increments + XOffSet; //shearing anything not %increments\n height = ((height - YOffSet) / increments) * increments + YOffSet;\n JPanel p = new GraphPanel(this, width, height);\n p.setPreferredSize(new Dimension(width + XOffSet, height + YOffSet));\n p.setSize(width * 2, height);\n return p;\n }", "private void createGameGraphics() {\n\t\tgameGraphics=new JPanel();\n\t\tgameGraphics.setPreferredSize(new Dimension(width,height));\n\t\tgameGraphics.setFocusable(false);\n\t\tthis.add(gameGraphics,\"Center\");\n\t\tgameGraphics.setVisible(true);\n\t\tgameGraphics.setDoubleBuffered(true);\n\t\tgameGraphics.setIgnoreRepaint(true);\n\t}", "private Panel buildPanelImg() {\n\t\tpanelImg = new Panel();\r\n\t\tpanelImg.setImmediate(false);\r\n\t\tpanelImg.setWidth(\"-1px\");\r\n\t\tpanelImg.setHeight(\"-1px\");\r\n\t\t\r\n\t\t// gridImg\r\n\t\tgridImg = new HorizontalLayout();\r\n\t\tgridImg.setImmediate(false);\r\n\t\tgridImg.setWidth(\"128px\");\r\n\t\tgridImg.setHeight(\"128px\");\r\n\t\tgridImg.setMargin(false);\r\n\t\tpanelImg.setContent(gridImg);\r\n\t\t\r\n\t\treturn panelImg;\r\n\t}", "public GameDisplay(int width, int height) {\n this.width = width;\n this.height = height;\n setPreferredSize(new Dimension(width, height));\n setOpaque(true);\n setDoubleBuffered(false);\n\n buffer = new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB);\n Graphics g = buffer.getGraphics();\n g.setColor(Color.BLACK);\n g.fillRect(0, 0, width, height);\n }", "public JPanel drawToJPanel(int width, int height, double minX,\n double minY, double maxX, double maxY) {\n width = ((width - XOffSet) / increments) * increments + XOffSet; //shearing anything not %increments\n height = ((height - YOffSet) / increments) * increments + YOffSet;\n GraphPanel p = new GraphPanel(this, width, height,\n minX, minY, maxX, maxY);\n p.setPreferredSize(new Dimension(width + XOffSet, height + YOffSet));\n p.setSize(width * 2, height);\n return p;\n }", "public NextPiecePanel(final int the_width,\n final int the_height)\n {\n super();\n setSize(new Dimension(the_width, the_height));\n setPreferredSize(new Dimension(the_width, the_height));\n setBackground(Color.DARK_GRAY);\n// repaint();\n }", "private void createCanvasAndFrame(){\n image = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);\n canvas = new Canvas();\n Dimension dimension = new Dimension((int)(width*scale), (int)(height*scale));\n canvas.setPreferredSize(dimension);\n canvas.setMaximumSize(dimension);\n canvas.setMinimumSize(dimension);\n\n frame = new JFrame(title);\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.setLayout(new BorderLayout());\n frame.add(canvas, BorderLayout.CENTER);\n frame.pack();\n frame.setLocationRelativeTo(null);\n frame.setResizable(false);\n frame.setVisible(true);\n\n canvas.createBufferStrategy(2);\n bufferStrategy = canvas.getBufferStrategy();\n graphics = bufferStrategy.getDrawGraphics();\n }", "public Game(){\n\t\tDimension size = new Dimension(width * scale, height * scale);\n\t\tsetPreferredSize(size);\n\t\t\n\t\tscreen = new Screen(width, height);//instantiated the new screen\n\t\t\n\t\tframe = new JFrame();\n\t\t\n\t}", "public Player(int width, int height)\n {\n this.width = width;\n this.height = height;\n createImage();\n }", "public ImageGraphics createGraphics(String image, float width, float height) {\n\t\tImageGraphics imageGraphics = new ImageGraphics(image, height, width);\n\t\timageGraphics.setParent(entity);\n\t\treturn imageGraphics;\n\t}", "private void draw() {\n Graphics2D g2 = (Graphics2D) image.getGraphics();\n\n g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n g2.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_LCD_HRGB);\n\n AffineTransform transform = AffineTransform.getTranslateInstance(0, height);\n transform.concatenate(AffineTransform.getScaleInstance(1, -1));\n g2.setTransform(transform);\n\n int width = this.width;\n int height = this.height;\n if (scale != 1) {\n g2.scale(scale, scale);\n width = (int) Math.round(width / scale);\n height = (int) Math.round(height / scale);\n }\n AbstractGraphics g = new GraphicsSWT(g2);\n\n g.setScale(scale);\n if (background != null) {\n g.drawImage(background, 0, 0, width, height);\n }\n\n synchronized (WFEventsLoader.GLOBAL_LOCK) {\n for (Widget widget : widgets) {\n if (widget != null) widget.paint(g, width, height);\n }\n }\n // draw semi-transparent pixel in top left corner to workaround famous OpenGL feature\n g.drawRect(0, 0, 1, 1, Color.WHITE, .5, PlateStyle.RectangleType.SOLID);\n\n g2.dispose();\n }", "private Component getSplitBoard() {\n\t\t\n\t\t int rows = 4; //You should decide the values for rows and cols variables\n\t int cols = 4;\n\t int chunks = rows * cols;\n\n\t int chunkWidth = image.getWidth() / cols; // determines the chunk width and height\n\t int chunkHeight = image.getHeight() / rows;\n\t int count = 0;\n\t BufferedImage imgs[] = new BufferedImage[chunks]; //Image array to hold image chunks\n\t \n\t for (int x = 0; x < rows; x++) {\n\t for (int y = 0; y < cols; y++) {\n\t //Initialize the image array with image chunks\n\t imgs[count] = new BufferedImage(chunkWidth, chunkHeight, image.getType());\n\n\t // draws the image chunk\n\t Graphics2D gr = imgs[count++].createGraphics();\n\t gr.drawImage(image, 0, 0, chunkWidth, chunkHeight, chunkWidth * y, chunkHeight * x, chunkWidth * y + chunkWidth, chunkHeight * x + chunkHeight, null);\n\t gr.dispose();\n\t }\n\t }\n\t \n\t \n\t JPanel imageBoard = new JPanel(new GridLayout(5, 4));\n\t\t\t//imageBoard.setBorder(BorderFactory.createEmptyBorder(2,2,2,2));\n\t imageBoard.setBorder ( new TitledBorder ( new EtchedBorder (), \"Image Completion puzzle\" ) );\n\t //writing mini images into image files\n\t \n\t //int[] random_index = {3, 15, 0, 2, 5, 1, 4, 8, 6, 9, 7, 11, 14, 12, 13, 10 };\n\t statusLabel.setText(\"Status: preparing random image board...\");\n\t int[] random_index = generateRandomNumbers(imgs.length);\n\t \n\t //labels = new JLabel[imgs.length];\n\t \n\t for (int i = 0; i < imgs.length; i++) {\n\t \t//final ImageIcon icn = new ImageIcon(imgs[ random_index[i] ]);\n\t \tlabels[i] = new JLabel(new ImageIcon(imgs[ random_index[i] ]));\n\t \tlabels[i].setBorder(BorderFactory.createLineBorder(Color.WHITE));\n\t \timageBoard.add(labels[i]);\n\t \tfinal int pos = i;\n\t \tlabels[i].addMouseListener(new MouseAdapter() {\n\t @Override\n\t public void mouseClicked(MouseEvent e) {\n\t \tif(canMove(pos)){\n\t \t\tIcon temp = labels[pos].getIcon();\n\t \t\tlabels[pos].setIcon(labels[blank].getIcon());\n\t \t\tlabels[blank].setIcon(temp);\n\t \t\tblank = pos;\n\t \t\tstatusLabel.setText(\"moved!\");\n\t \t}else{\n\t \t\tstatusLabel.setText(\"Cannot move!\");\n\t \t}\n\t }\n\t });\n\t //ImageIO.write(imgs[i], \"jpg\", new File(\"img\" + i + \".jpg\"));\n\t }\n\t \n\t labels[16] = new JLabel(new ImageIcon(\"blank.png\"));\n\t \n\t labels[16].addMouseListener(new MouseAdapter() {\n @Override\n public void mouseClicked(MouseEvent e) {\n \tif(canMove(16)){\n \t\tIcon temp = labels[16].getIcon();\n \t\tlabels[16].setIcon(labels[blank].getIcon());\n \t\tlabels[blank].setIcon(temp);\n \t\tblank = 16;\n \t\tstatusLabel.setText(\"moved!\");\n \t}else{\n \t\tstatusLabel.setText(\"Cannot move!\");\n \t}\n }\n });\n\t \n\t imageBoard.add( labels[16] );\n\t \n\t\treturn imageBoard;\n\t}", "private JPanel createCanvas() {\n return new JPanel() {\n\n @Override\n protected void paintComponent(Graphics g) {\n super.paintComponent(g);\n element.drawMe((Graphics2D) g);\n }\n\n };\n }", "public JPanel buildPanel() {\n\t\tsetLayout(new BorderLayout());\n\t\tsetBackground(ClientConstants.LIGHT_YELLOW);\n\t\tJLabel graphPlotLabel = new JLabel(ClientConstants.GRAPH_PLOT, JLabel.CENTER);\n\t\tgraphPlotLabel.setFont(ClientConstants.TEXT_FONT);\n\t\tadd(graphPlotLabel, BorderLayout.NORTH);\n\t\tsetLayout(new BorderLayout());\n\t\taffectiveGraphPlot = new AffectivePlot();\n\t\tClientDataSingleton.getInstance().setAffectivePlot(affectiveGraphPlot);\n\t\taffectiveGraphPlot.setBackground(Color.WHITE);\n\t\tadd(affectiveGraphPlot);\n\t\treturn this;\n\t}", "public void createGui(){\n\t\twindow = this.getContentPane(); \n\t\twindow.setLayout(new FlowLayout());\n\n\t\t//\tAdd \"panel\" to be used for drawing \n\t\t_panel = new ResizableImagePanel();\n\t\tDimension d= new Dimension(1433,642);\n\t\t_panel.setPreferredSize(d);\t\t \n\t\twindow.add(_panel);\n\n\t\t// A menu-bar contains menus. A menu contains menu-items (or sub-Menu)\n\t\tJMenuBar menuBar; // the menu-bar\n\t\tJMenu menu; // each menu in the menu-bar\n\n\t\tmenuBar = new JMenuBar();\n\t\t// First Menu\n\t\tmenu = new JMenu(\"Menu\");\n\t\tmenu.setMnemonic(KeyEvent.VK_A); // alt short-cut key\n\t\tmenuBar.add(menu); // the menu-bar adds this menu\n\n\t\tmenuItem1 = new JMenuItem(\"Fruit\", KeyEvent.VK_F);\n\t\tmenu.add(menuItem1); // the menu adds this item\n\n\t\tmenuItem2 = new JMenuItem(\"Pacman\", KeyEvent.VK_S);\n\t\tmenu.add(menuItem2); // the menu adds this item\n\t\tmenuItem3 = new JMenuItem(\"Run\");\n\t\tmenu.add(menuItem3); // the menu adds this item \n\t\tmenuItem4 = new JMenuItem(\"Save Game\");\n\t\tmenu.add(menuItem4); // the menu adds this item\n\n\t\tmenuItem5 = new JMenuItem(\"Open Game\");\n\t\tmenu.add(menuItem5); // the menu adds this item\n\t\tmenuItem6 = new JMenuItem(\"Clear Game\");\n\t\tmenu.add(menuItem6); // the menu adds this item\n\t\tmenuItem1.addActionListener(this);\n\t\tmenuItem2.addActionListener(this);\n\t\tmenuItem3.addActionListener(this);\n\t\tmenuItem4.addActionListener(this);\n\t\tmenuItem5.addActionListener(this);\n\t\tmenuItem6.addActionListener(this);\n\n\t\tsetJMenuBar(menuBar); // \"this\" JFrame sets its menu-bar\n\t\t// panel (source) fires the MouseEvent.\n\t\t//\tpanel adds \"this\" object as a MouseEvent listener.\n\t\t_panel.addMouseListener(this);\n\t}", "public CatBlock(int panelHeight, int panelWidth, GamePanel gamePanel){\r\n super(panelHeight, panelWidth, gamePanel);\r\n catImage=new ImageIcon(catImagePath).getImage();\r\n }", "public BufferedImage buildBufferedImage(Dimension size) {\n/* 101 */ return new BufferedImage(size.width, size.height, 1);\n/* */ }", "private void loadImagePanel(){\r\n\timagePanel = new JPanel(){\r\n\t\t@Override\r\n\t\tprotected void paintComponent(Graphics g) {\r\n\t\t\t// TODO Auto-generated method stub\r\n\t\t\tsuper.paintComponents(g);\r\n\t\t\t\t//drawing image\r\n\t\t\t\tg.drawImage(image, 0, 0, null);\r\n\t\t\t\t\r\n\t\t\t\tQuery q = getQuery();\r\n\t\t\t\tif(q == null || q.getSelectedQuery() == null)\r\n\t\t\t\t\treturn;\r\n\t\t\t\t\r\n\t\t\t\tif(q.getSelectedQuery().trim().equalsIgnoreCase(\"Whole Region\"))\r\n\t\t\t\t{\r\n\t\t\t\t\tif(getQuery().isSubmitFlag())\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\ttry\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tStringBuffer sqlText = new StringBuffer();\r\n\t\t\t\t\t\t\t\tConnection con=hw2.getDBConnection();\r\n\t\t\t\t\t\t\t\tStatement st=con.createStatement();\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tif(getQuery().isBuildingFlag())\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tString sqlAll=\"select shape from buildings1\";\r\n\t\t\t\t\t\t\t\t\tResultSet rs=st.executeQuery(sqlAll);\r\n\t\t\t\t\t\t\t\t\tdrawCustomPolygon(g,FeatureTypeEnum.BUILDINGS,rs,Color.YELLOW);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tif(getQuery().isAsFlag())\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tString sqlAll=\"select loc,rad from announcementsystems\";\r\n\t\t\t\t\t\t\t\t\tResultSet rs=st.executeQuery(sqlAll);\r\n\t\t\t\t\t\t\t\t\tdrawCustomPolygon(g,FeatureTypeEnum.AS,rs,Color.RED);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tif(getQuery().isStudentFlag())\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tString sqlAll=\"select cord from test1\";\r\n\t\t\t\t\t\t\t\t\tResultSet rs=st.executeQuery(sqlAll);\r\n\t\t\t\t\t\t\t\t\tdrawCustomPolygon(g,FeatureTypeEnum.STUDENTS,rs,Color.GREEN);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tcatch(Exception e)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//whole region ends\r\n\t\t\t\t\r\n\t\t\t\tif(q.getSelectedQuery().trim().equalsIgnoreCase(\"Point Query\")){\r\n\t\t\t\t\tg.setColor(Color.RED);\r\n\t\t\t\t\tg.drawRect(pqX, pqY, 5, 5);\r\n\t\t\t\t\tg.drawOval(pqX-50, pqY-50, 50*2, 50*2);\r\n\t\t\t\t\tif(getQuery().isSubmitFlag())\r\n\t\t\t\t\t{\r\n\t\t\t\t\tStringBuffer sqlText = new StringBuffer();\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tConnection con=hw2.getDBConnection();\r\n\t\t\t\t\t\tStatement st=con.createStatement();\r\n\t\t\t\t\t\tif(getQuery().isBuildingFlag()){\r\n\t\t\t\t\t\t\tString sqlAll=\"select a.shape from buildings1 a where \" +\r\n\t\t\t\t\t\t\t\t\t\"sdo_geom.relate(sdo_geometry(2003,null\" +\r\n\t\t\t\t\t\t\t\t\t\",null,sdo_elem_info_array(1,1003,4),sdo_ordinate_array(\"+(pqX-50)+\",\"+(pqY)+\",\"+(pqX+50)+\",\"+(pqY)+\",\"+(pqX)+\",\"+(pqY-50)+\")),\" +\r\n\t\t\t\t\t\t\t\t\t\"'anyinteract',a.shape,0.005)='TRUE'\";\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tString sqlNearest=\"select b.shape from buildings1 b where \" +\r\n\t\t\t\t\t\t\t\t\t\"sdo_nn(b.shape,sdo_geometry(2001,null\" +\r\n\t\t\t\t\t\t\t\t\t\",sdo_point_type(\"+pqX+\",\"+(pqY)+\",null),null,null),\"+\r\n\t\t\t\t\t\t\t\t\t\"'sdo_num_res=1')='TRUE'\";\r\n\t\t\t\t\t\t\tResultSet rs1=st.executeQuery(sqlAll);\r\n\t\t\t\t\t\t\tdrawCustomPolygon(g,FeatureTypeEnum.BUILDINGS,rs1,Color.GREEN);\r\n\t\t\t\t\t\t\tResultSet rs2=st.executeQuery(sqlNearest);\r\n\t\t\t\t\t\t\tdrawCustomPolygon(g,FeatureTypeEnum.BUILDINGS,rs2,Color.YELLOW);\r\n\t\t\t\t\t\t\tsqlText.append(sqlAll + \"\\n\" +sqlNearest);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(getQuery().isAsFlag())\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tString sqlAll =\"select a.loc,a.rad from announcementsystems a where \" +\r\n\t\t\t\t\t\t\t\t\t\"sdo_geom.relate(sdo_geometry(2003,null,null,sdo_elem_info_array(1,1003,4),\" +\r\n\t\t\t\t\t\t\t\t\t\"sdo_ordinate_array(\"+(pqX-50)+\",\"+(pqY)+\",\"+(pqX+50)+\",\"+(pqY)+\",\"+(pqX)+\",\"+(pqY-50)+\")),'anyinteract',a.loc,0.005)='TRUE'\";\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tString sqlNearest=\"select b.loc,b.rad from announcementsystems b where \" +\r\n\t\t\t\t\t\t\t\t\t\"sdo_nn(b.loc,sdo_geometry(2001,null\" +\r\n\t\t\t\t\t\t\t\t\t\",sdo_point_type(\"+pqX+\",\"+(pqY)+\",null),null,null),\"+\r\n\t\t\t\t\t\t\t\t\t\"'sdo_num_res=1')='TRUE'\";\r\n\t\t\t\t\t\t\tResultSet rs1=st.executeQuery(sqlAll);\r\n\t\t\t\t\t\t\tdrawCustomPolygon(g,FeatureTypeEnum.AS,rs1,Color.GREEN);\r\n\t\t\t\t\t\t\tResultSet rs2=st.executeQuery(sqlNearest);\r\n\t\t\t\t\t\t\tdrawCustomPolygon(g,FeatureTypeEnum.AS,rs2,Color.YELLOW);\r\n\t\t\t\t\t\t\tsqlText.append(sqlAll + \"\\n\" +sqlNearest);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(getQuery().isStudentFlag())\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tString sqlAll=\" select s.cord from test1 s where \" +\r\n\t\t\t\t\t\t\t\t\t\"sdo_geom.relate(sdo_geometry(2003,null\" +\r\n\t\t\t\t\t\t\t\t\t\",null,sdo_elem_info_array(1,1003,4),sdo_ordinate_array(\"+(pqX-50)+\",\"+(pqY)+\",\"+(pqX+50)+\",\"+(pqY)+\",\"+(pqX)+\",\"+(pqY-50)+\")),\" +\r\n\t\t\t\t\t\t\t\t\t\"'anyinteract',s.cord,0.005)='TRUE'\";\r\n\t\t\t\t\t\t\tString sqlNearest=\"select s.cord from test1 s where \" +\r\n\t\t\t\t\t\t\t\t\t\"sdo_nn(s.cord,sdo_geometry(2001,null\" +\r\n\t\t\t\t\t\t\t\t\t\",sdo_point_type(\"+pqX+\",\"+(pqY)+\",null),null,null),\"+\r\n\t\t\t\t\t\t\t\t\t\"'sdo_num_res=1')='TRUE'\";\r\n\t\t\t\t\t\t\tResultSet rs1=st.executeQuery(sqlAll);\r\n\t\t\t\t\t\t\tdrawCustomPolygon(g,FeatureTypeEnum.STUDENTS,rs1,Color.GREEN);\r\n\t\t\t\t\t\t\tResultSet rs2=st.executeQuery(sqlNearest);\r\n\t\t\t\t\t\t\tdrawCustomPolygon(g,FeatureTypeEnum.STUDENTS,rs2,Color.YELLOW);\r\n\t\t\t\t\t\t\tsqlText.append(sqlAll + \"\\n\" +sqlNearest);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tgetDispQuery().setText(sqlText.toString());\r\n\t\t\t\t\t\tst = null;\r\n\t\t\t\t\t} catch (SQLException e) {\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t}\t\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif(q.getSelectedQuery().trim().equalsIgnoreCase(\"Range Query\")){\r\n\t\t\t\t\tif(path.size() == 1){\r\n\t\t\t\t\t\tg.setColor(Color.RED);\r\n\t\t\t\t\t\tg.drawRect(path.get(0).x, path.get(0).y, 10, 10);\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tg.setColor(Color.RED);\r\n\t\t\t\t\t\tfor(int i=1;i<path.size();i++){\r\n\t\t\t\t\t\t\tint a = path.get(i-1).x;\r\n\t\t\t\t\t\t\tint b = path.get(i-1).y;\r\n\t\t\t\t\t\t\tint c = path.get(i).x;\r\n\t\t\t\t\t\t\tint d = path.get(i).y;\r\n\t\t\t\t\t\t\txi= path.get(i).x;\r\n\t\t\t\t\t\t\tyi= path.get(i).y;\r\n\t\t\t\t\t\t\tg.drawLine(a, b, c, d);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\tif(getQuery().isSubmitFlag())\r\n\t\t\t\t\t{\r\n\t\t\t\t\tStringBuffer sqlText = new StringBuffer();\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tConnection con=hw2.getDBConnection();\r\n\t\t\t\t\t\tStatement st=con.createStatement();\r\n\t\t\t\t\t\tString coordinates=\"\";\r\n\t\t\t\t\t\tfor(int i=0;i<path.size();i++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tcoordinates+=path.get(i).x+\",\"+path.get(i).y+\",\";\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tcoordinates+=path.get(0).x+\",\"+path.get(0).y;\r\n\t\t\t\t\t\tif(getQuery().isBuildingFlag()){\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tString sqlAll=\"select a.shape from buildings1 a where \" +\r\n\t\t\t\t\t\t\t\t\t\"sdo_geom.relate(sdo_geometry(2003,null\" +\r\n\t\t\t\t\t\t\t\t\t\",null,sdo_elem_info_array(1,1003,1),sdo_ordinate_array(\"+coordinates+\")),\" +\r\n\t\t\t\t\t\t\t\t\t\"'anyinteract',a.shape,0.005)='TRUE'\";\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tResultSet rs1=st.executeQuery(sqlAll);\r\n\t\t\t\t\t\t\tdrawCustomPolygon(g,FeatureTypeEnum.BUILDINGS,rs1,Color.YELLOW);\r\n\t\t\t\t\t\t\tsqlText.append(sqlAll + \"\\n\" );\r\n\t\t\t\t\t\t\tgetDispQuery().setText(sqlText.toString());\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(getQuery().isAsFlag())\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tString sqlAll =\"select a.loc,a.rad from announcementsystems a where \" +\r\n\t\t\t\t\t\t\t\t\t\"sdo_geom.relate(sdo_geometry(2003,null,null,sdo_elem_info_array(1,1003,1),\" +\r\n\t\t\t\t\t\t\t\t\t\"sdo_ordinate_array(\"+coordinates+\")),'anyinteract',a.loc,0.005)='TRUE'\";\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tResultSet rs1=st.executeQuery(sqlAll);\r\n\t\t\t\t\t\t\tdrawCustomPolygon(g,FeatureTypeEnum.AS,rs1,Color.RED);\r\n\t\t\t\t\t\t\tsqlText.append(sqlAll + \"\\n\" );\r\n\t\t\t\t\t\t\tgetDispQuery().setText(sqlText.toString());\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(getQuery().isStudentFlag())\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tString sqlAll=\" select s.cord from test1 s where \" +\r\n\t\t\t\t\t\t\t\t\t\"sdo_geom.relate(sdo_geometry(2003,null\" +\r\n\t\t\t\t\t\t\t\t\t\",null,sdo_elem_info_array(1,1003,1),sdo_ordinate_array(\"+coordinates+\")),\" +\r\n\t\t\t\t\t\t\t\t\t\"'anyinteract',s.cord,0.005)='TRUE'\";\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tResultSet rs1=st.executeQuery(sqlAll);\r\n\t\t\t\t\t\t\tdrawCustomPolygon(g,FeatureTypeEnum.STUDENTS,rs1,Color.GREEN);\r\n\t\t\t\t\t\t\tsqlText.append(sqlAll + \"\\n\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tgetDispQuery().setText(sqlText.toString());\r\n\t\t\t\t\t\tst = null;\r\n\t\t\t\t\t}\t\t\r\n\t\t\t\t\tcatch(Exception e)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t}\t// end of Range Query\r\n\t\t\t\t\r\n\t\t\t\tif(q.getSelectedQuery().trim().equalsIgnoreCase(\"Surrounding Student\"))\r\n\t\t\t\t{\r\n\t\t\t\t\tg.setColor(Color.RED);\r\n\t\t\t\t\tStringBuffer sqlText = new StringBuffer();\r\n\t\t\t\t\tg.drawRect(pqX, pqY, 5, 5);\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tConnection con=hw2.getDBConnection();\r\n\t\t\t\t\t\tStatement st=con.createStatement();\r\n\t\t\t\t\t\tString sqlNearest=\"select a.loc,a.rad from announcementsystems a where \" +\r\n\t\t\t\t\t\t\t\t\"sdo_nn(a.loc,sdo_geometry(2001,null\" +\r\n\t\t\t\t\t\t\t\t\",sdo_point_type(\"+pqX+\",\"+(pqY)+\",null),null,null),\"+\r\n\t\t\t\t\t\t\t\t\"'sdo_num_res=1')='TRUE'\";\r\n\t\t\t\t\t\tResultSet rs2=st.executeQuery(sqlNearest);\r\n\t\t\t\t\t\tdrawCustomPolygon(g,FeatureTypeEnum.AS,rs2,Color.RED);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(getQuery().isSubmitFlag())\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tint xco,yco,rad;\r\n\t\t\t\t\t\t\tString sqlAll=\"select p.rad,q.X,q.Y from announcementsystems p\" +\r\n\t\t\t\t\t\t\t\t\t\",table(sdo_util.getvertices(p.loc))q where p.bid in\" +\r\n\t\t\t\t\t\t\t\t\t\"(select a.bid from announcementsystems a where sdo_nn\" +\r\n\t\t\t\t\t\t\t\t\t\"(a.loc,sdo_geometry(2001,null\" +\r\n\t\t\t\t\t\t\t\t\t\",sdo_point_type(\"+pqX+\",\"+(pqY)+\",null),null,null),\"+\r\n\t\t\t\t\t\t\t\t\t\"'sdo_num_res=1')='TRUE')\";\r\n\t\t\t\t\t\t\tResultSet rs3=st.executeQuery(sqlAll);\r\n\t\t\t\t\t\t\trs3.next();\r\n\t\t\t\t\t\t\t rad=rs3.getInt(1);\r\n\t\t\t\t\t\t\t xco=rs3.getInt(2);\r\n\t\t\t\t\t\t\t yco=rs3.getInt(3);\r\n\t\t\t\t\t\t\tString sqlsurr=\"select c.cord from test1 c where sdo_geom.relate\" +\r\n\t\t\t\t\t\t\t\t\t\"(c.cord,'anyinteract',sdo_geometry(2003,null,null,sdo_elem_info_array(1,1003,4)\" +\r\n\t\t\t\t\t\t\t\t\t\",sdo_ordinate_array(\"+(xco+rad)+\",\"+(yco)+\",\"+(xco-rad)+\",\"+(yco)+\",\"+(xco)+\",\"+(yco+rad)+\r\n\t\t\t\t\t\t\t\t\t\")),0.005)='TRUE'\";\r\n\t\t\t\t\t\t\tResultSet rs8=st.executeQuery(sqlsurr);\r\n\t\t\t\t\t\t\tdrawCustomPolygon(g,FeatureTypeEnum.STUDENTS,rs8,Color.GREEN);\t\r\n\t\t\t\t\t\t\tsqlText.append(\"Query1:\"+sqlAll + \"\\n\"+\"Query2:\" +sqlNearest+\"\\n\"+\"Query3:\"+sqlsurr);\r\n\t\t\t\t\t\t\tgetDispQuery().setText(sqlText.toString());\r\n\t\t\t\t\t\t}\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcatch(Exception e)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t}//surronding query end\r\n\t\t\t\t\r\n\t\t\t\tif(q.getSelectedQuery().trim().equalsIgnoreCase(\"Emergency Query\"))\r\n\t\t\t\t{\r\n\t\t\t\t\tg.setColor(Color.RED);\r\n\t\t\t\t\tStringBuffer sqlText = new StringBuffer();\r\n\t\t\t\t\tg.drawRect(pqX, pqY, 5, 5);\r\n\t\t\t\t\tint no4=0;\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tConnection con=hw2.getDBConnection();\r\n\t\t\t\t\t\tStatement st=con.createStatement();\r\n\t\t\t\t\t\tString sqlNearest=\"select a.loc,a.rad from announcementsystems a where \" +\r\n\t\t\t\t\t\t\t\t\"sdo_nn(a.loc,sdo_geometry(2001,null\" +\r\n\t\t\t\t\t\t\t\t\",sdo_point_type(\"+pqX+\",\"+(pqY)+\",null),null,null),\"+\r\n\t\t\t\t\t\t\t\t\"'sdo_num_res=1')='TRUE'\";\r\n\t\t\t\t\t\tno4++;\r\n\t\t\t\t\t\tsqlText.append(\"Query\"+no4+\":\"+sqlNearest+\"\\n\");\r\n\t\t\t\t\t\tResultSet rs2=st.executeQuery(sqlNearest);\r\n\t\t\t\t\t\tdrawCustomPolygon(g,FeatureTypeEnum.AS,rs2,Color.RED);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(getQuery().isSubmitFlag())\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tint xco,yco,rad;\r\n\t\t\t\t\t\t\tString aname;\r\n\t\t\t\t\t\t\tno4++;\r\n\t\t\t\t\t\t\tString sqlAll=\"select p.rad,p.bid,q.X,q.Y from announcementsystems p\" +\r\n\t\t\t\t\t\t\t\t\t\",table(sdo_util.getvertices(p.loc))q where p.bid in\" +\r\n\t\t\t\t\t\t\t\t\t\"(select a.bid from announcementsystems a where sdo_nn\" +\r\n\t\t\t\t\t\t\t\t\t\"(a.loc,sdo_geometry(2001,null\" +\r\n\t\t\t\t\t\t\t\t\t\",sdo_point_type(\"+pqX+\",\"+(pqY)+\",null),null,null),\"+\r\n\t\t\t\t\t\t\t\t\t\"'sdo_num_res=1')='TRUE')\";\r\n\t\t\t\t\t\t\tsqlText.append(\"Query\"+no4+\":\"+sqlAll+\"\\n\");\r\n\t\t\t\t\t\t\tResultSet rs3=st.executeQuery(sqlAll);\r\n\t\t\t\t\t\t\trs3.next();\r\n\t\t\t\t\t\t\trad=rs3.getInt(1);\r\n\t\t\t\t\t\t\taname=rs3.getString(2);\r\n\t\t\t\t\t\t\txco=rs3.getInt(3);\r\n\t\t\t\t\t\t\tyco=rs3.getInt(4);\r\n\t\t\t\t\t\t\tString[] A=new String[200];\r\n\t\t\t\t\t\t\tString[] alt=new String[100];\r\n\t\t\t\t\t\t\tString rem=\"select bid from announcementsystems where bid \" +\r\n\t\t\t\t\t\t\t\t\t\"not like '%\"+aname+\"%'\";\r\n\t\t\t\t\t\t\tno4++;\r\n\t\t\t\t\t\t\tsqlText.append(\"Query\"+no4+\":\"+rem+\"\\n\");\r\n\t\t\t\t\t\t\tResultSet remAS=st.executeQuery(rem);\r\n\t\t\t\t\t\t\tint i=0;\r\n\t\t\t\t\t\t\twhile(remAS.next())\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tA[i]=remAS.getString(1);\r\n\t\t\t\t\t\t\t\ti++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tint k=0;\r\n\t\t\t\t\t\t\tfor(k=0;k<i;k++)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tno4++;\r\n\t\t\t\t\t\t\t\talt[k]=\"select x.cord from announcementsystems y,test1 x \" +\r\n\t\t\t\t\t\t\t\t\t\t\"where sdo_nn(y.loc,x.cord,'sdo_num_res=2')='TRUE' and y.bid \" +\r\n\t\t\t\t\t\t\t\t\t\t\"like '%\" +A[k]+\"%'\"+\" and x.name in \" +\r\n\t\t\t\t\t\t\t\t\t\t\"(select a.name from test1 a where sdo_geom.relate\" +\r\n\t\t\t\t\t\t\t\t\t\t\"(a.cord,'anyinteract',sdo_geometry(2003,null,\" +\r\n\t\t\t\t\t\t\t\t\t\t\"null,sdo_elem_info_array(1,1003,4)\" +\r\n\t\t\t\t\t\t\t\t\t\t\",sdo_ordinate_array(\"+(xco+rad)+\",\"+(yco)+\",\"+(xco-rad)\r\n\t\t\t\t\t\t\t\t\t\t+\",\"+(yco)+\",\"+(xco)+\",\"+(yco+rad)+\r\n\t\t\t\t\t\t\t\t\t\t\")),0.005)='TRUE')\";\r\n\t\t\t\t\t\t\t\tsqlText.append(\"Query\"+no4+\":\"+alt[k]+\"\\n\");\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tResultSet rs7=st.executeQuery(alt[0]);\r\n\t\t\t\t\t\t\tdrawCustomPolygon(g,FeatureTypeEnum.STUDENTS,rs7,Color.WHITE);\r\n\t\t\t\t\t\t\tResultSet rs8=st.executeQuery(alt[1]);\r\n\t\t\t\t\t\t\tdrawCustomPolygon(g,FeatureTypeEnum.STUDENTS,rs8,Color.BLUE);\r\n\t\t\t\t\t\t\tResultSet rs9=st.executeQuery(alt[2]);\r\n\t\t\t\t\t\t\tdrawCustomPolygon(g,FeatureTypeEnum.STUDENTS,rs9,Color.CYAN);\r\n\t\t\t\t\t\t\tResultSet rs10=st.executeQuery(alt[2]);\r\n\t\t\t\t\t\t\tdrawCustomPolygon(g,FeatureTypeEnum.STUDENTS,rs10,Color.MAGENTA);\r\n\t\t\t\t\t\t\tResultSet rs11=st.executeQuery(alt[2]);\r\n\t\t\t\t\t\t\tdrawCustomPolygon(g,FeatureTypeEnum.STUDENTS,rs11,Color.green);\r\n\t\t\t\t\t\t\tgetDispQuery().setText(sqlText.toString());\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcatch(Exception e)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t}//Emergency Query Ends\r\n\t\t\t\t\t\r\n\t\t\t}\r\n\t};\r\n\t\r\n\t\t\timagePanel.addMouseListener(new MouseAdapter() {\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void mouseClicked(MouseEvent me) {\r\n\t\t\t\t\tsuper.mouseClicked(me);\r\n\t\t\t\t\tgetQuery().setSubmitFlag(false);\r\n\t\t\t\t\tpqX = me.getX();\r\n\t\t\t\t\tpqY = me.getY();\r\n\t\t\t\t\tQuery q = getQuery();\r\n\t\t\t\t\tif(me.getButton() == MouseEvent.BUTTON1 && drawPoly && q.getSelectedQuery() != null && (q.getSelectedQuery().trim().equalsIgnoreCase(\"Range Query\")) ){\r\n\t\t\t\t\t\tpath.add(new Point(me.getX(), me.getY()));\r\n\t\t\t\t\t\tdrawPoly = true;\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t}else if(me.getButton() == MouseEvent.BUTTON3 && q.getSelectedQuery() != null && (q.getSelectedQuery().trim().equalsIgnoreCase(\"Range Query\")) ){\r\n\t\t\t\t\t\tpath.add(new Point(path.get(0).x, path.get(0).y));\r\n\t\t\t\t\t\tdrawPoly = false;\r\n\t\t\t\t\t}\r\n\t\t\t\t\trepaint();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t});\r\n\t\t\t\r\n\t\t\timagePanel.addMouseMotionListener(new MouseAdapter() {\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void mouseMoved(MouseEvent me) {\r\n\t\t\t\t\tsuper.mouseMoved(me);\r\n\t\t\t\t\tx = me.getX();\r\n\t\t\t\t\ty = me.getY();\r\n\t\t\t\t\trepaint();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\t\r\n\t\t\t//ToolTipManager.sharedInstance().registerComponent(this);\r\n\t}", "public DrawingArea(int width, int height, int cpWidth) {\n super(null);\n this.width = width - cpWidth;\n this.height = height;\n setBounds(cpWidth, 0, this.width, this.height);\n originX = this.width/2;\n originY = this.height/2;\n setBackground(Color.white);\n drawingArea = createImage(this.width, this.height);\n }", "public abstract void paint(Graphics g, int width, int height);", "BufferedImage buildImgBuf(Dimension d)\n\t{\n\tBufferedImage gBufImg= ImgFactory.getImg(500, 600); //new BufferedImage(dmX, dmY, BufferedImage.TYPE_INT_ARGB);\n\tGraphics2D g2=gBufImg.createGraphics();\n\tif (drawGraphics(g2, d, samples))\n\t\treturn gBufImg;\n\t\treturn null;\n\n\t}", "protected synchronized void paintComponent (Graphics g)\n {\n super.paintComponent(g); \n JPanel Phil = new JPanel(); \n int width = getWidth();\n int height = getHeight();\n double x;\n double y;\n int phil_length;\n int phil_height;\n if(_panel_num==1)\n {\n phil_length = width/10;\n phil_height = height/3;\n x = width/3*1.35;\n y = height/3*1.2;\n if(_eats_status_array[0]==true)\n g.fillOval((int)x,(int)y,phil_length,phil_height);\n else\n g.fillRect((int)x,(int)y,phil_length,phil_height);\n }\n else if(_panel_num==2)\n {\n phil_length = width/3;\n phil_height = height/10;\n x = width/3;\n y = height/3*1.2;\n if(_eats_status_array[1]==true)\n g.fillOval((int)x,(int)y,phil_length,phil_height);\n else\n g.fillRect((int)x,(int)y,phil_length,phil_height);\n }\n else if(_panel_num==3)\n {\n phil_length = width/10;\n phil_height = height/3;\n x = width/6*3.42;\n y = height/4;\n if(_eats_status_array[2]==true)\n g.fillOval((int)x,(int)y,phil_length,phil_height);\n else\n g.fillRect((int)x,(int)y,phil_length,phil_height); \n x = width/6*1.92;\n y = height/4;\n if(_eats_status_array[3]==true)\n g.fillOval((int)x,(int)y,phil_length,phil_height);\n else\n g.fillRect((int)x,(int)y,phil_length,phil_height);\n }\n else \n {\n phil_length = width/3;\n phil_height = height/10;\n x = width/3;\n y = height/3*1.2;\n if(_eats_status_array[4]==true)\n g.fillOval((int)x,(int)y,phil_length,phil_height);\n else\n g.fillRect((int)x,(int)y,phil_length,phil_height);\n } \n }", "public void fillGamePanel() {\n for (int row = 0; row < world.getRowCount(); row++) {\n for (int col = 0; col < world.getColumnCount(); col++) {\n add(world.getCellAt(row, col));\n world.getCellAt(row, col).setBorder(\n BorderFactory.createMatteBorder(\n 1, 1, 0, 0, Color.BLACK));\n }\n }\n for (int row = 0; row < world.getRowCount(); row++) {\n for (int col = 0; col < world.getColumnCount(); col++) {\n gridPanel.add(world.getCellAt(row, col));\n world.getCellAt(row, col).setBorder(\n BorderFactory.createMatteBorder(\n 1, 1, 0, 0, Color.BLACK));\n }\n }\n }", "private BufferedImage createCompatibleImage(int width, int height){\n\t\t\tGraphicsConfiguration gfx_config = GraphicsEnvironment.getLocalGraphicsEnvironment().\n\t\t\t\t\tgetDefaultScreenDevice().getDefaultConfiguration();\n\t\t\t\n\t\t\t//Create a new buffered image.\n\t\t\tBufferedImage new_image = gfx_config.createCompatibleImage(width, height, BufferedImage.TYPE_INT_ARGB_PRE);\n\t\t\t\n\t\t\t//Create graphics.\n\t\t\tGraphics2D g2d = new_image.createGraphics();\n\t\t\t\n\t\t\t//Draw graphics.\n\t\t\tg2d.setColor(Color.WHITE);\n\t\t\tg2d.fillRect(0, 0, width, height);\n\t\t\t\n\t\t\t//Dispose graphics object.\n\t\t\tg2d.dispose();\n\t\t\t\n\t\t\treturn new_image;\n\t\t}", "@Override\n public Dimension getPreferredSize()\n {\n return new Dimension(this.bufferedImage.getWidth(), \n this.bufferedImage.getHeight());\n }", "@Override\n public void paintComponent(Graphics g) {\n // Paint image on panel\n if (paint && image != null) {\n g.drawImage(image, 0, 0, this);\n } else {\n // Paint panel black\n g.setColor(Color.white);\n g.fillRect(0, 0, getWidth(), getHeight());\n }\n }", "public ScrollingImagePanel(RenderedImage im, int width, int height) {\n super();\n this.im = im;\n this.panelWidth = width; \n this.panelHeight = height;\n \n ic = new ImageCanvas(im);\n\n getHAdjustable().addAdjustmentListener(this);\n getVAdjustable().addAdjustmentListener(this);\n \n super.setSize(width, height);\n addComponentListener(this);\n add(\"Center\",ic); \n }", "@Override\n public Dimension getPreferredSize() {\n return new Dimension(PANEL_SIZE, PANEL_SIZE);\n }", "private void buildViewPanel(){\n //Create the view panel\n viewPanel = new JPanel();\n \n //Create border around text area\n viewPanel.setBorder(new TitledBorder(new EtchedBorder(), \"Saved Game Data\" ));\n \n //Create the text area with the scroll pane\n textArea = new JTextArea(16, 36);\n textArea.setEditable(false);\n scrollPane = new JScrollPane(textArea);\n \n //Show the scroll bar\n scrollPane.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);\n\n //Add the data to the text area\n textArea.append(\"Lane:\" + \"\\t\" + \"CS at 5:\" + \"\\t\" + \"CS at 10:\" \n + \"\\t\" + \"CS at 13:\" + \"\\t\"+ \"Grade:\" + \"\\n\");\n \n String formatedString = games.toString()\n .replace(\",\", \"\") //remove the commas\n .replace(\"[\", \"\") //remove the right bracket\n .replace(\"]\", \"\") //remove the left bracket\n .trim(); //remove trailing spaces from partially initialized arrays\n \n //Add game data\n textArea.append(\" \" + formatedString);\n \n //Add to the panel\n viewPanel.add(scrollPane);\n }", "public ViewPanel(final ViewFrame viewFrame) {\n\t\tthis.setViewFrame(viewFrame);\n\t\tviewFrame.getModel().getObservable().addObserver(this);\n\t\t//this.setSize(640,384);\n\t\t/*JLabel image = new JLabel( new ImageIcon( \"C:/Users/Drazyl Dul/Desktop/sprite/pd.png\"));\n\t\tJLabel image2 = new JLabel( new ImageIcon( \"C:/Users/Drazyl Dul/Desktop/sprite/purse.png\"));\n\t\tJLabel image3 = new JLabel( new ImageIcon( \"C:/Users/Drazyl Dul/Desktop/sprite/gate_open.png\"));\n\t\tBorder blackline = BorderFactory.createLineBorder(Color.black,1); \n\t\t\n\t\tthis.setLayout(new GridLayout(12,20));\n\t\tfor(int i = 0; i<240;i++){*/\n\t\t //JPanel ptest = new JPanel();\n\t\t //ptest.setBorder(blackline);\n\t\t //this.add(image,0,0);\n\t\t \n\t\t// this.add(image3,0,2);\n\t\t\n\t\t}", "private void buildGUI() throws IOException {\n jPanel = new JPanel() {\n @Override\n protected void paintComponent(Graphics g) {\n super.paintComponent(g);\n g.drawImage(img2, 0, 0, null);\n }\n };\n jPanel.setVisible(true);\n jPanel.setLayout(null);\n jPanel.getAutoscrolls();\n jPanel.setBounds(100, 0, screenResolution.getWidth() - 100, screenResolution.getHeight());\n this.add(jPanel);\n\n buildJPanelSide();\n chatGUI();\n\n this.validate();\n this.repaint();\n }", "private JPanel getJPanelNewSize() {\r\n\t\tif (jPanelNewSize == null) {\r\n\t\t\tjPanelNewSize = new JPanel();\r\n\t\t\tjPanelNewSize.setLayout(new BoxLayout(jPanelNewSize, BoxLayout.Y_AXIS));\r\n\t\t\t//jPanelNewSize.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));\r\n\t\t\tjPanelNewSize.setBorder(new TitledBorder(null, \"New size\", TitledBorder.LEADING, TitledBorder.TOP, null, null));\t\t\r\n\t\t\r\n\t\t\tJPanel pl = new JPanel();\r\n\t\t\tpl.setLayout(new FlowLayout(FlowLayout.CENTER, 10, 5));\r\n\t\t\tpl.add(this.getJPanelNewWidth());\r\n\t\t\tpl.add(this.getJPanelNewHeight());\t\r\n\t\t\t\r\n\t\t\tjPanelNewSize.add(pl);\t\r\n\t\t\tjPanelNewSize.add(getJButtonMaxImgSize());\r\n\t\t\t\r\n\t\t}\r\n\t\treturn jPanelNewSize;\r\n\t}", "@Override\r\n public Sprite build() {\r\n return new Sprite(imageView, totalNbrFrames, columns, offsetX, offsetY, widthFrame, heightFrame);\r\n }", "public TetrisGameView(TetrisGame game) {\r\n\t\tsuper();\r\n\t\tthis.game = game;\r\n\t\t// creates a new panel based on the width (num of blocks wide) * the actual length of each block,\r\n\t\t// and the height (num of blocks tall) * the actual length of each block.\r\n\t\tpanel = new DrawingPanel(TetrisGame.PANEL_WIDTH * TetrisGame.SQUARE_LENGTH,\r\n\t\t\t\t TetrisGame.PANEL_HEIGHT * TetrisGame.SQUARE_LENGTH);\r\n\t\t// gets the graphics on the panel.\r\n\t\tg = panel.getGraphics();\r\n\t}", "protected void addComponentsToPane() {\n mainPanel = new JPanel(new GridBagLayout());\n GridBagConstraints c = new GridBagConstraints();\n\n\n gameField = new GameField(this);\n gameField.setPreferredSize(new Dimension(screenWidth / 3, screenHeight / 2));\n gameField.setBorder(BorderFactory.createLineBorder(Color.black));\n\n gameFieldPanel = new JPanel();\n LayoutManager overlay = new OverlayLayout(gameFieldPanel);\n gameFieldPanel.setLayout(overlay);\n gameFieldPanel.add(gameField);\n\n// gameCharsFieldPanel.setOpaque(true);\n// gameCharsFieldPanel.setPreferredSize(new Dimension(screenWidth/3, screenHeight/3));\n// gameFieldPanel.add(gameCharsFieldPanel);\n\n drawX = new DrawX();\n gameFieldPanel.add(drawX);\n\n drawO = new DrawO();\n gameFieldPanel.add(drawO);\n\n c.fill = GridBagConstraints.HORIZONTAL;\n c.gridwidth = 3;\n c.gridx = 0;\n c.gridy = 0;\n mainPanel.add(gameFieldPanel, c);\n\n// addLinesButton = new JButton(\"Draw Lines\");\n// c.fill = GridBagConstraints.HORIZONTAL;\n//// c.gridwidth = 3;\n// c.gridx = 0;\n// c.gridy = 1;\n// mainPanel.add(addLinesButton, c);\n//\n frame.add(mainPanel);\n }", "public TilePanel(BufferedImage img){\r\n\t\twidth = 80;\r\n\t\theight = 80;\r\n\t\tthis.bufferedImage = img;\r\n\t\tsetVisible(true);\r\n\t}", "static JPanel createContainers()\n\t{\n\t\tscore.setFont(new Font(\"Arial\", 0, 14));\n\t\tscore.setForeground(Color.RED);\n\n\t\tJPanel mainPanel = createMainPanel();\n\t\tmainPanel.setBackground(Color.black);\n\t\tJPanel scoringPanel = createScoringPanel(score);\n\t\tJPanel gamePanel = createGamePanel();\n\n\t\tPortfolio1.gameCards = Portfolio1.createGameCards();\n\n\t\tfor (GameCard card : Portfolio1.gameCards)\n\t\t{\n\t\t\tgamePanel.add(card);\n\t\t}\n\n\t\tmainPanel.add(Box.createVerticalStrut(25));\n\t\tmainPanel.add(scoringPanel);\n\t\tmainPanel.add(Box.createVerticalStrut(25));\n\t\tmainPanel.add(gamePanel);\n\n\t\treturn mainPanel;\n\t}", "public JPanel createPanel() {\n\t\t\r\n\t\tJPanel mainPanel = new JPanel();\r\n\t\tmainPanel.setLayout(new BoxLayout(mainPanel, BoxLayout.Y_AXIS));\r\n\t\tmainPanel.setBackground(Color.WHITE);\r\n\t\tmainPanel.setBorder(new CompoundBorder(\r\n\t\t\t\tBorderFactory.createLineBorder(new Color(0x3B70A3), 4),\r\n\t\t\t\tnew EmptyBorder(10, 20, 10, 20)));\r\n\r\n\t\t/*\r\n\t\t * Instruction\r\n\t\t */\t\r\n\t\tmainPanel.add(instructionPanel());\r\n\t\t\r\n\t\t\r\n\t\t// TODO: set task order for each group - make first 3 tasks = groups tasks\r\n\t\tmainPanel.add(messagesPanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\r\n\r\n\t\tmainPanel.add(phonePanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\r\n\r\n\t\tmainPanel.add(clockPanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\r\n\r\n\t\tmainPanel.add(cameraPanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\t\r\n\r\n\t\tmainPanel.add(contactPanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\r\n\r\n\t\tmainPanel.add(galleryPanel());\r\n\t\t\r\n\t\treturn mainPanel;\r\n\t}", "void setDimension(double width, double height);", "@Override\n\tpublic Dimension getPreferredSize()\n\t{\n\t\treturn new Dimension(PANEL_WIDTH, PANEL_HEIGHT);\n\t}", "private JPanel getJPanel() {\n\t\tif (jPanel == null) {\n\t\t\tjPanel = new JPanel();\n\t\t\tjPanel.setSize(100,200);\n\t\t\tjPanel.setMaximumSize(jPanel.getSize());\n//\t\t\tjPanel.setMinimumSize(jPanel.getSize());\n\t\t\tjPanel.setLayout(null);\n\t\t\tjPanel.setBackground(new Color(238, 238, 0));\n\t\t\tjPanel.add(getJButton(), null);\n\t\t}\n\t\treturn jPanel;\n\t}", "public synchronized void drawGameData(Graphics2D drawingBoard,\n int drawAreaWidth,\n int drawAreaHeight) {\n // This allows our text and graphics to be nice and smooth\n drawingBoard.setRenderingHint(\n RenderingHints.KEY_TEXT_ANTIALIASING,\n RenderingHints.VALUE_TEXT_ANTIALIAS_ON);\n drawingBoard.setRenderingHint(RenderingHints.KEY_ANTIALIASING,\n RenderingHints.VALUE_ANTIALIAS_ON);\n\n // Always draw over the image with a blank background, so we\n // don't see the last frame's drawings! (comment this out and\n // see what happens, it's fun pressing the change color button\n // rapidly too!)\n drawingBoard.setColor(Color.LIGHT_GRAY);\n drawingBoard.fillRect(0, 0, drawAreaWidth, drawAreaHeight);\n\n\n // Creating a graphics object to not clobber parameter drawingBoard\n // where MovingCircle's drawing method may change some state of\n // the drawingBoard parameter graphics object\n Graphics particleGraphics = drawingBoard.create();\n // Now draw all the circles, location 0,0 will be top left\n // corner within the borders of the window\n for (Particle particle : particles) {\n Color color = getColor(particle.getType());\n particleGraphics.setColor(color);\n particleGraphics.fillOval(\n worldToDisplayTransformer.getX(particle.getPosition(), drawAreaWidth),\n worldToDisplayTransformer.getY(particle.getPosition(), drawAreaHeight),\n 10, 10);\n }\n particleGraphics.dispose();\n\n // We should only increment frames here, because Swing coalesces\n // repaint calls. So if a repaint is scheduled and hasn't\n // completed yet, other repaint requests will be ignored, so\n // this is the only spot in code within GameData where we can know\n // for sure that a frame has been produced.\n // (Assuming this method being called means the graphics will be\n // used for a frame update)\n frames++;\n }", "public PicturePanel(URL imagePath, int width, int height)\n\t{\n\t\tthis.width = width;\n\t\tthis.height = height;\n\t\tthis.pictureSource = new ImageIcon(imagePath);\n\t}", "public void paintComponent(Graphics g)\n {\n super.paintComponent(g);\n\n // safest to create a copy of the graphics component -- one must\n // ensure that no changes are made to the original\n Graphics2D graphics = (Graphics2D) g.create();\n\n JViewport viewport = null;\n JScrollPane scrollPane = null;\n Insets borders = null;\n\n int viewportWidth = 0;\n int viewportHeight = 0;\n int agentGUISize = Parameters.getAgentGUISize();\n int imageWidth = gridWidth * agentGUISize;\n int imageHeight = gridHeight * agentGUISize;\n\n // make sure that we're grabbing onto the viewport of the scroll pane\n Component ancestor = getParent();\n if (ancestor == null || !(ancestor instanceof JViewport))\n {\n //Exception e = new Exception(\n // \"AgentCanvas instance must be within JScrollPane instance\");\n //e.printStackTrace();\n //return;\n\n viewportWidth = imageWidth;\n viewportHeight = imageHeight;\n\n borders = new Insets(5,5,5,5);\n }\n else\n {\n // presumably we have the viewport of scroll pane containing 'this'\n viewport = (JViewport) ancestor;\n\n viewportWidth = viewport.getWidth();\n viewportHeight = viewport.getHeight();\n\n scrollPane = (JScrollPane) viewport.getParent();\n borders = scrollPane.getInsets();\n }\n\n // Note that drawImage automatically scales the image to fit that \n // rectangle.\n int renderWidth = gridWidth * agentGUISize;\n int renderHeight = gridHeight * agentGUISize;\n\n // determine the starting (x,y) in the viewport where the image\n // will be drawn\n viewportX = 10 + Math.max((viewportWidth - renderWidth) / 2, 0);\n viewportY = 20 + Math.max((viewportHeight - renderHeight) / 2, 0);\n\n // in case there was a previous image, clear things out\n //graphics.clearRect(0, 0, viewportWidth, viewportHeight);\n //graphics.clearRect(viewportX, viewportY, viewportWidth, viewportHeight);\n graphics.clearRect(viewportX, viewportY, renderWidth, renderHeight);\n\n // now draw the shelters\n for (int col = 0; col < gridWidth; col++ )\n {\n for (int row = 0; row < gridHeight; row++ )\n {\n Shelter s = shelters.getShelterAt( col, row ); //shelterGrid[col][row];\n\n // make sure not to draw any agent outside the image boundaries;\n // remember that graphics x corresponds to column and graphics y\n // corresponds to row\n if ((row >= 0) && (col >= 0) &&\n ((row * agentGUISize) + agentGUISize <= renderHeight) &&\n ((col * agentGUISize) + agentGUISize <= renderWidth))\n {\n int guiX = GUI_XPAD + viewportX + (col * agentGUISize);\n int guiY = GUI_YPAD + viewportY + (row * agentGUISize);\n\n int occupants = s.getCurrentOccupancy();\n int capacity = s.getMaxCapacity();\n int infested = s.getInfestedCount();\n int infected = s.getInfectedCount();\n \n if ( DEBUG ){\n if ( infested > occupants || infected > occupants ) {\n System.out.println(\n \"Shelter(\" + col + \", \" + row + \") \" + \n \" occupants = \" + occupants + \n \" infested = \" + infested + \n \" infected = \" + infected );\n }\n }\n \n double proportionInfested = infested / (double) occupants;\n double proportionInfected = infected / (double) occupants;\n if ( occupants == 0 ){\n proportionInfested = 0.0;\n proportionInfected = 0.0;\n }\n double proportionOccupied = occupants / (double) capacity;\n double proportionUnoccupied = 1.0 - proportionOccupied;\n \n // Shelter Occupancy info\n \n graphics.setPaint( Color.white );\n int unoccupiedHeight = \n (int) Math.round(agentGUISize * proportionUnoccupied);\n int occupiedHeight = agentGUISize - unoccupiedHeight;\n \n // Proportion of shelter currently not in use\n graphics.fillRect( guiX, guiY, \n OCCUPANCY_BAR_WIDTH, unoccupiedHeight );\n \n graphics.setPaint( Color.black );\n graphics.fillRect(guiX, guiY + unoccupiedHeight, \n OCCUPANCY_BAR_WIDTH, occupiedHeight );\n \n if (occupants > 0){\n graphics.setPaint( Color.white );\n String str = \"\"+occupants;\n graphics.drawString(str, guiX + 2, guiY + unoccupiedHeight + 15);\n graphics.setPaint( Color.black );\n }\n \n // Infestation info\n \n // Color of upper half of grid square should get more purple\n // as more Hosts are infested\n int red = 255 - (int) Math.round( 255 * proportionInfested);\n int green = 255 - (int) Math.round( 255 * proportionInfested);\n int blue = 255;\n \n Color infestColor = null;\n try{\n infestColor = new Color( red, green, blue );\n } catch (IllegalArgumentException ie ) {\n System.out.println(\"Weird color for infested block: (\" \n + red + \", \" + green + \", \" + blue + \")\");\n System.out.println(\"Shelter at (\" + row + \", \" + col +\")\");\n System.out.println(\"Usually means infested count is off.\");\n infestColor = Color.white;\n }\n\n graphics.setPaint( infestColor );\n\n graphics.fillRect(guiX + OCCUPANCY_BAR_WIDTH, guiY, STATUS_BAR_WIDTH, agentGUISize / 2);\n \n String data = \"\" + occupants + \"/\" + infested;\n graphics.setPaint( Color.black );\n graphics.drawString(data, guiX + OCCUPANCY_BAR_WIDTH + 5, guiY + agentGUISize/2 - 10 );\n \n // Infection info\n \n // Color of lower half of grid square should get redder\n // as more Hosts are infected.\n red = 255;\n green = 255 - (int) Math.round( 255 * proportionInfected);\n blue = 255 - (int) Math.round( 255 * proportionInfected);\n \n Color infectColor = null;\n try {\n infectColor = new Color( red, green, blue );\n } catch (IllegalArgumentException ie) {\n System.out.println(\"Weird color for infected block: (\" \n + red + \", \" + green + \", \" + blue + \")\");\n System.out.println(\"Shelter at (\" + row + \", \" + col +\")\");\n System.out.println(\"Usually means infected count is off.\");\n infestColor = Color.white; \n }\n\n graphics.setPaint( infectColor );\n\n graphics.fillRect(guiX + OCCUPANCY_BAR_WIDTH, \n guiY + agentGUISize/2, \n STATUS_BAR_WIDTH, \n agentGUISize / 2);\n \n data = \"\" + occupants + \"/\" + infected;\n graphics.setPaint( Color.black );\n graphics.drawString(data, guiX + OCCUPANCY_BAR_WIDTH + 5, guiY + agentGUISize - 10 );\n \n // Color of lower half of grid square should get bluer\n // as more Hosts are infected\n\n /*\n if (a.isTreated())\n {\n // if treated with antibiotic, draw a little dot in the\n // middle of the rendered agent\n int dotSize = 2;\n graphics.setPaint(Color.black);\n graphics.fillRect(guiX + ((agentGUISize - dotSize) / 2),\n guiY + ((agentGUISize - dotSize) / 2),\n dotSize, dotSize);\n }\n */\n \n drawShelterFrame(graphics, \n guiX, guiY, agentGUISize, agentGUISize );\n }\n }\n }\n\n // draw the grid last so that it will overlay the agent squares \n //drawGrid(graphics, viewportX, viewportY, renderWidth, renderHeight);\n drawGrid(graphics, viewportX + GUI_XPAD, viewportY + GUI_YPAD, renderWidth, renderHeight);\n\n // show the number of infected/uninfected agents\n drawAgentInfo(graphics, viewportX, viewportY, \n renderWidth, renderHeight, borders);\n\n revalidate();\n\n // get rid of the graphics copy\n graphics.dispose();\n }", "protected ImagePanel() {\n pictureBox = new AWTPictureBox(getWidth(), getHeight());\n //add(pictureBox);\n }", "Canvas(int width, int height){\n\t\tthis.components = new ArrayList<Component>();\n\t\tthis.width = width;\n\t\tthis.height = height;\n\t}", "@Override\n\tpublic Dimension getPreferredSize() {\n\t\treturn new Dimension(800,600);\n\t}", "void drawGridLayout() {\n\t\tpiecesGrid = (GridLayout) findViewById(R.id.layout_container); //get a reference to the GridLayout\n\t\tpiecesGrid.setColumnCount(NUM[COLS]); //set number of columns\n\t\tpiecesGrid.setRowCount(NUM[ROWS]); //set number of rows\n\t\tfor (int i=0; i<NUM[TOTAL]; i++) {\n\t\t\tpiecesGrid.addView(pieceViews.get(i), i); //add the ImageViews\n\t\t}\n\t}", "public BufferedImage create() {\n checkDimensions();\n final BufferedImage image = createImage();\n getImagePainter().paint(image);\n return image;\n }", "@Override\n\tpublic void paintComponent(Graphics g) {\n\t\tsuper.paintComponents(g);\n\t\tg.drawImage(img, 0, 0, sizeX, sizeY, this);\n\t}", "public Game(int width, int height)\n {\n //make a panel with dimensions width by height with a black background\n this.setLayout( null );//Don't change\n this.setBackground( new Color(150,150,150 ));\n this.setPreferredSize( new Dimension( constants.getWidth(), constants.getHeight () ));//Don't change\n \n //initialize the instance variables\n over = false;\n player = new Player( (constants.getWidth())/2, (constants.getHeight())/2); //change these numbers and see what happens\n circle = new Circle( 400, 200 );\n label = new JLabel(\"Points: \" + points);\n this.add( label );\n label.setBounds(300,50,400,50);\n label.setForeground(Color.BLUE);\n label.setFont(new Font(\"Arial\",Font.BOLD,32));\n label.setHorizontalAlignment(SwingConstants.CENTER);\n projectileInitW=false;\n projectileInitA=false;\n projectileInitS=false;\n projectileInitD=false;\n this.addKeyListener(this);//allows the program to respond to key presses - Don't change\n track = new Sound(\"song.wav\");\n track.loop();\n this.setFocusable(true);//I'll tell you later - Don't change\n }", "private void createImage()\n {\n GreenfootImage image = new GreenfootImage(width, height);\n setImage(\"Player.png\");\n }", "@Override\n\tpublic void paintComponent(Graphics g) {\n\t\tsuper.paintComponent(g);\n\t\tg.drawImage(image, 0, 0, getWidth(), getHeight(), null);\n\t}", "private JPanel getJPanelImageSize() {\r\n\t\tif (jPanelImageSize == null) {\r\n\t\t\tjPanelImageSize = new JPanel();\r\n\t\t\tjPanelImageSize.setBorder(new EmptyBorder(0, 0, 0, 0));\r\n\t\t\tjPanelImageSize.setLayout(new BorderLayout());\r\n\t\t\tjLabelImageSize = new JLabel(\"ImageSize: \");\r\n\t\t\tjLabelImageSize.setToolTipText(\"Size of output image\");\r\n\t\t\tjLabelImageSize.setHorizontalAlignment(SwingConstants.RIGHT);\r\n\t\t\t// jLabelImageSize.setPreferredSize(new Dimension(70, 22));\r\n\t\t\tjPanelImageSize.add(jLabelImageSize, BorderLayout.CENTER);\t\r\n\t\t}\r\n\t\treturn jPanelImageSize;\r\n\t}", "public GamePanel()\n {\n super();\n setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));\n \n CARD_BACK.add(new CardPanel(\"img/cards/BACK.png\"));\n \n //The code below is just for reference\n// dealerCards = new ArrayList<>();\n// for (int i = 0; i < dealerInHand.size(); i++)\n// {\n// dealerCards.add(new CardPanel(\"img/cards/\" + dealerInHand.get(i) + \".png\"));\n// }\n// \n// playerCardsOne = new ArrayList<>();\n// for (int i = 0; i < playerInHandOne.size(); i++)\n// {\n// playerCardsOne.add(new CardPanel(\"img/cards/\" + playerInHandOne.get(i) + \".png\"));\n// }\n// \n// playerCardsTwo = new ArrayList<>();\n// for (int i = 0; i < playerInHandTwo.size(); i++)\n// {\n// playerCardsTwo.add(new CardPanel(\"img/cards/\" + playerInHandTwo.get(i) + \".png\"));\n// }\n //The code above is just for reference\n \n dealerDeckContainer = new CardDeckContainer();\n dealerStatContainer = new JPanel(new BorderLayout());\n dealerStatContainer.setOpaque(false);\n JLabel dealerStatTitle = new JLabel(\"Dealer in Hand\");\n dealerStatTitle.setForeground(Color.WHITE);\n dealerStatTitle.setHorizontalAlignment(JLabel.CENTER);\n dealerStatTitle.setFont(new Font(\"\", Font.PLAIN, 12));\n dealerStatPoint.setForeground(Color.WHITE);\n dealerStatPoint.setHorizontalAlignment(JLabel.CENTER);\n dealerStatPoint.setFont(new Font(\"\", Font.PLAIN, 12));\n dealerStatContainer.add(dealerStatTitle, BorderLayout.NORTH);\n dealerStatContainer.add(dealerStatPoint, BorderLayout.CENTER);\n \n playerDeckOneContainer = new CardDeckContainer();\n playerStatOneContainer = new JPanel(new BorderLayout());\n playerStatOneContainer.setOpaque(false);\n JLabel playerStatOneTitle = new JLabel(\"Player in Hand\");\n playerStatOneTitle.setForeground(Color.WHITE);\n playerStatOneTitle.setHorizontalAlignment(JLabel.CENTER);\n playerStatOneTitle.setFont(new Font(\"\", Font.PLAIN, 12));\n playerStatOnePoint.setForeground(Color.WHITE);\n playerStatOnePoint.setHorizontalAlignment(JLabel.CENTER);\n playerStatOnePoint.setFont(new Font(\"\", Font.PLAIN, 12));\n playerStatOneDescription.setForeground(Color.WHITE);\n playerStatOneDescription.setHorizontalAlignment(JLabel.CENTER);\n playerStatOneDescription.setFont(new Font(\"\", Font.BOLD, 12));\n playerStatOneContainer.add(playerStatOneTitle, BorderLayout.NORTH);\n playerStatOneContainer.add(playerStatOnePoint, BorderLayout.CENTER);\n playerStatOneContainer.add(playerStatOneDescription, BorderLayout.SOUTH);\n \n playerDeckTwoContainer = new CardDeckContainer(new CardDeckPanel(CARD_BACK));\n playerStatTwoContainer = new JPanel(new BorderLayout());\n playerStatTwoContainer.setOpaque(false);\n JLabel playerStatTwoTitle = new JLabel(\"Player Hand 2\");\n playerStatTwoTitle.setForeground(Color.WHITE);\n playerStatTwoTitle.setHorizontalAlignment(JLabel.CENTER);\n playerStatTwoTitle.setFont(new Font(\"\", Font.PLAIN, 12));\n playerStatTwoPoint.setForeground(Color.WHITE);\n playerStatTwoPoint.setHorizontalAlignment(JLabel.CENTER);\n playerStatTwoPoint.setFont(new Font(\"\", Font.PLAIN, 12));\n playerStatTwoDescription.setForeground(Color.WHITE);\n playerStatTwoDescription.setHorizontalAlignment(JLabel.CENTER);\n playerStatTwoDescription.setFont(new Font(\"\", Font.BOLD, 12));\n playerStatTwoContainer.add(playerStatTwoTitle, BorderLayout.NORTH);\n playerStatTwoContainer.add(playerStatTwoPoint, BorderLayout.CENTER);\n playerStatTwoContainer.add(playerStatTwoDescription, BorderLayout.SOUTH);\n \n gameStatPanel = new JPanel();\n gameStatPanelPlayerName = new JLabel();\n gameStatPanelCurrentChips = new JLabel();\n gameStatPanelCurrentBet = new JLabel();\n gameStatPanelPlayerName.setFont(new Font(\"\", Font.PLAIN, 14));\n gameStatPanelPlayerName.setForeground(Color.WHITE);\n gameStatPanelPlayerName.setBorder(new EmptyBorder(0, 0, 0, 5));\n gameStatPanelCurrentChips.setFont(new Font(\"\", Font.PLAIN, 14));\n gameStatPanelCurrentChips.setForeground(Color.WHITE);\n gameStatPanelCurrentChips.setBorder(new EmptyBorder(0, 5, 0, 5));\n gameStatPanelCurrentBet.setFont(new Font(\"\", Font.PLAIN, 14));\n gameStatPanelCurrentBet.setForeground(Color.WHITE);\n gameStatPanelCurrentBet.setBorder(new EmptyBorder(0, 5, 0, 0));\n gameStatPanel.add(gameStatPanelPlayerName);\n gameStatPanel.add(gameStatPanelCurrentChips);\n gameStatPanel.add(gameStatPanelCurrentBet);\n gameStatPanel.setOpaque(false);\n \n gameButtonPanel = new JPanel(cardLayout);\n betButtonPanel = new JPanel();\n playButtonPanel = new JPanel();\n JLabel pleaseBet = new JLabel(\"Please bet: \");\n pleaseBet.setFont(new Font(\"\", Font.PLAIN, 14));\n pleaseBet.setForeground(Color.WHITE);\n betButtonPanel.add(pleaseBet);\n betField = new JTextField();\n betField.setFont(new Font(\"\", Font.PLAIN, 14));\n betField.setPreferredSize(new Dimension(80, 28));\n betButtonPanel.add(betField);\n JButton betButton = new JButton(\"Bet\");\n JButton backButton = new JButton(\"Back\");\n betButtonPanel.add(betButton);\n betButtonPanel.add(backButton);\n betButtonPanel.setOpaque(false);\n \n hitButton = new JButton(\"Hit\");\n standButton = new JButton(\"Stand\");\n doubleButton = new JButton(\"Double\");\n //JButton splitButton = new JButton(\"Split\");\n //splitButton.setEnabled(false);\n playButtonPanel.add(hitButton);\n playButtonPanel.add(standButton);\n playButtonPanel.add(doubleButton);\n //playButtonPanel.add(splitButton);\n playButtonPanel.setOpaque(false);\n gameButtonPanel.add(\"betbutton\", betButtonPanel);\n gameButtonPanel.add(\"playbutton\", playButtonPanel);\n gameButtonPanel.setOpaque(false);\n \n add(gameStatPanel);\n add(dealerDeckContainer);\n add(playerDeckTwoContainer);\n add(playerDeckOneContainer);\n add(gameButtonPanel);\n \n this.addComponentListener(new ComponentAdapter()\n {\n @Override\n public void componentShown(ComponentEvent e)\n {\n Game.initGame();\n }\n });\n \n betButtonPanel.addComponentListener(new ComponentAdapter()\n {\n @Override\n public void componentShown(ComponentEvent e)\n {\n betField.setText(\"\");\n if (BlackJack.player.getChip() <= 0)\n {\n JOptionPane.showMessageDialog(null, \"You are penniless!\", \"Information\", JOptionPane.INFORMATION_MESSAGE);\n User.deleteUserByName(BlackJack.player.getName());\n BlackJack.player = new Player(true);\n BlackJack.dealer = new Player(false);\n BlackjackFrame.cardLayout.show(getParent(), \"welcome\");\n }\n hitButton.setEnabled(true);\n standButton.setEnabled(true);\n doubleButton.setEnabled(true);\n BlackJack.player.setBet(0);\n BlackJack.player.getHandOne().clear();\n BlackJack.player.getHandTwo().clear();\n BlackJack.dealer.getHandOne().clear();\n GamePanel.gameStatPanelPlayerName.setText(\"Player: \" + BlackJack.player.getName());\n GamePanel.gameStatPanelCurrentChips.setText(\"Chips: \" + BlackJack.player.getChip());\n GamePanel.gameStatPanelCurrentBet.setText(\"Bet: 0\");\n GamePanel.gameStatPanel.repaint();\n }\n });\n \n betField.addKeyListener(new KeyAdapter()\n {\n @Override\n public void keyTyped(KeyEvent e)\n {\n int keyChar = e.getKeyChar();\n if (keyChar < KeyEvent.VK_0 || keyChar > KeyEvent.VK_9)\n {\n e.consume();\n }\n }\n });\n \n betButton.addActionListener(new ActionListener()\n {\n @Override\n public void actionPerformed(ActionEvent e)\n {\n Game.bet(Integer.parseInt(betField.getText()));\n }\n });\n \n backButton.addActionListener(new ActionListener()\n {\n @Override\n public void actionPerformed(ActionEvent e)\n {\n int choice = JOptionPane.showConfirmDialog(null, \"Do you want to go back to main menu?\\nYour record will be saved.\", \"Go Back\", JOptionPane.YES_NO_OPTION);\n if (choice == JOptionPane.YES_OPTION)\n {\n User.updateUser();\n BlackJack.player = new Player(true);\n BlackJack.dealer = new Player(false);\n BlackjackFrame.cardLayout.show(getParent(), \"welcome\");\n }\n }\n });\n \n hitButton.addActionListener(new ActionListener()\n {\n @Override\n public void actionPerformed(ActionEvent e)\n {\n doubleButton.setEnabled(false);\n Game.hit();\n }\n });\n \n standButton.addActionListener(new ActionListener()\n {\n @Override\n public void actionPerformed(ActionEvent e)\n {\n hitButton.setEnabled(false);\n standButton.setEnabled(false);\n doubleButton.setEnabled(false);\n playerStatOneDescription.setText(\"Stand\");\n playerStatOneDescription.repaint();\n Game.dealerGame();\n }\n });\n \n doubleButton.addActionListener(new ActionListener()\n {\n @Override\n public void actionPerformed(ActionEvent e)\n {\n hitButton.setEnabled(false);\n standButton.setEnabled(false);\n doubleButton.setEnabled(false);\n if (!Game.doubleDown())\n {\n hitButton.setEnabled(true);\n standButton.setEnabled(true);\n doubleButton.setEnabled(false);\n }\n }\n });\n \n }", "public GamePanel() {\n this.setLayout(null);\n\n initializeStateLabel();\n\n initializePileLabel();\n\n initializeSetColorButton();\n\n initializeDrawButton();\n initializeHideButton();\n\n this.setVisible(true);\n }", "private void fillPanel(){\n\t\t\tcontent.setLayout(new GridLayout(9,1));\n\t\t\tcontent.setBackground(Color.BLACK);\n\t\t\tcontent.add(playerNameLabel);\n\t\t\tcontent.add(playerNameField);\n\t\t\tcontent.add(placeHolder);\n\t\t\tcontent.add(passwordLabel);\n\t\t\tcontent.add(passwordField);\n\t\t\tcontent.add(passwordLabelRepeat);\n\t\t\tcontent.add(passwordFieldRepeat);\n\t\t\tcontent.add(placeHolder2);\n\t\t\tcontent.add(createButton);\t\n\t\t}", "private void createDisplay()\n {\n // Creates frame based off of the parameters passed in Display constructor\n frame = new JFrame(title); \n frame.setSize(width, height);\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.setResizable(false); \n frame.setLocationRelativeTo(null);\n frame.setVisible(true);\n // Creates the canvas that is drawn on\n canvas = new Canvas();\n canvas.setPreferredSize(new Dimension(width,height));\n canvas.setMaximumSize(new Dimension(width,height));\n canvas.setMinimumSize(new Dimension(width,height));\n canvas.setFocusable(false);\n //add the canvas to the window\n frame.add(canvas);\n //pack the window (kinda like sealing it off)\n frame.pack();\n }", "private PanelTester()\n {\n /**/\n //f.add(new CardSelector(0, 0, width, height, \"TEST\"));\n\n // 73 Total\n// Slice[] slices2 = { new Slice(5, Color.BLACK,\"BLACK\"),\n// new Slice(33, Color.GREEN,\"GREEN\"),\n// new Slice(20, Color.YELLOW,\"YELLOW\"), new Slice(15, Color.RED,\"RED\") };\n//\n// Slice[] slices = { new Slice(0.64, Color.GREEN, \"Organic\"),\n// new Slice(52.6590008, Color.BLUE, \"Conventional\" ),\n// new Slice(46.7009992, Color.RED, \"GMO\" ) };\n//\n// ArrayList<Slice> sliceArray = new ArrayList<>();\n// for( int i = 0; i < slices.length ; i++)\n// {\n// sliceArray.add( slices[i] );\n// }\n// f.add(new PieChart( f.getBounds(), sliceArray ) );\n// Rectangle temp = new Rectangle(0,0,100,100);\n //f.add(new ChartKey(temp, sliceArray ));\n /**/\n\n\n\n f.add(new AvailableCropsBar(\"test\", new Color(134,255, 109,255),100,60,20,300,50));\n\n\n\n\n\n //f.pack();\n }", "public Window(Game g) {\n myGame = g; //initialize game object\n g.startGame2(); //game starting functions\n setSize(616, 740); //size of jframe\n setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n setTitle(\"Monopoly!!!\");\n \n this.setLayout(new GridBagLayout());\n GridBagConstraints c = new GridBagConstraints();\n\n c.insets=new Insets(6,6,6,6); //padding\n\n //Board panel\n\n //import board image\n board = new JPanel() {\n @Override //rewrite default paintComponent method\n protected void paintComponent(Graphics g) {\n super.paintComponent(g);\n try {\n String imgPath = new File(\"\").getAbsolutePath();\n imgPath = imgPath + \"\\\\lib\\\\src\\\\main\\\\java\\\\com\\\\example\\\\lib\\\\monopoly.png\"; //get absolute path of board image\n final BufferedImage image = ImageIO.read(new File(imgPath));\n g.drawImage(drawBoard(image), 0, 0, null);\n } catch (IOException e){\n System.out.println(e.getMessage());\n }\n }\n };\n board.setBorder(BorderFactory.createLineBorder(Color.black)); //create borders\n c.gridx = 0;\n c.gridy = 0;\n c.gridwidth=4;\n c.fill=GridBagConstraints.BOTH;\n c.weightx=1;\n c.weighty=9.5;\n\n this.add(board, c);\n\n //Game info label\n dialog = new JLabel(\"Welcome to Monopoly. Type answers below. Scroll if text cuts off.\");\n dialogContainer = new JScrollPane(dialog);\n dialogContainer.getVerticalScrollBar().setPreferredSize (new Dimension(0,0));\n dialogContainer.getHorizontalScrollBar().setPreferredSize (new Dimension(0,0));\n dialogContainer.getVerticalScrollBar().setMinimumSize(new Dimension(0, 0));\n dialogContainer.getVerticalScrollBar().setMinimumSize(new Dimension(0, 0));\n dialogContainer.getVerticalScrollBar().setMaximumSize(new Dimension(0, 0));\n dialogContainer.getVerticalScrollBar().setMaximumSize(new Dimension(0, 0));\n dialogContainer.setBorder(BorderFactory.createLineBorder(Color.black));\n\n c.gridx=0;\n c.gridy=1;\n c.weightx=1;\n c.weighty=.025;\n\n this.add(dialogContainer,c);\n\n //Text input field\n\n txtIn=new JTextField();\n txtIn.setText(\"Type commands here. Click enter if no commands are prompted\");\n JScrollPane pane=new JScrollPane(txtIn);\n\n c.gridx=0;\n c.gridy=2;\n c.weightx=.9;\n c.gridwidth=3;\n c.weighty=.025;\n\n add(pane,c);\n\n //Enter Button\n\n JButton button=new JButton(\"Enter\");\n button.addActionListener(this);\n\n c.gridx=3;\n c.gridy=2;\n c.gridwidth=1;\n c.weightx=.1;\n c.weighty=.025;\n c.fill=GridBagConstraints.NONE;\n\n add(button,c);\n }", "@Override\n protected BufferedImage createEmptyImageForLayer(int width, int height) {\n BufferedImage empty = new BufferedImage(width, height, BufferedImage.TYPE_BYTE_GRAY);\n\n // when enlarging a layer mask, the new areas need to be white\n Graphics2D g = empty.createGraphics();\n g.setColor(Color.WHITE);\n g.fillRect(0, 0, width, height);\n g.dispose();\n\n return empty;\n }", "public GamePanel() {\n setBackground(new Color(0, 200, 0));\n deck = new Deck();\n mainPiles = new Pile[7];\n suitPiles = new Pile[4];\n setInitialLayout(deck);\n deckPile = new Pile(deck.getX() + Card.WIDTH + GamePanel.HORI_DISPL, deck.getY(), Pile.DECK_PILE);\n selectedPile = null;\n CardListener listener = new CardListener(this);\n this.addMouseListener(listener);\n this.addMouseMotionListener(listener);\n this.setFocusable(true);\n }", "private void createCompositeGoodsShow() {\r\n\t\tGridData gridData4 = new GridData();\r\n\t\tgridData4.grabExcessHorizontalSpace = true;\r\n\t\tgridData4.horizontalSpan = 3;\r\n\t\tgridData4.heightHint = 380;\r\n\t\tgridData4.widthHint = 560;\r\n\t\tgridData4.grabExcessVerticalSpace = true;\r\n\t\tGridLayout gridLayout3 = new GridLayout();\r\n\t\tgridLayout3.numColumns = 3;\r\n\t\tcompositeGoodsShow = new Composite(compositeGoodsMange, SWT.NONE);\r\n\t\tcompositeGoodsShow.setLayout(gridLayout3);\r\n\t\tcompositeGoodsShow.setLayoutData(gridData4);\r\n\t\tdisplayRoom(compositeGoodsShow);\r\n\t}", "public void drawImage(float x, float y, float width, float height);", "public void addToJPanel() {\r\n\t\tsave_objects.add(header);\r\n\t\tJLabel blank1 = new JLabel(\"\");\r\n\t\tsave_objects.add(blank1);\r\n\t\t\r\n\t\tsave_objects.add(title_lb);\r\n\t\tsave_objects.add(title);\r\n\t\t\r\n\t\tsave_objects.add(width_lb);\r\n\t\tsave_objects.add(width);\r\n\t\t\r\n\t\tsave_objects.add(height_lb);\r\n\t\tsave_objects.add(height);\r\n\t\t\r\n\t\tsave_objects.add(save);\r\n\t\tsave_objects.add(reset);\r\n\t\t\r\n\t\tsetAllFont();\r\n\t}", "public void preparePaint()\n {\n if(! size.equals(getSize())) { // if the size has changed...\n size = getSize();\n fieldImage = this.createImage(size.width, size.height);\n g = fieldImage.getGraphics();\n\n xScale = size.width / gridWidth;\n if(xScale < 1) {\n xScale = GRID_VIEW_SCALING_FACTOR;\n }\n yScale = size.height / gridHeight;\n if(yScale < 1) {\n yScale = GRID_VIEW_SCALING_FACTOR;\n }\n }\n }", "@Override\n\tpublic void resize(int width, int height) {\n\t\tcreate();\n\t}", "public JPanel createSetDataPanel() {\n\n JLabel selectedExhibitionLbl = new JLabel(\"Selected Exhibition: \", JLabel.RIGHT);\n JLabel titleLbl = new JLabel(\"Title:\", JLabel.RIGHT);\n JLabel descriptionLbl = new JLabel(\"Description:\", JLabel.RIGHT);\n JLabel placeLbl = new JLabel(\"Location:\", JLabel.RIGHT);\n\n JLabel exhibitionLbl = new JLabel(controller.getSelectedExhibition().getTitle(), JLabel.RIGHT);\n Font font = exhibitionLbl.getFont();\n exhibitionLbl.setFont(font.deriveFont(font.getStyle() | Font.BOLD));\n txtFieldTitle = new JTextField(FIELD_WIDTH);\n txtFieldDescription = new JTextField(FIELD_WIDTH);\n txtFieldPlace = new JTextField(FIELD_WIDTH);\n\n // Set main panel\n JPanel panel = new JPanel();\n GroupLayout layout = new GroupLayout(panel);\n panel.setLayout(layout);\n layout.setAutoCreateContainerGaps(true);\n\n // Align horizontally\n layout.setHorizontalGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING)\n .addComponent(selectedExhibitionLbl)\n .addComponent(titleLbl)\n .addComponent(descriptionLbl)\n .addComponent(placeLbl)\n )\n .addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING)\n .addComponent(exhibitionLbl)\n .addComponent(txtFieldTitle)\n .addComponent(txtFieldDescription)\n .addComponent(txtFieldPlace)\n )\n );\n\n // Align vertically\n layout.setVerticalGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n .addComponent(selectedExhibitionLbl)\n .addComponent(exhibitionLbl))\n .addGroup(layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n .addComponent(titleLbl)\n .addComponent(txtFieldTitle))\n .addGroup(layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n .addComponent(descriptionLbl)\n .addComponent(txtFieldDescription)\n )\n .addGroup(layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n .addComponent(placeLbl)\n .addComponent(txtFieldPlace))\n );\n\n return panel;\n }", "private JPanel getJPanel() {\r\n\t\tif (jPanel == null) {\r\n\t\t\ttitleFieldImage = new JLabel();\r\n\t\t\ttitleFieldImage.setBounds(new Rectangle(480, 75, 280, 60));\r\n\t\t\ttitleFieldImage.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\t\ttitleFieldImage.setText(\"Image\");\r\n\t\t\ttitleFieldImage.setBackground(new Color(255, 204, 204));\r\n\t\t\tpageInfoLbl = new JLabel();\r\n\t\t\tpageInfoLbl.setBounds(new java.awt.Rectangle(224,480,315,30));\r\n\t\t\tpageInfoLbl.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\t\tpageInfoLbl.setText(\"\");\r\n\t\t\ttitleFieldName = new JLabel();\r\n\t\t\ttitleFieldName.setBounds(new Rectangle(190, 75, 170, 60));\r\n\t\t\ttitleFieldName.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\t\ttitleFieldName.setBackground(new Color(255,204,204));\r\n\t\t\ttitleFieldName.setText(\"Field name\");\r\n\t\t\ttitleFieldId = new JLabel();\r\n\t\t\ttitleFieldId.setBounds(new Rectangle(90, 75, 70, 60));\r\n\t\t\ttitleFieldId.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\t\ttitleFieldId.setBackground(new Color(255,160,204));\r\n\t\t\ttitleFieldId.setText(\"Field ID\");\r\n\t\t\tlblPageName = new JLabel();\r\n\t\t\tlblPageName.setBounds(new Rectangle(10, 40, 120, 20));\r\n\t\t\tlblPageName.setText(\"Page Name\");\r\n\t\t\tjLabel = new JLabel();\r\n\t\t\tjLabel.setBounds(new java.awt.Rectangle(10,10,500,24));\r\n\t\t\tjLabel.setText(\"Select the field you want to add\");\r\n\t\t\tjPanel = new JPanel();\r\n\t\t\tjPanel.setLayout(null);\r\n\t\t\tjPanel.add(jLabel, null);\r\n\t\t\tjPanel.add(getJButton(), null);\r\n\t\t\tjPanel.add(getPageSheet(), null);\r\n\t\t\tjPanel.add(getPreButton(), null);\r\n\t\t\tjPanel.add(getAfterButton(), null);\r\n\t\t\tjPanel.add(lblPageName, null);\r\n\t\t\tjPanel.add(titleFieldId, null);\r\n\t\t\tjPanel.add(titleFieldName, null);\r\n\t\t\tjPanel.add(pageInfoLbl, null);\r\n\t\t\tjPanel.add(titleFieldImage, null);\r\n\t\t\t\r\n\t\t\tJLabel titleFiledType = new JLabel();\r\n\t\t\ttitleFiledType.setText(\"Field Type\");\r\n\t\t\ttitleFiledType.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\t\ttitleFiledType.setBounds(new Rectangle(10, 75, 90, 60));\r\n\t\t\ttitleFiledType.setBackground(new Color(255, 160, 204));\r\n\t\t\ttitleFiledType.setBounds(360, 75, 120, 60);\r\n\t\t\tjPanel.add(titleFiledType);\r\n\t\t\t\r\n\t\t\tJButton btnSelect = new JButton();\r\n\t\t\tbtnSelect.addActionListener(new ActionListener() {\r\n\t\t\t\t@SuppressWarnings(\"unchecked\")\r\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\treturnValue.clear();\r\n\t\t\t\t\tgrid.freshData();\r\n\t\t\t\t\tList<Map<String, String>> valueList = grid.getValueList();\r\n\t\t\t\t\t\r\n\t\t\t\t\tSelectBean bean = (SelectBean)pageIdSelect.getSelectedItem();\r\n\t\t\t\t\t\r\n\t\t\t\t\tfor (Map<String, String> map : valueList) {\r\n\t\t\t\t\t\tString strSelect = map.get(\"SELECT\");\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif (Boolean.valueOf(strSelect)) {\r\n\t\t\t\t\t\t\tMap<String, String> temp = new HashMap<String, String>(map);\r\n\t\t\t\t\t\t\ttemp.put(\"PAGE_ID\", bean.getCode());\r\n\t\t\t\t\t\t\tString strName = bean.getName();\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tif (strName.indexOf(\":\") > 0 && strName.length() > strName.indexOf(\":\") + 2) {\r\n\t\t\t\t\t\t\t\tstrName = strName.substring(strName.indexOf(\":\") + 2);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\ttemp.put(\"PAGE_NAME\", strName);\r\n\t\t\t\t\t\t\treturnValue.add(temp);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (returnValue.size() > 0) {\r\n\t\t\t\t\t\tsetVisible(false);\r\n\t\t\t\t\t\t_parent.addSelectFields(PageSelectDialog.this);\r\n\t\t\t\t\t\tUtils.removeWindow(PageSelectDialog.this);\r\n\t\t\t\t\t\t_parent.setVisible(true);\r\n\t\t\t\t\t\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(PageSelectDialog.this, \"Plese select field!\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t});\r\n\t\t\tbtnSelect.setText(\"Select\");\r\n\t\t\tbtnSelect.setSize(new Dimension(90, 30));\r\n\t\t\tbtnSelect.setLocation(new Point(10, 480));\r\n\t\t\tbtnSelect.setBounds(10, 520, 120, 30);\r\n\t\t\tjPanel.add(btnSelect);\r\n\t\t\t\r\n\t\t\ttitleSelect = new JLabel();\r\n\t\t\ttitleSelect.setText(\"Select\");\r\n\t\t\ttitleSelect.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\t\ttitleSelect.setBounds(new Rectangle(90, 75, 70, 60));\r\n\t\t\ttitleSelect.setBackground(new Color(255, 160, 204));\r\n\t\t\ttitleSelect.setBounds(10, 75, 80, 60);\r\n\t\t\tjPanel.add(titleSelect);\r\n\t\t\t\r\n\t\t\tpageIdSelect = new JComboBox<DefaultComboBoxModel>();\r\n\t\t\tpageIdSelect.addItemListener(new ItemListener() {\r\n\t\t\t\tpublic void itemStateChanged(ItemEvent e) {\r\n\t\t\t\t\tsearchDetailList();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\tpageIdSelect.setBounds(140, 40, 300, 20);\r\n\t\t\tjPanel.add(pageIdSelect);\r\n\t\t}\r\n\t\treturn jPanel;\r\n\t}", "public void preparePaint()\n {\n if(! size.equals(getSize())) { // if the size has changed...\n size = getSize();\n fieldImage = fieldView.createImage(size.width, size.height);\n g = fieldImage.getGraphics();\n\n xScale = size.width / gridWidth;\n if(xScale < 1) {\n xScale = GRID_VIEW_SCALING_FACTOR;\n }\n yScale = size.height / gridHeight;\n if(yScale < 1) {\n yScale = GRID_VIEW_SCALING_FACTOR;\n }\n }\n }", "@Override\n protected void onSizeChanged(int w, int h, int oldw, int oldh) {\n super.onSizeChanged(w, h, oldw, oldh);\n canvasBitmap = Bitmap.createBitmap(w, h, Bitmap.Config.ARGB_8888);\n drawCanvas = new Canvas(canvasBitmap);\n }", "public GameContainer(int s, int m) {\r\n\t\tfinal int INPUT_HEIGHT = 100;\r\n \r\n setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\r\n\t\tsetResizable(false);\r\n\t\tsetTitle(\"Kablewie!\");\r\n Game g = new Game(s,m);\r\n String playerName = JOptionPane.showInputDialog(\"Enter your name: \",\r\n\t\t\t\t\t\t\t\"New Challenger\");\r\n if (playerName != null) {\r\n \tif(playerName.length() > NAME_CHAR_LIM) {\r\n \tplayerName = JOptionPane.showInputDialog(\"Sorry character \"+\r\n\t\t\t\t \"limit is 20.\\n Enter your name: \", \"New Challenger\");\r\n }\r\n } else {playerName = \"N/A\";}\r\n g.newPlayer(playerName);\r\n JPanel input = new JPanel(); input.setSize(g.getWidth(), INPUT_HEIGHT);\r\n input.setLayout(new GridLayout(CONTROL_PANEL_Y, CONTROL_PANEL_X));\r\n JLabel lblSize = new JLabel(\"Size: \");\r\n input.add(lblSize);\r\n JTextField tfSize = new JTextField(TEXT_FIELD_SIZE);input.add(tfSize);\r\n JLabel lblMines = new JLabel(\"Number of mines: \");input.add(lblMines);\r\n JTextField tfMines = new JTextField(TEXT_FIELD_SIZE);input.add(tfMines);\r\n JButton btnNewGame = new JButton(\"New Game\");input.add(btnNewGame);\r\n JButton btnExit = new JButton(\"Exit\");input.add(btnExit);\r\n \r\n class InputHandler implements ActionListener {\r\n\t\t\t/**\r\n\t\t\t * Implementation of abstract method inherited from ActionListener\r\n\t\t\t * This method adds functionality to the buttons at the footer\r\n\t\t\t * of game container\r\n\t\t\t * @param e An ActionEvent \r\n\t\t\t */\r\n \tpublic void actionPerformed(ActionEvent e) {\r\n \t\tint size = 10;\r\n \t\tint mines = -1;\r\n \t\tboolean valid = true;\r\n \t\tboolean defaultValue = false;\r\n \t\tint sizeInput = 10;\r\n \t\tint mineInput = -1;\r\n \t\t\r\n \t\tif (e.getSource() == btnNewGame) {\r\n \t \t\tif (tfSize.getText().equals(\"\") || \r\n\t\t\t\t\t\t!isNumeric(tfSize.getText())) {\r\n \t \t\t\tsize = 10; defaultValue = true;\r\n \t \t\t} else {sizeInput = Integer.parseInt(tfSize.getText());}\r\n \t \t\tif ((sizeInput <= 30) && (sizeInput > 0) && \r\n\t\t\t\t\t (isNumeric(tfSize.getText()) || defaultValue)){\r\n \t \t\t\tsize = sizeInput; } else {valid = false;}\r\n\t\t\t\t\tif (tfMines.getText().equals(\"\") || \r\n\t\t\t\t\t !isNumeric(tfSize.getText())){\r\n \t \t\t\tmines = size; mineInput = size;\r\n \t \t\t} else {mineInput = Integer.parseInt(tfMines.getText()); }\r\n \t \t\tif ((mineInput <= 150) && \r\n\t\t\t\t\t (mineInput < (sizeInput*sizeInput)) && \r\n\t\t\t\t\t (isNumeric(tfSize.getText()) || defaultValue)){\r\n \t \t\t\tmines = mineInput;\r\n \t \t\t} else {valid = false;}\r\n \t \t\tif (valid){new GameContainer(size, mines); dispose();}else{\r\n \t \t\t\tJOptionPane.showMessageDialog(getGameContainer(),\r\n \t\t\t\t\t\"The size must be a number between 1 and 30. \"+\r\n\t\t\t\t\t\t\t\"\\n\\nThe number of mines must be between 0 \\n\"\r\n \t \t\t\t\t+ \"and the size squared and must not exceed 150.\",\r\n \t \t\t\t\t\"Incorrect value(s) entered\",\r\n\t\t\t\t\t\t\tJOptionPane.WARNING_MESSAGE);\r\n \t \t\t}\r\n \t \t\ttfSize.setText(\"\"); tfMines.setText(\"\");\r\n } else if (e.getSource() == btnExit) { dispose();}\r\n \t}\t\r\n }\r\n InputHandler handler = new InputHandler();\r\n btnNewGame.addActionListener(handler);\r\n btnExit.addActionListener(handler);\r\n getContentPane().add(g, BorderLayout.NORTH);\r\n getContentPane().add(input, BorderLayout.CENTER);\r\n g.getScoreboard().updateTime(); setResizable(false); \r\n\t\tpack(); setLocationRelativeTo(null); setVisible(true);\r\n\t}", "public void initGameboardPanel(){\n Image image = Toolkit.getDefaultToolkit().createImage(getClass().getResource(\"/board/Masters of Renaissance_PlayerBoard (11_2020)-1.png\"));\n this.backgroundImage = image.getScaledInstance(gameboardWidth,gameboardHeight,0);\n\n this.setSize(gameboardWidth,gameboardHeight);\n this.setBounds(0,0,gameboardWidth,gameboardHeight);\n this.setLayout(null);\n //this.addMouseListener(this);\n this.setVisible(true);\n }", "private void newCanvas() {\n\t\timgCanvas = new ImageCanvas(1000, 563);\n\t\t//canvasJP.add(imgCanvas);\n\t}", "public GameBoard (int height, int width)\n {\n mHeight = height;\n mWidth = width;\n }", "private static JPanel getImageSplitPanel() {\n\t\t\n\t\t/*\n\t\t * - Combo Box\n\t\t * - Parameter Selection Panel\n\t\t * - Image\n\t\t */\n\t\t\n\t\t// the main panel for this full split component\n\t\tJPanel mainPanel = new JPanel(new BorderLayout());\n\t\t\n\t\t// the image specific panel\n\t\tJPanel imagePanel = new JPanel(new BorderLayout());\n\t\t\n\t\t// the panel for the transformation specific parameter selection with a card layout\n\t\tJPanel parameterSelectionPanel = new JPanel(new CardLayout());\n\t\t\n\t\t// label for the image\n\t\tJLabel imageLabel = new JLabel();\n\t\timageLabel.setToolTipText(\"Select to SAVE\");\n\t\timageLabel.setHorizontalAlignment(JLabel.CENTER);\n\t\timageLabel.setVerticalAlignment(JLabel.CENTER);\n\t\timageLabel.addMouseListener(new MouseListener() {\n\t\t\tpublic void mouseReleased(MouseEvent e) {}\n\t\t\tpublic void mousePressed(MouseEvent e) {}\n\t\t\tpublic void mouseExited(MouseEvent e) {}\n\t\t\tpublic void mouseEntered(MouseEvent e) {}\n\t\t\t// save the image on click\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t// get the image icon\n\t\t\t\tIcon icon = imageLabel.getIcon();\n\t\t\t\t// buffered image container to save\n\t\t\t\tBufferedImage bi = new BufferedImage(icon.getIconWidth(), icon.getIconHeight(), BufferedImage.TYPE_INT_RGB);\n\t\t\t\t// graphics for painting the image\n\t\t\t\tGraphics g = bi.createGraphics();\n\t\t\t\t// paint the icon to the buffered image container\n\t\t\t\ticon.paintIcon(null, g, 0,0);\n\t\t\t\t// dispose g\n\t\t\t\tg.dispose();\n\t\t\t\t// save\n\t\t\t\tUtilities.saveImage(bi);\n\t\t\t}\n\t\t});\n\t\t\n\t\t// default image\n\t\tfloat[][][] defaultImage = Utilities.getImage(Utilities.images[0]);\n\t\t\n\t\t// transformations\n\t\tITransformation[] transformations = new ITransformation[] {\n\t\t\tnew NoTransformation(defaultImage, imageLabel)\t,\n\t\t\tnew HistogramEqualization(defaultImage, imageLabel),\n\t\t\tnew CLAHE(defaultImage, imageLabel),\n\t\t\tnew ACLAHE(defaultImage, imageLabel),\n\t\t\tnew ACLAHEwDGC(defaultImage, imageLabel),\n\t\t\tnew ACLAHEwDGC2(defaultImage, imageLabel)\n\t\t};\n\t\t\n\t\t// add the transformations in this split panel to the global transformation holder\n\t\tfor (ITransformation t : transformations) allTransformations.add(t);\n\t\t\n\t\t// add parameter selection panel for each transformation to card layout\n\t\tfor (ITransformation transform : transformations) {\n\t\t\tparameterSelectionPanel.add(transform.getParameterPanel(), transform.toString());\n\t\t}\n\t\t\n\t\t// combo box\n\t\tJComboBox<ITransformation> transformationSelectionBox = new JComboBox<>(transformations);\n\t\ttransformationSelectionBox.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t// get the selected transformation\n\t\t\t\tITransformation selectedTransformation = transformations[transformationSelectionBox.getSelectedIndex()];\n\t\t\t\t\n\t\t\t\t// change the parameter selection panel card based on the selected transformation\n\t\t\t\tCardLayout cl = (CardLayout) (parameterSelectionPanel.getLayout());\n\t\t\t cl.show(parameterSelectionPanel, selectedTransformation.toString());\n\t\t\t\t\n\t\t\t\t// transform the image\n\t\t\t\tselectedTransformation.transform();\n\t\t\t}\n\t\t});\n\t\t\n\t\t// add combo box to list for image repainting\n\t\ttransformationComboBoxes.add(transformationSelectionBox);\n\t\t\n\t\t// initialize the selection\n\t\ttransformationSelectionBox.setSelectedIndex(0);\n\t\t\n\t\t// add components to image panel\n\t\timagePanel.add(parameterSelectionPanel, BorderLayout.SOUTH);\n\t\timagePanel.add(imageLabel, BorderLayout.CENTER);\n\t\t\n\t\t// add components to the main panel\n\t\tmainPanel.add(transformationSelectionBox, BorderLayout.NORTH);\n\t\tmainPanel.add(imagePanel, BorderLayout.CENTER);\n\t\t\n\t\t// return the panel\n\t\treturn mainPanel;\n\t\t\n\t}", "private void createWindow() {\r\n\t\t// Create the picture frame and initializes it.\r\n\t\tthis.createAndInitPictureFrame();\r\n\r\n\t\t// Set up the menu bar.\r\n\t\tthis.setUpMenuBar();\r\n\r\n\t\t// Create the information panel.\r\n\t\t//this.createInfoPanel();\r\n\r\n\t\t// Create the scrollpane for the picture.\r\n\t\tthis.createAndInitScrollingImage();\r\n\r\n\t\t// Show the picture in the frame at the size it needs to be.\r\n\t\tthis.pictureFrame.pack();\r\n\t\tthis.pictureFrame.setVisible(true);\r\n\t\tpictureFrame.setSize(728,560);\r\n\t}", "@Override\n public void paint(Graphics g) {\n super.paintComponents(g);\n\n // a continuación apunto al jPanel\n Graphics2D g2 = (Graphics2D) jPanel1.getGraphics();\n\n // pinto el buffer sobre el jPanel\n g2.drawImage(buffer, 0, 0, null);\n \n \n }", "public void addToJPanel() {\r\n\t\tedit_terrain.add(header);\r\n\t\tJLabel blank1 = new JLabel(\"\");\r\n\t\tedit_terrain.add(blank1);\r\n\t\t\r\n\t\tedit_terrain.add(add_terrain);\r\n\t\tJLabel blank2 = new JLabel(\"\");\r\n\t\tedit_terrain.add(blank2);\r\n\t\t\r\n\t\tedit_terrain.add(scale_lb);\r\n\t\tedit_terrain.add(scale);\r\n\t\t\r\n\t\tedit_terrain.add(shape_lb);\r\n\t\tedit_terrain.add(shape_cb);\r\n\t\t\r\n\t\tedit_terrain.add(material_lb);\r\n\t\tedit_terrain.add(material_cb);\r\n\t\t\r\n\t\tedit_terrain.add(colour_lb);\r\n\t\tedit_terrain.add(colour_cb);\r\n\t\t\r\n\t\tedit_terrain.add(position_x_lb);\r\n\t\tedit_terrain.add(position_x);\r\n\t\t\r\n\t\tedit_terrain.add(position_y_lb);\r\n\t\tedit_terrain.add(position_y);\r\n\t\t\r\n\t\tedit_terrain.add(apply_terrain);\r\n\t\tedit_terrain.add(reset_terrain);\r\n\t\t\r\n\t\tsetAllFont();\r\n\t}", "public RoadRagePanel(final int theWidth, final int theHeight) {\n super();\n\n myVehicles = new ArrayList<Vehicle>();\n myGrid = new Terrain[0][0];\n setLightColor(Light.GREEN);\n setPreferredSize(new Dimension(theWidth * SQUARE_SIZE,\n theHeight * SQUARE_SIZE));\n setBackground(Color.GREEN);\n setFont(FONT);\n }", "GamePanel(PBG g) {\n setPreferredSize(new Dimension(PBG.DIMENSION1, PBG.DIMENSION2));\n setBackground(Color.GRAY);\n this.game = g;\n }", "public MainSlot_JPanel(){\n //load background image\n try {\n Image img = ImageIO.read(getClass()\n .getResource(\"./graphics/slot_BackGround.jpg\"));\n backgroundImg = img\n .getScaledInstance(800,580,java.awt.Image.SCALE_SMOOTH );\n } catch(IOException e) {\n e.printStackTrace();\n }\n }", "private JPanel initializePanel() {\n JPanel myPanel = new JPanel();\n //myPanel.setPreferredSize(new Dimension(600,600));\n\n myPanel.setLayout(new GridLayout(8,8));\n myPanel.setSize(600,600);\n myPanel.setLocation(100,100);\n myPanel.setBorder(new LineBorder(Color.BLACK));\n return myPanel;\n }", "public BoardPanel() {\n\t\t\tfinal Dimension size = new Dimension(600, 600);\n\t\t\tsetSize(size);\n\t\t\tsetPreferredSize(size);\n\t\t\t\n\t\t\taddMouseListener(new ClickHandler());\n\t\t}", "@Override\n public Dimension getPreferredSize()\n {\n return new Dimension( width, height );\n }", "@Override\r\n public void drawOn(DrawSurface d) {\r\n d.setColor(Color.decode(\"#298A1C\"));\r\n d.fillRectangle(0, 0, d.getWidth(), d.getHeight());\r\n\r\n // draw building:\r\n d.setColor(Color.decode(\"#414142\"));\r\n d.fillRectangle(100, 200, 10, 200);\r\n d.setColor(Color.decode(\"#171017\"));\r\n d.fillRectangle(90, 400, 30, 200);\r\n d.setColor(Color.decode(\"#170F12\"));\r\n d.fillRectangle(55, 450, 100, 200);\r\n d.setColor(Color.decode(\"#FFD149\"));\r\n d.fillCircle(105, 200, 11);\r\n d.setColor(Color.decode(\"#B86731\"));\r\n d.fillCircle(105, 200, 7);\r\n d.setColor(Color.WHITE);\r\n d.fillCircle(105, 200, 3);\r\n\r\n // draw windows:\r\n int width = 10;\r\n int height = 25;\r\n int space = 8;\r\n int rowHeight = 460;\r\n drawWindows(rowHeight, d);\r\n drawWindows(rowHeight + height + space, d);\r\n drawWindows(rowHeight + height * 2 + space * 2, d);\r\n drawWindows(rowHeight + height * 3 + space * 3, d);\r\n drawWindows(rowHeight + height * 4 + space * 4, d);\r\n drawWindows(rowHeight + height * 5 + space * 5, d);\r\n }", "public MondrianPanel()\n {\n setPreferredSize(new Dimension(size, size));\n }", "public abstract boolean init(int width, int height);", "@Override\n\tpublic Dimension getPreferredSize(){\n\t\treturn new Dimension(640, 480);\n\t}", "public ImagePanel() {\n\t\ttry {\n\t\t\tthis.image.add(ImageIO.read(new File(this.getClass().getResource(\"/Avertissement/frigorest.png\").getPath())));\n\t\t\tthis.image.add(ImageIO.read(new File(this.getClass().getResource(\"/Avertissement/frigono.png\").getPath())));\n\t\t\tthis.image.add(ImageIO.read(new File(this.getClass().getResource(\"/Avertissement/frigolow.png\").getPath())));\n\t\t\tthis.image.add(ImageIO.read(new File(this.getClass().getResource(\"/Avertissement/frigohigh.png\").getPath())));\n\t\t\tthis.image.add(ImageIO.read(new File(this.getClass().getResource(\"/Avertissement/frigocondensation.png\").getPath())));\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public Dimension getPreferredSize()\n{ \n Dimension d=new Dimension(gRectangle.width+2*GC_CANVAS_HORIZ_GAP,\n gRectangle.height+2*GC_CANVAS_VERT_GAP);\n return d;\n}", "private void renderMapGrow(double width, double height, double curZoom) {\n if(curMap != null) { // if it can be obtained, set the width and height using the aspect ratio\n double aspectRatio = curMap.getMap().getWidth()/curMap.getMap().getHeight();\n double scaledW, scaledH;\n // keep the aspect ratio\n scaledH = (1 / ((1 / (width)) * aspectRatio));\n scaledW = ((height)*aspectRatio);\n if(scaledH <= pane.getHeight()) {\n canvas.setHeight(height*curZoom);\n canvas.setWidth(scaledW*curZoom);\n if(curZoom <= 1) { // If we aren't zoomed, translate the image to the center of the screen\n canvas.setTranslateX(((width - scaledW) / 2));\n canvas.setTranslateY(0);\n } else {\n canvas.setTranslateX(0);\n }\n }\n\n if(scaledW <= pane.getWidth()) {\n canvas.setHeight(scaledH*curZoom);\n canvas.setWidth(width*curZoom);\n if(curZoom <= 1) { // If we aren't zoomed, translate the image to the center of the screen\n canvas.setTranslateY(((height - scaledH) / 2));\n canvas.setTranslateX(0);\n } else {\n canvas.setTranslateY(0);\n }\n }\n } else {\n canvas.setHeight(height*curZoom);\n canvas.setWidth(width*curZoom);\n }\n render();\n }", "private void createGameMode() {\n GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();\n Rectangle fullScreenBounds = ge.getDefaultScreenDevice().getDefaultConfiguration().getBounds();\n boolean fs = ge.getDefaultScreenDevice().isFullScreenSupported();\n \n setTitle(gameName);\n setName(gameName);\n setDefaultCloseOperation(EXIT_ON_CLOSE);\n \n map = new UAVMap(this, UAVModes.GAME, fs);\n \n if (fs) {\n fullScreen = new Window(this);\n fullScreen.add(map.getCanvas());\n ge.getDefaultScreenDevice().setFullScreenWindow(fullScreen);\n } else {\n this.setSize((int)(.9 * fullScreenBounds.width), (int)(.9 * fullScreenBounds.height));\n this.setLocation(fullScreenBounds.x + (int) (.05 * fullScreenBounds.width), \n fullScreenBounds.y + (int) (.05 * fullScreenBounds.height));\n Container content = getContentPane();\n content.setLayout(new GridBagLayout());\n GridBagConstraints c = new GridBagConstraints();\n c.fill = GridBagConstraints.BOTH;\n c.weightx = 1;\n c.weighty = 1;\n content.add(map.getCanvas(), c);\n setVisible(true);\n }\n map.initializeGame();\n map.startTimer(); \n }", "public void paintComponent(Graphics g){\n Dimension tam = this.getSize();\n g.drawImage(this.image, 0, 0, tam.width, tam.height, null);\n super.paintComponent(g);\n }", "public void paintComponent(Graphics g){\n Dimension tam = this.getSize();\n g.drawImage(this.image, 0, 0, tam.width, tam.height, null);\n super.paintComponent(g);\n }", "public CardTable(String title, int numCardsPerHand, int numPlayers) {\n super(); //Call JFrame's constructor.\n this.handPanels = new JPanel[numPlayers];\n //Verify that the input is valid. Fix it if it is not.\n if (numCardsPerHand < 0 || numCardsPerHand > CardTable.MAX_CARDS_PER_HAND)\n this.numCardsPerHand = 20;\n this.numCardsPerHand = numCardsPerHand;\n if (numPlayers < 2 || numPlayers > CardTable.MAX_PLAYERS)\n this.numPlayers = numPlayers;\n if (title == null)\n title = \"\";\n //Set some of the window's attributes.\n this.setTitle(title);\n this.setSize(800, 600);\n this.setMinimumSize(new Dimension(800, 600));\n this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n //The card table will use a BorderLayout style. This allows each panel\n //To have a different height. This allows for a larger play area and smaller\n //hand areas.\n BorderLayout layout = new BorderLayout();\n this.setLayout(layout);\n\n //Both the comptuer and human hand panels will use the flow layout.\n FlowLayout flowLayout = new FlowLayout(FlowLayout.LEFT);\n //Crate a titled border for the display of labels indicating\n //what each panel is for.\n TitledBorder border = new TitledBorder(\"Computer Hand\");\n this.handPanels[0] = new JPanel();\n this.handPanels[0].setLayout(flowLayout);\n this.handPanels[0].setPreferredSize(new Dimension((int) this.getMinimumSize().getWidth() - 50, 105));\n //Use a JScrollPane in case the cards per hand is greater than can be displayed in the panel\n //without a scroll bar.\n JScrollPane scrollComputerHand = new JScrollPane(this.handPanels[0]);\n scrollComputerHand.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_NEVER);\n scrollComputerHand.setBorder(border);\n this.add(scrollComputerHand, BorderLayout.NORTH);\n\n //Create the playing area.\n border = new TitledBorder(\"Playing Area\");\n //The play area will use a grid layout, so that the played cards, labels, and\n //status text can be displayed in neat columns.\n GridLayout gridLayoutCardsArea = new GridLayout(1, 2);\n GridLayout gridLayoutStatusArea = new GridLayout(1, 1);\n pnlPlayArea = new JPanel();\n pnlPlayArea.setBorder(border);\n layout = new BorderLayout();\n pnlPlayArea.setLayout(layout);\n\n pnlTimer = new JPanel();\n pnlTimer.setLayout(gridLayoutStatusArea);\n pnlPlayedCards = new JPanel();\n pnlPlayedCards.setLayout(gridLayoutCardsArea);\n pnlPlayerText = new JPanel();\n pnlPlayerText.setLayout(gridLayoutCardsArea);\n pnlStatusText = new JPanel();\n pnlStatusText.setLayout(gridLayoutStatusArea);\n pnlPlayedCards.setPreferredSize(new Dimension((int) this.getMinimumSize().getWidth() - 50, 150));\n pnlPlayerText.setPreferredSize(new Dimension(100, 30));\n pnlStatusText.setPreferredSize(new Dimension(100, 30));\n pnlPlayArea.add(pnlTimer, BorderLayout.EAST);\n pnlPlayArea.add(pnlPlayedCards, BorderLayout.NORTH);\n pnlPlayArea.add(pnlPlayerText, BorderLayout.CENTER);\n pnlPlayArea.add(pnlStatusText, BorderLayout.SOUTH);\n this.add(pnlPlayArea, BorderLayout.CENTER);\n ///Create the human's hand area.\n border = new TitledBorder(\"Human Hand\");\n this.handPanels[1] = new JPanel();\n this.handPanels[1].setLayout(flowLayout);\n this.handPanels[1].setPreferredSize(new Dimension((int) this.getMinimumSize().getWidth() - 50, 105));\n JScrollPane scrollHumanHand = new JScrollPane(this.handPanels[1]);\n scrollHumanHand.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_NEVER);\n scrollHumanHand.setBorder(border);\n this.add(scrollHumanHand, BorderLayout.SOUTH);\n }", "public Dimension getSize() { return new Dimension(width,height); }", "public Z4Frame() {\n initComponents();\n setSize(new Dimension(330, 370));\n setResizable(false);\n setDefaultCloseOperation(javax.swing.WindowConstants.HIDE_ON_CLOSE);\n\n FlowLayout layout = new FlowLayout();\n\n Container contentPane = getContentPane();\n contentPane.setLayout(layout);\n\n JPanel imagePanel = new JPanel();\n imagePanel.setBackground(new Color(0, 0, 0));\n imagePanel.setPreferredSize(new Dimension(300, 300));\n imagePanel.setVisible(true);\n imagePanel.setLayout(new GridLayout(10, 10, 1, 1));\n\n for (int i = 0; i < BoxPanel.SIZE; i++) {\n for (int j = 0; j < BoxPanel.SIZE; j++) {\n boxes[i][j] = new BoxPanel();\n imagePanel.add(boxes[i][j]);\n }\n }\n\n KolejnyPrzyklad pokazPrzyklad = new KolejnyPrzyklad();\n HopfieldButton hopfieldButton = new HopfieldButton();\n\n contentPane.add(imagePanel);\n\n contentPane.add(pokazPrzyklad);\n contentPane.add(hopfieldButton);\n contentPane.add(new JSeparator(SwingConstants.HORIZONTAL));\n\n setVisible(true);\n }", "public Pixmap(int width, int height){\n load(width, height);\n }" ]
[ "0.645503", "0.6174674", "0.61267155", "0.61215585", "0.60640943", "0.5940505", "0.56944454", "0.5650408", "0.5543381", "0.5527421", "0.55037856", "0.542995", "0.5427556", "0.5380156", "0.5362844", "0.5353708", "0.5346767", "0.53465074", "0.53419566", "0.534192", "0.53371644", "0.5311927", "0.5307309", "0.52898747", "0.5288522", "0.5285745", "0.5273509", "0.5263613", "0.52580214", "0.5232922", "0.5224666", "0.52139175", "0.5213785", "0.52085197", "0.52071387", "0.5169055", "0.51684755", "0.51603854", "0.51603824", "0.51594925", "0.5151264", "0.51386267", "0.51369804", "0.5134152", "0.5122473", "0.5110671", "0.5093188", "0.50921845", "0.50919855", "0.5088602", "0.50828", "0.5079803", "0.5076068", "0.50729924", "0.50715226", "0.5068317", "0.5067512", "0.5058043", "0.5057868", "0.5055411", "0.50543267", "0.50438225", "0.5022332", "0.50171614", "0.501374", "0.50121814", "0.50114083", "0.5009309", "0.500713", "0.5006528", "0.5003774", "0.49977806", "0.499366", "0.49928185", "0.4991891", "0.4990014", "0.49887857", "0.49876538", "0.49848038", "0.49809387", "0.49713668", "0.49699613", "0.49680024", "0.49616635", "0.4961206", "0.4956194", "0.4953656", "0.49519253", "0.4946158", "0.49455348", "0.4943306", "0.49424943", "0.4938883", "0.4933518", "0.4933486", "0.4933486", "0.49279726", "0.49272123", "0.4922064", "0.49206898" ]
0.60257226
5
TODO: Fix maintaining aspect ratio
public void update(Bitmap bitmap) { bufferStrat = this.canvas.getBufferStrategy(); Graphics graphics = bufferStrat.getDrawGraphics(); graphics.drawImage(bitmap.getImage(), 0, 0, width * scale, height * scale, null); graphics.dispose(); bufferStrat.show(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setAspectRatio(float aspectRatio) {\n this.aspectRatio = aspectRatio;\n// float radiusX=radius/aspectRatio, radiusY=radius*aspectRatio;\n }", "public void setKeepAspectRatio(boolean keepAspect);", "@Override // com.master.cameralibrary.CameraViewImpl\n public AspectRatio getAspectRatio() {\n return this.mAspectRatio;\n }", "protected synchronized void setAspectRatio(double aspectRatio)\n {\n myAspectRatio = aspectRatio;\n myHalfFOVy = Math.atan(Math.tan(myHalfFOVx) / myAspectRatio);\n resetProjectionMatrix();\n }", "private void computeRatio() {\n int i;\n int i2;\n int i3;\n boolean z = false;\n if (CameraSettings.getStrictAspectRatio(this.mRenderWidth, this.mRenderHeight) > -1 || !CameraSettings.isNearAspectRatio(this.mCameraWidth, this.mCameraHeight, this.mRenderWidth, this.mRenderHeight)) {\n int i4 = this.mCameraWidth;\n int i5 = this.mCameraHeight;\n switch (this.mTargetRatio) {\n case 0:\n this.mIsFullScreen = false;\n this.mIsRatio16_9 = false;\n if (!CameraSettings.isAspectRatio4_3(i4, i5)) {\n this.mNeedCropped = true;\n if (i4 * 4 > i5 * 3) {\n int i6 = (int) (((float) i5) * 0.75f);\n this.mScaleX = ((float) i6) / ((float) i4);\n i4 = i6;\n } else {\n int i7 = (int) ((((float) i4) * 4.0f) / 3.0f);\n this.mScaleY = ((float) i7) / ((float) i5);\n i5 = i7;\n }\n } else {\n this.mNeedCropped = false;\n this.mScaleX = 1.0f;\n this.mScaleY = 1.0f;\n }\n if (CameraSettings.sCroppedIfNeeded) {\n this.mIsFullScreen = true;\n this.mNeedCropped = true;\n this.mIsRatio16_9 = true;\n i = (int) ((((float) i4) * 16.0f) / 9.0f);\n this.mScaleX *= 0.75f;\n } else {\n i = i5;\n }\n if (b.isPad()) {\n this.mIsFullScreen = true;\n break;\n }\n break;\n case 1:\n this.mIsRatio16_9 = true;\n this.mIsFullScreen = true;\n if (!CameraSettings.isAspectRatio16_9(i4, i5)) {\n this.mNeedCropped = true;\n if (i4 * 16 <= i5 * 9) {\n int i8 = (int) ((((float) i4) * 16.0f) / 9.0f);\n this.mScaleY = ((float) i8) / ((float) i5);\n int i9 = i8;\n i2 = i4;\n i3 = i9;\n if (b.isPad()) {\n this.mIsRatio16_9 = false;\n this.mNeedCropped = true;\n i3 = (int) (((float) i3) * 0.75f);\n this.mScaleY *= 0.75f;\n }\n i = i3;\n i4 = i2;\n break;\n } else {\n i2 = (int) ((((float) i5) * 9.0f) / 16.0f);\n this.mScaleX = ((float) i2) / ((float) i4);\n }\n } else {\n this.mNeedCropped = false;\n this.mScaleX = 1.0f;\n this.mScaleY = 1.0f;\n i2 = i4;\n }\n i3 = i5;\n if (b.isPad()) {\n }\n i = i3;\n i4 = i2;\n case 2:\n this.mIsFullScreen = false;\n this.mIsRatio16_9 = false;\n this.mNeedCropped = true;\n if (i4 != i5) {\n this.mScaleX = 1.0f;\n this.mScaleY = ((float) i4) / ((float) i5);\n i = i4;\n break;\n }\n default:\n i = i5;\n break;\n }\n this.mWidth = i4;\n this.mHeight = i;\n } else if (!(this.mCameraWidth == 0 || this.mCameraHeight == 0)) {\n if (this.mRenderWidth == 0 || this.mRenderHeight == 0 || this.mRenderWidth * this.mCameraHeight == this.mRenderHeight * this.mCameraWidth) {\n this.mNeedCropped = false;\n this.mScaleX = 1.0f;\n this.mScaleY = 1.0f;\n this.mWidth = this.mCameraWidth;\n this.mHeight = this.mCameraHeight;\n } else {\n this.mNeedCropped = true;\n if (this.mCameraWidth * this.mRenderHeight > this.mCameraHeight * this.mRenderWidth) {\n this.mHeight = this.mCameraHeight;\n this.mWidth = (this.mCameraHeight * this.mRenderWidth) / this.mRenderHeight;\n this.mScaleX = ((float) this.mWidth) / ((float) this.mCameraWidth);\n this.mScaleY = 1.0f;\n } else {\n this.mWidth = this.mCameraWidth;\n this.mHeight = (this.mCameraWidth * this.mRenderHeight) / this.mRenderWidth;\n this.mScaleX = 1.0f;\n this.mScaleY = ((float) this.mHeight) / ((float) this.mCameraHeight);\n }\n }\n if ((((float) this.mRenderHeight) / ((float) this.mRenderWidth)) - (((float) Util.sWindowHeight) / ((float) Util.sWindowWidth)) < 0.1f) {\n z = true;\n }\n this.mIsFullScreen = z;\n }\n updateRenderSize();\n updateRenderRect();\n }", "@Override\n\tprotected void onSaveInstanceState(Bundle bundle) {\n\t\tsuper.onSaveInstanceState(bundle);\n\t\tbundle.putInt(ASPECT_RATIO_X, mAspectRatioX);\n\t\tbundle.putInt(ASPECT_RATIO_Y, mAspectRatioY);\n\t}", "public float getAspectRatio() {\n\t\treturn this.aspectRatio;\n\t}", "public void setAspectRatio(float aspectRatio) {\n\t\tthis.aspectRatio = aspectRatio;\n\t}", "public double getAspect ()\r\n {\r\n return (double) getLength() / (double) getThickness();\r\n }", "public void setOriginalAspectRatioFixed() {\n if (!isImageLoaded()) {\n // if no image was loaded set the aspect ratio to free\n setAspectRatio(-1.0);\n return;\n }\n Rect imageRect = getImageRect();\n setAspectRatio((double) (imageRect.width()) / (double) (imageRect.height()));\n }", "public float getAspectRatio()\n\t{\n\t\tif (this._width != 0 && this._height != 0)\n\t\t{\n\t\t\treturn (((float) this._width) / ((float) this._height));\n\t\t}\n\t\treturn 0f;\n\t}", "public boolean setAspectRatio(double ratio) {\n Log.d(TAG, \"setAspectRatio(): ratio = \" + ratio + \", mAspectRatio = \" + mAspectRatio);\n if (ratio <= 0.0) throw new IllegalArgumentException();\n mIsGifMode = false;\n /*\n * FIX BUG: 1818\n * FIX COMMENT: do not reset layout if Math.abs(mAspectRatio - ratio) less than 0.01\n * DATE: 2012-07-16\n */\n if (Math.abs(mAspectRatio - ratio) > 0.01) {\n mAspectRatio = ratio;\n mIsRatioChanged = true;\n requestLayout();\n return true;\n }\n else {\n return false;\n }\n }", "public void setFreeAspectRatio() {\n setAspectRatio(-1.0);\n }", "public void setupRatio(int width) {\n\t\t//reset SpriteCurrentEdge to fix value every level\n\t\tSpriteCurrentEdge = ResourceManager.FixSizeSpriteEdge;\n\t\t\n\t\tSpriteScaleFactor = ResourceManager.getInstance().cameraWidth / (width * SpriteCurrentEdge);\n\t\t\n\t\t//update resize currentEdge\n\t\tSpriteCurrentEdge = (int)Math.ceil(SpriteCurrentEdge * SpriteScaleFactor);\n\t\t\n\t\t/*\n\t\tLog.i(TAG, String.format(\"width:%1$d edge:%2$d scale:%3$f\", width, \n\t\t\t\tGameManager.getInstance().SpriteCurrentEdge,\n\t\t\t\tGameManager.getInstance().SpriteScaleFactor));\n\t\t*/\n\t}", "private void calculateHeightRatio() {\n\tif (texHeight != 0) {\n\t heightRatio = ((float) height) / texHeight;\n\t}\n }", "@Override // com.master.cameralibrary.CameraViewImpl\n public boolean setAspectRatio(AspectRatio aspectRatio) {\n if (this.mAspectRatio == null || !isCameraOpened()) {\n this.mAspectRatio = aspectRatio;\n return true;\n } else if (this.mAspectRatio.equals(aspectRatio)) {\n return false;\n } else {\n if (this.mPreviewSizes.sizes(aspectRatio) != null) {\n this.mAspectRatio = aspectRatio;\n adjustCameraParameters();\n return true;\n }\n throw new UnsupportedOperationException(aspectRatio + \" is not supported\");\n }\n }", "private void refreshDimensions() {\n //tamano del canvas\n targetWidth = canvasWidth;\n targetHeight = canvasHeight;\n//de las imagenes\n sourceWidth = bitmap.getWidth();\n sourceHeight = bitmap.getHeight();\n\n double targetRatio = (double) targetWidth / (double) targetHeight;\n double sourceRatio = (double) sourceWidth / (double) sourceHeight;\n\n targetOffsetX = 0;\n targetOffsetY = 0;\n\n if(sourceRatio > targetRatio)\n {\n int newTargetHeight = (int) (targetWidth / sourceRatio);\n int delta = targetHeight - newTargetHeight;\n targetOffsetY = delta / 2;\n targetHeight = newTargetHeight;\n }\n else if(sourceRatio < targetRatio)\n {\n int newTargetWidth = (int) (targetHeight * sourceRatio);\n int delta = targetWidth - newTargetWidth;\n targetOffsetX = delta / 2;\n targetWidth = newTargetWidth;\n }\n\n puzzleWidth = slidePuzzle.getWidth();\n puzzleHeight = slidePuzzle.getHeight();\n\n targetColumnWidth = targetWidth / puzzleWidth;\n targetRowHeight = targetHeight / puzzleHeight;\n sourceColumnWidth = sourceWidth / puzzleWidth;\n sourceRowHeight = sourceHeight / puzzleHeight;\n }", "@Test(timeout = 4000)\n public void test075() throws Throwable {\n HomeEnvironment homeEnvironment0 = new HomeEnvironment();\n AspectRatio aspectRatio0 = AspectRatio.RATIO_2_1;\n homeEnvironment0.setPhotoAspectRatio(aspectRatio0);\n assertEquals(AspectRatio.RATIO_2_1, homeEnvironment0.getPhotoAspectRatio());\n }", "private void calculateWidthRatio() {\n\tif (texWidth != 0) {\n\t widthRatio = ((float) width) / texWidth;\n\t}\n }", "public interface AspectRatioListener {\n void onAspectRatioUpdated(float f, float f2, boolean z);\n }", "public void setAspectRatio(double aspectRatio) {\n if (this.aspectRatio == aspectRatio) {\n return;\n }\n this.aspectRatio = aspectRatio;\n // update the cropRect\n if (isImageLoaded() && aspectRatio > 0.0) {\n setCropRect(getMaxCenteredCropRect(), true);\n //autoZoom(true);\n }\n }", "public void majIHM(){\n this.image.setFitWidth(this.getHeight()-10);\n this.image.setFitHeight(this.getHeight()-10);\n }", "@Override // com.master.cameralibrary.CameraViewImpl\n public Set<AspectRatio> getSupportedAspectRatios() {\n SizeMap sizeMap = this.mPreviewSizes;\n for (AspectRatio aspectRatio : sizeMap.ratios()) {\n if (this.mPictureSizes.sizes(aspectRatio) == null) {\n sizeMap.remove(aspectRatio);\n }\n }\n return sizeMap.ratios();\n }", "private void getImgSize(){\n imgSizeX = 1080; //mAttacher.getDisplayRect().right - mAttacher.getDisplayRect().left;\n imgSizeY = 888.783f; //mAttacher.getDisplayRect().bottom - mAttacher.getDisplayRect().top;\n }", "@Override\n\tprotected float getDrawRatioX(){\n\t\treturn getWidth() / (float)getDefaultTODA() * getRatioOnScreen();\n\t}", "public double getRatio() {\r\n // Most graphs are drawn with aspect ratio 2:1, which is mostly arbitrary\r\n // and happened to look nice for partographs. Vertically-oriented graphs,\r\n // however, get squished unless they're drawn as a square. Expect to revisit \r\n // this eventually (make all graphs square? user-configured aspect ratio?).\r\n if (Graph.TYPE_BAR.equals(mData.getType())) {\r\n return 1;\r\n }\r\n return 2;\r\n }", "private float getNewScale() {\n int width = getWidth() - (padding[0] + padding[2]);\n float scaleWidth = (float) width / (cropRect.right - cropRect.left);\n\n int height = getHeight() - (padding[1] + padding[3]);\n float scaleHeight = (float) height / (cropRect.bottom - cropRect.top);\n if (getHeight() > getWidth()) {\n return scaleWidth < scaleHeight ? scaleWidth : scaleHeight;\n }\n return scaleWidth < scaleHeight ? scaleWidth : scaleHeight;\n }", "private boolean isMaintainAspectRatio() {\n return this.preferences.getBoolean(\"SplashMaintainAspectRatio\", false);\n }", "public void initSize() {\n WIDTH = 320;\n //WIDTH = 640;\n HEIGHT = 240;\n //HEIGHT = 480;\n SCALE = 2;\n //SCALE = 1;\n }", "@Override\n\tprotected void onRestoreInstanceState(Bundle bundle) {\n\t\tsuper.onRestoreInstanceState(bundle);\n\t\tmAspectRatioX = bundle.getInt(ASPECT_RATIO_X);\n\t\tmAspectRatioY = bundle.getInt(ASPECT_RATIO_Y);\n\t}", "private float aspect_correct_scale_for_rect(float screen[], float rect[]) {\n\t\tfloat screenAspect = screen[0] / screen[1];\n\t\tfloat rectAspect = rect[0] / rect[1];\n\n\t\tfloat scaleFactor;\n\t\tif (screenAspect > rectAspect)\n\t\t\tscaleFactor = screen[1] / rect[1];\n\t\telse\n\t\t\tscaleFactor = screen[0] / rect[0];\n\n\t\treturn scaleFactor;\n\t}", "@Override\n\tpublic int[] getImageScaleDrawing() {\n\t\treturn new int[] {\n\t\t\t\t80, 80\n\t\t};\n\t}", "public void onMeasure(int r12, int r13) {\n /*\n r11 = this;\n super.onMeasure(r12, r13);\n r12 = r11.videoAspectRatio;\n r13 = 0;\n r12 = (r12 > r13 ? 1 : (r12 == r13 ? 0 : -1));\n if (r12 > 0) goto L_0x000b;\n L_0x000a:\n return;\n L_0x000b:\n r12 = r11.getMeasuredWidth();\n r0 = r11.getMeasuredHeight();\n r1 = (float) r12;\n r2 = (float) r0;\n r3 = r1 / r2;\n r4 = r11.videoAspectRatio;\n r4 = r4 / r3;\n r5 = 1065353216; // 0x3f800000 float:1.0 double:5.263544247E-315;\n r4 = r4 - r5;\n r6 = java.lang.Math.abs(r4);\n r7 = 1008981770; // 0x3c23d70a float:0.01 double:4.9850323E-315;\n r8 = 0;\n r6 = (r6 > r7 ? 1 : (r6 == r7 ? 0 : -1));\n if (r6 > 0) goto L_0x0031;\n L_0x0029:\n r12 = r11.aspectRatioUpdateDispatcher;\n r13 = r11.videoAspectRatio;\n r12.scheduleUpdate(r13, r3, r8);\n return;\n L_0x0031:\n r6 = r11.resizeMode;\n r7 = 2;\n r9 = 1;\n if (r6 == 0) goto L_0x0061;\n L_0x0037:\n if (r6 == r9) goto L_0x005c;\n L_0x0039:\n if (r6 == r7) goto L_0x0056;\n L_0x003b:\n r10 = 3;\n if (r6 == r10) goto L_0x004c;\n L_0x003e:\n r10 = 4;\n if (r6 == r10) goto L_0x0042;\n L_0x0041:\n goto L_0x006b;\n L_0x0042:\n r13 = (r4 > r13 ? 1 : (r4 == r13 ? 0 : -1));\n if (r13 <= 0) goto L_0x0049;\n L_0x0046:\n r12 = r11.videoAspectRatio;\n goto L_0x0058;\n L_0x0049:\n r13 = r11.videoAspectRatio;\n goto L_0x005e;\n L_0x004c:\n r13 = (r4 > r13 ? 1 : (r4 == r13 ? 0 : -1));\n if (r13 > 0) goto L_0x0053;\n L_0x0050:\n r13 = r11.videoAspectRatio;\n goto L_0x005e;\n L_0x0053:\n r12 = r11.videoAspectRatio;\n goto L_0x0058;\n L_0x0056:\n r12 = r11.videoAspectRatio;\n L_0x0058:\n r2 = r2 * r12;\n r12 = (int) r2;\n goto L_0x006b;\n L_0x005c:\n r13 = r11.videoAspectRatio;\n L_0x005e:\n r1 = r1 / r13;\n r0 = (int) r1;\n goto L_0x006b;\n L_0x0061:\n r13 = (r4 > r13 ? 1 : (r4 == r13 ? 0 : -1));\n if (r13 <= 0) goto L_0x0068;\n L_0x0065:\n r13 = r11.videoAspectRatio;\n goto L_0x005e;\n L_0x0068:\n r12 = r11.videoAspectRatio;\n goto L_0x0058;\n L_0x006b:\n r13 = r11.aspectRatioUpdateDispatcher;\n r1 = r11.videoAspectRatio;\n r13.scheduleUpdate(r1, r3, r9);\n r13 = 1073741824; // 0x40000000 float:2.0 double:5.304989477E-315;\n r12 = android.view.View.MeasureSpec.makeMeasureSpec(r12, r13);\n r13 = android.view.View.MeasureSpec.makeMeasureSpec(r0, r13);\n super.onMeasure(r12, r13);\n r12 = r11.getChildCount();\n L_0x0083:\n if (r8 >= r12) goto L_0x00cc;\n L_0x0085:\n r13 = r11.getChildAt(r8);\n r0 = r13 instanceof android.view.TextureView;\n if (r0 == 0) goto L_0x00c9;\n L_0x008d:\n r12 = r11.matrix;\n r12.reset();\n r12 = r11.getWidth();\n r12 = r12 / r7;\n r0 = r11.getHeight();\n r0 = r0 / r7;\n r1 = r11.matrix;\n r2 = r11.rotation;\n r2 = (float) r2;\n r12 = (float) r12;\n r0 = (float) r0;\n r1.postRotate(r2, r12, r0);\n r1 = r11.rotation;\n r2 = 90;\n if (r1 == r2) goto L_0x00b0;\n L_0x00ac:\n r2 = 270; // 0x10e float:3.78E-43 double:1.334E-321;\n if (r1 != r2) goto L_0x00c1;\n L_0x00b0:\n r1 = r11.getHeight();\n r1 = (float) r1;\n r2 = r11.getWidth();\n r2 = (float) r2;\n r1 = r1 / r2;\n r2 = r11.matrix;\n r5 = r5 / r1;\n r2.postScale(r5, r1, r12, r0);\n L_0x00c1:\n r13 = (android.view.TextureView) r13;\n r12 = r11.matrix;\n r13.setTransform(r12);\n goto L_0x00cc;\n L_0x00c9:\n r8 = r8 + 1;\n goto L_0x0083;\n L_0x00cc:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.exoplayer2.p003ui.AspectRatioFrameLayout.onMeasure(int, int):void\");\n }", "public boolean setGifAspectRatio(double ratio,boolean isFrontCamera) {\n if (ratio <= 0.0) throw new IllegalArgumentException();\n Log.d(TAG, \"setAspectRatio = \" + ratio);\n mIsGifMode = true;\n mGifModeFrontCamera = isFrontCamera;\n mActivity.getWindowManager().getDefaultDisplay().getMetrics(mMetrics);\n if (Math.abs(mAspectRatio - ratio) > 0.02) {\n mAspectRatio = ratio;\n mIsRatioChanged = true;\n requestLayout();\n return true;\n }\n else {\n /*\n * FIX BUG: 1223\n * BUG CAUSE: Honer-ICS need refresh after set aspect ratio\n * FIX COMMENT: still refresh when ratio is not change\n * DATE: 2012-07-16\n */\n requestLayout();\n invalidate();\n return false;\n }\n }", "private void updateSizeInfo() {\n RelativeLayout drawRegion = (RelativeLayout)findViewById(R.id.drawWindow);\r\n drawW = drawRegion.getWidth();\r\n drawH = drawRegion.getHeight();\r\n getImageFromStorage();\r\n LinearLayout parentWindow = (LinearLayout)findViewById(R.id.parentWindow);\r\n parentWindow.setPadding((drawW - bgImage.getWidth())/2, (drawH - bgImage.getHeight())/2, (drawW - bgImage.getWidth())/2, (drawH - bgImage.getHeight())/2);\r\n parentWindow.invalidate();\r\n }", "public static void initSize(float ratioX, float ratioY) {\n\t\tConfig.ratioX = ratioX;\n\t\tConfig.ratioY = ratioY;\n\t\tConfig.SCREEN_WIDTH = (int) (ImageSize.SCREEN_WIDTH * ratioX);\n\t\tConfig.SCREEN_HEIGHT = (int) (ImageSize.SCREEN_HEIGHT * ratioY);\n\t\tConfig.TOP_TITLE_WIDTH = (int) (ImageSize.TOP_TITLE_WIDTH* ratioX);\n\t\tConfig.TOP_TITLE_HEIGHT = (int) (ImageSize.TOP_TITLE_HEIGHT * ratioX);\n\t\tConfig.GAME_TITLE_WIDTH = (int) (ImageSize.GAME_TITLE_WIDTH* ratioX);\n\t\tConfig.GAME_TITLE_HEIGHT = (int) (ImageSize.GAME_TITLE_HEIGHT * ratioX);\n\t\t\n\t\tConfig.TOP_LOGO_WIDTH = (int) (ImageSize.TOP_LOGO_WIDTH * ratioX);\n\t\tConfig.TOP_LOGO_HEIGHT = (int) (ImageSize.TOP_LOGO_HEIGHT * ratioX);\n\t\tConfig.TOP_BUTTON_WIDTH = (int) (ImageSize.TOP_BUTTON_WIDTH * ratioX);\n\t\tConfig.TOP_BUTTON_WIDTH_VFA = (int) (ImageSize.TOP_BUTTON_WIDTH_VFA * ratioX);\n\t\tConfig.TOP_BUTTON_HEIGHT = (int) (ImageSize.TOP_BUTTON_HEIGHT * ratioX);\n\t\t\n\t\tConfig.TOP_TITLE_Y = (int) (ImageSize.TOP_TITLE_Y* ratioX);\n\t\tConfig.GAME_TITLE_Y = (int) (ImageSize.GAME_TITLE_Y* ratioX);\n\t\tConfig.TOP_START_X = (int) (ImageSize.TOP_START_X * ratioX);\n\t\tConfig.TOP_START1_X = (int) (ImageSize.TOP_START1_X * ratioX);\n\t\tConfig.TOP_START2_X = (int) (ImageSize.TOP_START2_X * ratioX);\n\t\tConfig.TOP_START3_X = (int) (ImageSize.TOP_START3_X * ratioX);\n\t\tConfig.TOP_START_Y = (int) (Config.SCREEN_HEIGHT/2 - ImageSize.TOP_START_FROM_CENTER_Y * ratioX);\n\t\tConfig.TOP_RANKING_Y = Config.TOP_START_Y + Config.TOP_BUTTON_HEIGHT + (int) (ImageSize.TOP_DIS_Y * ratioX);\n\t\t//Config.TOP_MANUAL_Y = Config.TOP_RANKING_Y + Config.TOP_BUTTON_HEIGHT + (int) (ImageSize.TOP_DIS_Y * ratioX);\n\t\tConfig.TOP_MANUAL_Y = Config.TOP_START_Y;\n\t\tConfig.TOP_INFO_Y = Config.TOP_MANUAL_Y + Config.TOP_BUTTON_HEIGHT + (int) (ImageSize.TOP_DIS_Y * ratioX);\n\t\tConfig.TOP_VFA_Y = Config.TOP_INFO_Y + Config.TOP_BUTTON_HEIGHT + (int) (ImageSize.TOP_DIS_Y * ratioX);\n\t\tConfig.RESULT_VFA_Y = Config.TOP_INFO_Y + Config.TOP_BUTTON_HEIGHT + (int) (ImageSize.TOP_DIS_Y * ratioX);\n\t\tConfig.RANKING_SCORES_X = (int) (ImageSize.RANKING_SCORES_X * ratioX);\n\t\tConfig.RANKING_SCORES_Y = (int) (Config.SCREEN_HEIGHT/2 - ImageSize.RANKING_SCORES_FORM_CENTER_Y * ratioX);\n\t\tConfig.RANKING_SCORES_LINE_X = (int) (ImageSize.RANKING_SCORES_LINE_X * ratioX);\n\t\tConfig.RANKING_SCORES_LINE_Y = (int) (Config.SCREEN_HEIGHT/2 - ImageSize.RANKING_SCORES_LINE_FROM_CENTER_Y * ratioX) - 90;\n\t\t\n\t\tConfig.RANKING_SCORES_LINE_WIDTH = (int) (ImageSize.RANKING_SCORES_LINE_WIDTH * ratioX);\n\t\tConfig.RANKING_SCORES_LINE_HEIGH = (int) (ImageSize.RANKING_SCORES_LINE_HEIGH * ratioX);\n\t\tConfig.RANKING_NUMBER_WIDTH = (int) (ImageSize.RANKING_NUMBER_WIDTH * ratioX);\n\t\tConfig.RANKING_NUMBER_HEIGH = (int) (ImageSize.RANKING_NUMBER_HEIGH * ratioX);\n\t\t\n\t\tConfig.RANKING_POINT_WIDTH = (int) (ImageSize.RANKING_POINT_WIDTH * ratioX);\n\t\tConfig.RANKING_POINT_HEIGH = (int) (ImageSize.RANKING_POINT_HEIGH * ratioX);\n\t\t\t\n\t\n\t\tConfig.RANKING_BACK_WIDTH = (int) (ImageSize.RANKING_BACK_WIDTH * ratioX);\n\t\tConfig.RANKING_BACK_HEIGH = (int) (ImageSize.RANKING_BACK_HEIGH * ratioX);\n\t\tConfig.RANKING_BACK_X = (int) (ImageSize.RANKING_BACK_X * ratioX);\n\t\tConfig.RANKING_BACK_Y = (int) (Config.SCREEN_HEIGHT/2 + ImageSize.RANKING_BACK_FROM_CENTER_Y * ratioX);\n\t\t\n\t\tConfig.RANKING_CENTER_WIDTH = (int) (ImageSize.RANKING_CENTER_WIDTH * ratioX);\n\t\tConfig.RANKING_CENTER_HEIGH = (int) (ImageSize.RANKING_CENTER_HEIGH * ratioX);\n\t\tConfig.RANKING_CENTER_X = (int) (ImageSize.RANKING_CENTER_X * ratioX);\n\t\tConfig.RANKING_CENTER_Y = (int) (Config.SCREEN_HEIGHT/2 + ImageSize.RANKING_CENTER__FROM_CENTER_Y * ratioX);\n\t\t\n\t\t\n\t\tConfig.MANUAL_WIDTH = (int) (ImageSize.MANUAL_WIDTH * ratioX);\n\t\tConfig.MANUAL_HEIGHT = (int) (ImageSize.MANUAL_HEIGHT * ratioX);\n\t\tConfig.MANUAL_X = 0;\n\t\tConfig.MANUAL_Y = (Config.SCREEN_HEIGHT - Config.MANUAL_HEIGHT)/2;\n\t\t\n\t\tConfig.MANUAL_STRING_X = (int) (ImageSize.MANUAL_STRING_X * ratioX);\n\t\tConfig.MANUAL_STRING_Y = (int) (ImageSize.MANUAL_STRING_Y * ratioY);\n\t}", "void rootViewSizeChange()\n {\n int rootW = (int) Math.ceil(_rootView.getWidth());\n int rootH = (int) Math.ceil(_rootView.getHeight());\n _canvas.setWidth(rootW*_scale); _canvas.setHeight(rootH*_scale);\n }", "public float getEqualizationScale() {\n return Gdx.graphics.getWidth() / WE.getCurrentConfig().getRenderResolutionWidth();\n }", "@Override\n protected void onSizeChanged(int w, int h, int oldw, int oldh) {\n w -= getPaddingRight() + getPaddingLeft();\n h -= getPaddingTop() + getPaddingBottom();\n\n int right = w;\n int bottom = h;\n int top = 0;\n int left = 0;\n\n if (mElement != null) {\n // Maintain aspect ratio. Certain kinds of animated drawables\n // get very confused otherwise.\n final int intrinsicWidth = mElement.getIntrinsicWidth();\n final int intrinsicHeight = mElement.getIntrinsicHeight();\n final float intrinsicAspect = (float) intrinsicWidth / intrinsicHeight;\n final float boundAspect = (float) w / h;\n if (intrinsicAspect != boundAspect) {\n if (boundAspect > intrinsicAspect) {\n // New width is larger. Make it smaller to match height.\n final int width = (int) (h * intrinsicAspect);\n left = (w - width) / 2;\n right = left + width;\n } else {\n // New height is larger. Make it smaller to match width.\n final int height = (int) (w * (1 / intrinsicAspect));\n top = (h - height) / 2;\n bottom = top + height;\n }\n }\n mElement.setBounds(left, top, right, bottom);\n }\n\n super.onSizeChanged(w, h, oldw, oldh);\n }", "private void calculateBasicRatio() {\n if (mLastZoomRatio == DEFAULT_VALUE) {\n if(isAngleCamera()){\n mBasicZoomRatio = 1.6f;\n }else{\n mBasicZoomRatio = ZOOM_UNSUPPORTED_DEFAULT_VALUE;\n }\n } else {\n mBasicZoomRatio = mLastZoomRatio;\n }\n //modify by bv liangchangwei for fixbug 3518\n }", "private float getRoughPixelSize() {\n\n\t\tfloat size = 380; // mm\n\t\tfloat pixels = getHeight();\n\t\treturn pixels > 0 ? size / pixels : 0;\n\n\t}", "private void resizePhoto() {\n if (photoPath.length() == 0) {\n return;\n }\n Log.d(LOG_TAG, \"Path dell' immagine: \" + photoPath);\n BitmapFactory.Options options = new BitmapFactory.Options();\n options.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(photoPath, options);\n\n options = new BitmapFactory.Options();\n\n options.inJustDecodeBounds = true;\n photoBM = BitmapFactory.decodeFile(photoPath, options);\n Log.d(LOG_TAG, \"Width:\" + bitmapWidth + \" height:\" + bitmapHeight);\n\n options.inSampleSize = calculateInSampleSize(options, bitmapWidth, bitmapHeight);\n\n options.inJustDecodeBounds = false;\n //halfHorizontal = bitmapWidth / 2;\n photoBM = BitmapFactory.decodeFile(photoPath, options);\n\n }", "private void setDimension() {\n float videoProportion = getVideoProportion();\n int screenWidth = getResources().getDisplayMetrics().widthPixels;\n int screenHeight = getResources().getDisplayMetrics().heightPixels;\n float screenProportion = (float) screenHeight / (float) screenWidth;\n ViewGroup.LayoutParams lp = mVideoPlayer.getLayoutParams();\n\n if (videoProportion < screenProportion) {\n lp.height = screenHeight;\n lp.width = (int) ((float) screenHeight / videoProportion);\n } else {\n lp.width = screenWidth;\n lp.height = (int) ((float) screenWidth * videoProportion);\n }\n mVideoPlayer.setLayoutParams(lp);\n }", "private void m8132a() {\n this.f6227a.setScaleType(ScaleType.FIT_XY);\n addView(this.f6227a, new LayoutParams(-2, -2));\n C2322j.m9044a(this.f6227a, C2322j.INTERNAL_AD_MEDIA);\n }", "@Field(4) \n\tpublic AVRational sample_aspect_ratio() {\n\t\treturn this.io.getNativeObjectField(this, 4);\n\t}", "@SuppressWarnings(\"unused\")\n\tprivate Point getAspectRatioSize(Point targetSize, Rectangle bounds)\n\t{\n\t\tfloat w = targetSize.x / (1f * bounds.width);\n\t\tfloat h = targetSize.y / (1f * bounds.height);\n\n\t\tfloat targetWidth = bounds.width;\n\t\tfloat targetHeight = bounds.height;\n\n\t\tif (w > h)\n\t\t{\n\t\t\ttargetWidth *= w;\n\t\t\ttargetHeight *= w;\n\t\t}\n\t\telse\n\t\t{\n\t\t\ttargetWidth *= h;\n\t\t\ttargetHeight *= h;\n\t\t}\n\n\t\treturn new Point(Math.round(targetWidth), Math.round(targetHeight));\n\t}", "public String toString()\n\t{\n\t\treturn String.format(Locale.getDefault(), \"{Width:%1$ Height:%2$ Format:%3$ AspectRatio:%4$}\", new Object[] { this._width, this._height, this._format, this.getAspectRatio() });\n\t}", "@Override\n public void resize(int width, int height) {\n camera.viewportWidth = width/25;\n camera.viewportHeight = height/25;\n camera.update();\n }", "public float getWidth() {\n\treturn widthRatio;\n }", "public static Size getOptimalPreviewSize(Activity currentActivity,\n List<Size> sizes, double targetRatio) {\n final double ASPECT_TOLERANCE = 0.001;\n if (sizes == null) return null;\n\n Size optimalSize = null;\n double minDiff = Double.MAX_VALUE;\n double maxDiff = 0;\n\n // Because of bugs of overlay and layout, we sometimes will try to\n // layout the viewfinder in the portrait orientation and thus get the\n // wrong size of mSurfaceView. When we change the preview size, the\n // new overlay will be created before the old one closed, which causes\n // an exception. For now, just get the screen size\n\n Display display = currentActivity.getWindowManager().getDefaultDisplay();\n\n int targetHeight = Math.min(display.getHeight(), display.getWidth());\n\n if (targetHeight <= 0) {\n // We don't know the size of SurfaceView, use screen height\n targetHeight = display.getHeight();\n }\n\n // Try to find an size match aspect ratio and size\n for (Size size : sizes) {\n double ratio = (double) size.width / size.height;\n if (Math.abs(ratio - targetRatio) > ASPECT_TOLERANCE) continue;\n if (Math.abs(size.height - targetHeight) < minDiff) {\n// if (Math.abs(size.height - targetHeight) > maxDiff) {\n optimalSize = size;\n minDiff = Math.abs(size.height - targetHeight);\n// maxDiff = Math.abs(size.height - targetHeight);\n }\n }\n\n // Cannot find the one match the aspect ratio. This should not happen.\n // Ignore the requirement.\n if (optimalSize == null) {\n if (BuildConfig.DEBUG) Log.w(TAG, \"No preview size match the aspect ratio\");\n minDiff = Double.MAX_VALUE;\n maxDiff = 0;\n for (Size size : sizes) {\n if (Math.abs(size.height - targetHeight) < minDiff) {\n// \tif (Math.abs(size.height - targetHeight) > maxDiff) {\n optimalSize = size;\n minDiff = Math.abs(size.height - targetHeight);\n// maxDiff = Math.abs(size.height - targetHeight);\n }\n }\n }\n return optimalSize;\n }", "double getRatio();", "public void setRatio(Integer ratio) {\n this.ratio = ratio;\n }", "@Override\n public void resize(int width, int height) {\n \n }", "private void updateDimensions() {\r\n width = gui.getWidth();\r\n height = gui.getHeight();\r\n yLabelsMargin = (int) gui.getLabelWidth(Integer.toString(((int) maximumDB / 10) * 10), true) + 2;\r\n if (track != null)\r\n scaleXpx = ((float) width - yLabelsMargin) / track.getBufferCapacity();\r\n else\r\n scaleXpx = 1;\r\n scaleYpx = (float) ((height - 1) / (maximumDB - minimumDB));\r\n if (scaleYpx == 0)\r\n scaleYpx = 1;\r\n }", "@Override\n\tpublic void resize(float width, float height) {\n\t}", "private void verifyAllThumbnailHeightWithAspectRatio(int tabCounts, float ratio) {\n for (int i = tabCounts - 1; i >= 0; i--) {\n onViewWaiting(allOf(withParent(withId(TabUiTestHelper.getTabSwitcherParentId(\n mActivityTestRule.getActivity()))),\n withId(R.id.tab_list_view)))\n .perform(scrollToPosition(i))\n .check(ThumbnailHeightAssertion.notZeroAt(i))\n .check(ThumbnailAspectRatioAssertion.havingAspectRatioAt(ratio, i));\n }\n }", "public int getRatio() {\r\n\t\treturn ratio;\r\n\t}", "protected double computePrefWidth(double aHeight) { return getWidth(); }", "@Override\n public void setupInnerViewElements(ViewGroup parent, View viewImage) {\n if (viewImage != null) {\n if (parent != null && parent.getResources() != null) {\n DisplayMetrics metrics = parent.getResources().getDisplayMetrics();\n\n int base = 64;\n\n if (metrics != null) {\n viewImage.getLayoutParams().width = (int) (base * metrics.density);\n viewImage.getLayoutParams().height = (int) (base * metrics.density);\n } else {\n viewImage.getLayoutParams().width = 196;\n viewImage.getLayoutParams().height = 196;\n }\n }\n }\n\n }", "@Override\n\tpublic void resize(int arg0, int arg1) {\n\t\t\n\t\t\n\t\t\n\t\tif (getScreen() == null)\n\t\t{\n\t\t\tSCREEN_WIDTH = arg0;\n\t \tSCREEN_HEIGHT = arg1;\n\t \t\n\t \tfloat w = 800, h = 550;\n\t \tif (SCREEN_WIDTH * h < SCREEN_HEIGHT * w)\n\t \t\tRATIO = (float)SCREEN_WIDTH / (float)w;\n\t \telse\n\t \t\tRATIO = (float)SCREEN_HEIGHT / (float)h;\n\t \t\n\t \tGdx.app.log(\"RATIO\", \"\"+RATIO);\n\t\t\tsetScreen(getLoadingScreen(DESTINATION.START,DESTINATION.NO));\n\t \t//setScreen(getStartScreen());\n\t\t}\n\t\telse\n\t\t\tthis.getScreen().resize(arg0, arg1);\n\t}", "@Override\n void setWidthHeight() {\n setWidth(explosions[0].getWidth());\n setHeight(explosions[1].getHeight());\n }", "public void updateParametersPictureSize() {\n if (this.mCameraDevice == null) {\n Log.w(TAG, \"attempting to set picture size without camera device\");\n return;\n }\n String pictureSizeKey;\n this.mCameraSettings.setSizesLocked(false);\n SettingsManager settingsManager = this.mActivity.getSettingsManager();\n if (isCameraFrontFacing()) {\n pictureSizeKey = Keys.KEY_PICTURE_SIZE_FRONT;\n } else {\n pictureSizeKey = Keys.KEY_PICTURE_SIZE_BACK;\n }\n String pictureSize = settingsManager.getString(SettingsManager.SCOPE_GLOBAL, pictureSizeKey, SettingsUtil.getDefaultPictureSize(isCameraFrontFacing()));\n Size size = new Size(960, MotionPictureHelper.FRAME_HEIGHT_9);\n if (isDepthEnabled()) {\n size = SettingsUtil.getBokehPhotoSize(this.mActivity, pictureSize);\n } else {\n size = SettingsUtil.sizeFromString(pictureSize);\n }\n this.mCameraSettings.setPhotoSize(size);\n if (ApiHelper.IS_NEXUS_5) {\n if (ResolutionUtil.NEXUS_5_LARGE_16_BY_9.equals(pictureSize)) {\n this.mShouldResizeTo16x9 = true;\n } else {\n this.mShouldResizeTo16x9 = false;\n }\n }\n if (size != null) {\n Size optimalSize;\n Tag tag;\n Size optimalSize2 = CameraUtil.getOptimalPreviewSize(this.mActivity, this.mCameraCapabilities.getSupportedPreviewSizes(), ((double) size.width()) / ((double) size.height()));\n Size original = this.mCameraSettings.getCurrentPreviewSize();\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"Photo module Set preview size \");\n stringBuilder.append(size);\n stringBuilder.append(\" calculate size \");\n stringBuilder.append(optimalSize2);\n stringBuilder.append(\" original size \");\n stringBuilder.append(original);\n android.util.Log.e(\"===++++++=====\", stringBuilder.toString());\n if (isDepthEnabled()) {\n optimalSize = SettingsUtil.getBokehPreviewSize(pictureSize, false);\n } else {\n if ((size.width() == 4160 && size.height() == 1970) || (size.width() == 3264 && size.height() == 1546)) {\n optimalSize2 = new Size(1440, MotionPictureHelper.FRAME_HEIGHT_9);\n }\n optimalSize = optimalSize2;\n this.mActivity.getCameraAppUI().setSurfaceHeight(optimalSize.height());\n this.mActivity.getCameraAppUI().setSurfaceWidth(optimalSize.width());\n }\n this.mUI.setCaptureSize(optimalSize);\n Log.w(TAG, String.format(\"KPI original size is %s, optimal size is %s\", new Object[]{original.toString(), optimalSize.toString()}));\n if (!optimalSize.equals(original)) {\n tag = TAG;\n StringBuilder stringBuilder2 = new StringBuilder();\n stringBuilder2.append(\"setting preview size. optimal: \");\n stringBuilder2.append(optimalSize);\n stringBuilder2.append(\"original: \");\n stringBuilder2.append(original);\n Log.v(tag, stringBuilder2.toString());\n this.mCameraSettings.setPreviewSize(optimalSize);\n this.mCameraDevice.applySettings(this.mCameraSettings);\n this.mCameraSettings = this.mCameraDevice.getSettings();\n if (this.mCameraSettings == null) {\n Log.e(TAG, \"camera setting is null ?\");\n }\n }\n if (!(optimalSize.width() == 0 || optimalSize.height() == 0)) {\n Log.v(TAG, \"updating aspect ratio\");\n this.mUI.updatePreviewAspectRatio(((float) optimalSize.width()) / ((float) optimalSize.height()));\n }\n this.mCameraSettings.setSizesLocked(true);\n tag = TAG;\n StringBuilder stringBuilder3 = new StringBuilder();\n stringBuilder3.append(\"Preview size is \");\n stringBuilder3.append(optimalSize);\n Log.d(tag, stringBuilder3.toString());\n }\n }", "@Override\n\tprotected void onSizeChanged(int w, int h, int oldw, int oldh) {\n\t\tsuper.onSizeChanged(w, h, oldw, oldh);\n\n\t\t// save device height width, we use it a lot of places\n\t\tmViewHeight = h;\n\t\tmViewWidth = w;\n\n\t\t// fix up the image\n\t\tsetInitialImageBounds();\n\t}", "@Override\n public int getHeight() {\n return 320;\n }", "public final float m8754f() {\n synchronized (this.f7324a) {\n if (this.f7325b == null) {\n return 0.0f;\n }\n try {\n float aspectRatio = this.f7325b.getAspectRatio();\n return aspectRatio;\n } catch (Throwable e) {\n hx.b(\"Unable to call getAspectRatio on video controller.\", e);\n return 0.0f;\n }\n }\n }", "private String getPatternRatio() {\n if(mAppUi.isZoomSwitchSupport() && isAngleCamera()){\n return \"x\" + String.format(Locale.ENGLISH, PATTERN, getAngleRatio(mCurZoomRatio));\n }\n //add by huangfei for zoom switch end\n return String.format(Locale.ENGLISH, PATTERN, mCurZoomRatio) ;\n }", "public void imageLoader(File file)\n{\n float ratio;\n if (file == null)\n {\n return;\n } else\n {\n try\n {\n PImage img = loadImage(file.getAbsolutePath());\n //if(img.width < 300)\n //{\n // img.resize(300,img.height);\n // if(img.height/((float)img.width)>3)\n // img.resize(300, 900);\n // if(img.width/((float)img.height)<0.3)\n // img.resize(900, 300);\n //}\n //if(img.height < 300)\n //{\n // img.resize(img.width, 300);\n // if(img.width/((float)img.width)>3)\n // img.resize(300, 900);\n // if(img.width/((float)img.height)<0.3)\n // img.resize(900, 300);\n //}\n if(img.height/((float)img.width)>3)\n {\n ratio = 1.0f;\n if(img.width < 400)\n {\n ratio = 400/((float)img.width);\n }\n img.resize((int)(ratio*img.width),(int)(ratio*img.width*2.5f));\n }\n if(img.height/((float)img.width)<0.25f)\n {\n ratio = 1.0f;\n if(img.height < 400)\n {\n ratio = 400/((float)img.height);\n }\n img.resize((int)(ratio*img.height*2.5f),(int)(ratio*img.height));\n }\n if(img.width < 400 || img.height < 400)\n {\n ratio = 1.0f;\n if(img.width < 400)\n {\n ratio = 400/((float)img.width);\n }\n if(img.height < 400 && img.height < img.width)\n {\n ratio = 400/((float)img.height);\n }\n img.resize((int)(ratio*img.width),(int)(ratio*img.height));\n }\n m.getInputImageManager().setImage(img);\n m.getInputImageManager().setResizedImage(m.getInputImageManager().resizeToFit(img, width-150, height-20));\n if(m.getOutputImageManager().getMosaic()!= null)\n {\n m.getOutputImageManager().createMosaic(m.getInputImageManager().getImage(),m.getOutputImageManager().getMosaic().getLastSeenImage(), m.getOutputImageManager().getMosaic().getTiles());\n }\n else\n {\n m.getOutputImageManager().createMosaic(m.getInputImageManager().getImage(),m.getInputImageManager().getImage(), m.getTileManager().getTiles());\n }\n m.getOutputImageManager().getMosaic().setMiniatures();\n }\n catch(NullPointerException e)\n {\n println(e);\n }\n }\n}", "public void doScaling() {\n try {\n int orientation = getExifOrientation(file);\n System.out.println(file.getName());\n //Dimension d = Imaging.getImageSize(file);\n ImageInputStream imageInputStream = ImageIO.createImageInputStream(file);\n // Use a subsampled image from the original, avoids read images too large to fit in memory\n BufferedImage bufferedImage = subsampleImage(imageInputStream, TARGET_WIDTH * 2, TARGET_HEIGHT * 2);\n ImageInformation ii=new ImageInformation(orientation, bufferedImage.getWidth(), bufferedImage.getHeight());\n AffineTransform transform=getExifTransformation(ii);\n bufferedImage=transformImage(bufferedImage, transform); \n Scalr.Mode mode;\n // calculate which side will be largest/smaller\n // this works with any image size\n double scaleX=(TARGET_WIDTH*1.0)/(bufferedImage.getWidth()*1.0);\n double scaleY=(TARGET_HEIGHT*1.0)/(bufferedImage.getHeight()*1.0);\n if (scaleX<scaleY) {\n mode = Scalr.Mode.FIT_TO_WIDTH;\n } else {\n mode = Scalr.Mode.FIT_TO_HEIGHT;\n } \n \n BufferedImage thumbnail = Scalr.resize(bufferedImage,\n Scalr.Method.QUALITY,\n mode, TARGET_WIDTH, TARGET_HEIGHT,\n Scalr.OP_ANTIALIAS);\n BufferedImage combined = new BufferedImage(TARGET_WIDTH, TARGET_HEIGHT, BufferedImage.TYPE_INT_ARGB);\n int x = 0, y = 0;\n if (mode == Scalr.Mode.FIT_TO_HEIGHT) {\n x = (TARGET_WIDTH - thumbnail.getWidth()) / 2;\n }\n if (mode == Scalr.Mode.FIT_TO_WIDTH) {\n y = (TARGET_HEIGHT - thumbnail.getHeight()) / 2;\n }\n Graphics g = combined.getGraphics();\n g.setColor(new java.awt.Color(0.0f, 0.0f, 0.0f, 0.0f));\n g.fillRect(0, 0, combined.getWidth(), combined.getHeight());\n g.drawImage(thumbnail, x, y, null);\n g.dispose();\n //Writes test subsampled image taken from original\n if (saveSubSampled) {\n ImageIO.write(bufferedImage, OUTPUT_EXTENSION, new File(output));\n }\n //Writes thumbnail, created from the subsampled image.\n ImageIO.write(combined, OUTPUT_EXTENSION, new File(output_thumb));\n\n } catch (IOException ex) {\n Logger.getLogger(Scaler.class.getName()).log(Level.SEVERE, null, ex);\n } catch (Exception ex) {\n Logger.getLogger(Scaler.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "@Override\r\n\tprotected void onSizeChanged(int w, int h, int oldw, int oldh) {\n\t\tfloat xPad = getPaddingLeft() + getPaddingRight();\r\n\t\tfloat yPad = getPaddingTop() + getPaddingBottom();\r\n\t\tdimension = Math.min(w - xPad, (h - yPad) * 2);\r\n\t\tradius = 60;\r\n\t\tinsideLeft = w / 2 - radius;\r\n\t\tinsideRight = w / 2 + radius;\r\n\t\tinsideTop = dimension - getPaddingBottom() - radius;\r\n\t\tinsideBottom = dimension - getPaddingBottom();\r\n\t\t\r\n//\t\toutRect = new RectF(getPaddingLeft(), getPaddingTop(), dimension - getPaddingRight(), dimension - getPaddingBottom());\r\n//\t\toutRect = new RectF(getPaddingLeft(), getPaddingTop(), dimension - getPaddingRight(), dimension/2);\r\n//\t\toutRect = new RectF(getPaddingLeft(), getPaddingTop(), dimension, dimension);\r\n\t\toutRect = new RectF(getPaddingLeft(), getPaddingTop(), w-getPaddingRight(), h-getPaddingBottom());\r\n\t\tfloat insideRectDownH = dimension-getPaddingBottom()-getPaddingTop()+150;\r\n//\t\tinsideRect = new RectF(50, 300, 320, insideRectDownH);\r\n\t\tinsideRect = new RectF(w/2-radius, dimension-radius, w/2+radius, dimension+radius);\r\n\t}", "public void scaleBitmap(int newWidth, int newHeight) {\n\t\t// Technically since we always keep aspect ratio intact\n\t\t// we should only need to check one dimension.\n\t\t// Need to investigate and fix\n\t\tif ((newWidth > mMaxWidth) || (newHeight > mMaxHeight)) {\n\t\t\tnewWidth = mMaxWidth;\n\t\t\tnewHeight = mMaxHeight;\n\t\t}\n\t\tif ((newWidth < mMinWidth) || (newHeight < mMinHeight)) {\n\t\t\tnewWidth = mMinWidth;\n\t\t\tnewHeight = mMinHeight;\t\t\t\n\t\t}\n\n\t\tif ((newWidth != mExpandWidth) || (newHeight!=mExpandHeight)) {\t\n\t\t\t// NOTE: depending on the image being used, it may be \n\t\t\t// better to keep the original image available and\n\t\t\t// use those bits for resize. Repeated grow/shrink\n\t\t\t// can render some images visually non-appealing\n\t\t\t// see comments at top of file for mScaleFromOriginal\n\t\t\t// try to create a new bitmap\n\t\t\t// If you get a recycled bitmap exception here, check to make sure\n\t\t\t// you are not setting the bitmap both from XML and in code\n\t\t\tBitmap newbits = Bitmap.createScaledBitmap(mScaleFromOriginal ? mOriginal:mImage, newWidth,\n\t\t\t\t\tnewHeight, true);\n\t\t\t// if successful, fix up all the tracking variables\n\t\t\tif (newbits != null) {\n\t\t\t\tif (mImage!=mOriginal) {\n\t\t\t\t\tmImage.recycle();\n\t\t\t\t}\n\t\t\t\tmImage = newbits;\n\t\t\t\tmExpandWidth=newWidth;\n\t\t\t\tmExpandHeight=newHeight;\n\t\t\t\tmResizeFactorX = ((float) newWidth / mImageWidth);\n\t\t\t\tmResizeFactorY = ((float) newHeight / mImageHeight);\n\t\t\t\t\n\t\t\t\tmRightBound = mExpandWidth>mViewWidth ? 0 - (mExpandWidth - mViewWidth) : 0;\n\t\t\t\tmBottomBound = mExpandHeight>mViewHeight ? 0 - (mExpandHeight - mViewHeight) : 0;\n\t\t\t}\t\t\t\t\t\t\t\n\t\t}\n\t}", "private void applyZoomRatio(float ratio) {\n\t\tzoom = zoom * ratio;\n\t}", "@Override\n\tprotected void updatePitSize() {\n\t\tint pitWidth = (int) (this.getWidth() * RATIO);\n\t\tint pitHeight = (int) (this.getHeight() * RATIO);\n\t\tint dx = (getWidth() - pitWidth) / 2;\n\t\tint dy = (getHeight() - pitHeight) / 2;\n\t\tpit = new RoundRectangle2D.Double(dx, dy, pitWidth, pitHeight, 50, 50);\n\t}", "@Override\n protected void onSizeChanged(int w, int h, int oldW, int oldH) {\n super.onSizeChanged(w, h, oldW, oldH);\n\n canvasWidth = w;\n canvasHeight = h;\n updatePolygonSize();\n\n if (Math.min(canvasWidth, canvasHeight) != Math.min(oldW, oldH)) {\n refreshImage();\n }\n }", "void previewSized();", "@Override\n protected void onSizeChanged(int w, int h, int oldw, int oldh) {\n super.onSizeChanged(w, h, oldw, oldh);\n canvasBitmap = Bitmap.createBitmap(w, h, Bitmap.Config.ARGB_8888);\n drawCanvas = new Canvas(canvasBitmap);\n }", "public void testResize()\n {\n cover.resize(5, 5, 90);\n assertEquals(5.0, cover.getTop(), .1);\n assertEquals(5.0, cover.getLeft(), .1);\n }", "@Override\n public void onScale(float ratio){\n isReady = true;\n mRatio = ratio;\n }", "public void createScaledImage(String location, int type, int orientation, int session, int database_id) {\n\n // find portrait or landscape image\n BitmapFactory.Options options = new BitmapFactory.Options();\n options.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(location, options);\n final int imageHeight = options.outHeight; //find the width and height of the original image.\n final int imageWidth = options.outWidth;\n\n int outputHeight = 0;\n int outputWidth = 0;\n\n\n //set the output size depending on type of image\n switch (type) {\n case EdittingGridFragment.SIZE4R :\n if (orientation == EdittingGridFragment.LANDSCAPE) {\n outputWidth = 1800;\n outputHeight = 1200;\n } else if (orientation == EdittingGridFragment.PORTRAIT) {\n outputWidth = 1200;\n outputHeight = 1800;\n }\n break;\n case EdittingGridFragment.SIZEWALLET:\n if (orientation == EdittingGridFragment.LANDSCAPE) {\n outputWidth = 953;\n outputHeight = 578;\n } else if (orientation ==EdittingGridFragment.PORTRAIT ) {\n outputWidth = 578;\n outputHeight = 953;\n }\n\n break;\n case EdittingGridFragment.SIZESQUARE:\n outputWidth = 840;\n outputHeight = 840;\n break;\n }\n\n assert outputHeight != 0 && outputWidth != 0;\n\n\n //fit images\n //FitRectangles rectangles = new FitRectangles((int) outputWidth, (int) outputHeight, imageWidth, imageHeight);\n\n //scaled images\n ScaledRectangles rectangles = new ScaledRectangles((int) outputWidth, (int) outputHeight, imageWidth, imageHeight);\n\n Rect canvasSize = rectangles.getCanvasSize();\n Rect canvasImageCoords = rectangles.getCanvasImageCoords();\n Rect imageCoords = rectangles.getImageCoords();\n\n\n\n /*\n //set the canvas size based on the type of image\n Rect canvasSize = new Rect(0, 0, (int) outputWidth, (int) outputHeight);\n Rect canvasImageCoords = new Rect();\n //Rect canvasImageCoords = new Rect (0, 0, outputWidth, outputHeight); //set to use the entire canvas\n Rect imageCoords = new Rect(0, 0, imageWidth, imageHeight);\n //Rect imageCoords = new Rect();\n\n\n // 3 cases, exactfit, canvas width larger, canvas height larger\n if ((float) outputHeight/outputWidth == (float) imageHeight/imageWidth) {\n canvasImageCoords.set(canvasSize);\n //imageCoords.set(0, 0, imageWidth, imageHeight); //map the entire image to the entire canvas\n Log.d(\"Async\", \"Proportionas Equal\");\n\n }\n\n\n\n else if ( (float) outputHeight/outputWidth > (float) imageHeight/imageWidth) {\n //blank space above and below image\n //find vdiff\n\n\n //code that fits the image without whitespace\n Log.d(\"Async\", \"blank space above and below\");\n\n float scaleFactor = (float)imageHeight / (float) outputHeight; //amount to scale the canvas by to match the height of the image.\n int scaledCanvasWidth = (int) (outputWidth * scaleFactor);\n int hDiff = (imageWidth - scaledCanvasWidth)/2;\n imageCoords.set (hDiff, 0 , imageWidth - hDiff, imageHeight);\n\n\n\n //code fits image with whitespace\n float scaleFactor = (float) outputWidth / (float) imageWidth;\n int scaledImageHeight = (int) (imageHeight * scaleFactor);\n assert scaledImageHeight < outputHeight;\n\n int vDiff = (outputHeight - scaledImageHeight)/2;\n canvasImageCoords.set(0, vDiff, outputWidth, outputHeight - vDiff);\n\n\n\n } else if ((float) outputHeight/outputWidth < (float) imageHeight/imageWidth) {\n //blank space to left and right of image\n\n\n //fits the image without whitespace\n float scaleFactor = (float) imageWidth / (float) outputWidth;\n int scaledCanvasHeight = (int) (outputHeight * scaleFactor);\n int vDiff = (imageHeight - scaledCanvasHeight)/2;\n imageCoords.set(0, vDiff, imageWidth, imageHeight - vDiff);\n\n //fits image with whitespace\n\n Log.d(\"Async\", \"blank space left and right\");\n float scaleFactor = (float) outputHeight / (float) imageHeight;\n int scaledImageWidth = (int) (imageWidth * scaleFactor);\n assert scaledImageWidth < outputWidth;\n\n int hDiff = (outputWidth - scaledImageWidth)/2;\n\n canvasImageCoords.set(hDiff, 0, outputWidth - hDiff, outputHeight);\n }\n\n */\n\n Log.d(\"Async\", \"Canvas Image Coords:\" + canvasImageCoords.toShortString());\n\n SaveImage imageSaver = new SaveImage(getApplicationContext(), database);\n ImageObject imageObject = new ImageObject(location);\n Bitmap imageBitmap = imageObject.getImageBitmap();\n int sampleSize = imageObject.getSampleSize();\n\n Rect sampledImageCoords = imageSaver.getSampledCoordinates(imageCoords, sampleSize);\n\n System.gc();\n BackgroundObject backgroundObject = new BackgroundObject(outputWidth, outputHeight);\n Bitmap background = backgroundObject.getBackground();\n\n\n background = imageSaver.drawOnBackground(background, imageBitmap,\n sampledImageCoords, canvasImageCoords);\n\n imageSaver.storeImage(background, database_id, session);\n background.recycle();\n\n }", "private int caculateInSampleSize(BitmapFactory.Options options, int width, int height) {\r\n int outWidth = options.outWidth;\r\n int outHeight = options.outHeight;\r\n int inSampleSize=1;\r\n if (outWidth>width||outHeight>height){\r\n int widthRadio= Math.round(outWidth*1.0f/width);\r\n int heightRadio= Math.round(outHeight*1.0f/height);\r\n inSampleSize= Math.max(widthRadio,heightRadio);\r\n }\r\n\r\n return inSampleSize;\r\n }", "public static void testPosterize(){\n\t Picture beach = new Picture(\"beach.jpg\");\n\t beach.explore();\n\t beach.posterize(8);\n\t beach.explore();\n }", "@Override\n public void resize(int width, int height) {\n float camWidth = tileMap.tileWidth * 10.0f * cameraDistance;\n\n //for the height, we just maintain the aspect ratio\n float camHeight = camWidth * ((float)height / (float)width);\n\n cam.setToOrtho(false, camWidth, camHeight);\n uiCam.setToOrtho(false, 10,6);\n cam.position.set(cameraPosition);\n\n uiCam.update();\n cam.update();\n }", "@Override\n public void onVideoSizeChanged(MediaPlayer mp, int width, int height) {\n adjustSize(mVideoView, width, height, DisplayType.CENTER_INSIDE);\n //adjustSize(mVideoView, width, height, DisplayType.CENTER_CROP);\n //adjustSize(mVideoView, width, height, DisplayType.CENTER);\n //adjustSize(mVideoView, width, height, DisplayType.FIT_XY);\n }", "private void updateDimensions()\n\t{\n\t\tthis.drawer.setSprite(this.drawer.getSprite().withDimensions(\n\t\t\t\tgetMaster().getDimensions()));\n\t\tthis.lastDimensions = getMaster().getDimensions();\n\t}", "@Override\n public void resize(int width, int height) {\n\n }", "private static int calculateInSampleSize(\n BitmapFactory.Options options, int reqWidth, int reqHeight) {\n final int height = options.outHeight;\n final int width = options.outWidth;\n int inSampleSize = 1;\n\n if (height > reqHeight || width > reqWidth) {\n\n final int halfHeight = height / 2;\n final int halfWidth = width / 2;\n\n // Calculate the largest inSampleSize value that is a power of 2 and keeps both\n // height and width larger than the requested height and width.\n while ((halfHeight / inSampleSize) > reqHeight\n && (halfWidth / inSampleSize) > reqWidth) {\n inSampleSize *= 2;\n }\n }\n\n Log.i(\"sampleImage\", \"Displaying img at \" + reqWidth + \"px x \" + reqHeight + \"px (\" + inSampleSize + \" SampleSize)\");\n\n return inSampleSize;\n }", "public Integer getRatio() {\n return ratio;\n }", "private static Camera.Size chooseOptimalSize(List<Camera.Size> choices, int width, int height, Camera.Size aspectRatio) {\n List<Camera.Size> bigEnough = new ArrayList<>();\n int w = aspectRatio.width;\n int h = aspectRatio.height;\n for (Camera.Size option : choices) {\n if (option.height == width * h / w &&\n option.width >= width && option.height >= height) {\n bigEnough.add(option);\n }\n }\n\n // Pick the smallest of those, assuming we found any\n if (bigEnough.size() > 0) {\n return Collections.min(bigEnough, new CompareSizesByArea());\n } else {\n LOG(CameraFragment.class, \"Couldn't find any suitable preview size\");\n return choices.get(0);\n }\n }", "public MyBmpInfo getThumbnail(Uri uri) {\n int w = 1280;\n int h = 960;\n double TARGETTED_WIDTH = 1920.0;\n\n try {\n InputStream input = this.getContentResolver().openInputStream(uri);\n\n BitmapFactory.Options onlyBoundsOptions = new BitmapFactory.Options();\n onlyBoundsOptions.inJustDecodeBounds = true;\n onlyBoundsOptions.inDither = true;//optional\n onlyBoundsOptions.inPreferredConfig = Bitmap.Config.ARGB_8888;//optional\n BitmapFactory.decodeStream(input, null, onlyBoundsOptions);\n input.close();\n\n if ((onlyBoundsOptions.outWidth == -1) || (onlyBoundsOptions.outHeight == -1)) {\n return null;\n }\n\n int originalWidth = onlyBoundsOptions.outWidth;\n\n double ratio = 1.0;\n if (originalWidth > TARGETTED_WIDTH){\n\n /*\n * Ratio Sample Size:\n * if 1 , means bitmap is exactly stay as orginal.\n * if 2 or above, means 1/2 or smaller from the ori image.*/\n ratio = originalWidth / TARGETTED_WIDTH;\n }\n\n BitmapFactory.Options bitmapOptions = new BitmapFactory.Options();\n bitmapOptions.inSampleSize = (int)Math.round(ratio);\n\n Log.d(\"bitmap scaled info\", \"ratio = \"+ratio+\" , poweredRatio = \"+bitmapOptions.inSampleSize+\", originalWidth = \"+originalWidth+\" , TARGETTED_WIDTH = \"+TARGETTED_WIDTH);\n\n bitmapOptions.inPreferredConfig = Bitmap.Config.ARGB_8888;//\n input = this.getContentResolver().openInputStream(uri);\n Bitmap bitmap = BitmapFactory.decodeStream(input, null, bitmapOptions);\n// bitmap.compress(Bitmap.CompressFormat.JPEG, 100, )\n input.close();\n Log.d(\"elliot\", \"bitmap before resize: SIZE = \" + bitmap.getWidth() + \" x \" + bitmap.getHeight());\n if (bitmap.getWidth() < w || bitmap.getHeight() < h) {\n return new MyBmpInfo(bitmap, \"Image is too small\", true);\n } else {\n return new MyBmpInfo(Bitmap.createScaledBitmap(bitmap, w, h, true), \"\", false);\n }\n\n } catch (Exception e) {\n return null;\n }\n }", "@Override\n\tprotected float getDrawRatioY(){\n\t\tif( obstacleExists() ){\n\t\t\tfloat height = Math.max(getObstacleHeight(), 20);\n\t\t\treturn this.getHeight() / (height*2f)*getRatioOnScreen();\n\t\t}else{\n\t\t\treturn this.getHeight() * getRatioOnScreen();\n\t\t}\n\t\t\n\t}", "@Test\n\tpublic void testSampleSize2() {\n\t\tassertEquals(3, pyr1.getWidth());\n\t\tassertEquals(1, stick1.getWidth());\n\t\tassertEquals(2, square1.getWidth());\n\t\tassertEquals(2, l1_1.getWidth());\n\t\tassertEquals(2, l2_1.getWidth());\n\t\tassertEquals(3, s1_1.getWidth());\n\t\tassertEquals(3, s2_1.getWidth());\n\t\t\n\t\tassertEquals(2, pyr1.getHeight());\n\t\tassertEquals(4, stick1.getHeight());\n\t\tassertEquals(2, square1.getHeight());\n\t\tassertEquals(3, l1_1.getHeight());\n\t\tassertEquals(3, l2_1.getHeight());\n\t\tassertEquals(2, s1_1.getHeight());\n\t\tassertEquals(2, s2_1.getHeight());\n\t\t\n\t\t// Now try after rotation\n\t\t// Effectively we're testing size and rotation code here\n\t\tassertEquals(2, pyr2.getWidth());\n\t\tassertEquals(4, stick2.getWidth());\n\t\tassertEquals(2, square2.getWidth());\n\t\tassertEquals(3, l1_2.getWidth());\n\t\tassertEquals(3, l2_2.getWidth());\n\t\tassertEquals(2, s1_2.getWidth());\n\t\tassertEquals(2, s2_2.getWidth());\n\t\t\n\t\tassertEquals(3, pyr2.getHeight());\n\t\tassertEquals(1, stick2.getHeight());\n\t\tassertEquals(2, square2.getHeight());\n\t\tassertEquals(2, l1_2.getHeight());\n\t\tassertEquals(2, l2_2.getHeight());\n\t\tassertEquals(3, s1_2.getHeight());\n\t\tassertEquals(3, s2_2.getHeight());\n\t\t\t\n\t\t// Now try with some other piece, made a different way\n\t\tassertEquals(3, pyr1.getWidth());\n\t\tassertEquals(1, stick3.getWidth());\n\t\tassertEquals(2, square3.getWidth());\n\t\tassertEquals(2, l1_5.getWidth());\n\t\tassertEquals(2, l2_5.getWidth());\n\t\tassertEquals(3, s1_5.getWidth());\n\t\tassertEquals(3, s2_5.getWidth());\n\t\t\n\t\tassertEquals(2, pyr1.getHeight());\n\t\tassertEquals(4, stick3.getHeight());\n\t\tassertEquals(2, square3.getHeight());\n\t\tassertEquals(3, l1_5.getHeight());\n\t\tassertEquals(3, l2_5.getHeight());\n\t\tassertEquals(2, s1_5.getHeight());\n\t\tassertEquals(2, s2_5.getHeight());\n\t\t\n\t}", "@Override\n public int compare(Camera.Size lhs, Camera.Size rhs) {\n return Long.signum((long) lhs.width * lhs.height -\n (long) rhs.width * rhs.height);\n }", "@Override\n public int compare(Camera.Size lhs, Camera.Size rhs) {\n return Long.signum((long) lhs.width * lhs.height -\n (long) rhs.width * rhs.height);\n }", "public static void calculate_average_ratio1() {\n double sum = 0;\n\n for (int i = 0; i < Variables.pixels.size(); i++) {\n sum += Variables.pixels.get(i).getRatio1();\n }\n Variables.average_ratio1 = sum / Variables.pixels.size();\n }", "@Override\n\tprotected void onSizeChanged(int w, int h, int oldw, int oldh) {\n\t\tint[] viewLocation = new int[2];\n\t\tthis.getLocationOnScreen(viewLocation);\n\n\t\tif (h > w) {\n\t\t\tsquareRealSize = w / 5;\n\t\t} else {\n\t\t\tsquareRealSize = h / 5;\n\t\t}\n\n\t\t// 小方块的大小\n\t\tsquareDisplaySize = squareRealSize * 9 / 10;\n\n\t\tsquareOffsetX = 0;\n\t\tsquareOffsetY = 0;\n\t\t\n\t\tthis.w = getWidth();\n\t\tthis.h = getHeight();\n\t}", "@Override\n public void onSurfaceChanged(GL10 gl, int width, int height) {\n if (height == 0) height = 1; // To prevent divide by zero\n float aspect = (float)width / height;\n \n // Set the viewport (display area) to cover the entire window\n gl.glViewport(0, 0, width, height);\n \n // Setup perspective projection, with aspect ratio matches viewport\n gl.glMatrixMode(GL10.GL_PROJECTION); // Select projection matrix\n gl.glLoadIdentity(); // Reset projection matrix\n // Use perspective projection\n GLU.gluPerspective(gl, 45, aspect, 0.1f, 100.f);\n \n gl.glMatrixMode(GL10.GL_MODELVIEW); // Select model-view matrix\n gl.glLoadIdentity(); // Reset\n \n // You OpenGL|ES display re-sizing code here\n // ......\n }", "@Test\n public void shouldNotScaleImageWhenSameSize() {\n givenIHaveAnImage();\n\n whenIScaleImageWidthTo(14.999f);\n\n thenTheImageWidthIs(15);\n }", "@Override\n public int getWidth() {\n return 260;\n }", "@Override\n public void onClick(View v) {\n\n float x = ivImage.getScaleX();\n float y = ivImage.getScaleY();\n\n ivImage.setScaleX((float) (x + 1));\n ivImage.setScaleY((float) (y + 1));\n }", "public void setSize(int w, int h){\n this.width = w;\n this.height = h;\n ppuX = (float)width / CAMERA_WIDTH;\n ppuY = (float)height / CAMERA_HEIGHT;\n }", "private void refreshImage() {\n Bitmap image = drawableToBitmap(getDrawable());\n int canvasSize = Math.min(canvasWidth, canvasHeight);\n if (canvasSize > 0 && image != null) {\n //Preserve image ratio if it is not square\n BitmapShader shader = new BitmapShader(ThumbnailUtils.extractThumbnail(image, canvasSize, canvasSize),\n Shader.TileMode.CLAMP, Shader.TileMode.CLAMP);\n mPaint.setShader(shader);\n }\n }", "@Test\n @MediumTest\n @EnableFeatures(ChromeFeatureList.THUMBNAIL_CACHE_REFACTOR)\n public void testThumbnailDynamicAspectRatioWhenCaptured_FixedWhenShown() {\n int tabCounts = 11;\n TabUiTestHelper.prepareTabsWithThumbnail(mActivityTestRule, tabCounts, 0, \"about:blank\");\n TabUiTestHelper.enterTabSwitcher(mActivityTestRule.getActivity());\n verifyAllThumbnailHeightWithAspectRatio(tabCounts, 0.85f);\n\n // With hard cleanup.\n TabUiTestHelper.leaveTabSwitcher(mActivityTestRule.getActivity());\n TabUiTestHelper.enterTabSwitcher(mActivityTestRule.getActivity());\n verifyAllThumbnailHeightWithAspectRatio(tabCounts, 0.85f);\n }" ]
[ "0.70048106", "0.69990337", "0.68064594", "0.67700344", "0.6760389", "0.66500777", "0.66416335", "0.65397704", "0.6497695", "0.6495487", "0.63865405", "0.63526374", "0.6272956", "0.6270851", "0.61926496", "0.6190802", "0.61496", "0.6138704", "0.60845196", "0.60687715", "0.6022221", "0.59696907", "0.5962487", "0.5952079", "0.5922904", "0.59197927", "0.59194535", "0.5917992", "0.59006906", "0.5877101", "0.5866345", "0.58397794", "0.5829314", "0.58182853", "0.58165354", "0.5781473", "0.57656795", "0.5747572", "0.57414436", "0.57386893", "0.5724518", "0.5723351", "0.5720259", "0.56907684", "0.5666982", "0.5636675", "0.5629918", "0.56065965", "0.5606539", "0.5604906", "0.5595584", "0.5582553", "0.5580438", "0.5572661", "0.556308", "0.55341417", "0.5521141", "0.5518641", "0.55163383", "0.5500258", "0.54998404", "0.5495869", "0.54944223", "0.5492483", "0.5484337", "0.5481587", "0.5473321", "0.5456987", "0.54501534", "0.5448132", "0.5444837", "0.5443709", "0.5436303", "0.5418435", "0.54143816", "0.54103905", "0.5406366", "0.540088", "0.5399386", "0.5392237", "0.5390653", "0.5389415", "0.53889775", "0.5382848", "0.5381955", "0.5376411", "0.53753644", "0.5374531", "0.5360352", "0.5359019", "0.53562003", "0.53562003", "0.5350937", "0.53468066", "0.53458965", "0.53417325", "0.53398186", "0.53370124", "0.5335986", "0.53302765", "0.53238684" ]
0.0
-1
Decide if response is supported by this strategy.
default boolean supports(final AuthenticationResponse response) { if (response != null) { LOGGER.debug("Authentication response [{}] is supported by password policy handling strategy [{}]", response, getClass().getSimpleName()); return true; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isResponse(){\n return true;\n }", "boolean hasGenericResponse();", "private boolean responseAvailable() {\n return (responseBody != null) || (responseStream != null);\n }", "boolean hasResponse();", "boolean hasResponse();", "boolean hasResponse();", "boolean hasResponse();", "boolean hasResponse();", "boolean hasResponse();", "boolean hasResponse();", "boolean hasResponse();", "boolean hasResponse();", "boolean isSerializeResponse();", "boolean isMarkAsResponse();", "public boolean getIsResponse() {\n\t\treturn isResponse;\n\t\t\n\t}", "protected Function<HttpResponse, Boolean> isResponseParseable()\n {\n return httpResponse -> false;\n }", "boolean hasSystemResponse();", "boolean supportsAccepts();", "protected abstract boolean isResponseValid(SatelMessage response);", "boolean supportsStrategy(String strategy);", "public boolean hasResponse() {\n return instance.hasResponse();\n }", "public boolean hasResponse() {\n return instance.hasResponse();\n }", "public boolean hasResponse() {\n return instance.hasResponse();\n }", "public boolean hasResponse() {\n return instance.hasResponse();\n }", "public boolean hasResponse() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasListResponse() {\n return msgCase_ == 6;\n }", "public boolean hasListResponse() {\n return msgCase_ == 6;\n }", "public boolean hasResponse() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "boolean hasResponsePort();", "public boolean hasResponse() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasResponse() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasResponse() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "@Override\n\tpublic boolean isResponseExpected() {\n\t\treturn false;\n\t}", "public boolean hasResponse() {\n return responseBuilder_ != null || response_ != null;\n }", "public boolean hasResponse() {\n return responseBuilder_ != null || response_ != null;\n }", "public boolean hasResponse() {\n return response_ != null;\n }", "public boolean hasResponse() {\n return ((bitField0_ & 0x00000100) == 0x00000100);\n }", "boolean hasInitialResponse();", "boolean hasResponseMessage();", "public boolean hasResponse() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "public boolean hasResponse() {\n return response_ != null;\n }", "public boolean hasResponse() {\n return response_ != null;\n }", "public boolean hasResponse() {\n return response_ != null;\n }", "boolean supports(GenericType<? extends Source<?>> type, HttpClientResponse response);", "public interface RequestResponse {\n /**\n * Checks if the request was successful and returned no error.\n * @return true if the request was successful\n */\n boolean isSuccessful();\n\n /**\n * Gets HTTP status code received by the server as a reaction to the request.\n * @return response status code\n */\n int getStatusCode();\n\n /**\n * Gets HTTP status message received by the server as a reaction to the request.\n * @return response status message\n */\n String getStatusMessage();\n\n /**\n * <p>Checks, if the request failed because of rate limitation.</p>\n * <p>If this happens, you probably used too many similar requests (like add reaction) one after another.\n * If this happens because of spamming requests, try waiting after each one with {@link Future#get()}.\n * If this happens randomly, it can be caused by different modules doing same actions. Try again.</p>\n * <p><b>Warning:</b> if you exceed the limits too often, you risk getting banned.</p>\n * @return true if the request failed due to rate limit\n */\n boolean isRateLimited();\n}", "public boolean hasResponse() {\n return ((bitField0_ & 0x00000100) == 0x00000100);\n }", "@Override\n public boolean accepts(HttpResponse response) {\n Header[] headers = response.getHeaders(HttpHeaders.CONTENT_TYPE);\n for (Header header : headers) {\n if (header != null && header.getValue().contains(NTLMConstants.CONTENT_TYPE_FOR_SPNEGO)) {\n return true;\n }\n }\n return false;\n }", "public boolean isSupportedResponseMessageType(String messageType) {\n return \"ACK\".equals(messageType) || contains(allowedResponseMessageTypes, messageType);\n }", "public boolean hasResponseType() {\n return fieldSetFlags()[4];\n }", "public boolean hasResponse() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasResponse() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "public boolean hasResponsePort() {\n return ((bitField0_ & 0x00000040) == 0x00000040);\n }", "boolean hasListResponse();", "protected abstract void askResponse();", "public boolean hasResponsePort() {\n return ((bitField0_ & 0x00000040) == 0x00000040);\n }", "public boolean hasResponseServer() {\n return fieldSetFlags()[6];\n }", "boolean hasReflectionResponse();", "boolean hasReplacePlayerResponse();", "public abstract boolean isAppropriateRequest(Request request);", "boolean isValid()\n {\n return isRequest() && isResponse();\n }", "boolean hasPlaySingleCardResponse();", "boolean hasTrickEndedResponse();", "boolean hasBidresponse();", "boolean hasPassCardsResponse();", "default boolean checkJsonResp(JsonElement response) {\n return false;\n }", "private static boolean supportsLanModeResponse(int method) {\n switch (method) {\n case AylaRestService.PUT_LOCAL_REGISTRATION:\n case AylaRestService.POST_LOCAL_REGISTRATION:\n case AylaRestService.PROPERTY_CHANGE_NOTIFIER:\n case AylaRestService.REACHABILITY:\n case AylaRestService.GET_DEVICES_LANMODE:\n case AylaRestService.GET_NODES_LOCAL_CACHE:\n case AylaRestService.GET_PROPERTIES_LANMODE:\n \t\n case AylaRestService.GET_NODE_PROPERTIES_LANMODE:\n case AylaRestService.GET_NODE_DATAPOINT_LANMODE:\n case AylaRestService.CREATE_NODE_DATAPOINT_LANMODE:\n \t\n case AylaRestService.GET_PROPERTY_DETAIL_LANMODE:\n case AylaRestService.GET_DATAPOINT_LANMODE:\n case AylaRestService.GET_DATAPOINTS_LANMODE:\n case AylaRestService.CREATE_DATAPOINT_LANMODE:\n case AylaRestService.GET_NODES_CONNECTION_STATUS_LANMODE:\n \t\n case AylaRestService.GET_NODES_CONNECTION_STATUS_ZIGBEE_LANMODE:\n \t\n // For secure wifi setup\n case AylaRestService.SEND_NETWORK_PROFILE_LANMODE:\n // For delete wifi profile secure session\n case AylaRestService.DELETE_NETWORK_PROFILE_LANMODE:\n \t\n return true;\n }\n return false;\n }", "private boolean processResponse(String response, BufferedReader reader) throws Exception {\n\t \n\t if (response.contains(ResponseType.ERROR.toString())) {\n\t \tSystem.out.println(response);\n\t \treturn false;\n\t }\n\t \n\t ResponseType responseType = EnumUtils.lookup(ResponseType.class, response);\n\t if (responseType == null) {\n\t \tSystem.err.println(\"Unrecognized ResponseType: \" + response);\n\t \treturn false;\n\t }\n\t \n\t ResponseHandler responseHandler = responseHandlers.get(responseType);\n\t if (responseHandler == null) {\n\t \tSystem.err.println(\"No response handler found for: \" + responseType);\n\t \treturn false;\n\t }\n\t \n\t responseHandler.handleResponse(reader);\n\t return true;\n\t}", "public boolean hasResponseStreaming()\n {\n return responseStreaming;\n }", "public boolean isContactResponse() {\n int flags = rBody.getCollisionFlags();\n boolean result = (flags & CollisionFlags.NO_CONTACT_RESPONSE) == 0x0;\n return result;\n }", "@JsonIgnore\n public boolean isWelshLanguageRequested() {\n Optional<String> languageValue = Optional.ofNullable(languageRequirement);\n if (languageValue.isEmpty()) {\n return false;\n }\n return languageValue.get().equals(\"Yes\");\n }", "public boolean isSupportedResponseTriggerEvent(String messageType, String triggerEvent) {\n if(\"ACK\".equals(messageType)) {\n return true;\n }\n int index = indexOf(allowedResponseMessageTypes, messageType);\n if (index == INDEX_NOT_FOUND) {\n throw new IllegalArgumentException(\"Unknown message type \" + messageType);\n }\n String triggerEvents = allowedResponseTriggerEvents[index];\n return contains(StringUtils.split(triggerEvents, ' '), triggerEvent);\n }", "public boolean getResponseStatus();", "public interface ChoiceResponse<T>{\n\t\t/**\n\t\t * Get the result of the input\n\t\t * @return\n\t\t */\n\t\tpublic T getResult();\n\t\t/**\n\t\t * Set the result\n\t\t * @param t\n\t\t */\n\t\tpublic void setResult(T t);\n\t\t/**\n\t\t * Check to see if they selected okay or not.\n\t\t * @return\n\t\t */\n\t\tpublic boolean wasOkay();\n\t\t/**\n\t\t * \n\t\t * @param b\n\t\t */\n\t\tpublic void setWasOkay(boolean b);\n\t}", "public boolean hasResponseLink() {\n return fieldSetFlags()[7];\n }", "public void setIsResponse(boolean isResponse) {\n\t\tthis.isResponse = isResponse;\n\t\t\n\t}", "@Test\n\tpublic void useResponseSpecification() {\n\t\t\n\t\tgiven().\n\t\t\tspec(requestSpec).\n\t\twhen().\n\t\t\tget(\"/2014/1/circuits.json\").\n\t\tthen().\n\t\t\tspec(responseSpec).\n\t\tand().\n\t\t\tbody(\"MRData.CircuitTable.Circuits.Location[0].locality\",equalTo(\"Melbourne\"));\n\t}", "public boolean hasResponse() {\n if(responses == null)\n return false;\n for(SapMessage response : responses) {\n if(response != null)\n return true;\n }\n return false;\n }", "boolean getReturnPartialResponses();", "boolean isJSON(Response response) {\n return response.getHeaderString(\"Content-Type\").equalsIgnoreCase(MediaType.APPLICATION_JSON);\n }", "boolean hasRoundEndedResponse();", "boolean hasJoinGameResponse();", "public boolean isSupported(MediaType mediaType);", "boolean hasFindGamesResponse();", "boolean hasResponseAddress();", "boolean isResponseBuffered()\n {\n return configfile.buffering_response;\n }", "public boolean isSupported() {\n\t\treturn true;\r\n\t}", "public boolean responseDidReceiveParameter(String str) {\r\n if (!SelectControlParameters.parseParameterFor(this, str) && !QueryParameters.parseParameterFor(this, str) && !QAlgorithmParameters.parseParameterFor(this, str)) {\r\n if (str.length() >= 2 && str.startsWith(\"io\")) {\r\n setInventoryOnly(TriState.Parse(str.substring(2)));\r\n } else if (str.length() >= 2 && str.startsWith(\"wm\")) {\r\n setWriteMode(WriteMode.Parse(str.substring(2)));\r\n } else if (str.length() >= 2 && str.startsWith(\"wx\")) {\r\n setImpinjBlockWriteMode(ImpinjBlockWriteMode.Parse(str.substring(2)));\r\n } else if (str.length() < 2 || !str.startsWith(\"qm\")) {\r\n return super.responseDidReceiveParameter(str);\r\n } else {\r\n setQtMode(QtMode.Parse(str.substring(2)));\r\n }\r\n }\r\n return true;\r\n }", "public boolean checkResponse(int scaleResponse) {\r\n return scaleResponse>=minScale && scaleResponse<=maxScale;\r\n }", "private boolean isSupportedMethod(String sHTTPMethod) {\n return Arrays.asList(SUPPORTED_METHODS).contains(sHTTPMethod.toUpperCase());\n }", "@Nullable\n public abstract T response();", "public abstract boolean isSatisfied();", "public boolean hasBidresponse() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public static boolean useJsonResponse(HttpServletRequest request) {\n String acceptHeaderValue = request.getHeader(\"Accept\");\n if (acceptHeaderValue == null) {\n return false;\n }\n HttpHeaders httpHeaders = new HttpHeaders();\n httpHeaders.add(HttpHeaders.ACCEPT, acceptHeaderValue);\n List<MediaType> acceptedMediaTypes = httpHeaders.getAccept();\n boolean acceptsHtml = acceptedMediaTypes.contains(MediaType.TEXT_HTML);\n boolean acceptsJson = acceptedMediaTypes.contains(MediaType.APPLICATION_JSON);\n if (acceptsJson && (!acceptsHtml)) {\n return true;\n } else {\n return false;\n }\n }", "boolean hasResponseTimeSec();", "public abstract boolean isAvailable();", "public abstract boolean isAvailable();", "public boolean hasBidresponse() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "@java.lang.Override\n public boolean hasSubnetResponse() {\n return subnetResponse_ != null;\n }", "boolean supports(Object descriptor);", "public boolean hasInitialResponse() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }" ]
[ "0.66443425", "0.64049786", "0.6327416", "0.6252401", "0.6252401", "0.6252401", "0.6252401", "0.6252401", "0.6252401", "0.6252401", "0.6252401", "0.6252401", "0.6215001", "0.61480343", "0.60704064", "0.6031045", "0.60145336", "0.60136545", "0.59983397", "0.5992304", "0.59467286", "0.59467286", "0.59467286", "0.59467286", "0.5945336", "0.5943962", "0.5939603", "0.59193313", "0.5908273", "0.5906117", "0.5906117", "0.5906117", "0.58970326", "0.588955", "0.5880486", "0.58783334", "0.5866469", "0.58601266", "0.58593184", "0.583092", "0.5828444", "0.5828444", "0.5828444", "0.58283025", "0.58247143", "0.5817279", "0.58090997", "0.58040833", "0.57968146", "0.57805383", "0.57755095", "0.57589567", "0.5740686", "0.5726178", "0.56971335", "0.5671705", "0.5670862", "0.56634694", "0.5613512", "0.5602885", "0.560231", "0.5599966", "0.55871904", "0.5490966", "0.54821306", "0.5480123", "0.54671603", "0.54591894", "0.5458693", "0.5446678", "0.5436278", "0.54316163", "0.5420544", "0.5386689", "0.53799015", "0.5368977", "0.5364525", "0.53591746", "0.5348251", "0.53433484", "0.53374887", "0.5324221", "0.5318627", "0.53052425", "0.53007936", "0.5288028", "0.5281959", "0.5260046", "0.52545184", "0.52540714", "0.5250637", "0.523248", "0.52305937", "0.52245766", "0.52166086", "0.52166086", "0.52119815", "0.5209812", "0.5207194", "0.5199442" ]
0.6763733
0
usage: / [ [ ]]
@Override protected boolean perform(final CommandSender sender, final Command command, final String label, final List<String> args, final Region region) { String owner = RegionExecutor.parse(args, 0, "<Owner>", sender); if (owner == null) return false; if (region.owners.contains(owner)) { Main.courier.send(sender, "promote-already", owner, RegionExecutor.formatName(region), RegionExecutor.formatWorld(region)); return true; } owner = Bukkit.getOfflinePlayer(owner).getName(); region.owners.add(owner); this.catalog.repository.saveRegion(region, false); Main.courier.send(sender, "promote", owner, RegionExecutor.formatName(region), RegionExecutor.formatWorld(region)); final Player added = Bukkit.getServer().getPlayerExact(owner); if (region.active && added != null) Main.courier.send(added, "promote-notify", sender.getName(), RegionExecutor.formatName(region), RegionExecutor.formatWorld(region)); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\t\tSystem.out.println(bb(\"{{}\"));\n\t\tSystem.out.println(bb(\"[[]\"));\n\t\tSystem.out.println(bb(\"({}[])\"));\n\t}", "public static void main(String[] args) {\n\t\tList<?>[] list = new ArrayList<?>[6];\n\t}", "public static void main(String[] args) {\n\n String[] split = \"hjhk***jklj,j\\nkl\".split(quote(\"***\") + \"|,\");\n for (String every : split)\n System.out.println(\"test slpit: \" + every);\n// Pattern p = Pattern.compile(\"\\\\[([^\\\\]]+)\\\\]\");\n// Matcher m = p.matcher(\"[***]\");\n// while(m.find()) {\n// System.out.println(m.group(0));\n// }\n }", "public void array() throws SyntaxException{\n if(cursor.getType().equals(TokenType.RIGHT_BRACKET))\n return;\n else\n {\n elements();\n match(TokenType.RIGHT_BRACKET);\n }\n }", "public static void main(String[] args) {\n\t\tString s = \"((({}{}[])))\";\n\t\tValidBrackets vb = new ValidBrackets();\n\t\tSystem.out.println(vb.isValid(s));\n\t\t\n\t}", "@Test\n public void testWithNonEmptyList() throws org.nfunk.jep.ParseException\n {\n Stack<Object> parameters = CollectionsUtils.newParametersStack(Arrays.asList(\"test\"));\n function.run(parameters);\n assertEquals(FALSE, parameters.pop());\n }", "public static void main(String[] args) {\r\n\t\tIndexCircularList list = new IndexCircularList();\r\n\t\tlist.queue(\"THIS\");\r\n\t\tlist.queue(\"IS\");\r\n\t\tlist.queueAtFront(\"WOW!\");\r\n\t\tlist.queue(\"A\");\r\n\t\tlist.dequeue();\r\n\t\tlist.queue(\"PHRASE\");\r\n\t\tlist.dequeueFromBack();\r\n\t\tlist.removeAtIndex(3);\r\n\t\tlist.dequeueFromBack();\r\n\t\tlist.removeAtIndex(1);\r\n\t}", "@Test\n public void testWithEmptyJsonArrayAsString() throws org.nfunk.jep.ParseException\n {\n Stack<Object> parameters = CollectionsUtils.newParametersStack(\"[]\");\n function.run(parameters);\n assertEquals(TRUE, parameters.pop());\n }", "public static void main(String[ ] argv) {\n if(argv.length == 0){\n System.out.printf(\"sem argumentos!\\n\");\n }\n\n else{\n System.out.println (\"\\nmostrando o array \\n\");\n \n \n for(int i = 0;i < argv.length;i++){\n System.out.printf(\"\\narray na posiçao: %d eh %s\\n \",i+1,argv[i]);\n \n }\n System.out.printf(\"\\ntotal do array: %d\\n\",argv.length);\n}\n \n }", "@Test\n public void testWithEmptyList() throws org.nfunk.jep.ParseException\n {\n Stack<Object> parameters = CollectionsUtils.newParametersStack(new ArrayList<String>());\n function.run(parameters);\n assertEquals(TRUE, parameters.pop());\n }", "private Main(String... arguments) {\n this.operations = new ArrayDeque<>(List.of(arguments));\n }", "@Test\n public void testWithNonEmptyJsonArrayAsString() throws org.nfunk.jep.ParseException\n {\n Stack<Object> parameters = CollectionsUtils.newParametersStack(\"[\\\"test\\\"]\");\n function.run(parameters);\n assertEquals(FALSE, parameters.pop());\n }", "public static void main(String arg[]) {\n\n }", "@Test\n public void testWithEmptyJsonArray() throws org.nfunk.jep.ParseException\n {\n Stack<Object> parameters = CollectionsUtils.newParametersStack(new JSONArray());\n function.run(parameters);\n assertEquals(TRUE, parameters.pop());\n }", "Operations operations();", "private boolean parseOpeningBracket() {\n if (index < end && source.charAt(index) == '[') {\n index++;\n return true;\n }\n return false;\n }", "public static void main(String[] args) {\n TextAnalyzerService tas = new TextAnalyzerService();\n ResultObject resultObject;\n List<String> resultList = new ArrayList<>();\n String path = \"1.txt\";\n boolean isBracketsOk = false;\n\n try {\n isBracketsOk = tas.parsing(path).equals(\"correct\") ? true : false;\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n\n try {\n resultList = tas.readFile(path);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n resultObject = new ResultObject(path, resultList, isBracketsOk);\n //System.out.println(resultObject.toString());\n\n for(String x : resultObject.getListOfString()){\n System.out.println(x);\n }\n }", "public static void main(String[] args) throws Exception {\n\t\tqueryIndexPattern();\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tJNodeList nodelist=new JNodeList(new Node(new Elem(1,222)));\n\t\t\n\t\tnodelist.addTail(new Node(new Elem(2, 333)));\n\t\tnodelist.display();\n\t\t\n\n\t}", "public Snippet visit(ArrayAccess n, Snippet argu) {\n\t Snippet _ret= new Snippet(\"\",\"\",null,false);\n\t String arrayName = n.identifier.accept(this, argu).returnTemp;\n\t Symbol sym = getIdentifier(arrayName, currentBlock, currentClassName);\n\t n.nodeToken.accept(this, argu);\n\t String index = n.identifier1.accept(this, argu).returnTemp;\n\t n.nodeToken1.accept(this, argu);\n\t // if(sym.symbolType instanceof X10ValueArray)\n\t\t\t\treturn new Snippet(\"\", arrayName+\"[\"+index+\"]\", sym.symbolType, false);\n\t\t\t//else\n\t\t\t\t//return new Snippet(\"\", programClassName + \".\" + getArrayGetValueMethod(((X10ReferenceArray)sym.symbolType).arrayElementType) +\"(\"+arrayName + \", \" + index+\")\", ((X10ReferenceArray)sym.symbolType).arrayElementType, false);\n\t }", "public static void main(String[] args) {\n\t\t\n\t\tif(args.length != 1 || args[0].length() != 9) {\n\t\t\tSystem.out.println(\"Wrong input format\");\n\t\t\treturn;\n\t\t}\n\n\t\tint konfig[] = new int[9];\n\n\t\tfor(int i = 0; i < 9; i++) {\n\t\t\tkonfig[i] = args[0].charAt(i) - '0';\n\t\t\t\n\t\t\tif(!args[0].contains(String.valueOf(i))) {\n\t\t\t\tSystem.out.println(\"Wrong input format\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tSlagalica slagalica = new Slagalica(new KonfiguracijaSlagalice(konfig));\n\t\tNode<KonfiguracijaSlagalice> rješenje = SearchUtil.bfsv(slagalica.s0, slagalica.succ, slagalica.goal);\n\t\tif(rješenje == null) {\n\t\t\tSystem.out.println(\"Nisam uspio pronaći rješenje.\");\n\t\t} else {\n\t\t\tSlagalicaViewer.display(rješenje);\n\t\t\tSystem.out.println(\"Imam rješenje. Broj poteza je: \" + rješenje.getCost());\n\t\t\tList<KonfiguracijaSlagalice> lista = new ArrayList<>();\n\t\t\tNode<KonfiguracijaSlagalice> trenutni = rješenje;\n\t\t\twhile(trenutni != null) {\n\t\t\t\tlista.add(trenutni.getState());\n\t\t\t\ttrenutni = trenutni.getParent();\n\t\t\t}\n\t\t\t\n\t\t\tCollections.reverse(lista);\n\t\t\tlista.stream()\n\t\t\t\t.forEach(\n\t\t\t\t\tk -> {\n\t\t\t\t\t\tSystem.out.println(k);\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t}\n\t\t\t\t);\n\t\t}\n\t}", "public static void main (String[] agrs) {\n\t\tNode head1 = new Node(1);\n\t\tNode nextNode = append(head1 , 2);\n\t\tnextNode = append(head1 , 3);\t\t\n\t\tnextNode = append(head1 , 4);\n\t\tnextNode = append(head1 , 5);\n\t\t\n\t\tdisplay(head1); //display Linkedlist with all nodes\n\n\t\t\n\t\tremoveNthFromEnd(head1, 2) ;\n\t\tSystem.out.print(\"After deletion 2nd node from end: \");\n\t\tdisplay(head1);\n\t\t\n\t\t\n\t\tNode nth = findNthFromEnd(head1, 2) ;\n\t\tSystem.out.print(\"Find Nth node from end: \");\n\t\tdisplay(nth);\n\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tprintpath(3,0);\n\t\t//System.out.println(list);\n\t}", "public static void main(String[] args) {\n\t\tString []syntaxClasses= {\"SDLC\",\"Manual Testing\", \"Java\", \"GIT\"};\r\n\t\t// today we have java class\r\n\t\tSystem.out.println(\"Today we have \"+syntaxClasses[2]+\" class\");\r\n\t\t\r\n\t\t\r\n\t\tdouble [] numbers= {10.45, 12.89, 5.99};\r\n\t\tSystem.out.println(numbers[0]+\" \"+numbers[1]);\r\n\t\t\r\n\t\t// int [] num; compiler will give an error\r\n\t\t// num ={} \r\n\t\t\r\n\t\t\r\n\t\t\r\n\r\n\t}", "public final void mRBRACKET() throws RecognitionException {\n try {\n int _type = RBRACKET;\n // /Users/benjamincoe/HackWars/C.g:201:12: ( ']' )\n // /Users/benjamincoe/HackWars/C.g:201:14: ']'\n {\n match(']'); \n\n }\n\n this.type = _type;\n }\n finally {\n }\n }", "public static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint t = Integer.parseInt(br.readLine());\n\n\t\tfor (int i = 0; i < t; i++) {\n\t\t\tStack<Integer> stk = new Stack<>();\n\t\t\tString[] input = br.readLine().split(\"\");\n\t\t\tboolean wrong = false;\n\t\t\t\n\t\t\t\n\t\t\tfor (int j = 0; j <input.length; j++) {\n\t\t\t\tif(input[j].equals(\"(\"))\n\t\t\t\t\tstk.push(1);\n\t\t\t\telse if(input[j].equals(\")\")) {\n\t\t\t\t\t if(stk.isEmpty()) {\n\t\t\t\t\t\t wrong = true;\n\t\t\t\t\t\t break;\n\t\t\t\t\t }\n\t\t\t\t\t stk.pop();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif(stk.isEmpty() && !wrong)\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t}\n\n\t\t\n\n\t}", "@Test(timeout = 4000)\n public void test022() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"[ (\");\n xPathLexer0.setPreviousToken((Token) null);\n assertEquals(\"[ (\", xPathLexer0.getXPath());\n }", "void dims() throws IOException {\n\t\tmatch('[');\n\t\tmatch(Tag.NUM);\n\t\tmatch(']');\n\t\tif (look.tag == '[')\n\t\t\tdims();\n\t\treturn;\n\t}", "@Test\n public void testWithEmptyString() throws org.nfunk.jep.ParseException\n {\n Stack<Object> parameters = CollectionsUtils.newParametersStack(\"\");\n function.run(parameters);\n assertEquals(TRUE, parameters.pop());\n }", "@Test\n\tpublic void testBracketsWithoutOperators() throws BcException, IOException {\n\t\tString[] params = { \"((5)0)\" };\n\t\tbcApp.run(params, inStream, outStream);\n\t\tfail(\"Should have thrown exception but did not!\");\n\n\t}", "public static MethodCallExpression arrayIndex(Expression array, Expression indexExpressions[]) { throw Extensions.todo(); }", "private Term[] parseArgumentList() throws ParseException {\n \n final Term[] args = parseTermList();\n final int tt = _tokenizer.next();\n if (tt != ')') {\n _tokenizer.pushBack();\n reportError(\"Missing ')' or ','.\"); /*I18N*/\n }\n \n return args;\n }", "public static void main(String[] args) {\n\t\tString input1=\"AAA/abb/CCC\";\n\t\t\n\t\tArrayList<String> l=new ArrayList<String>();\n\t\tStringTokenizer t=new StringTokenizer(input1,\"/\");\n\t\twhile(t.hasMoreTokens()){\n\t\t\tStringBuffer sb=new StringBuffer(t.nextToken().toLowerCase());\n\t\t\tl.add(sb.reverse().toString());\n\t\t\t}\n\t\tString op[]=new String[l.size()];\n\t\t\tfor(int i=0;i<op.length;i++)\n\t\t\t\top[i]=l.get(i);\n\t\t\t\n\t\t\tfor(String s:op)\n\t\t\t\tSystem.out.println(s);\n\t\t\n\n\n\t\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n\n\t\tAlternateSplitOfLinkedList list = new AlternateSplitOfLinkedList();\n\t\t//list.addAtBeginnning(6);\n\t\tlist.addAtBeginnning(5);\n\t\tlist.addAtBeginnning(4);\n\t\tlist.addAtBeginnning(3);\n\t\tlist.addAtBeginnning(2);\n\t\tlist.addAtBeginnning(1);\n\t\t\n\t\tlist.printLinkedList(list.head);\t\n\t\tlist.alternateSplit();\n\t\t\t\n\t}", "public static void main(String[] args) {\n\n\t\t\n\n\t\tList<String> s = new ArrayList<String>();\n\t\ts.add(\"SONALI\");// 0 index\n\t\ts.add(\"SUNITA\");// 1 index\n\n\t\ts.add(1, \"SUHANI\");// SUNITA WIL BE MOVED TO 2 index\n\t\t\n\t\tSystem.out.println(s);\n\t}", "public static void main(String[] args) {\n ArrayList<Integer> items = new ArrayList<>();\n items.add(1);\n items.add(2);\n items.add(3);\n items.add(4);\n items.add(5);\n items.add(6);\n items.add(7);\n items.add(8);\n\n\n printArray(items);\n }", "public final void mRBRACKET() throws RecognitionException {\n try {\n int _type = RBRACKET;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2715:3: ( ']' )\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2716:3: ']'\n {\n match(']'); if (state.failed) return ;\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public static void main(String[] args) {\n\t\t\r\n\t\tif(args.length != 3) {\r\n\t\t\tSystem.out.println(\"usage : java Array Num1 OP Num2\");\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\t\t\r\n\t\tint num1=Integer.parseInt(args[0]);\r\n\t\tint num2=Integer.parseInt(args[2]);\r\n\t\tchar op = args[1].charAt(0);\r\n\t\tint result = 0;\r\n\t\t\r\n\t\tswitch(op) {\r\n\t\tcase '+':\r\n\t\t\tresult = num1 + num2;\r\n\t\t\tbreak;\r\n\t\tcase '-':\r\n\t\t\tresult = num1 - num2;\r\n\t\t\tbreak;\r\n\t\tcase '*': case 'x': case 'X':\r\n\t\t\tresult = num1 * num2;\r\n\t\t\tbreak;\r\n\t\tcase '/':\r\n\t\t\tresult = num1 / num2;\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\tSystem.out.println(result);\r\n\t\t\r\n\t}", "private void ShowRep(Integer[] op) {\n System.out.print(\" \" + this.opCodeStrings[op[0]]);\n for (int i = 1; i < 13; i++) {\n if ((i - 1) % 4 == 0)\n System.out.print(\" | \");\n if (op[i] != null)\n System.out.print(\" \" + op[i]);\n else\n System.out.print(\" - \");\n }\n System.out.println();\n }", "public static void main(String[] args) {\n\t\tlistar();\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tint[][] numses = {\r\n\t\t\t\t{},\t\r\n\t\t\t\t{1},\r\n\t\t\t\t{1, 2},\r\n\t\t\t\t{1, 2, 3},\r\n\t\t\t\t{1, 2, 3, 4, 5},\r\n\t\t};\r\n\t\t\r\n\t\tint[][] ranges = {\r\n\t\t\t\t{1, 1},\r\n\t\t\t\t{1, 1},\r\n\t\t\t\t{1, 2},\r\n\t\t\t\t{1, 2},\r\n\t\t\t\t{2, 4},\r\n\t\t};\r\n\t\t\r\n\t\tListNode[] heads = new ListNode[numses.length];\r\n\t\t\r\n\t\tfor(int i = 0; i < numses.length; i++) {\r\n\t\t\theads[i] = ListNode.generateListNode(numses[i]);\r\n\t\t}\r\n\t\t\r\n\t\tfor(int i = 0; i < heads.length; i++) {\r\n\t\t\tListNode.printListNodes(heads[i]);\r\n\t\t\tListNode head = reverseBetween(heads[i], ranges[i][0], ranges[i][1]);\r\n\t\t\tIO.outMain(\"result:\");\r\n\t\t\tListNode.printListNodes(head);\r\n\t\t\tIO.outMain(\"\");\r\n\t\t}\r\n\t\t\r\n\t}", "public void beginArray() {\n expect(JsonType.START_COLLECTION);\n stack.addFirst(Container.COLLECTION);\n input.read();\n }", "public static void main(String[] args) {\n \n\t\t/*int[] a = new int[3];\n\t\ta[0] =7;\n\t\ta[1] =9;\n\t\ta[2] =11;\n\t\tSystem.out.println(a[0]);\n\t\tSystem.out.println(a[1]);\n\t\tSystem.out.println(a[2]);*/\n\t\t\n\t\tint[] a = {7,9,11};// shortcut of single array\n\t\tSystem.out.println(a.length);\n\t\t/*System.out.println(a[0]);\n\t\tSystem.out.println(a[1]);\n\t\tSystem.out.println(a[2]);*/\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tint[][] values = new int[9][10];\r\n\t\toperVlaue(values);\r\n\t}", "public final void mRULE_RBRACKET() throws RecognitionException {\r\n try {\r\n int _type = RULE_RBRACKET;\r\n int _channel = DEFAULT_TOKEN_CHANNEL;\r\n // ../ooi.coi.bspl.ui/src-gen/ooi/coi/bspl/ui/contentassist/antlr/internal/InternalBSPL.g:2475:15: ( ']' )\r\n // ../ooi.coi.bspl.ui/src-gen/ooi/coi/bspl/ui/contentassist/antlr/internal/InternalBSPL.g:2475:17: ']'\r\n {\r\n match(']'); \r\n\r\n }\r\n\r\n state.type = _type;\r\n state.channel = _channel;\r\n }\r\n finally {\r\n }\r\n }", "public final void rule__ArrayBrackets__Group__1__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:15399:1: ( ( ']' ) )\r\n // InternalDroneScript.g:15400:1: ( ']' )\r\n {\r\n // InternalDroneScript.g:15400:1: ( ']' )\r\n // InternalDroneScript.g:15401:2: ']'\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getArrayBracketsAccess().getRightSquareBracketKeyword_1()); \r\n }\r\n match(input,74,FOLLOW_2); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getArrayBracketsAccess().getRightSquareBracketKeyword_1()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public static void main(String[] args) {\n\t\t\n\t\tint n = 5;\n\t\tint[][] queries= {\n\t\t\t\t{2,3,7},\n\t\t\t\t{1,4,3}\t\n\t\t\t\t};\n\t\t\n\t\tSystem.out.println(arrayMAnip(n,queries));\n\t\t\n\t}", "public static void main(String[] args) {\n \n int[] numeros = {56, 89, 87, 56, 45};\n \n System.out.print(\"Array no ordenado: \");\n Impresion(numeros);//impresión del array no ordenado\n System.out.println(\"\");\n System.out.println(\"\");\n \n shell(numeros);//llamada del metodo shell\n \n System.out.print(\"Array ordenado: \");\n Impresion(numeros);//impresión del array ordenado\n System.out.println(\"\");\n \n \n }", "public static void main(String[] args) {\n\t\tBalancedBracketSolution();\n\t}", "@Test\r\n\tpublic void testListArg() {\r\n\t\tAssert.assertEquals(\"test[(`a,`b,`c)]\", new FunctionImpl.FunctionBuilderImpl(\"test\").param(SymbolValue.froms(\"a\", \"b\", \"c\")).build().toQ());\r\n\t}", "final public Expression Collection(Exp stack) throws ParseException {\n ArrayList<Expression> list;\n Expression node, head;\n RDFList rlist;\n int arobase = ASTQuery.L_DEFAULT, save = ASTQuery.L_LIST;\n list = new ArrayList<Expression>();\n save = astq.getListType();\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case ATLIST:\n case ATPATH:\n case AT:\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case ATLIST:\n jj_consume_token(ATLIST);\n arobase = ASTQuery.L_LIST; astq.setListType(arobase);\n break;\n case ATPATH:\n case AT:\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case AT:\n jj_consume_token(AT);\n break;\n case ATPATH:\n jj_consume_token(ATPATH);\n break;\n default:\n jj_la1[225] = jj_gen;\n jj_consume_token(-1);\n throw new ParseException();\n }\n arobase = ASTQuery.L_PATH; astq.setListType(arobase);\n break;\n default:\n jj_la1[226] = jj_gen;\n jj_consume_token(-1);\n throw new ParseException();\n }\n break;\n default:\n jj_la1[227] = jj_gen;\n ;\n }\n jj_consume_token(LPAREN);\n label_42:\n while (true) {\n node = GraphNode(stack);\n list.add(node);\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case Q_IRIref:\n case QNAME_NS:\n case QNAME:\n case BLANK_NODE_LABEL:\n case VAR1:\n case VAR2:\n case ATLIST:\n case ATPATH:\n case TRUE:\n case FALSE:\n case INTEGER:\n case DECIMAL:\n case DOUBLE:\n case STRING_LITERAL1:\n case STRING_LITERAL2:\n case STRING_LITERAL_LONG1:\n case STRING_LITERAL_LONG2:\n case LPAREN:\n case LBRACKET:\n case ANON:\n case AT:\n ;\n break;\n default:\n jj_la1[228] = jj_gen;\n break label_42;\n }\n }\n jj_consume_token(RPAREN);\n head = list(stack, list, arobase);\n astq.setListType(save);\n {if (true) return head;}\n throw new Error(\"Missing return statement in function\");\n }", "public final void mRULE_ARG_ACTION() throws RecognitionException {\n try {\n // InternalUniMapperGenerator.g:5141:26: ( '[' (~ ( ( '[' | ']' ) ) )* ']' )\n // InternalUniMapperGenerator.g:5141:28: '[' (~ ( ( '[' | ']' ) ) )* ']'\n {\n match('['); \n // InternalUniMapperGenerator.g:5141:32: (~ ( ( '[' | ']' ) ) )*\n loop12:\n do {\n int alt12=2;\n int LA12_0 = input.LA(1);\n\n if ( ((LA12_0>='\\u0000' && LA12_0<='Z')||LA12_0=='\\\\'||(LA12_0>='^' && LA12_0<='\\uFFFF')) ) {\n alt12=1;\n }\n\n\n switch (alt12) {\n \tcase 1 :\n \t // InternalUniMapperGenerator.g:5141:32: ~ ( ( '[' | ']' ) )\n \t {\n \t if ( (input.LA(1)>='\\u0000' && input.LA(1)<='Z')||input.LA(1)=='\\\\'||(input.LA(1)>='^' && input.LA(1)<='\\uFFFF') ) {\n \t input.consume();\n\n \t }\n \t else {\n \t MismatchedSetException mse = new MismatchedSetException(null,input);\n \t recover(mse);\n \t throw mse;}\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop12;\n }\n } while (true);\n\n match(']'); \n\n }\n\n }\n finally {\n }\n }", "public static void main(String[] args) throws IOException {\n\t\t\n\t\tBufferedReader buffer = new BufferedReader(new InputStreamReader(System.in)); \n\t\t int n = Integer.parseInt(buffer.readLine()); \n\t\t Stack<String> stack = new Stack<>(); \n\t\t \n\t\t \n\t\t for (int i=0; i<n; ++i) \n\t\t { //temp에 문자가 한글자씩 끊어서 저장이 된다.\n\t\t String[] temp = buffer.readLine().split(\"\"); \n\t\t for (int j=0; j<temp.length; ++j) \n\t\t { \n\t\t if (temp[j].equals(\"(\")) \n\t\t stack.push(temp[j]); \n\t\t if(temp[j].equals(\")\") && stack.isEmpty()) \n\t\t { \n\t\t stack.push(temp[j]); \n\t\t break; \n\t\t } \n\t\t if (temp[j].equals(\")\") && !stack.isEmpty()) \n\t\t stack.pop(); \n\t\t } \n\t\t if (stack.isEmpty()) \n\t\t System.out.println(\"YES\"); \n\t\t else \n\t\t System.out.println(\"NO\"); \n\t\t //stack에 존재하는 모든 자료를 삭제하는 메소드 -> stack.clear()\n\t\t stack.clear(); \n\t\t } \n\t\t }", "public static void main(String[] args) throws Exception {\n\t\tThreeStacksUsingSingleArray st = new ThreeStacksUsingSingleArray(5);\r\n\t\tst.push(0, 1);\r\n\t\tst.push(0, 2);\r\n\t\tst.push(1, 10);\r\n\t\tst.push(2, 20);\r\n\t\tst.pop(0);\r\n\t\tst.display(0);\r\n\t\tst.display(1);\r\n\t\tst.display(2);\r\n\t}", "@Test\n\tpublic void testGetSlice() {\n\t}", "@Override\n public String visit(ArrayAccessExpr n, Object arg) {\n return null;\n }", "public static void main(String[] args) {\n\n\t\tDyanmic1DArray obj=new Dyanmic1DArray();\n\t\tint p[]=obj.acceptArray();\n\t\tobj.displayArray(p);\n\t}", "public static void main(String[] args) {\n\t\tint arr[] = {1,2,3,4,5,6,};\r\n\t\tTreenode<Integer> root= func(arr,0 , arr.length-1);\r\n\t\tprint(root);\r\n\t}", "public static void main(String[] args) {\n\t\tint[] arr = takeInput();\n//\t\tprintArray(arr);\n\t\tprintStartEndArray(arr);\n\t}", "public static void main(String[] args) {\n\t\ttry {\n\t\t\tFileInputStream fileInputStream = new FileInputStream(\"G:\\\\Prog\\\\arraylist.txt\");\n\t\t\tint i;\n\t\t\twhile((i = fileInputStream.read()) != -1)\n\t\t\t{\n\t\t\t\tSystem.out.print((char)i);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tfileInputStream.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\n\t\n\tList l = new ArrayList();\n\t l.toArray();\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "public static IndexExpression arrayAccess(Expression array, Expression indexExpressions[]) { throw Extensions.todo(); }", "public final void rule__ArrayBrackets__Group__0__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:15373:1: ( ( '[' ) )\r\n // InternalDroneScript.g:15374:1: ( '[' )\r\n {\r\n // InternalDroneScript.g:15374:1: ( '[' )\r\n // InternalDroneScript.g:15375:2: '['\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getArrayBracketsAccess().getLeftSquareBracketKeyword_0()); \r\n }\r\n match(input,73,FOLLOW_2); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getArrayBracketsAccess().getLeftSquareBracketKeyword_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public static void main(String[] args) {\nSystem.out.println(\"you passed...\"+args.length);\r\nfor(int i=0;i<args.length;i++)\r\n{\r\n\tSystem.out.println(\"data is\"+args[i]);\r\n}\r\n\t}", "public static void main(String[] args) {\n\r\n\t\tint[] a = { 1, 2, 3 };\r\n\t\tint[] b = { 1, 3 };\r\n\t\tint[] c = { 7, 2, 3 };\r\n\t\tint[] d = { 1 };\r\n\t\tint[] e = { 1, 2 };\r\n\t\tint[] f = {};\r\n\t\tint[] g = {};\r\n\r\n\t\tSystem.out.println(start1(a, b));\r\n\t\tSystem.out.println(start1(c, d));\r\n\t\tSystem.out.println(start1(e, f));\r\n\t\tSystem.out.println(start1(g, f));\r\n\t\r\n\t}", "public final void mRB() throws RecognitionException {\n\t\ttry {\n\t\t\tint _type = RB;\n\t\t\tint _channel = DEFAULT_TOKEN_CHANNEL;\n\t\t\t// src/VSLLexer.g:23:7: ( ']' )\n\t\t\t// src/VSLLexer.g:23:9: ']'\n\t\t\t{\n\t\t\tmatch(']'); \n\t\t\t}\n\n\t\t\tstate.type = _type;\n\t\t\tstate.channel = _channel;\n\t\t}\n\t\tfinally {\n\t\t\t// do for sure before leaving\n\t\t}\n\t}", "public static void main(String[] args) {\n// In in = new In(args[0]);\n// int n = in.readInt();\n// int[][] blocks = new int[n][n];\n\n }", "public static void main(String[] args) {\n if(args==null||args.length == 0 || args[0] == null)\n {\n notRecognized();\n return;\n }\n else\n {\n if(args[0].equals(\"update\"))\n {\n update();\n return;\n }\n else if(args[0].equals(\"help\")) \n {\n help();\n return;\n }\n else if(args[0].equals(\"access\")&&args.length>=2)\n {\n access(args[1]);\n return;\n }\n else\n {\n notRecognized();\n }\n }\n }", "public static void main(String[] args) {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\ttry {\n\t\t\tint n = Integer.parseInt(br.readLine());\n\t\t\tchar arr[][] = new char[n][n];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tString line = br.readLine();\n\t\t\t\tStringTokenizer st=new StringTokenizer(line,\" \");\n\t\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\t\tarr[i][j] = st.nextToken().charAt(0);\n\t\t\t\t}\n\t\t\t}\n\t\t\tquadTree(arr, 0, 0, n);\n\t\t\tSystem.out.println(white);\n\t\t\tSystem.out.println(blue);\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static void main(String[] args){\n\n Rectangle [] rectangles = new Rectangle[ 10 ];\n rectangles[ 0] = new Rectangle(2, 1);\n\n for( Rectangle rect: rectangles){\n if(rect != null){\n System.out.println(rect.getLength() +\",\" +rect.getWidth());\n }\n else{\n System.out.println(rect);\n }\n }\n }", "public static void main(String[] args) {\n\t\tint a[]=new int[5];\n\t\t// 2 4 9 5 1\n\t\t// 0 1 2 3 4 index\n\t\ta[0]=2;\n\t\ta[1]=4;\n\t\ta[2]=9;\n\t\ta[3]=5;\n\t\ta[4]=1;\n\t\t\n\t\tfor (int i = 0; i < a.length; i++) {\n\t\t\tSystem.out.print(a[i]+\" \");\n\t\t\t\n\t\t}\n\t}", "public static void main(String[] args)\n {\n try\n {\n System.out.println(\"Regular expression [\"+args[0]+\"]\");\n NameParser parser = new NameParser();\n StringMatcher matcher = parser.parse(args[0]);\n for (int index = 1; index < args.length; index++)\n {\n String string = args[index];\n System.out.print(\"String [\"+string+\"]\");\n System.out.println(\" -> match = \"+matcher.matches(args[index]));\n }\n }\n catch (Exception ex)\n {\n ex.printStackTrace();\n }\n }", "private void emptyBracket() {\n\n\t\twhile (!stack.peek().matches(\"[(]\")) {\n\t\t\tqueue.add(stack.pop());\n\t\t}\n\t\t// Remove opening bracket from the stack.\n\t\tstack.pop();\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\tSystem.out.println(traverse(0,0,5,5));\r\n\t}", "public static void main(String[] args){\n\t\tSystem.out.println(\"main with String[]\");\n\t\t}", "public static void main(String ar[]) {\n }", "public static void main(String[] args) {\n\t\t\tArrayList<String> inter = matrix(0,0,2,2);\r\n\t\t\tSystem.out.println(inter);\r\n\t\t}", "public static void main(String[] args) {\n\t\tString list = Annotation.annotateList(1, 16);\n\t\tSystem.out.println(list);\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tArrayList ar=new ArrayList();\n\t\tar.add(\"kavya\");\n\t\tar.add(\"anujaa\");\n\t\tar.add(\"jessie\");\n\t\tar.add(\"veena\");\n\t\tSystem.out.println(ar);\n\t\tList l2=ar.subList(1,4);\n\t\tSystem.out.println(l2);\n\n\t}", "public static void main(String[] args) {\n\t\tList list =new ArrayList();\r\n\t\tlist.add(\"one\");\r\n\t\tlist.add(\"two\");\r\n\t\tlist.add(\"three\");\r\n\t\tlist.add(\"four\");\r\n\t\t\r\n\t\tSystem.out.println(list.size());\r\n\t\t\r\n\t\tSystem.out.println(list.get(1));\r\n\t\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\r\n\t}", "public final void mLB() throws RecognitionException {\n\t\ttry {\n\t\t\tint _type = LB;\n\t\t\tint _channel = DEFAULT_TOKEN_CHANNEL;\n\t\t\t// src/VSLLexer.g:22:7: ( '[' )\n\t\t\t// src/VSLLexer.g:22:9: '['\n\t\t\t{\n\t\t\tmatch('['); \n\t\t\t}\n\n\t\t\tstate.type = _type;\n\t\t\tstate.channel = _channel;\n\t\t}\n\t\tfinally {\n\t\t\t// do for sure before leaving\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tMatcher m = Pattern.compile(\"(?m)(\\\\S+)\\\\s+((\\\\S+)\\\\s+(\\\\S+))$\").matcher(PESMA);\r\n\t\twhile(m.find()){\r\n\t\t\tfor(int j = 0; j<=m.groupCount();j++)\r\n\t\t\t\tSystem.out.print(\"[\"+m.group(j)+\"]\");\r\n\t\t\tSystem.out.println();\r\n\t\t\t\r\n\t\t}\r\n\t}", "public static void main(String[] args) \n\t{\n\t\tint a[][];\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tint loop,t,i;\n\t\tScanner sc=new Scanner(System.in);\n\t\tt=sc.nextInt();\n\t\tSubstring[] sub=new Substring[t];\n\t\tfor(loop=0;loop<t;loop++) {\n\t\t\tsub[loop]=new Substring();\n\t\t\tsub[loop].n=sc.nextInt();\n\t\t\tsub[loop].arr=new int[sub[loop].n];\n\t\t\tfor(i=0;i<sub[loop].n;i++)\n\t\t\t\tsub[loop].arr[i]=sc.nextInt();\n\t\t}\n\t\t\n\t\tfor(loop=0;loop<t;loop++) {\n\t\t\tsub[loop].start(sub[loop]);\n\t\t}\n\n\t}", "void parse(String[] args);", "public static void main(String[] args) {\n\t\tloopThroughListOfStrings(Arrays.asList(\"appl\",\"apple\", \"mango-apple\",\"grapes\",\"watermelon\",\"pine-apple\",\"banana\"));\n\t\t\n\n\t}", "public static void main(String[] args)\n\t{\n\n\n\n\n\n\n\t}", "public static void main(String[] args) {\n\t\tdoOperation(\"Ramya\", \"Add\");\r\n\t\tdoOperation(\"Ramya\", \"Replace\");\r\n\t\tdoOperation(\"Ramya\", \"Remove\");\r\n\t\tdoOperation(\"ramya\", \"Change\");\r\n\r\n\t}", "public static void main(String[] args) {\n splitRegex();\n\n }", "public static void main( String[] args)\r\n\t{\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tList<String> lista = new ArrayList<String>();\r\n\t\t\r\n\t\tlista.add(\"ContSala\");\r\n\t\t\r\n\t\tControllerParser parser = new ControllerParser();\t\r\n\t\t\r\n\t\tControllerInter contr =\t parser.parse(lista);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t//ControllerSala sala = new ControllerSala();\r\n\t\t//\tSala s = sala.read(i);\r\n\t\tList<Object>prueba1 = contr.readAll();\r\n\t\t//System.out.println(prueba1);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tIterator<Object> it = prueba1.iterator();\r\n\t\t\r\n\t\twhile(it.hasNext()){\r\n\t\t\t\r\n\t\t\tSala s = (Sala) it.next();\r\n\t\t\tSystem.out.println(s.getNumFilas() + \" \" + s.getCalidadSonido());\r\n\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\r\n\t\t\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\t\r\n\t\tList<String> list = new ArrayList<String>();\r\n\t\t\r\n\t\tlist.add(\"abc\");\r\n\t\tlist.add(\"xyz\");\r\n\t\tlist.add(\"Sachin:\");\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tfor(int i =0; i<list.size() ;i++) {\r\n\t\t\tSystem.out.println(list.get(i));\r\n\t\t}\r\n\t\t\r\n\t}", "static private boolean isFirstOfArray(Token.Code code) {\r\n \t\t\t\treturn code == Token.Code.LEFT_BRACKET;\r\n \t\t\t}", "@Test(timeout = 4000)\n public void test46() throws Throwable {\n SystemInUtil.addInputLine((String) null);\n SystemInUtil.addInputLine((String) null);\n JSTerm jSTerm0 = new JSTerm();\n LinkedList<Integer> linkedList0 = new LinkedList<Integer>();\n Integer integer0 = new Integer(1);\n linkedList0.add(integer0);\n linkedList0.add((Integer) null);\n jSTerm0.removeAll(linkedList0);\n jSTerm0.retainAll(linkedList0);\n SystemInUtil.addInputLine((String) null);\n jSTerm0.add((Object) \"not\");\n // Undeclared exception!\n try { \n jSTerm0.standarizerPredicateForm();\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 1 >= 1\n //\n verifyException(\"java.util.Vector\", e);\n }\n }", "public static void main(String[] args) {\n\t\tint[] numeros = new int[10];\r\n\t\tint[][] matriz = new int [10][2];\r\n\t\t//posicion 5 del array\r\n\t\tnumeros[5] = 23;\r\n\t\t//posicion en matriz\r\n\t\tmatriz[1][2] = 45; \r\n\t\t\r\n\r\n\t}", "@Test\n public void testWithNonEmptyString() throws org.nfunk.jep.ParseException\n {\n Stack<Object> parameters = CollectionsUtils.newParametersStack(\"test\");\n function.run(parameters);\n assertEquals(FALSE, parameters.pop());\n }", "public static void main(String[] args) throws Exception {\n\t\tLinkedList list=new LinkedList();\n\t\tput(\"\",list);\n\t\tSystem.out.println(isEmpty(list));\n\t\tSystem.out.println(get(list,0));\n\t}", "public static void main(String[] args) {\n\t\ttestlistarr tla = new testlistarr();\n\t\ttla.test1();\n\t}", "public static void main(String[] args) {\n\t\tArrayList<String> al = new ArrayList<String>();\n\t\tal.add(\"A+5\");\n\t\tal.add(\"b+6\");\n\t\tal.add(\"D+7\");\n\t m1('D', al);\n\t// System.out.println(a);\n\n\t}", "public static void main (String[] args) {\r\n\t\tMutableLinearList.println(start());\r\n\t}", "public static void main(String[] args) {\r\n\t\tCommandLine top = new CommandLine(new Main());\r\n\t\tif (args.length == 0) {\r\n\t\t\ttop.usage(System.out);\r\n\t\t}\r\n\t\t\r\n\t\tList<CommandLine> parsedCommands;\r\n\t\ttry {\r\n\t\t parsedCommands = top.parse(args);\r\n\t\t} catch (ParameterException ex) { // incorrect user input for one of the subcommands\r\n\t\t LOG.severe(\"Error parsing command line: \" + ex.getMessage());\r\n\t\t ex.getCommandLine().usage(System.out); // get the offended subcommand from the exception\r\n\t\t return;\r\n\t\t}\r\n\t\t\r\n\t\tfor (CommandLine parsed : parsedCommands) {\r\n\t\t if (parsed.isUsageHelpRequested()) {\r\n\t\t parsed.usage(System.out);\r\n\t\t return;\r\n\t\t } else if (parsed.isVersionHelpRequested()) {\r\n\t\t parsed.printVersionHelp(System.out);\r\n\t\t return;\r\n\t\t }\r\n\t\t}\r\n\t\tObject last = parsedCommands.get(parsedCommands.size() - 1).getCommand();\r\n\t\tif (last instanceof Runnable) {\r\n\t\t ((Runnable) last).run();\r\n\t\t return;\r\n\t\t}\r\n\t}", "public static void main(String ar[]){\n }", "@Override\n public String visit(ArrayCreationExpr n, Object arg) {\n return null;\n }" ]
[ "0.594408", "0.53911364", "0.53637487", "0.52456826", "0.5222029", "0.5108611", "0.5054018", "0.50005454", "0.4953553", "0.49429947", "0.48625648", "0.48423997", "0.48235714", "0.4820051", "0.4793678", "0.47671723", "0.4759232", "0.47512123", "0.47317153", "0.47270894", "0.47134584", "0.4704664", "0.46981624", "0.46947888", "0.4678098", "0.46766213", "0.46698672", "0.46643114", "0.46616143", "0.4661207", "0.465252", "0.46463215", "0.46444717", "0.46433726", "0.4642629", "0.46410075", "0.46357056", "0.46352342", "0.46325868", "0.46290317", "0.4622974", "0.46079817", "0.460791", "0.45972526", "0.45949328", "0.45941478", "0.45871916", "0.45808977", "0.4577532", "0.45655283", "0.4562088", "0.4561379", "0.45542416", "0.45535234", "0.4553377", "0.45526782", "0.45396462", "0.45347598", "0.45308682", "0.45269352", "0.45269203", "0.45227996", "0.45221686", "0.45215228", "0.45209306", "0.45128658", "0.45107007", "0.45098856", "0.4509059", "0.45083627", "0.45046237", "0.4490769", "0.448294", "0.44737515", "0.44705334", "0.4469916", "0.44683662", "0.44631734", "0.4460936", "0.44606835", "0.44584534", "0.44538766", "0.44507888", "0.4450499", "0.444393", "0.4443049", "0.44420788", "0.44386268", "0.44383848", "0.4435045", "0.4430199", "0.44284147", "0.44244227", "0.44189754", "0.44188398", "0.44130823", "0.44122535", "0.44114548", "0.44104594", "0.44104332", "0.44086662" ]
0.0
-1
/ access modifiers changed from: private
public void n() { this.f80658c.a(new f() { public void a(Object obj, boolean z) { p unused = m.this.f80658c = (p) obj; } }, "__ag_of"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n protected void prot() {\n }", "private Rekenhulp()\n\t{\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "public void smell() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "private TMCourse() {\n\t}", "private void m50366E() {\n }", "private PropertyAccess() {\n\t\tsuper();\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "public void method_4270() {}", "public abstract Object mo26777y();", "@Override\n protected void init() {\n }", "@Override\n\tprotected void interr() {\n\t}", "private MApi() {}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void mo38117a() {\n }", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "private Infer() {\n\n }", "protected abstract Set method_1559();", "@Override\n void init() {\n }", "@Override\n public void init() {\n\n }", "private void kk12() {\n\n\t}", "public abstract void mo70713b();", "@Override\n public void init() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@SuppressWarnings(\"unused\")\n private void _read() {\n }", "private Singletion3() {}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "private ChainingMethods() {\n // private constructor\n\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "private abstract void privateabstract();", "protected boolean func_70814_o() { return true; }", "private Get() {}", "private Get() {}", "public void m23075a() {\n }", "private Util() { }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "public void mo21779D() {\n }", "private test5() {\r\n\t\r\n\t}", "public void mo21825b() {\n }", "@Override\n public void memoria() {\n \n }", "private MigrationInstantiationUtil() {\n\t\tthrow new IllegalAccessError();\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "protected Doodler() {\n\t}", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "private FlyWithWings(){\n\t\t\n\t}", "private MetallicityUtils() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "@Override\r\n\tpublic void init() {}", "@Override\n public void init() {}", "@Override\n public boolean isPrivate() {\n return true;\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "public abstract void mo56925d();", "public abstract void mo27386d();", "@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "public void mo21877s() {\n }", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private Utils() {}", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:00:49.426 -0500\", hash_original_method = \"26D71A046B8A5E21DEFC65FB89CD9FDA\", hash_generated_method = \"2293476E78FCC8BDA181F927AEA93BD1\")\n \nprivate void copyTables ()\n {\n if (prefixTable != null) {\n prefixTable = (Hashtable)prefixTable.clone();\n } else {\n prefixTable = new Hashtable();\n }\n if (uriTable != null) {\n uriTable = (Hashtable)uriTable.clone();\n } else {\n uriTable = new Hashtable();\n }\n elementNameTable = new Hashtable();\n attributeNameTable = new Hashtable();\n declSeen = true;\n }", "@Override\n public void get() {}", "private SimpleRepository() {\n \t\t// private ct to disallow external object creation\n \t}", "private void ss(){\n }", "public void mo21782G() {\n }", "public abstract void mo27385c();", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "protected void h() {}", "private void init() {\n\n\t}", "private final void i() {\n }" ]
[ "0.70451087", "0.66481936", "0.66338545", "0.6534467", "0.6533057", "0.63756114", "0.6368523", "0.63063055", "0.6244554", "0.62261415", "0.62046665", "0.61776316", "0.6142759", "0.6131381", "0.6131381", "0.61274433", "0.610919", "0.610797", "0.60792845", "0.6062989", "0.6059318", "0.60447836", "0.6037732", "0.6033637", "0.6028711", "0.60249", "0.6015989", "0.6015989", "0.6010123", "0.5991239", "0.5977965", "0.59756213", "0.59711885", "0.59652776", "0.59562653", "0.59491456", "0.5947999", "0.5942879", "0.5941421", "0.59406793", "0.5936351", "0.5936351", "0.5934477", "0.5934473", "0.59311885", "0.59261817", "0.592184", "0.59162307", "0.59162307", "0.5915696", "0.5908215", "0.5903059", "0.5903059", "0.5894341", "0.5887855", "0.58869827", "0.5884463", "0.5881538", "0.588023", "0.5879579", "0.58791363", "0.58698714", "0.58686715", "0.5857818", "0.5855094", "0.5851806", "0.58393794", "0.58365846", "0.58286095", "0.5816463", "0.58148336", "0.58144826", "0.5814171", "0.5814171", "0.5814171", "0.5814171", "0.5814171", "0.5814171", "0.5809802", "0.5802026", "0.57927555", "0.5792171", "0.5790551", "0.5786574", "0.5786574", "0.5786574", "0.5786574", "0.5786161", "0.578553", "0.5785096", "0.57780075", "0.5774098", "0.57732016", "0.57683206", "0.57683206", "0.57683206", "0.57683206", "0.57683206", "0.5763271", "0.57621974", "0.57540506" ]
0.0
-1
/ access modifiers changed from: private
public void q() { List<String> b2 = this.f80657b.b(); if (b2 != null) { this.l = b2; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n protected void prot() {\n }", "private Rekenhulp()\n\t{\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "public void smell() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "private TMCourse() {\n\t}", "private void m50366E() {\n }", "private PropertyAccess() {\n\t\tsuper();\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "public void method_4270() {}", "public abstract Object mo26777y();", "@Override\n protected void init() {\n }", "@Override\n\tprotected void interr() {\n\t}", "private MApi() {}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void mo38117a() {\n }", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "private Infer() {\n\n }", "protected abstract Set method_1559();", "@Override\n void init() {\n }", "@Override\n public void init() {\n\n }", "private void kk12() {\n\n\t}", "public abstract void mo70713b();", "@Override\n public void init() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@SuppressWarnings(\"unused\")\n private void _read() {\n }", "private Singletion3() {}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "private ChainingMethods() {\n // private constructor\n\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "private abstract void privateabstract();", "protected boolean func_70814_o() { return true; }", "private Get() {}", "private Get() {}", "public void m23075a() {\n }", "private Util() { }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "public void mo21779D() {\n }", "private test5() {\r\n\t\r\n\t}", "public void mo21825b() {\n }", "@Override\n public void memoria() {\n \n }", "private MigrationInstantiationUtil() {\n\t\tthrow new IllegalAccessError();\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "protected Doodler() {\n\t}", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "private FlyWithWings(){\n\t\t\n\t}", "private MetallicityUtils() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "@Override\r\n\tpublic void init() {}", "@Override\n public void init() {}", "@Override\n public boolean isPrivate() {\n return true;\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "public abstract void mo56925d();", "public abstract void mo27386d();", "@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "public void mo21877s() {\n }", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private Utils() {}", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:00:49.426 -0500\", hash_original_method = \"26D71A046B8A5E21DEFC65FB89CD9FDA\", hash_generated_method = \"2293476E78FCC8BDA181F927AEA93BD1\")\n \nprivate void copyTables ()\n {\n if (prefixTable != null) {\n prefixTable = (Hashtable)prefixTable.clone();\n } else {\n prefixTable = new Hashtable();\n }\n if (uriTable != null) {\n uriTable = (Hashtable)uriTable.clone();\n } else {\n uriTable = new Hashtable();\n }\n elementNameTable = new Hashtable();\n attributeNameTable = new Hashtable();\n declSeen = true;\n }", "@Override\n public void get() {}", "private SimpleRepository() {\n \t\t// private ct to disallow external object creation\n \t}", "private void ss(){\n }", "public void mo21782G() {\n }", "public abstract void mo27385c();", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "protected void h() {}", "private void init() {\n\n\t}", "private final void i() {\n }" ]
[ "0.70451087", "0.66481936", "0.66338545", "0.6534467", "0.6533057", "0.63756114", "0.6368523", "0.63063055", "0.6244554", "0.62261415", "0.62046665", "0.61776316", "0.6142759", "0.6131381", "0.6131381", "0.61274433", "0.610919", "0.610797", "0.60792845", "0.6062989", "0.6059318", "0.60447836", "0.6037732", "0.6033637", "0.6028711", "0.60249", "0.6015989", "0.6015989", "0.6010123", "0.5991239", "0.5977965", "0.59756213", "0.59711885", "0.59652776", "0.59562653", "0.59491456", "0.5947999", "0.5942879", "0.5941421", "0.59406793", "0.5936351", "0.5936351", "0.5934477", "0.5934473", "0.59311885", "0.59261817", "0.592184", "0.59162307", "0.59162307", "0.5915696", "0.5908215", "0.5903059", "0.5903059", "0.5894341", "0.5887855", "0.58869827", "0.5884463", "0.5881538", "0.588023", "0.5879579", "0.58791363", "0.58698714", "0.58686715", "0.5857818", "0.5855094", "0.5851806", "0.58393794", "0.58365846", "0.58286095", "0.5816463", "0.58148336", "0.58144826", "0.5814171", "0.5814171", "0.5814171", "0.5814171", "0.5814171", "0.5814171", "0.5809802", "0.5802026", "0.57927555", "0.5792171", "0.5790551", "0.5786574", "0.5786574", "0.5786574", "0.5786574", "0.5786161", "0.578553", "0.5785096", "0.57780075", "0.5774098", "0.57732016", "0.57683206", "0.57683206", "0.57683206", "0.57683206", "0.57683206", "0.5763271", "0.57621974", "0.57540506" ]
0.0
-1
/ access modifiers changed from: private
public void h() { long currentTimeMillis = System.currentTimeMillis(); this.m.sendEmptyMessageDelayed(48, q.c(currentTimeMillis)); this.m.sendEmptyMessageDelayed(49, q.d(currentTimeMillis)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n protected void prot() {\n }", "private Rekenhulp()\n\t{\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "public void smell() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "private TMCourse() {\n\t}", "private void m50366E() {\n }", "private PropertyAccess() {\n\t\tsuper();\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "public void method_4270() {}", "public abstract Object mo26777y();", "@Override\n protected void init() {\n }", "@Override\n\tprotected void interr() {\n\t}", "private MApi() {}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void mo38117a() {\n }", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "private Infer() {\n\n }", "protected abstract Set method_1559();", "@Override\n void init() {\n }", "@Override\n public void init() {\n\n }", "private void kk12() {\n\n\t}", "public abstract void mo70713b();", "@Override\n public void init() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@SuppressWarnings(\"unused\")\n private void _read() {\n }", "private Singletion3() {}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "private ChainingMethods() {\n // private constructor\n\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "private abstract void privateabstract();", "protected boolean func_70814_o() { return true; }", "private Get() {}", "private Get() {}", "public void m23075a() {\n }", "private Util() { }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "public void mo21779D() {\n }", "private test5() {\r\n\t\r\n\t}", "public void mo21825b() {\n }", "@Override\n public void memoria() {\n \n }", "private MigrationInstantiationUtil() {\n\t\tthrow new IllegalAccessError();\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "protected Doodler() {\n\t}", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "private FlyWithWings(){\n\t\t\n\t}", "private MetallicityUtils() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "@Override\r\n\tpublic void init() {}", "@Override\n public void init() {}", "@Override\n public boolean isPrivate() {\n return true;\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "public abstract void mo56925d();", "public abstract void mo27386d();", "@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "public void mo21877s() {\n }", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private Utils() {}", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:00:49.426 -0500\", hash_original_method = \"26D71A046B8A5E21DEFC65FB89CD9FDA\", hash_generated_method = \"2293476E78FCC8BDA181F927AEA93BD1\")\n \nprivate void copyTables ()\n {\n if (prefixTable != null) {\n prefixTable = (Hashtable)prefixTable.clone();\n } else {\n prefixTable = new Hashtable();\n }\n if (uriTable != null) {\n uriTable = (Hashtable)uriTable.clone();\n } else {\n uriTable = new Hashtable();\n }\n elementNameTable = new Hashtable();\n attributeNameTable = new Hashtable();\n declSeen = true;\n }", "@Override\n public void get() {}", "private SimpleRepository() {\n \t\t// private ct to disallow external object creation\n \t}", "private void ss(){\n }", "public void mo21782G() {\n }", "public abstract void mo27385c();", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "protected void h() {}", "private void init() {\n\n\t}", "private final void i() {\n }" ]
[ "0.70451087", "0.66481936", "0.66338545", "0.6534467", "0.6533057", "0.63756114", "0.6368523", "0.63063055", "0.6244554", "0.62261415", "0.62046665", "0.61776316", "0.6142759", "0.6131381", "0.6131381", "0.61274433", "0.610919", "0.610797", "0.60792845", "0.6062989", "0.6059318", "0.60447836", "0.6037732", "0.6033637", "0.6028711", "0.60249", "0.6015989", "0.6015989", "0.6010123", "0.5991239", "0.5977965", "0.59756213", "0.59711885", "0.59652776", "0.59562653", "0.59491456", "0.5947999", "0.5942879", "0.5941421", "0.59406793", "0.5936351", "0.5936351", "0.5934477", "0.5934473", "0.59311885", "0.59261817", "0.592184", "0.59162307", "0.59162307", "0.5915696", "0.5908215", "0.5903059", "0.5903059", "0.5894341", "0.5887855", "0.58869827", "0.5884463", "0.5881538", "0.588023", "0.5879579", "0.58791363", "0.58698714", "0.58686715", "0.5857818", "0.5855094", "0.5851806", "0.58393794", "0.58365846", "0.58286095", "0.5816463", "0.58148336", "0.58144826", "0.5814171", "0.5814171", "0.5814171", "0.5814171", "0.5814171", "0.5814171", "0.5809802", "0.5802026", "0.57927555", "0.5792171", "0.5790551", "0.5786574", "0.5786574", "0.5786574", "0.5786574", "0.5786161", "0.578553", "0.5785096", "0.57780075", "0.5774098", "0.57732016", "0.57683206", "0.57683206", "0.57683206", "0.57683206", "0.57683206", "0.5763271", "0.57621974", "0.57540506" ]
0.0
-1
/ access modifiers changed from: private
public void l() { SharedPreferences a2 = ba.a(k); this.f80660e = a2.getBoolean("main_fest_mode", false); this.f80661f = a2.getLong("main_fest_timestamp", 0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n protected void prot() {\n }", "private Rekenhulp()\n\t{\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "public void smell() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "private TMCourse() {\n\t}", "private void m50366E() {\n }", "private PropertyAccess() {\n\t\tsuper();\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "public void method_4270() {}", "public abstract Object mo26777y();", "@Override\n protected void init() {\n }", "@Override\n\tprotected void interr() {\n\t}", "private MApi() {}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void mo38117a() {\n }", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "private Infer() {\n\n }", "protected abstract Set method_1559();", "@Override\n void init() {\n }", "@Override\n public void init() {\n\n }", "private void kk12() {\n\n\t}", "public abstract void mo70713b();", "@Override\n public void init() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@SuppressWarnings(\"unused\")\n private void _read() {\n }", "private Singletion3() {}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "private ChainingMethods() {\n // private constructor\n\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "private abstract void privateabstract();", "protected boolean func_70814_o() { return true; }", "private Get() {}", "private Get() {}", "public void m23075a() {\n }", "private Util() { }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "public void mo21779D() {\n }", "private test5() {\r\n\t\r\n\t}", "public void mo21825b() {\n }", "@Override\n public void memoria() {\n \n }", "private MigrationInstantiationUtil() {\n\t\tthrow new IllegalAccessError();\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "protected Doodler() {\n\t}", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "private FlyWithWings(){\n\t\t\n\t}", "private MetallicityUtils() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "@Override\r\n\tpublic void init() {}", "@Override\n public void init() {}", "@Override\n public boolean isPrivate() {\n return true;\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "public abstract void mo56925d();", "public abstract void mo27386d();", "@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "public void mo21877s() {\n }", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private Utils() {}", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:00:49.426 -0500\", hash_original_method = \"26D71A046B8A5E21DEFC65FB89CD9FDA\", hash_generated_method = \"2293476E78FCC8BDA181F927AEA93BD1\")\n \nprivate void copyTables ()\n {\n if (prefixTable != null) {\n prefixTable = (Hashtable)prefixTable.clone();\n } else {\n prefixTable = new Hashtable();\n }\n if (uriTable != null) {\n uriTable = (Hashtable)uriTable.clone();\n } else {\n uriTable = new Hashtable();\n }\n elementNameTable = new Hashtable();\n attributeNameTable = new Hashtable();\n declSeen = true;\n }", "@Override\n public void get() {}", "private SimpleRepository() {\n \t\t// private ct to disallow external object creation\n \t}", "private void ss(){\n }", "public void mo21782G() {\n }", "public abstract void mo27385c();", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "protected void h() {}", "private void init() {\n\n\t}", "private final void i() {\n }" ]
[ "0.70451087", "0.66481936", "0.66338545", "0.6534467", "0.6533057", "0.63756114", "0.6368523", "0.63063055", "0.6244554", "0.62261415", "0.62046665", "0.61776316", "0.6142759", "0.6131381", "0.6131381", "0.61274433", "0.610919", "0.610797", "0.60792845", "0.6062989", "0.6059318", "0.60447836", "0.6037732", "0.6033637", "0.6028711", "0.60249", "0.6015989", "0.6015989", "0.6010123", "0.5991239", "0.5977965", "0.59756213", "0.59711885", "0.59652776", "0.59562653", "0.59491456", "0.5947999", "0.5942879", "0.5941421", "0.59406793", "0.5936351", "0.5936351", "0.5934477", "0.5934473", "0.59311885", "0.59261817", "0.592184", "0.59162307", "0.59162307", "0.5915696", "0.5908215", "0.5903059", "0.5903059", "0.5894341", "0.5887855", "0.58869827", "0.5884463", "0.5881538", "0.588023", "0.5879579", "0.58791363", "0.58698714", "0.58686715", "0.5857818", "0.5855094", "0.5851806", "0.58393794", "0.58365846", "0.58286095", "0.5816463", "0.58148336", "0.58144826", "0.5814171", "0.5814171", "0.5814171", "0.5814171", "0.5814171", "0.5814171", "0.5809802", "0.5802026", "0.57927555", "0.5792171", "0.5790551", "0.5786574", "0.5786574", "0.5786574", "0.5786574", "0.5786161", "0.578553", "0.5785096", "0.57780075", "0.5774098", "0.57732016", "0.57683206", "0.57683206", "0.57683206", "0.57683206", "0.57683206", "0.5763271", "0.57621974", "0.57540506" ]
0.0
-1
/ access modifiers changed from: private
public void m() { for (Map.Entry key : this.f80656a.a().entrySet()) { List list = (List) key.getKey(); if (!this.l.contains(list)) { this.l.add(d.a(list)); } } if (this.l.size() > 0) { this.f80657b.a(new f(), this.l); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n protected void prot() {\n }", "private Rekenhulp()\n\t{\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "public void smell() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "private TMCourse() {\n\t}", "private void m50366E() {\n }", "private PropertyAccess() {\n\t\tsuper();\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "public void method_4270() {}", "public abstract Object mo26777y();", "@Override\n protected void init() {\n }", "@Override\n\tprotected void interr() {\n\t}", "private MApi() {}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void mo38117a() {\n }", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "private Infer() {\n\n }", "protected abstract Set method_1559();", "@Override\n void init() {\n }", "@Override\n public void init() {\n\n }", "private void kk12() {\n\n\t}", "public abstract void mo70713b();", "@Override\n public void init() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@SuppressWarnings(\"unused\")\n private void _read() {\n }", "private Singletion3() {}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "private ChainingMethods() {\n // private constructor\n\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "private abstract void privateabstract();", "protected boolean func_70814_o() { return true; }", "private Get() {}", "private Get() {}", "public void m23075a() {\n }", "private Util() { }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "public void mo21779D() {\n }", "private test5() {\r\n\t\r\n\t}", "public void mo21825b() {\n }", "@Override\n public void memoria() {\n \n }", "private MigrationInstantiationUtil() {\n\t\tthrow new IllegalAccessError();\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "protected Doodler() {\n\t}", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "private FlyWithWings(){\n\t\t\n\t}", "private MetallicityUtils() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "@Override\r\n\tpublic void init() {}", "@Override\n public void init() {}", "@Override\n public boolean isPrivate() {\n return true;\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "public abstract void mo56925d();", "public abstract void mo27386d();", "@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "public void mo21877s() {\n }", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private Utils() {}", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:00:49.426 -0500\", hash_original_method = \"26D71A046B8A5E21DEFC65FB89CD9FDA\", hash_generated_method = \"2293476E78FCC8BDA181F927AEA93BD1\")\n \nprivate void copyTables ()\n {\n if (prefixTable != null) {\n prefixTable = (Hashtable)prefixTable.clone();\n } else {\n prefixTable = new Hashtable();\n }\n if (uriTable != null) {\n uriTable = (Hashtable)uriTable.clone();\n } else {\n uriTable = new Hashtable();\n }\n elementNameTable = new Hashtable();\n attributeNameTable = new Hashtable();\n declSeen = true;\n }", "@Override\n public void get() {}", "private SimpleRepository() {\n \t\t// private ct to disallow external object creation\n \t}", "private void ss(){\n }", "public void mo21782G() {\n }", "public abstract void mo27385c();", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "protected void h() {}", "private void init() {\n\n\t}", "private final void i() {\n }" ]
[ "0.70451087", "0.66481936", "0.66338545", "0.6534467", "0.6533057", "0.63756114", "0.6368523", "0.63063055", "0.6244554", "0.62261415", "0.62046665", "0.61776316", "0.6142759", "0.6131381", "0.6131381", "0.61274433", "0.610919", "0.610797", "0.60792845", "0.6062989", "0.6059318", "0.60447836", "0.6037732", "0.6033637", "0.6028711", "0.60249", "0.6015989", "0.6015989", "0.6010123", "0.5991239", "0.5977965", "0.59756213", "0.59711885", "0.59652776", "0.59562653", "0.59491456", "0.5947999", "0.5942879", "0.5941421", "0.59406793", "0.5936351", "0.5936351", "0.5934477", "0.5934473", "0.59311885", "0.59261817", "0.592184", "0.59162307", "0.59162307", "0.5915696", "0.5908215", "0.5903059", "0.5903059", "0.5894341", "0.5887855", "0.58869827", "0.5884463", "0.5881538", "0.588023", "0.5879579", "0.58791363", "0.58698714", "0.58686715", "0.5857818", "0.5855094", "0.5851806", "0.58393794", "0.58365846", "0.58286095", "0.5816463", "0.58148336", "0.58144826", "0.5814171", "0.5814171", "0.5814171", "0.5814171", "0.5814171", "0.5814171", "0.5809802", "0.5802026", "0.57927555", "0.5792171", "0.5790551", "0.5786574", "0.5786574", "0.5786574", "0.5786574", "0.5786161", "0.578553", "0.5785096", "0.57780075", "0.5774098", "0.57732016", "0.57683206", "0.57683206", "0.57683206", "0.57683206", "0.57683206", "0.5763271", "0.57621974", "0.57540506" ]
0.0
-1
/ access modifiers changed from: private
public void o() { try { if (this.f80656a.a().size() > 0) { this.f80657b.c(new f() { public void a(Object obj, boolean z) { if (obj instanceof String) { m.this.f80656a.d(); } } }, this.f80656a.a()); } if (this.f80658c.a().size() > 0) { this.f80657b.b(new f() { public void a(Object obj, boolean z) { if (obj instanceof String) { m.this.f80658c.b(); } } }, this.f80658c.a()); } if (this.l.size() > 0) { this.f80657b.a(new f(), this.l); } } catch (Throwable th) { by.b("converyMemoryToDataTable happen error: " + th.toString()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n protected void prot() {\n }", "private Rekenhulp()\n\t{\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "public void smell() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "private TMCourse() {\n\t}", "private void m50366E() {\n }", "private PropertyAccess() {\n\t\tsuper();\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "public void method_4270() {}", "public abstract Object mo26777y();", "@Override\n protected void init() {\n }", "@Override\n\tprotected void interr() {\n\t}", "private MApi() {}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void mo38117a() {\n }", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "private Infer() {\n\n }", "protected abstract Set method_1559();", "@Override\n void init() {\n }", "@Override\n public void init() {\n\n }", "private void kk12() {\n\n\t}", "public abstract void mo70713b();", "@Override\n public void init() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@SuppressWarnings(\"unused\")\n private void _read() {\n }", "private Singletion3() {}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "private ChainingMethods() {\n // private constructor\n\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "private abstract void privateabstract();", "protected boolean func_70814_o() { return true; }", "private Get() {}", "private Get() {}", "public void m23075a() {\n }", "private Util() { }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "public void mo21779D() {\n }", "private test5() {\r\n\t\r\n\t}", "public void mo21825b() {\n }", "@Override\n public void memoria() {\n \n }", "private MigrationInstantiationUtil() {\n\t\tthrow new IllegalAccessError();\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "protected Doodler() {\n\t}", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "private FlyWithWings(){\n\t\t\n\t}", "private MetallicityUtils() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "@Override\r\n\tpublic void init() {}", "@Override\n public void init() {}", "@Override\n public boolean isPrivate() {\n return true;\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "public abstract void mo56925d();", "public abstract void mo27386d();", "@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "public void mo21877s() {\n }", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private Utils() {}", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:00:49.426 -0500\", hash_original_method = \"26D71A046B8A5E21DEFC65FB89CD9FDA\", hash_generated_method = \"2293476E78FCC8BDA181F927AEA93BD1\")\n \nprivate void copyTables ()\n {\n if (prefixTable != null) {\n prefixTable = (Hashtable)prefixTable.clone();\n } else {\n prefixTable = new Hashtable();\n }\n if (uriTable != null) {\n uriTable = (Hashtable)uriTable.clone();\n } else {\n uriTable = new Hashtable();\n }\n elementNameTable = new Hashtable();\n attributeNameTable = new Hashtable();\n declSeen = true;\n }", "@Override\n public void get() {}", "private SimpleRepository() {\n \t\t// private ct to disallow external object creation\n \t}", "private void ss(){\n }", "public void mo21782G() {\n }", "public abstract void mo27385c();", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "protected void h() {}", "private void init() {\n\n\t}", "private final void i() {\n }" ]
[ "0.70451087", "0.66481936", "0.66338545", "0.6534467", "0.6533057", "0.63756114", "0.6368523", "0.63063055", "0.6244554", "0.62261415", "0.62046665", "0.61776316", "0.6142759", "0.6131381", "0.6131381", "0.61274433", "0.610919", "0.610797", "0.60792845", "0.6062989", "0.6059318", "0.60447836", "0.6037732", "0.6033637", "0.6028711", "0.60249", "0.6015989", "0.6015989", "0.6010123", "0.5991239", "0.5977965", "0.59756213", "0.59711885", "0.59652776", "0.59562653", "0.59491456", "0.5947999", "0.5942879", "0.5941421", "0.59406793", "0.5936351", "0.5936351", "0.5934477", "0.5934473", "0.59311885", "0.59261817", "0.592184", "0.59162307", "0.59162307", "0.5915696", "0.5908215", "0.5903059", "0.5903059", "0.5894341", "0.5887855", "0.58869827", "0.5884463", "0.5881538", "0.588023", "0.5879579", "0.58791363", "0.58698714", "0.58686715", "0.5857818", "0.5855094", "0.5851806", "0.58393794", "0.58365846", "0.58286095", "0.5816463", "0.58148336", "0.58144826", "0.5814171", "0.5814171", "0.5814171", "0.5814171", "0.5814171", "0.5814171", "0.5809802", "0.5802026", "0.57927555", "0.5792171", "0.5790551", "0.5786574", "0.5786574", "0.5786574", "0.5786574", "0.5786161", "0.578553", "0.5785096", "0.57780075", "0.5774098", "0.57732016", "0.57683206", "0.57683206", "0.57683206", "0.57683206", "0.57683206", "0.5763271", "0.57621974", "0.57540506" ]
0.0
-1
/ access modifiers changed from: private
public void p() { try { if (this.f80656a.a().size() > 0) { this.f80657b.a((f) new f() { public void a(Object obj, boolean z) { } }, this.f80656a.a()); } if (this.f80658c.a().size() > 0) { this.f80657b.b(new f() { public void a(Object obj, boolean z) { if (obj instanceof String) { m.this.f80658c.b(); } } }, this.f80658c.a()); } if (this.l.size() > 0) { this.f80657b.a(new f(), this.l); } } catch (Throwable th) { by.b("convertMemoryToCacheTable happen error: " + th.toString()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n protected void prot() {\n }", "private Rekenhulp()\n\t{\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "public void smell() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "private TMCourse() {\n\t}", "private void m50366E() {\n }", "private PropertyAccess() {\n\t\tsuper();\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "public void method_4270() {}", "public abstract Object mo26777y();", "@Override\n protected void init() {\n }", "@Override\n\tprotected void interr() {\n\t}", "private MApi() {}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void mo38117a() {\n }", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "private Infer() {\n\n }", "protected abstract Set method_1559();", "@Override\n void init() {\n }", "@Override\n public void init() {\n\n }", "private void kk12() {\n\n\t}", "public abstract void mo70713b();", "@Override\n public void init() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@SuppressWarnings(\"unused\")\n private void _read() {\n }", "private Singletion3() {}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "private ChainingMethods() {\n // private constructor\n\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "private abstract void privateabstract();", "protected boolean func_70814_o() { return true; }", "private Get() {}", "private Get() {}", "public void m23075a() {\n }", "private Util() { }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "public void mo21779D() {\n }", "private test5() {\r\n\t\r\n\t}", "public void mo21825b() {\n }", "@Override\n public void memoria() {\n \n }", "private MigrationInstantiationUtil() {\n\t\tthrow new IllegalAccessError();\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "protected Doodler() {\n\t}", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "private FlyWithWings(){\n\t\t\n\t}", "private MetallicityUtils() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "@Override\r\n\tpublic void init() {}", "@Override\n public void init() {}", "@Override\n public boolean isPrivate() {\n return true;\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "public abstract void mo56925d();", "public abstract void mo27386d();", "@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "public void mo21877s() {\n }", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private Utils() {}", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:00:49.426 -0500\", hash_original_method = \"26D71A046B8A5E21DEFC65FB89CD9FDA\", hash_generated_method = \"2293476E78FCC8BDA181F927AEA93BD1\")\n \nprivate void copyTables ()\n {\n if (prefixTable != null) {\n prefixTable = (Hashtable)prefixTable.clone();\n } else {\n prefixTable = new Hashtable();\n }\n if (uriTable != null) {\n uriTable = (Hashtable)uriTable.clone();\n } else {\n uriTable = new Hashtable();\n }\n elementNameTable = new Hashtable();\n attributeNameTable = new Hashtable();\n declSeen = true;\n }", "@Override\n public void get() {}", "private SimpleRepository() {\n \t\t// private ct to disallow external object creation\n \t}", "private void ss(){\n }", "public void mo21782G() {\n }", "public abstract void mo27385c();", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "protected void h() {}", "private void init() {\n\n\t}", "private final void i() {\n }" ]
[ "0.70451087", "0.66481936", "0.66338545", "0.6534467", "0.6533057", "0.63756114", "0.6368523", "0.63063055", "0.6244554", "0.62261415", "0.62046665", "0.61776316", "0.6142759", "0.6131381", "0.6131381", "0.61274433", "0.610919", "0.610797", "0.60792845", "0.6062989", "0.6059318", "0.60447836", "0.6037732", "0.6033637", "0.6028711", "0.60249", "0.6015989", "0.6015989", "0.6010123", "0.5991239", "0.5977965", "0.59756213", "0.59711885", "0.59652776", "0.59562653", "0.59491456", "0.5947999", "0.5942879", "0.5941421", "0.59406793", "0.5936351", "0.5936351", "0.5934477", "0.5934473", "0.59311885", "0.59261817", "0.592184", "0.59162307", "0.59162307", "0.5915696", "0.5908215", "0.5903059", "0.5903059", "0.5894341", "0.5887855", "0.58869827", "0.5884463", "0.5881538", "0.588023", "0.5879579", "0.58791363", "0.58698714", "0.58686715", "0.5857818", "0.5855094", "0.5851806", "0.58393794", "0.58365846", "0.58286095", "0.5816463", "0.58148336", "0.58144826", "0.5814171", "0.5814171", "0.5814171", "0.5814171", "0.5814171", "0.5814171", "0.5809802", "0.5802026", "0.57927555", "0.5792171", "0.5790551", "0.5786574", "0.5786574", "0.5786574", "0.5786574", "0.5786161", "0.578553", "0.5785096", "0.57780075", "0.5774098", "0.57732016", "0.57683206", "0.57683206", "0.57683206", "0.57683206", "0.57683206", "0.5763271", "0.57621974", "0.57540506" ]
0.0
-1
Create my location marker
public void initMapMarkers() { myMarkersCollection = new MapMarkersCollection(); MapMarkerBuilder myLocMarkerBuilder = new MapMarkerBuilder(); myLocMarkerBuilder.setMarkerId(MARKER_ID_MY_LOCATION); myLocMarkerBuilder.setIsAccuracyCircleSupported(true); myLocMarkerBuilder.setAccuracyCircleBaseColor(new FColorRGB(32/255f, 173/255f, 229/255f)); myLocMarkerBuilder.setBaseOrder(-206000); myLocMarkerBuilder.setIsHidden(true); Bitmap myLocationBitmap = OsmandResources.getBitmap("map_pedestrian_location"); if (myLocationBitmap != null) { myLocMarkerBuilder.setPinIcon(SwigUtilities.createSkBitmapARGB888With( myLocationBitmap.getWidth(), myLocationBitmap.getHeight(), SampleUtils.getBitmapAsByteArray(myLocationBitmap))); } myLocationMarker = myLocMarkerBuilder.buildAndAddToCollection(myMarkersCollection); mapView.addSymbolsProvider(myMarkersCollection); // Create context pin marker contextPinMarkersCollection = new MapMarkersCollection(); MapMarkerBuilder contextMarkerBuilder = new MapMarkerBuilder(); contextMarkerBuilder.setMarkerId(MARKER_ID_CONTEXT_PIN); contextMarkerBuilder.setIsAccuracyCircleSupported(false); contextMarkerBuilder.setBaseOrder(-210000); contextMarkerBuilder.setIsHidden(true); Bitmap pinBitmap = OsmandResources.getBitmap("map_pin_context_menu"); if (pinBitmap != null) { contextMarkerBuilder.setPinIcon(SwigUtilities.createSkBitmapARGB888With( pinBitmap.getWidth(), pinBitmap.getHeight(), SampleUtils.getBitmapAsByteArray(pinBitmap))); contextMarkerBuilder.setPinIconVerticalAlignment(MapMarker.PinIconVerticalAlignment.Top); contextMarkerBuilder.setPinIconHorisontalAlignment(MapMarker.PinIconHorisontalAlignment.CenterHorizontal); } contextPinMarker = contextMarkerBuilder.buildAndAddToCollection(contextPinMarkersCollection); mapView.addSymbolsProvider(contextPinMarkersCollection); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createMarker()\n {\n LocationMarker layoutLocationMarker = new LocationMarker(\n fLon.get(fLon.size()-1),\n fLat.get(fLat.size()-1),\n getExampleView()\n\n );\n\n finalLon = fLon.get(fLon.size()-1);\n finalLat = fLat.get(fLat.size()-1);\n\n View eView = exampleLayoutRenderable.getView();\n TextView finalDistance = findViewById(R.id.textView4);\n\n\n // An example \"onRender\" event, called every frame\n // Updates the layout with the markers distance\n layoutLocationMarker.setRenderEvent(new LocationNodeRender() {\n @Override\n public void render(LocationNode node) {\n View eView = exampleLayoutRenderable.getView();\n\n TextView distanceTextView = eView.findViewById(R.id.textView2);\n distanceTextView.setText(node.getDistance() + \"m\");\n }\n });\n // Adding the marker\n locationScene.mLocationMarkers.add(layoutLocationMarker);\n\n }", "private void createMarker(LatLng position) {\n MarkerOptions markerOptions = new MarkerOptions();\n markerOptions.position(position);\n markerOptions.icon(BitmapDescriptorFactory.fromResource(R.drawable.note_position));\n // set up marker\n locationMarker = googleMap.addMarker(markerOptions);\n locationMarker.setDraggable(true);\n locationMarker.showInfoWindow();\n }", "private void drawMarker1(LatLng point){\n MarkerOptions markerOptions=new MarkerOptions();\r\n\r\n // Setting latitude and longitude for the marker\r\n markerOptions.position(point);\r\n\r\n markerOptions.icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_GREEN));\r\n\r\n // Adding marker on the Google Map\r\n mMap.addMarker(markerOptions);\r\n\r\n // marker.showInfoWindow();\r\n }", "private void addMarker(double lat, double lon) {\n mLatLng = new LatLng(lat,lon);\n mMarker = new MarkerOptions()\n .position(mLatLng)\n .title(\"Location\")\n .setIcon(icon)\n .snippet(\"Welcome to you\");\n map.addMarker(mMarker);\n }", "private void showMarker() {\n\n if (myMarker == null) {\n MarkerOptions options = new MarkerOptions();//1 option co 2 thu k thieu vi tri ,hinh anh\n options.position(new LatLng(myLocation.getLatitude(), myLocation.getLongitude()));//vi tri kinh do vi do,no tra ve vi tri cuoi cung gps nhan dc ,neu\n options.title(\"dung123\");\n options.icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_GREEN));\n //newu chua co thif sedc sinh ra bang cach add\n googleMap.addMarker(options);\n// myMarker.setTag(\"Hello\");//co the truyen doi tuig vao duoi window marker getTag\n } else {\n myMarker.setPosition(new LatLng(myLocation.getLatitude(), myLocation.getLongitude()));\n }\n }", "public Marker createLocationMarker(Hospital location) {\n\n ArrayList<Double> latLong = new ArrayList<>();\n latLong.add(location.getLatitude());\n latLong.add(location.getLongitude());\n LatLong hospitalLocation = new LatLong(latLong.get(0), latLong.get(1));\n\n MarkerOptions markerOptions = new MarkerOptions();\n markerOptions.position(hospitalLocation);\n markerOptions.title(location.getName());\n markerOptions.label(String.valueOf(location.getId()));\n\n if (location.getId() < 0) {\n markerOptions.label(\"X\");\n } else {\n markerOptions.label(location.getId().toString());\n }\n\n return new Marker(markerOptions);\n }", "@Override\n public void onSuccess(Location location) {\n if (location != null) {\n // Logic to handle location object\n double lat = location.getLatitude();\n double lng = location.getLongitude();\n mMap.addMarker(new MarkerOptions().position(new LatLng(lat, lng)).title(\"Marker at current Location\"));\n // mMap.addMarker(new MarkerOptions().position(new LatLng(lat, lng)).title(\"Marker in NYC\").icon(BitmapDescriptorFactory.fromResource(R.mipmap.ic_launcher_round)));\n }\n }", "public void createMarker(DBMarker marker)\n\t{\n\t\t//Call get location function\n Location location = getLocation();\n \n //If location is not null, create a marker at the location and draw a line from that location to lat:0 long:0\n if (location != null)\n {\n \t//Get current location and create a LatLng object\n \tLatLng currentLocation = new LatLng(location.getLatitude(), location.getLongitude());\n \tMarker locationMarker = map.addMarker(new MarkerOptions().position(currentLocation));\n \t\n \t//Create a new GPS object to attach to the marker\n \tGPS gpsObject = new GPS();\n \tgpsObject.latitude = location.getLatitude();\n \tgpsObject.longitude = location.getLongitude();\n \tgpsObject.time = location.getTime();\n \tmarker.gps = gpsObject;\n \n \t//Add the marker to the list of markers and HashTable\n \tmarkerList.add(marker);\n \tmarkerHashTable.put(marker, locationMarker);\n }\n else\n {\n \t//Create alert when location fails\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(\"Location not found.\");\n builder.setTitle(\"Error\");\n builder.setNeutralButton(\"Close\", null);\n AlertDialog dialog = builder.create();\n dialog.show();\n }\n\t}", "private void drawUserMarker(Location location) {\n LatLng current_position = new LatLng(location.getLatitude(), location.getLongitude());\n if(mUserMarker == null) {\n mUserMarker = mMap.addMarker(\n new MarkerOptions()\n .position(current_position)\n .snippet(\"Lat:\" + location.getLatitude() + \" Lng:\" + location.getLongitude())\n .icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_AZURE))\n .title(\"My Position\")\n );\n }\n else {\n mUserMarker.setPosition(current_position);\n mUserMarker.setSnippet(\"Lat:\" + location.getLatitude() + \" Lng:\" + location.getLongitude());\n }\n }", "public void addMapMarker() {\n if (iLat != null && !iLat.equals(\"\") && iLon != null && !iLon.equals(\"\") && iLatRef != null && !iLatRef.equals(\"\") && iLonRef != null && !iLonRef.equals(\"\")) {\n\n if (iLatRef.equals(\"N\")) {\n //North of equator, positive value\n iLatFloat = toDegrees(iLat);\n } else {\n //South of equator, negative value\n iLatFloat = 0 - toDegrees(iLat);\n }\n\n if (iLonRef.equals(\"E\")) {\n //East of prime meridian, positive value\n iLonFloat = toDegrees(iLon);\n } else {\n //West of prime meridian, negative value\n iLonFloat = 0 - toDegrees(iLon);\n }\n }\n\n final MapView gMap = (MapView) findViewById(R.id.map);\n\n if (addedMarker == false) {\n posMarker = gMap.getMap().addMarker(posMarkerOptions);\n posMarker.setTitle(getString(R.string.map_position));\n addedMarker = true;\n }\n\n posMarker.setVisible(true);\n posMarker.setPosition(new LatLng(iLatFloat, iLonFloat));\n\n GoogleMap gMapObj = gMap.getMap();\n\n gMapObj.setOnMapClickListener(new GoogleMap.OnMapClickListener() {\n @Override\n public void onMapClick(LatLng latLng) {\n posMarker.setPosition(latLng);\n displayCoordsInDegrees();\n\n //Use text view values instead of posMarker values\n iLat = toDMS(posMarker.getPosition().latitude);\n iLon = toDMS(posMarker.getPosition().longitude);\n\n if (posMarker.getPosition().latitude > 0) {\n //North of equator, positive value\n iLatFloat = toDegrees(iLat);\n iLatRef = \"N\";\n } else {\n //South of equator, negative value\n iLatFloat = 0 - toDegrees(iLat);\n iLatRef = \"S\";\n }\n\n if (posMarker.getPosition().longitude > 0) {\n //East of prime meridian, positive value\n iLonFloat = toDegrees(iLon);\n iLonRef = \"E\";\n } else {\n //West of prime meridian, negative value\n iLonFloat = 0 - toDegrees(iLon);\n iLonRef = \"W\";\n }\n }\n });\n }", "private void drawMarker(LatLng point){\n \tMarkerOptions markerOptions = new MarkerOptions();\t\t\t\t\t\n \t\t\n \t// Setting latitude and longitude for the marker\n \tmarkerOptions.position(point);\n \tmarkerOptions.icon(BitmapDescriptorFactory.fromResource(R.drawable.marker1));\n \t// Adding marker on the Google Map\n \tmap.addMarker(markerOptions); \t\t\n }", "Marker getMarker();", "private void addGreenMarker(LatLng latLng) {\n MarkerOptions markerOptions = new MarkerOptions();\r\n markerOptions.position(latLng);\r\n //markerOptions.title(dt.format(newDate));\r\n markerOptions.icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_GREEN));\r\n mMap.addMarker(markerOptions);\r\n }", "private void drawMarker(Location location){\n LatLng currentPosition = new LatLng(location.getLatitude(),location.getLongitude());\r\n runlist.add(currentPosition);\r\n\r\n\r\n for(int i = 0; i<runlist.size();i++){\r\n\r\n\r\n\r\n Marker marker = mGoogleMap.addMarker(new MarkerOptions()\r\n .position(runlist.get(i))\r\n .title(\"TRACKING\")\r\n .snippet(\"Real Time Locations\"));\r\n\r\n\r\n\r\n }\r\n\r\n AddLines();\r\n //mGoogleMap.moveCamera(CameraUpdateFactory.newLatLngZoom(runlist.get(0),13));\r\n mGoogleMap.animateCamera(CameraUpdateFactory.newLatLngZoom(runlist.get(0), 13.9f));\r\n\r\n\r\n }", "@Override\n\t\tpublic void onLocationChanged(Location location) {\n\t\t\tString coordinates[] = { \"\" + location.getLatitude(),\n\t\t\t\t\t\"\" + location.getLongitude() };\n\t\t\tdouble lat = Double.parseDouble(coordinates[0]);\n\t\t\tdouble lng = Double.parseDouble(coordinates[1]);\n\n\t\t\tGeoPoint p = new GeoPoint((int) (lat * 1E6), (int) (lng * 1E6));\n\n\t\t\tMyMapOverlays marker = new MyMapOverlays(p, MapDataActivity.this);\n\t\t\tList listOfOverLays = myMap.getOverlays();\n\t\t\tlistOfOverLays.clear();\n\t\t\tlistOfOverLays.add(marker);\n\n\t\t\tmyMap.invalidate();\n\t\t\t// Toast.makeText(MapDataActivity.this,\n\t\t\t// \"lat \"+location.getLatitude()+\"long \"+location.getLongitude(),\n\t\t\t// Toast.LENGTH_SHORT).show();\n\t\t}", "private void addDestination(double lat, double lon) {\n mLatLng = new LatLng(lat,lon);\n mMarker = new MarkerOptions()\n .position(mLatLng)\n .title(\"Location\")\n .snippet(\"Welcome to you\");\n map.addMarker(mMarker);\n\n\n }", "private void drawMarker(LatLng point){\n\t\tgoogleMap.clear();\t\t\r\n\t\t\r\n // Creating an instance of MarkerOptions\r\n MarkerOptions markerOptions = new MarkerOptions();\r\n\r\n // Setting latitude and longitude for the marker\r\n markerOptions.position(point); \r\n \r\n // Setting title for the InfoWindow\r\n markerOptions.title(\"Position\");\r\n \r\n // Setting InfoWindow contents\r\n markerOptions.snippet(\"Latitude:\"+point.latitude+\",Longitude\"+point.longitude);\r\n // markerOptions.icon(BitmapDescriptorFactory.fromResource(R.drawable.));\r\n\r\n // Adding marker on the Google Map\r\n googleMap.addMarker(markerOptions);\r\n \r\n // Moving CameraPosition to the user input coordinates\r\n googleMap.moveCamera(CameraUpdateFactory.newLatLng(point));\r\n\r\n // Setting the zoom level\r\n //googleMap.animateCamera(CameraUpdateFactory.zoomTo(10)); \r\n \r\n }", "private MarkerOptions makeMarkerAt( LatLng point ) {\n \t\treturn new MarkerOptions().flat( true ).draggable( true ).position( point );\n \t}", "private void addPlaceLocationMarker(LatLng latLng) {\n MarkerOptions markerOptions = new MarkerOptions();\n markerOptions.position(latLng);\n mMap.clear();\n markerOptions.title(\"Current Position\");\n markerOptions.getPosition();\n markerOptions.title(locationName);\n mMap.addMarker(markerOptions);\n }", "@Override\n public void onSuccess(Location location) {\n if (location != null) {\n LatLng marker = new LatLng(location.getLatitude(), location.getLongitude());\n mMap.addMarker(new MarkerOptions().position(marker).title(\"You\").icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_AZURE)));\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(location.getLatitude(), location.getLongitude()), 15.0f));\n }\n }", "public MapObject addMarker(EncodedImage icon, Coord location, String text, String longText, ActionListener onClick) {\n if(internalNative != null) {\n byte[] iconData = null;\n if(icon != null) {\n iconData = icon.getImageData();\n }\n long key = internalNative.addMarker(iconData, location.getLatitude(), location.getLongitude(), text, longText, onClick != null);\n MapObject o = new MapObject();\n o.mapKey = key;\n o.callback = onClick;\n markers.add(o);\n return o;\n } else {\n if(internalLightweightCmp != null) {\n PointLayer pl = new PointLayer(location, text, icon);\n if(points == null) {\n points = new PointsLayer();\n internalLightweightCmp.addLayer(points);\n points.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent evt) {\n PointLayer point = (PointLayer)evt.getSource();\n for(MapObject o : markers) {\n if(o.point == point) {\n if(o.callback != null) {\n o.callback.actionPerformed(new ActionEvent(o));\n }\n return;\n }\n }\n }\n });\n points.addPoint(pl);\n MapObject o = new MapObject();\n o.point = pl;\n o.callback = onClick;\n markers.add(o);\n return o;\n } \n } else {\n // TODO: Browser component\n }\n }\n return null;\n }", "private void SetMarkerOnMap(Double latitude,Double longitude,float color)\n {\n //Place location marker\n LatLng latLng = new LatLng(latitude, longitude);\n MarkerOptions markerOptions = new MarkerOptions();\n markerOptions.position(latLng);\n String addressOfLocation = GetAddressFromLatLng(latitude, longitude);\n markerOptions.title(addressOfLocation+\"\");\n markerOptions.icon(BitmapDescriptorFactory.defaultMarker(color));\n map.addMarker(markerOptions);\n //move map camera\n map.moveCamera(CameraUpdateFactory.newLatLng(latLng));\n map.animateCamera(CameraUpdateFactory.zoomTo(12));\n\n }", "Location createLocation();", "Location createLocation();", "Location createLocation();", "private void drawMarker(LatLng point){\n MarkerOptions markerOptions = new MarkerOptions();\n\n // Setting latitude and longitude for the marker\n markerOptions.position(point);\n\n // Adding marker on the Google Map\n mGoogleMap.addMarker(markerOptions);\n }", "private void xxx() {\n LatLng westfieldNJ = new LatLng(40.659, -74.3474);\n mMap.addMarker(new MarkerOptions().position(westfieldNJ).title(\"Westfield, New Jersey\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(westfieldNJ));\n\n }", "private void plottingMarkers(){\r\n if (nameList.size()==0) {\r\n }\r\n else {\r\n for (int i = 0; i < nameList.size(); i++) {\r\n Loc2LatLng = new LatLng(Double.parseDouble(latList.get(i)), Double.parseDouble(lngList.get(i)));\r\n MarkerOptions markerSavedLocations = new MarkerOptions();\r\n markerSavedLocations.title(nameList.get(i));\r\n markerSavedLocations.position(Loc2LatLng);\r\n map.addMarker(markerSavedLocations);\r\n }\r\n }\r\n }", "@Override\n public void onLocationChanged(Location location) {\n LatLng newLocation = new LatLng(location.getLatitude(), location.getLongitude());\n if (marker == null) {\n String address = getAddressFromCoordinates(location.getLatitude(), location.getLongitude());\n textView.setText(\"Your Current Location: \" + address); //For Testing, display coordinates on textView every time it's triggered\n marker = mMap.addMarker(new MarkerOptions().position(newLocation).title(\"Your current location:\"));\n arrayMarker.add(0, marker);\n builder.include(marker.getPosition());\n marker.setSnippet(address);\n } else {\n marker.setPosition(newLocation);\n String address = getAddressFromCoordinates(location.getLatitude(), location.getLongitude());\n// textView.setText(\"\\nCurrent Location: \" + address);\n marker.setTitle(\"Your current location:\");\n marker.setSnippet(address);\n }\n// mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(newLocation, 14.0f));\n renderCamera();\n }", "private void addCurrentMarker(double lat, double lon) {\n mLatLng = new LatLng(lat, lon);\n marker_inter = map.addMarker(new MarkerViewOptions()\n .position(mLatLng)\n .title(\"Intervention\")\n .snippet(\"Desc inter\")\n .icon(iconUsr));\n run = 1;\n }", "@Override\n\t\t\tpublic void onMapClick(LatLng arg0) {\n\t\t\t\tfinal LatLng location = arg0;\n \tAlertDialog builder = new AlertDialog.Builder(MainActivity.this)\n\t .setMessage(\"Do you want to add your location here?\")\n\t .setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n\t public void onClick(DialogInterface dialog, int id) {\n\t \t setFlag = true;\n\t \t myLocation = location;\n\t \t //use this flag to indicate that we want to see the path from current location or a set point\n\t \t Log.d(\"my location:\", \"\"+myLocation.latitude + myLocation.longitude);\n\t \t if(setFlag == true){\n\t \t\t if(myMarker != null){\n\t\t \t\t myMarker.remove();\n\t\t \t }\n\t\t \t myMarker = mMap.addMarker(new MarkerOptions().position(myLocation).title(\"myLocation\").draggable(true)\n\t\t \t\t\t\t\t\t.icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_BLUE)));\n\t\t \t\t\t\t landmarks.addMarker(\"myLocation\", myMarker);\n\t \t } \n\t }\n\t })\n\t .setNegativeButton(\"Not now\", new DialogInterface.OnClickListener() {\n\t public void onClick(DialogInterface dialog, int id) {\n\t // User cancelled the dialog\n\t }\n\t }).create();\n \tbuilder.show();\n\t\t\t}", "private void addMarker(MapboxMap mapboxMap) {\n MarkerOptions markerOptions = new MarkerOptions();\n\n IconFactory iconFactory = IconFactory.getInstance(LocateDoctorActivity.this);\n Icon icon = iconFactory.fromResource(R.drawable.mapquest_icon);\n\n markerOptions.position(new com.mapbox.mapboxsdk.geometry.LatLng(Double.parseDouble(selectedLat), Double.parseDouble(selectedLong)));\n markerOptions.snippet(\"Selected Location\");\n markerOptions.setIcon(icon);\n mapboxMap.addMarker(markerOptions);\n }", "@Override\n public void onSuccess(Location location) {\n if (location != null) {\n\n\n\n // Logic to handle location object\n MarkerOptions markerOptions = new MarkerOptions().position(new LatLng(location.getLatitude(), location.getLongitude())).title(\"You are Here\").alpha(3);\n Marker currentLocationMarker = mMap.addMarker(markerOptions);\n mMap.moveCamera(CameraUpdateFactory.newLatLng(new LatLng(location.getLatitude(), location.getLongitude())));\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(location.getLatitude(), location.getLongitude()) , 17.0f));//9\n\n }\n }", "private void addMarkerOnMap(double latitude, double longitude) {\n try {\n //System.out.println(\"LAT::: \" + latitude);\n //System.out.println(\"LONG::: \" + longitude);\n mCurrentLocationLat = latitude;\n mCurrentLocationLongitude = longitude;\n if (markerOptions == null)\n markerOptions = new MarkerOptions();\n\n // Creating a LatLng object for the current / new location\n LatLng currentLatLng = new LatLng(latitude, longitude);\n markerOptions.position(currentLatLng).icon(BitmapDescriptorFactory.defaultMarker()).title(\"Current Location\");\n\n if (mapMarker != null)\n mapMarker.remove();\n\n mapMarker = mMap.addMarker(markerOptions);\n\n// if (dlBean.getAddress() != null) {\n// if (!dlBean.getAddress().equals(\"No Location Found\") && !dlBean.getAddress().equals(\"No Address returned\") && !dlBean.getAddress().equals(\"No Network To Get Address\"))\n// mapMarker.setTitle(dlBean.getAddress());\n// }\n\n // Showing the current location in Google Map by Zooming it\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(currentLatLng, 15));\n\n for (TripsheetSOList saleOrder : tripSheetSOList) {\n AgentLatLong agentLatLong = new AgentLatLong();\n double distance;\n\n // We are calculating distance b/w current location and agent location if lat long are not empty\n if (saleOrder.getmTripshetSOAgentLatitude() != null && !saleOrder.getmTripshetSOAgentLatitude().equals(\"\") && saleOrder.getmTripshetSOAgentLongitude() != null && !saleOrder.getmTripshetSOAgentLongitude().equals(\"\")) {\n double agentLatitude = Double.parseDouble(saleOrder.getmTripshetSOAgentLatitude());\n double agentLongitude = Double.parseDouble(saleOrder.getmTripshetSOAgentLongitude());\n\n distance = getDistanceBetweenLocationsInMeters(mCurrentLocationLat, mCurrentLocationLongitude, agentLatitude, agentLongitude);\n\n agentLatLong.setAgentName(saleOrder.getmTripshetSOAgentFirstName());\n agentLatLong.setLatitude(agentLatitude);\n agentLatLong.setLongitude(agentLongitude);\n agentLatLong.setDistance(distance);\n\n agentsLatLongList.add(agentLatLong);\n\n } else {\n distance = 0.0;\n }\n\n saleOrder.setDistance(Math.round(distance / 1000));\n }\n\n // Sorting by distance in descending order i.e. nearest destination\n Collections.sort(agentsLatLongList, new Comparator<AgentLatLong>() {\n @Override\n public int compare(AgentLatLong o1, AgentLatLong o2) {\n return o1.getDistance().compareTo(o2.getDistance());\n }\n });\n\n Collections.sort(tripSheetSOList, new Comparator<TripsheetSOList>() {\n @Override\n public int compare(TripsheetSOList o1, TripsheetSOList o2) {\n return o1.getDistance().compareTo(o2.getDistance());\n }\n });\n\n // to update distance value in list after getting current location details.\n if (mTripsheetSOAdapter != null) {\n mTripsheetSOAdapter.setAllSaleOrdersList(tripSheetSOList);\n mTripsheetSOAdapter.notifyDataSetChanged();\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "private void addMarker() {\n /** Make sure that the map has been initialised **/\n LatLng lt = new LatLng(58.722599, -103.798828);\n float focus = 1f;\n if (null != mMap) {\n ArrayList<EarthQuake> earthQuakes = (ArrayList<EarthQuake>) getIntent().getSerializableExtra(\"quakeArrayList\");\n getIntent().removeExtra(\"quakeArrayList\");\n int position = getIntent().getIntExtra(\"position\", 0);\n if (earthQuakes != null) {\n if(position==0) {\n for (int i = 0; i < earthQuakes.size(); i++) {\n mMap.addMarker(\n new MarkerOptions()\n .visible(true)\n .title(\"Earthquake\")\n .snippet(earthQuakes.get(i).getDateTime() + \"\\n\" + earthQuakes.get(i).getMagnitude() + \"\\n\")\n .position(new LatLng(earthQuakes.get(i).getLat(), earthQuakes.get(i).getLon()))\n );\n }\n }else if(position>0){\n lt=new LatLng(earthQuakes.get(position).getLat(),earthQuakes.get(position).getLon());\n mMap.addMarker( new MarkerOptions()\n .visible(true)\n .title(\"Earthquake\")\n .snippet(earthQuakes.get(position).getDateTime() + \"\\n\" + earthQuakes.get(position).getMagnitude() + \"\\n\")\n .position(new LatLng(earthQuakes.get(position).getLat(), earthQuakes.get(position).getLon())));\n focus=4f;\n\n }\n }\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(lt, focus));\n\n }\n }", "public void addMarker(int iX,int iY,String sLabelJS,String sWorld)\n \t{\n \t\tMarker m=new Marker();\n \t\tm.iX=iX;\n \t\tm.iY=iY;\n \t\tm.sLabelJS=sLabelJS==null ? \"\" : sLabelJS;\n \t\tm.sWorld=sWorld;\n \t\tlMarkers.add(m);\n \t}", "@Override\n public void run() {\n Map<String, Object> m = new HashMap<>();\n m.put(\"mAMapLocation\", \"mAMapLocation\");\n Graphic graphic = new Graphic(tapPoint, m, pinDestinationSymbol);\n\n finalMarkerOverlay.getGraphics().add(graphic);\n }", "private void CreaCoordinate(){\n \n this.punto = new Point(80, 80);\n \n }", "private void addUserMarker(LatLng loc){\n //remove existing marker from map\n if(marker!=null){\n map.removeMarker(marker);\n }\n // Creating marker style. We should use an object of type MarkerStyleCreator, set all features on it\n // and then call buildStyle method on it. This method returns an object of type MarkerStyle\n MarkerStyleBuilder markStCr = new MarkerStyleBuilder();\n markStCr.setSize(30f);\n markStCr.setBitmap(BitmapUtils.createBitmapFromAndroidBitmap(BitmapFactory.decodeResource(getResources(), R.drawable.ic_marker)));\n MarkerStyle markSt = markStCr.buildStyle();\n\n // Creating user marker\n marker = new Marker(loc, markSt);\n\n // Adding user marker to map!\n map.addMarker(marker);\n }", "private void drawMarker(LatLng point) {\n\t\tMarkerOptions markerOptions = new MarkerOptions();\n\t\tmarkerOptions.position(point);\n\t\tmarkerOptions.title(\"Lat:\" + point.latitude + \",\" + \"Lng:\"\n\t\t\t\t+ point.longitude);\n\n\t\t// Adding marker on the Google Map\n\t\tmap.addMarker(markerOptions);\n\t}", "@Override\n public void onMapReady(GoogleMap googleMap)\n {\n // This method is called AFTER the map is loaded from Google Play services\n // At this point the map is ready\n\n // Store the reference to the Google Map in our member variable\n mMap = googleMap;\n // Custom marker (Big Blue one - mymarker.png)\n LatLng myPosition = new LatLng(33.671028, -117.911305);\n\n // Add a custom marker at \"myPosition\"\n mMap.addMarker(new MarkerOptions().position(myPosition).title(\"My Location\").icon(BitmapDescriptorFactory.fromResource(R.drawable.my_marker)));\n\n // Center the camera over myPosition\n CameraPosition cameraPosition = new CameraPosition.Builder().target(myPosition).zoom(15.0f).build();\n CameraUpdate cameraUpdate = CameraUpdateFactory.newCameraPosition(cameraPosition);\n // Move map to our cameraUpdate\n mMap.moveCamera(cameraUpdate);\n\n // Then add normal markers for all the caffeine locations from the allLocationsList.\n // Set the zoom level of the map to 15.0f\n\n // Now, let's plot each Location form the list with a standard marker\n for (Location location : allLocationsList)\n {\n LatLng caffeineLocation = new LatLng(location.getLatitude(), location.getLongitude());\n mMap.addMarker(new MarkerOptions().position(caffeineLocation).title(location.getName()));\n }\n\n }", "@Override\n public void onMapClick(LatLng latLng) {\n AlertDialog.Builder builder = new AlertDialog.Builder(MapsActivity.this);\n //Set the title of the dialog.\n builder.setTitle(\"Create a new Marker\");\n\n final LatLng markerPoint = latLng;\n\n // Set up the input\n final EditText input = new EditText(MapsActivity.this);\n // Specify the type of input expected; this, for example, sets the input as a password, and will mask the text\n input.setInputType(InputType.TYPE_CLASS_TEXT);\n builder.setView(input);\n\n // Set up the buttons\n builder.setPositiveButton(\"Create\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n //Create a new marker with the Latitude and Longitude of the click event.\n MarkerOptions marker = new MarkerOptions().position(\n new LatLng(markerPoint.latitude, markerPoint.longitude)).title(input.getText().toString());\n mMap.addMarker(marker);\n }\n });\n builder.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n //Cancel\n dialog.cancel();\n }\n });\n\n builder.show();\n\n }", "private Marker createMarker(final int a, final String id1, String lat, String lng, final String title) {\n\n mMarkerMap.put(marker, a);\n mMarkerMap1.put(marker, title);\n\n Log.e(\"Data\", \"\" + lat + \"-->>>>\" + lng + \"--->>\" + title);\n\n if (a == 999999999) {\n\n marker = googleMap.addMarker(new MarkerOptions()\n .position(new LatLng(Double.valueOf(lat), Double.valueOf(lng))).title(title)\n .anchor(0.5f, 0.5f));\n\n } else if (getIntent().getStringExtra(\"placetype\").equalsIgnoreCase(\"Hospitals\")) {\n\n BitmapDescriptor icon = BitmapDescriptorFactory.fromResource(R.drawable.hosp);\n\n marker = googleMap.addMarker(new MarkerOptions()\n .position(new LatLng(Double.valueOf(lat), Double.valueOf(lng))).title(title).icon(icon)\n .anchor(0.5f, 0.5f));\n\n\n } else if (getIntent().getStringExtra(\"placetype\").equalsIgnoreCase(\"Fire_stations\")) {\n\n BitmapDescriptor icon = BitmapDescriptorFactory.fromResource(R.drawable.fire11515);\n marker = googleMap.addMarker(new MarkerOptions()\n .position(new LatLng(Double.valueOf(lat), Double.valueOf(lng))).title(title).icon(icon)\n .anchor(0.5f, 0.5f));\n\n\n } else if (getIntent().getStringExtra(\"placetype\").equalsIgnoreCase(\"Police Stations\")) {\n\n BitmapDescriptor icon = BitmapDescriptorFactory.fromResource(R.drawable.police55);\n marker = googleMap.addMarker(new MarkerOptions()\n .position(new LatLng(Double.valueOf(lat), Double.valueOf(lng))).title(title).icon(icon)\n .anchor(0.5f, 0.5f));\n\n }\n\n marker.showInfoWindow();\n\n return marker;\n\n }", "@Override\n public void onLocationChanged(Location location) {\n drawUserMarker(location);\n }", "@Override\n public void run() {\n LatLng myLoc = new LatLng(myLatitude, myLongitude);\n myMarker.setPosition(myLoc);\n }", "private void markerForGeofence(LatLng latLng)\n {\n Log.e(\"TAGtag\", \"markerForGeofence(\" + latLng + \")\");\n String title = latLng.latitude + \", \" + latLng.longitude;\n Log.e(\"TAGtag\", \"\"+title);\n // Define marker options\n MarkerOptions markerOptions = new MarkerOptions()\n .position(latLng)\n .icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_GREEN))\n .title(title);\n if ( mMap!=null )\n {\n // Remove last geoFenceMarker\n if (geoFenceMarker != null)\n {\n geoFenceMarker.remove();\n }\n\n\n geoFenceMarker = mMap.addMarker(markerOptions);\n //geoFenceMarker = mMap.addMarker(markerOptions);\n }\n\n }", "public void displayMyCoords(TextView txtCoord, MarkerOptions markerOptions, DecimalFormat formater, double myLatitude, double myLongitude) {\n txtCoord.setText(\"Your Coordinates: \" + formater.format(myLatitude) + \"° N\" + \", \" + formater.format(myLongitude) + \"° W\");\n LatLng userCoords = new LatLng(myLatitude, myLongitude);\n gMap.addMarker(new MarkerOptions()\n .position(userCoords)\n .title(\"Your Coordinates: \" + formater.format(myLatitude) + \"° N\" + \", \" + formater.format(myLongitude) + \"° W\"));\n gMap.animateCamera(CameraUpdateFactory.newLatLngZoom(userCoords, 15));\n }", "private void addCrimeMarker(Crime c){\n LatLng coor = new LatLng(c.Lat, c.Long);\n Marker crime_marker = mMap.addMarker(new MarkerOptions()\n .position(coor));\n c.marker = crime_marker;\n if(c.marker == null){\n Log.i(TAG, \"weee gotta nulllll marker!!!!\");\n }\n c.setVisable(true);\n Log.i(TAG, \"MockCrime:\" + c.offense + \" @ \" + c.address + \" PLOTTED\");\n }", "public static void setMarker() {\n\t\tfor (Picture p : pictures) {\n\t\t\tif (p.getLon() < 200 && p.getLat() < 200) {\n\t\t\t\tMarker myMarker = mMap.addMarker(\n\t\t\t\t\t\tnew MarkerOptions()\n\t\t\t\t\t\t\t\t.position(new LatLng(p.getLat(), p.getLon()))\n\t\t\t\t\t\t\t\t.visible(true)\n\t\t\t\t\t\t//.icon(BitmapDescriptorFactory.fromResource(R.drawable.ic_brightness_1_black_24dp))\n\t\t\t\t);\n\t\t\t\tmarkers.put(myMarker, p);\n\t\t\t}\n\t\t}\n\t}", "public Marker createMarker(double latitude, double longitude, final String storeImg, String name, String description, String contact_number, String opening_time, String closing_time_store, ArrayList<Store_img_item> store_img_items, ArrayList<StoreItem> store_item) {\n this.name = name;\n this.contact_number = contact_number;\n this.opening_time_store = opening_time;\n this.closing_time_store = closing_time_store;\n this.store_img_item = store_img_items;\n\n //Log.e(\"store\", String.valueOf(store_item.size()));\n store_img_item = new ArrayList<>();\n mMarker = mMap.addMarker(new MarkerOptions()\n .position(new LatLng(latitude, longitude))\n .snippet(description)\n .icon(BitmapDescriptorFactory.fromResource(R.drawable.c_marker))\n .title(name));\n mMarker.setTag(store_img_items);\n //store_img_item = (ArrayList<Store_img_item>) mMarker.getTag();\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(latitude, longitude), 15));\n\n return mMarker;\n }", "@Override\n public void onSuccess(Location location) {\n if (location != null)\n {\n // Logic to handle location object\n SetMarkerOnMap(location.getLatitude(),location.getLongitude(), BitmapDescriptorFactory.HUE_MAGENTA);\n }\n }", "private void showPoints() {\n\t\tMarkerOptions options = new MarkerOptions();\n\n\t\tfor (Integer i = 0; i < markerPoints.size(); i++) {\n\t\t\tLatLng point = markerPoints.get(i);\n\n\t\t\t// Setting the position of the marker\n\t\t\toptions.position(point);\n\n\t\t\t// Setting title for the MarkerOptions\n\t\t\toptions.title(names.get(i));\n\t\t\t// Setting snippet for the MarkerOptions\n\t\t\toptions.snippet(\"Latitude:\" + point.latitude + \",Longitude: \"\n\t\t\t\t\t+ point.longitude);\n\n\t\t\tif (statusVal == 0) {\n\n\t\t\t\toptions.icon(BitmapDescriptorFactory\n\t\t\t\t\t\t.defaultMarker(BitmapDescriptorFactory.HUE_AZURE));\n\n\t\t\t} else {\n\t\t\t\toptions.icon(BitmapDescriptorFactory\n\t\t\t\t\t\t.defaultMarker(BitmapDescriptorFactory.HUE_GREEN));\n\n\t\t\t}\n\n\t\t\t// Add new marker to the Google Map Android API V2\n\t\t\tgMmap.addMarker(options);\n\n\t\t\t// Creating CameraUpdate object for position\n\t\t\tCameraUpdate updatePosition = CameraUpdateFactory.newLatLngZoom(\n\t\t\t\t\tpoint, 15);\n\n\t\t\t// Applying zoom to the marker position\n\t\t\tgMmap.animateCamera(updatePosition);\n\t\t}\n\n\t}", "public FaithMarker(int position) {\r\n this.position = position;\r\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n MarkerOptions marker = new MarkerOptions().position(\n new LatLng(markerPoint.latitude, markerPoint.longitude)).title(input.getText().toString());\n mMap.addMarker(marker);\n }", "@Override\n public void onMapClick(LatLng latLng) {\n MarkerOptions markerOptions = new MarkerOptions();\n\n //Set position of market\n\n\n //markerOptions.position(latLng);\n markerOptions.position(defaultLocation);\n //set title marker\n markerOptions.title(defaultLocation.latitude + \": \" + defaultLocation.longitude);\n\n //removeall markers\n // googleMap.clear();\n //Animating to zoom the marker\n googleMap.animateCamera(CameraUpdateFactory.newLatLngZoom(\n defaultLocation, 10\n ));\n //Add marker on map\n googleMap.addMarker(markerOptions);\n\n\n\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n// LatLng sydney = new LatLng(-34, 151);\n// mMap.addMarker(new MarkerOptions().position(sydney).title(\"Marker in Sydney\"));\n// mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n\n for(int i=0; i<coordinatesStringList.length; i+=2){\n pont = new LatLng(Double.parseDouble(coordinatesStringList[i]), Double.parseDouble(coordinatesStringList[i+1]));\n latLngList.add(pont);\n MarkerOptions markerOptions=new MarkerOptions();\n mMap.addMarker(new MarkerOptions().position(pont).title(\"Marker in Sydney\").icon(BitmapDescriptorFactory.fromResource(R.drawable.pin)));\n\n// mMap.setOnMarkerClickListener(new GoogleMap.OnMarkerClickListener() {\n// @Override\n// public boolean onMarkerClick(Marker marker) {\n// Geocoder geocoder = new Geocoder(this, Locale.getDefault());\n// ArrayList<String> addresses = geocoder.getFromLocation(marker.getPosition().latitude(), marker.getPosition().longitude(), 1); //1 num of possible location returned\n// String address = addresses.get(0).getAddressLine(0); //0 to obtain first possible address\n// String city = addresses.get(0).getLocality();\n// String state = addresses.get(0).getAdminArea();\n// String country = addresses.get(0).getCountryName();\n// String postalCode = addresses.get(0).getPostalCode();\n// //create your custom title\n// String title = address +\"-\"+city+\"-\"+state;\n// marker.setTitle(title);\n// marker.showInfoWindow();\n// return true;\n// }\n// });\n }\n\n\n PolylineOptions polylineOptions = new PolylineOptions();\n\n// Create polyline options with existing LatLng ArrayList\n polylineOptions.addAll(latLngList);\n polylineOptions\n .width(5)\n .color(Color.RED);\n\n// Adding multiple points in map using polyline and arraylist\n // mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n mMap.addPolyline(polylineOptions);\n }", "public void setStartMarker() {\n if (startLocation != null) {\n preferencesManager.putStringValue(\"STARTLATITUDE\", startLocation.latitude + \"\");\n preferencesManager.putStringValue(\"STARTLONGITUDE\", startLocation.longitude + \"\");\n if (mMarkerStartLocation != null) {\n mMarkerStartLocation.remove();\n }\n iconMarker = BitmapFactory.decodeResource(\n mainActivity.getResources(), R.drawable.ic_position_a);\n iconMarker = Bitmap.createScaledBitmap(iconMarker,\n iconMarker.getWidth(), iconMarker.getHeight(),\n false);\n mMarkerStartLocation = mMap.addMarker(new MarkerOptions().position(\n startLocation).icon(\n BitmapDescriptorFactory.fromBitmap(iconMarker)));\n showDirection();\n }\n }", "@Override\n public void onLocationChanged(Location location) {\n LatLng miUbicacion = new LatLng(location.getLatitude(), location.getLongitude());\n\n //Marcador de la ub. actual\n mMap.addMarker(new MarkerOptions().position(miUbicacion).title(\"Ubicación actual\").icon(BitmapDescriptorFactory.fromResource(R.drawable.marca3)));\n\n //Foco de la camara según la ubicación\n mMap.moveCamera(CameraUpdateFactory.newLatLng(miUbicacion));\n CameraPosition cameraPosition = new CameraPosition.Builder()\n .target(miUbicacion)\n .zoom(14)\n .bearing(90)\n .tilt(45)\n .build();\n mMap.animateCamera(CameraUpdateFactory.newCameraPosition(cameraPosition));\n\n }", "private void drawMarkers () {\n // Danh dau chang chua di qua\n boolean danhDauChangChuaDiQua = false;\n // Ve tat ca cac vi tri chang tren ban do\n for (int i = 0; i < OnlineManager.getInstance().mTourList.get(tourOrder).getmTourTimesheet().size(); i++) {\n\n TourTimesheet timesheet = OnlineManager.getInstance().mTourList.get(tourOrder).getmTourTimesheet().get(i);\n // Khoi tao vi tri chang\n LatLng position = new LatLng(timesheet.getmBuildingLocation().latitude, timesheet.getmBuildingLocation().longitude);\n // Thay doi icon vi tri chang\n MapNumberMarkerLayoutBinding markerLayoutBinding = DataBindingUtil.inflate(getLayoutInflater(), R.layout.map_number_marker_layout, null, false);\n // Thay doi so thu tu timesheet\n markerLayoutBinding.number.setText(String.valueOf(i + 1));\n // Thay doi trang thai markup\n // Lay ngay cua tour\n Date tourDate = OnlineManager.getInstance().mTourList.get(tourOrder).getmDate();\n // Kiem tra xem ngay dien ra tour la truoc hay sau hom nay. 0: hom nay, 1: sau, -1: truoc\n int dateEqual = Tour.afterToday(tourDate);\n // Kiem tra xem tour da dien ra chua\n if (dateEqual == -1) {\n // Tour da dien ra, thay doi mau sac markup thanh xam\n markerLayoutBinding.markerImage.setColorFilter(Color.GRAY, PorterDuff.Mode.SRC_ATOP);\n } else if (dateEqual == 1) {\n // Tour chua dien ra, thay doi mau sac markup thanh vang\n markerLayoutBinding.markerImage.setColorFilter(Color.YELLOW, PorterDuff.Mode.SRC_ATOP);\n } else {\n // Kiem tra xem chang hien tai la truoc hay sau gio nay. 0: gio nay, 1: gio sau, -1: gio truoc\n int srcStartEqual = Tour.afterCurrentHour(timesheet.getmStartTime());\n int srcEndEqual = Tour.afterCurrentHour(timesheet.getmEndTime());\n if(srcStartEqual == 1){\n // Chang chua di qua\n if (danhDauChangChuaDiQua == true) {\n // Neu la chang sau chang sap toi thi chuyen thanh mau mau vang\n markerLayoutBinding.markerImage.setColorFilter(Color.YELLOW, PorterDuff.Mode.SRC_ATOP);\n } else {\n // Neu la chang ke tiep thi giu nguyen mau do\n danhDauChangChuaDiQua = true;\n }\n } else if(srcStartEqual == -1 && srcEndEqual == 1){\n // Chang dang di qua\n markerLayoutBinding.markerImage.setColorFilter(Color.BLUE, PorterDuff.Mode.SRC_ATOP);\n } else{\n // Chang da di qua\n markerLayoutBinding.markerImage.setColorFilter(Color.GRAY, PorterDuff.Mode.SRC_ATOP);\n }\n }\n // Marker google map\n View markerView = markerLayoutBinding.getRoot();\n // Khoi tao marker\n MarkerOptions markerOptions = new MarkerOptions()\n .draggable(false)\n .title(timesheet.getmBuildingName() + '-' + timesheet.getmClassroomName())\n .position(position)\n .icon(BitmapDescriptorFactory.fromBitmap(getMarkerBitmapFromView(markerView)));\n if (timesheet.getmClassroomNote() != null && !timesheet.getmClassroomNote().equals(\"\") && !timesheet.getmClassroomNote().equals(\"null\")) {\n markerOptions.snippet(timesheet.getmClassroomNote());\n }\n mMap.addMarker(markerOptions);\n // add marker to the array list to display on AR Camera\n markerList.add(markerOptions);\n // Goi su kien khi nhan vao tieu de marker\n mMap.setOnInfoWindowClickListener(new GoogleMap.OnInfoWindowClickListener() {\n @Override\n public void onInfoWindowClick(Marker marker) {\n // TODO: Chuyen sang man hinh thong tin chang khi nhan vao tieu de chang\n openTimesheetInfo(marker.getTitle());\n }\n });\n }\n }", "private int addMarkerToMap(Double lat, Double lng, int id, float hue, String title,\n String snippet, boolean draggable) {\n // what if there are too many markers on Google Map ?\n // TODO: https://code.google.com/p/android-maps-extensions/\n Log.i(TAG, \"@addMarkerToMap\");\n LatLng latlng = new LatLng(lat, lng);\n Marker marker = mMap.addMarker(new MarkerOptions()\n .position(latlng)\n .icon(BitmapDescriptorFactory.defaultMarker(hue)));\n\n if (!title.isEmpty()){\n marker.setTitle(title);\n }\n if (!snippet.isEmpty()){\n marker.setSnippet(snippet);\n }\n marker.setDraggable(draggable);\n\n markers.put(marker, id);\n return id;\n }", "@Override\n public void onLocationChanged(Location location) {\n double latitude = location.getLatitude();\n double longitude = location.getLongitude();\n LatLng meuLocal = new LatLng(latitude, longitude);\n\n if(markerLocalizacaoUsuario != null)\n markerLocalizacaoUsuario.remove();\n markerLocalizacaoUsuario = mapa.addMarker(new MarkerOptions()\n .position(meuLocal)\n .title(\"Você está aqui!\")\n .flat(true) //alinha ao norte o marcador, mesmo que gire o mapa\n .icon(bitmapDescriptorFromVector(MapaLocalActivity.this,R.drawable.marker_usuario_nav))\n //.icon(BitmapDescriptorFactory.fromResource(R.drawable.usuario))\n .anchor(0.5f, 0.5f));\n markerLocalizacaoUsuario.setTag(TipoLocal.MARKER_USER.getTipo());\n markerLocalizacaoUsuario.setRotation(location.getBearing());\n\n\n if (locUsuario == null) {\n getZoomAtual();\n mapa.animateCamera(CameraUpdateFactory.newLatLngZoom(meuLocal, getZoomAtual()), 500, null);\n }\n locUsuario = meuLocal;\n //Log.d(TAG, \"Changed: \"+ latitude +\" / \"+longitude + \" --> \"+location.getBearing());\n }", "@Override\n public void onMapLongClick(@NonNull LatLng point) {\n latitude = String.valueOf(point.getLatitude());\n longitude = String.valueOf(point.getLongitude());\n mapboxMap.addMarker(new MarkerOptions()\n .position(point)\n .title(\"New Maintenance Form\")\n .snippet(\"Click to add site\")\n );\n\n\n }", "private void showMarker(Double lat, Double lng, String title) {\n mMap.addMarker(new MarkerOptions()\n .position(new LatLng(lat, lng))\n .title(title));\n }", "@Override\n public void onMapClick(LatLng latLng) {\n map.addMarker(new MarkerOptions().position(latLng));\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n mMap.setMapType(GoogleMap.MAP_TYPE_HYBRID);\n final LatLng latLng = new LatLng(latitude, longitude);\n mMap.addCircle(new CircleOptions()\n .center(latLng)\n .radius(75)\n .strokeWidth(2f));\n CameraUpdate center=\n CameraUpdateFactory.newLatLng(latLng);\n CameraUpdate zoom=CameraUpdateFactory.zoomTo(21);\n\n mMap.moveCamera(center);\n mMap.animateCamera(zoom);\n Marker mark= mMap.addMarker(new MarkerOptions()\n .position(latLng)\n .title(\"I'm here...\")\n .snippet(\"Its My Location\")\n .rotation((float) -15.0)\n .icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_RED)));\n\n Tmarker=mMap.addMarker(new MarkerOptions()\n .snippet(tuition_id)\n .rotation((float)12.0)\n .icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_ORANGE))\n .position(new LatLng(lat,lan)));\n\n\n\n mMap.setOnMapClickListener(new GoogleMap.OnMapClickListener() {\n @Override\n public void onMapClick(LatLng latLng) {\n if(marker!=null) {\n marker.remove();\n }\n marker=mMap.addMarker(new MarkerOptions()\n .snippet(\"My Home\")\n .rotation((float)0.0)\n .icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_BLUE))\n .position(latLng));\n }\n });\n\n//.fillColor(0x55ffff99));\n // Add a marker in Sydney and move the camera\n /*LatLng sydney = new LatLng(-34, 151);\n mMap.addMarker(new MarkerOptions().position(sydney).title(\"Marker in Sydney\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));*/\n\n }", "public void addCurrentLocationMarker(GoogleMap mMap, LatLng coordinates,Context context){\n if (lastMarker!=null) lastMarker.remove();\n MarkerOptions markerOptions=new MarkerOptions();\n markerOptions.position(coordinates);\n\n markerOptions.icon(bitmapDescriptorFromVector(context,R.drawable.ic_current_location));\n lastMarker=mMap.addMarker(markerOptions);\n animate(mMap,coordinates);\n\n }", "private void addMarker( LatLng point ) {\n \t\tthis.markers.add( this.googleMap.addMarker( this.makeMarkerAt( point ) ) );\n \t}", "@Override\n public void newTweet(double lat, double lon, String title) {\n GoogleMaps.setMarker(browser, lat, lon, title, \"tweet\");\n }", "private void writeActualLocation(Location location)\n {\n //textLat.setText( \"Lat: \" + location.getLatitude() );\n //textLong.setText( \"Long: \" + location.getLongitude() );\n //T.t(MapsActivity.this, \"\" + \"Lat: \" + location.getLatitude() + \"\" + \"Long: \" + location.getLongitude());\n markerLocation(new LatLng(location.getLatitude(), location.getLongitude()));\n }", "protected abstract void setMarkers();", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n\n\n String[] xy = new String[]{\"37.221900\",\"127.18800\",\"37.221804\",\"127.186695\",\"37.220000\",\"127.186666\"};\n\n ArrayList<LatLng> loc=new ArrayList<LatLng>();\n\n int count = 1;\n for (int i=0;i<xy.length;i++){\n\n double tmp = Double.parseDouble(xy[i]);\n double tmp2 = Double.parseDouble(xy[++i]);\n\n\n LatLng latLng = new LatLng(tmp, tmp2);\n\n loc.add(latLng);\n\n\n mMap.addMarker(new MarkerOptions().position(latLng).title(\"Pin\"+count).icon(BitmapDescriptorFactory.fromResource(R.drawable.ic_pin_purple)));\n count++;\n }\n\n\n\n mMap.moveCamera(CameraUpdateFactory.newLatLng(loc.get(loc.size()-1)));\n\n\n// // 서울 위치\n// LatLng seoul = new LatLng(37.566535, 126.97796919);\n// mMap.addMarker(new MarkerOptions().position(seoul).title(\"Marker in Seoul\"));\n//\n// // 명지대 위치 추가\n// LatLng MJU = new LatLng(37.221804, 127.186695);\n// mMap.addMarker(new MarkerOptions()\n// .position(MJU)\n// .title(\"명지대\"));\n//\n// //핀 연결 확인용 좌표 추가\n// LatLng MJU2 = new LatLng(37.220000, 127.186666);\n// mMap.addMarker(new MarkerOptions()\n// .position(MJU2)\n// .title(\"명지대2\"));\n// mMap.moveCamera(CameraUpdateFactory.newLatLng(MJU2));\n\n // 카메라 줌\n mMap.animateCamera(CameraUpdateFactory.zoomTo(17.0f));\n\n // 인포 윈도우 클릭시 전화 걸기 -> 뭔가 게시물 쓸때 쓸수있을거 같아서 남겨둠\n mMap.setOnInfoWindowClickListener(new GoogleMap.OnInfoWindowClickListener() {\n @Override\n public void onInfoWindowClick(Marker marker) {\n Intent intent = new Intent(Intent.ACTION_DIAL);\n intent.setData(Uri.parse(\"tel:0312365043\"));\n if (intent.resolveActivity(getPackageManager()) != null) {\n startActivity(intent);\n }\n }\n });\n\n //arraylist 다시 배열에 넣는거 아직 않마 까먹ㅇ멋어ㅏ\n LatLng[] line = {\n loc.get(0),loc.get(1),loc.get(2)\n };\n //좌표끼리 선 긋기 좌표가 추가 될때마다 새로운 선을 만들어야 하나.. 아니면 그냥 좌표하나씩 추가해야하나 고민\n //일단 좌표에 들어온 순서로 선이 그어짐 -> 시간별로 추가할수 있도록 해야 함\n\n\n //좌표 두개마다 각각의 polyline을 생성해야 각각 화살표로 나올수 있음\n //for문 사용해서 polyline 만들어보기\n// for(int i=0; i<line.length;){\n// Polyline polyline1 = googleMap.addPolyline(new PolylineOptions()\n// .clickable(true)\n// .add( line[i], line[++i]\n// ) .width(10)\n//\n// .geodesic(true));\n//\n//\n// }\n\n\n Polyline polyline1 = googleMap.addPolyline(new PolylineOptions()\n .clickable(true)\n .add( line\n ) .width(10)\n\n .geodesic(true));\n\n polyline1.setEndCap(new CustomCap(BitmapDescriptorFactory.fromResource(R.drawable.ic_arrow), 15));\n polyline1.setStartCap(new CustomCap(BitmapDescriptorFactory.fromResource(R.drawable.ic_circle), 15));\n\n\n\n googleMap.setOnPolylineClickListener(this);\n googleMap.setOnPolygonClickListener(this);\n\n\n\n }", "public MarkerOverlay drawMarker(Point point, Color outer, Color inner, AlphaMode mode);", "public void markerCreator(List<Employee>employeeArray) {\n\n employeeArrayforData= employeeArray;\n List<MarkerOptions> markers = new ArrayList<MarkerOptions>();\n for (int i = 0; i < employeeArray.size(); i++) {\n if(employeeArray.get(i).lastLocation.isEmpty())\n continue;\n// markers.add((new MarkerOptions()\n// .position(new LatLng(LatLong.getLat(employeeArray.get(i).lastLocation.replace(\": (\",\":(\")),\n// LatLong.getLongt(employeeArray.get(i).lastLocation.replace(\": (\",\":(\"))))\n// .title(employeeArray.get(i).name)));\n// updateMyMarkers(markers);\n Log.i(\"****\",employeeArray.get(i).lastLocation);\n Log.i(\"****\",\"hi\");\n if (employeeArray.get(i).online)\n\n {\n markers.add((new MarkerOptions()\n .position(new LatLng(LatLong.getLat(employeeArray.get(i).lastLocation),\n LatLong.getLongt(employeeArray.get(i).lastLocation)))\n .title(i+\":\"+employeeArray.get(i).name))\n .snippet((\"Rate = \"+employeeArray.get(i).rate+\",\"+employeeArray.get(i).email\n )).alpha(0.9f).icon(BitmapDescriptorFactory.fromResource(R.drawable.ic_picker_green)));\n\n }\n else{\n markers.add((new MarkerOptions()\n .position(new LatLng(LatLong.getLat(employeeArray.get(i).lastLocation),\n LatLong.getLongt(employeeArray.get(i).lastLocation)))\n .title(i+\":\"+employeeArray.get(i).name))\n .snippet((\"Rate = \"+employeeArray.get(i).rate+\"\"+employeeArray.get(i).email\n )).alpha(0.1f).icon(BitmapDescriptorFactory.fromResource(R.drawable.ic_picker_red)));\n }\n\n updateMyMarkers(markers);\n }\n }", "public boolean createMarker(ArrayList<LocationsData>datas) {\n\n boolean isNotEmpty= true;\n if (isNotEmpty) {\n placesMarker= placesMap.addMarker(new MarkerOptions()\n .position(new LatLng(datas.get(0).locationLatitude,datas.get(0).locationLongitude))\n .title(datas.get(0).locationName));\n placesMarker.showInfoWindow();\n placesMap.setOnMarkerClickListener(new GoogleMap.OnMarkerClickListener() {\n @Override\n public boolean onMarkerClick(Marker marker) {\n Log.i(\"Places Marker\",marker.getTitle()+\"\\n\"+places.toString());\n\n LocationsData data= new LocationsData();\n data.set_id(places.get(0).get_id());\n data.setImage_path(places.get(0).getImage_path());\n data.setLocationName(places.get(0).getLocationName());\n data.setLocationLatitude(places.get(0).getLocationLatitude());\n data.setLocationLongitude(places.get(0).getLocationLongitude());\n data.setLocationProducts(places.get(0).getLocationProducts());\n\n Intent i= new Intent(MainActivity.this,PlaceDetailsActivity.class);\n i.putExtra(\"places\",data);\n startActivity(i);\n\n Log.i(\"Intent\",i.toString());\n Log.i(\"onMarkerClick\",\"Successfull, Title: \"+marker.getTitle());\n Log.i(\"Getting Item Id\",String.valueOf(places.get(0).get_id()));\n return false;\n }\n });\n }else {\n isNotEmpty=false;\n }\n return isNotEmpty;\n }", "@Override\n \tpublic void onMapClick(final LatLng point) \n \t{\n \t\t\n \t\t AlertDialog.Builder builder = new AlertDialog.Builder(CrearIncidenteGPS.this);\n \t\t builder.setMessage(\"Desea agregar un incidente en este lugar?\")\n \t\t .setCancelable(false)\n \t\t .setPositiveButton(\"Si\", new DialogInterface.OnClickListener() \n \t\t {\n \t\t public void onClick(DialogInterface dialog, int id) \n \t\t {\n \t\t \t//Agregar el incidente\n// \t\t \tlstLatLngs.add(point);\n \t\t \tinsertarIncidente(point);\n// \t\t \tgMap.addMarker(new MarkerOptions().position(point));\n \t\t }\n \t\t })\n \t\t .setNegativeButton(\"No\", new DialogInterface.OnClickListener() \n \t\t {\n \t\t public void onClick(DialogInterface dialog, int id) \n \t\t {\n \t\t dialog.cancel();\n \t\t }\n \t\t });\n \t\t AlertDialog alert = builder.create();\n \t\t alert.show();\n \t\t\n \t}", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED){\n mMap.setMyLocationEnabled(true);\n }\n LatLng latLng = new LatLng(currentLocation.getLatitude(),currentLocation.getLongitude());\n MarkerOptions markerOptions = new MarkerOptions().position(latLng).title(\"You are Here\")\n .icon(BitmapDescriptorFactory.fromResource(R.drawable.pin1));\n googleMap.animateCamera(CameraUpdateFactory.newLatLngZoom(latLng,16));\n if (CurrentMark!=null)\n CurrentMark.remove();\n CurrentMark=googleMap.addMarker(markerOptions);\n intial();\n\n }", "public void placeMarker(String zone_name,String risk_level, String latitude, String longitude,String description,String markertime){\n double latitudeNumericVal = Double.valueOf(latitude);\n double longitudeNumericVal = Double.valueOf(longitude);\n\n String timePosted = markertime.substring(0,16);\n\n LatLng coordinates = new LatLng(latitudeNumericVal,longitudeNumericVal);\n System.out.println(\"RISK LEVELS ARE: \" + risk_level);\n if(risk_level.contains(\"Low\")){\n CircleOptions circleOptions = new CircleOptions();\n circleOptions.center(coordinates);\n circleOptions.radius(250);\n circleOptions.strokeColor(Color.parseColor(\"#e0ee20\"));\n circleOptions.fillColor(Color.parseColor(\"#20e0ee20\"));\n circleOptions.strokeWidth(3f);\n // Adding the circle to the GoogleMap\n mMap.addCircle(circleOptions);\n final MarkerOptions dangerMarker = new MarkerOptions().position(coordinates).title(zone_name);\n // MarkerOptions dangerMarker = new MarkerOptions().position(coordinates).title(zone_name).icon(BitmapDescriptorFactory.fromResource(R.drawable.yellowradius));\n dangerMarker.snippet(\"Low Danger:\\n\" + description + \"\\n\" + timePosted);\n mMap.addMarker(dangerMarker);\n }\n\n if (risk_level.contains(\"Medium\")) {\n CircleOptions circleOptions = new CircleOptions();\n circleOptions.center(coordinates);\n circleOptions.radius(500);\n circleOptions.strokeColor(Color.parseColor(\"#FF9700\"));\n circleOptions.fillColor(Color.parseColor(\"#20FF9700\"));\n circleOptions.strokeWidth(3f);\n\n // Adding the circle to the GoogleMap\n mMap.addCircle(circleOptions);\n\n MarkerOptions dangerMarker = new MarkerOptions().position(coordinates).title(zone_name);\n\n dangerMarker.snippet(\"Medium Danger:\\n\" + description + \"\\n\" + timePosted);\n // dangerMarker.visible(false);\n mMap.addMarker(dangerMarker);\n }\n\n if(risk_level.contains(\"High\")) {\n CircleOptions circleOptions = new CircleOptions();\n circleOptions.center(coordinates);\n circleOptions.radius(750);\n circleOptions.strokeColor(Color.parseColor(\"#cc0000\"));\n circleOptions.fillColor(Color.parseColor(\"#20cc0000\"));\n circleOptions.strokeWidth(3f);\n\n mMap.addCircle(circleOptions);\n\n MarkerOptions dangerMarker = new MarkerOptions().position(coordinates).title(zone_name);\n\n dangerMarker.snippet(\"High Danger:\\n\" + description + \"\\n\" + timePosted);\n\n mMap.addMarker(dangerMarker);\n\n /**\n * Check current Date and see if any of the high danger zones were posted within the hour\n */\n Date currentDate = new Date();\n String currentDateString = currentDate.toString();\n\n String markerHourComparator = markertime.substring(11,14);\n if(currentDateString.contains(markerHourComparator)) {\n displayHighDZDialog(markertime,latitudeNumericVal,longitudeNumericVal);\n }\n\n System.out.println(markerHourComparator);\n //Toast.makeText(MapsActivity.this, \"High Danger Zone Added!\", Toast.LENGTH_LONG).show();\n }\n\n }", "@Override\n public void onMapLongClick(LatLng point){\n location = new cLocation(point, this);\n\n //Open a dialog for the user to allow the user to set the name for the saved location\n DialogFragment dialog = new AddLocationDialog();\n dialog.show(getFragmentManager(), getText(R.string.map_ask_add).toString());\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n mMap.getUiSettings().setZoomControlsEnabled(true);\n// // Add a marker in Sydney and move the camera\n// LatLng sydney = new LatLng(-34, 151);\n// mMap.addMarker(new MarkerOptions().position(sydney).title(\"Marker in Sydney\"));\n// mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(sydney, 14.0f));\n mMap.addMarker(new MarkerOptions().position(center).title(title));\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(center, 14.0f));\n//\n Log.i(\"tag\", otherPoints.size() + \"\");\n for (LatLng p : otherPoints) {\n BitmapDescriptor icon = BitmapDescriptorFactory.fromResource(R.drawable.baseline_album_black_18);\n mMap.addMarker(new MarkerOptions()\n .position(new LatLng(p.latitude, p.longitude))\n .title(\"\")\n .icon(icon));\n }\n }", "@Override\n\t\tpublic void onLocationChanged(Location location) {\n\t\t\t\n\t\t\tGeoPoint p = new GeoPoint((int) (location.getLatitude() * 1E6), (int) (location.getLongitude() * 1E6));\n\t\t\toverlayHome = new MyOverlayItem(p, getString(R.string.Casa),getString(R.string.HelloCasa));\n\t\t\titemizedoverlay.addOverlay(overlayHome);\n\t\t\tContentValues initialValues = new ContentValues();\n\t\t\tinitialValues.put(Home.LATITUDE, p.getLatitudeE6());\n\t\t\tinitialValues.put(Home.LONGITUDE, p.getLongitudeE6());\n\t\t\tgetContentResolver().insert(Home.CONTENT_URI, initialValues);\n\t\t\tmapView.invalidate();\n\t\t\tmapView.getController().animateTo(p);\n\t\t\tToast.makeText(Map.this, \"Localização Gps\", Toast.LENGTH_SHORT).show();\n\t\t}", "public void generateMarkers() {\n\t\tgooglemap.clear();\n\t\tgooglemap.setMyLocationEnabled(true);\n\t\t//generateRouteLine();\n\t\tdouble itinerary_latitude;\n\t\tdouble itinerary_longitude;\n\t\tString itinerary_name;\n\n\t\tLatLng latlng;\n\t\tmarkers = new ArrayList<Marker>();\n\n\t\t//zoom out to make sure all markers are displayed in screen\n\t\tLatLngBounds.Builder builder = new LatLngBounds.Builder(); \n\t\tbuilder.include(new LatLng(parentActivity.getUserLat(),parentActivity.getUserLon()));\n\n\n\t\tfor( int x=parentActivity.getItinerary().itin.size(); x > 0; x-- ){\n\t\t\tEntity obj = parentActivity.getItinerary().itin.get(x-1);\n\t\t\titinerary_latitude = Double.parseDouble( obj.getLatitude() );\n\t\t\titinerary_longitude = Double.parseDouble( obj.getLongitude() );\n\t\t\titinerary_name = obj.getName();\n\t\t\tlatlng = new LatLng(itinerary_latitude, itinerary_longitude);\n\n\t\t\tint markerImage = supportClassObj.chooseMarkerImage(x);\n\t\t\t\n\t\t\tMarker marker = googlemap.addMarker(new MarkerOptions()\n\t\t\t\t.position(latlng)\n\t\t\t\t.snippet(\"Navigate\")\n\t\t\t\t.title(itinerary_name)\n\t\t\t\t.icon(BitmapDescriptorFactory.fromResource(markerImage)));\n\t\t\t\n\t\t\tmarker.showInfoWindow();\n\t\t\tmarker.hideInfoWindow();\n\n\t\t\tmarkers.add(marker);\n\n\t\t\t//setting bounds for googlemap\n\t\t\tbuilder.include(latlng); \n\t\t}\n\t\t\n\t\tgooglemap.setOnMarkerClickListener(new OnMarkerClickListener(){\n\t\t\t@Override\n\t\t\tpublic boolean onMarkerClick(Marker marker) {\n\t\t\t\t\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t\n\t\t});\n\t\t\n\t\tfor( String leg : parentActivity.getItinerary().getPolyline() ){\n\t\t\thandleGetDirectionsResult(decodePoly(leg));\n\t\t}\n\t\t\n\t\t// multipliers for height based off percentage of screen size map will use\n\t\tint width = this.getResources().getDisplayMetrics().widthPixels;\n\t\tint padding = (int) (width * .145);\n\t\tgooglemap.moveCamera(CameraUpdateFactory.newLatLngBounds(builder.build(), \n width, \n (int)(this.getResources().getDisplayMetrics().heightPixels * 0.8 * 0.6 * 0.8), padding));\n\t\t\n\t}", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n LatLng korea = new LatLng(0,0);\n LatLng busan = new LatLng(ListOfLat[0], ListOfLong[0]);\n mMap.addMarker(new MarkerOptions().position(busan).icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_AZURE)).title(\"Point : 1\"));\n for(int i=1; i<=size; i++){\n korea = new LatLng(ListOfLat[i-1], ListOfLong[i-1]);\n busan = new LatLng(ListOfLat[i], ListOfLong[i]);\n PolylineOptions aa = new PolylineOptions().add(korea).add(busan);\n mMap.addMarker(new MarkerOptions().position(busan).icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_AZURE)).title(\"Point : \"+(i+1)));\n mMap.addPolyline(aa);\n }\n\n mMap.moveCamera(CameraUpdateFactory.newLatLng(busan));\n }", "@SuppressLint(\"MissingPermission\")\r\n public void initLocation(){\r\n //LocationManager.NETWORK_PROVIDER Otra opcion\r\n locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 1000, 2, new LocationListener() {\r\n @Override\r\n public void onLocationChanged(@NonNull Location location) {\r\n LatLng pos = new LatLng(location.getLatitude(), location.getLongitude());\r\n myMarker.setPosition(pos);\r\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(pos, 16));\r\n }\r\n\r\n @Override\r\n public void onStatusChanged(String provider, int status, Bundle extras) {\r\n\r\n }\r\n\r\n @Override\r\n public void onProviderDisabled(@NonNull String provider) {\r\n\r\n }\r\n\r\n @Override\r\n public void onProviderEnabled(@NonNull String provider) {\r\n\r\n }\r\n });\r\n }", "@Override\n public void onLocationResult(LocationResult locationResult) {\n super.onLocationResult(locationResult);\n Log.d(TAG, \"onLocationResult: \");\n if (locationResult != null) {\n Log.d(TAG, \"onLocationResult: loaction!==null\");\n myLocation = locationResult.getLastLocation();\n showMarker();//de show hinh len\n }\n }", "public GraphicsOverlay setLocicon(AMapLocation mAMapLocation, MapView mMapView, GraphicsOverlay mLocationOverlay, String message) {\n if (!isLegalLL(mAMapLocation)) {\n if (!AppTool.isNull(message)) {\n ToastUtils.showToast(message);\n }\n return null;\n }\n if (mLocationOverlay.getGraphics()!=null){\n mLocationOverlay.getGraphics().clear();\n }\n if (pictureLocSymbol == null) {\n pictureLocSymbol = getLocSymbol();\n }\n Gps gpsE = PositionUtil.gcj_To_Gps84(mAMapLocation.getLatitude(), mAMapLocation.getLongitude());\n double lon = gpsE.getWgLon();\n double lat = gpsE.getWgLat();\n QPSWApplication.Locpoint = new Point(lon, lat, SpatialReference.create(4326));\n Graphic graphicimg = new Graphic(QPSWApplication.Locpoint, pictureLocSymbol);\n mLocationOverlay.getGraphics().add(graphicimg);\n if (!mMapView.getGraphicsOverlays().contains(mLocationOverlay)) {\n mMapView.getGraphicsOverlays().add(mLocationOverlay);\n }\n return mLocationOverlay;\n }", "Coordinate createCoordinate();", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n Intent intent = getIntent();\n String title=intent.getStringExtra(\"title\");\n Double lat = intent.getExtras().getDouble(\"latitude\");\n Double lng = intent.getExtras().getDouble(\"longitude\");\n LatLng latLng= new LatLng(lat,lng);\n MarkerOptions markerOptions = new MarkerOptions()\n .position(latLng)\n .title(title)\n .anchor((float) 0.5, (float) 0.5);\n //.snippet(\"Время: \" + MainActivity.time.get(MainActivity.position));\n markerOptions.icon(BitmapDescriptorFactory.fromResource(R.drawable.marker));\n mMap.addMarker(markerOptions);\n mMap.moveCamera(CameraUpdateFactory.newLatLng(latLng));\n }", "public void onLocationChanged(Location location) {\n LatLng latLng = new LatLng(location.getLatitude(), location.getLongitude());\n\n // Add a marker to current location and move the camera\n // LatLng westfieldNJ = new LatLng(40.659, -74.3474);\n mMap.addMarker(new MarkerOptions().position(latLng).title(\"You are here!\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(latLng));\n }", "public GoogleMarker(double l, double lg, String c, String lab, String cat){\r\n\t\tlatitude = l;\r\n\t\tlongitude = lg;\r\n\t\tcolor = c;\r\n\t\tlabel = lab;\r\n\t\tcategory = cat;\r\n\t\t\r\n\t}", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\n if(requestCode == LOCATION_REQUEST && resultCode == RESULT_OK){\n PlaceOfInterest fromAdd = (PlaceOfInterest) data.getSerializableExtra(\"Place\");\n LatLng newLatLong = new LatLng(fromAdd.getLatitude(), fromAdd.getLongitude());\n MarkerOptions placeMarker = new MarkerOptions().position(newLatLong).title(fromAdd.getName())\n .icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_YELLOW));\n if(fromAdd.getPicture() != null){\n Log.d(TAG, \"getPicture was not null\");\n int height = 100;\n int width = 100;\n Bitmap picture = ByteConvertor.convertToBitmap(fromAdd.getPicture());\n BitmapDrawable d = new BitmapDrawable(getResources(), picture);\n Bitmap smallMarker = Bitmap.createScaledBitmap(d.getBitmap(), width, height, false);\n\n placeMarker.icon(BitmapDescriptorFactory.fromBitmap(smallMarker));\n }\n places.add(fromAdd);\n mMap.addMarker(placeMarker);\n mMap.moveCamera(CameraUpdateFactory.newLatLng(newLatLong));\n }\n }", "public LocationPoint(){\n this.mLocationID = UUID.randomUUID();\n }", "private void markerForGeofence(LatLng latLng,int indexPos)\n {\n Log.e(\"TAGtag\", \"markerForGeofence(\" + latLng + \")\");\n String title = latLng.latitude + \", \" + latLng.longitude;\n Log.e(\"TAGtag\", \"\"+title);\n // Define marker options\n MarkerOptions markerOptions = new MarkerOptions()\n .position(latLng)\n .icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_BLUE))\n .title(title);\n if ( mMap!=null )\n {\n // Remove last geoFenceMarker\n if (GEO_FENCE_MARKER[indexPos] != null)\n {\n //geoFenceMarker.remove();\n }\n\n\n GEO_FENCE_MARKER[indexPos] = mMap.addMarker(markerOptions);\n //geoFenceMarker = mMap.addMarker(markerOptions);\n }\n startGeofence(indexPos);\n }", "public static MarkerException markLocation()\n {\n return getInstance().doMarkLocation();\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n DecimalFormat formater = new DecimalFormat(\"#.####\");\n gMap = googleMap;\n LatLng userCoords = new LatLng(myLatitude, myLongitude);\n gMap.addMarker(new MarkerOptions()\n .position(userCoords)\n .title(\"Your Coordinates: \" + formater.format(myLatitude) + \"° N\" + \", \" + formater.format(myLongitude) + \"° W\"));\n gMap.animateCamera(CameraUpdateFactory.newLatLngZoom(userCoords, 15));\n }", "public Marker digitiseMarker(GridPoint gridPoint){\n\n MarkerOptions markerOptions = new MarkerOptions().gridPoint(gridPoint);\n markerOptions.icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_GREEN));\n Marker marker = mMap.addMarker(markerOptions);\n return marker;\n\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n LatLng markerLatLng = mLikelyPlaceLatLngs[which];\n String markerSnippet = mLikelyPlaceAddresses[which];\n if (mLikelyPlaceAttributions[which] != null) {\n markerSnippet = markerSnippet + \"\\n\" + mLikelyPlaceAttributions[which];\n }\n int height = 200;\n int width = 100;\n BitmapDrawable bitmapdraw = (BitmapDrawable) getResources().getDrawable(R.drawable.ic_car_marker);\n Bitmap b = bitmapdraw.getBitmap();\n Bitmap smallMarker = Bitmap.createScaledBitmap(b, width, height, false);\n // Add a marker for the selected place, with an info window\n // showing information about that place.\n mMap.addMarker(new MarkerOptions()\n .title(mLikelyPlaceNames[which])\n .position(markerLatLng)\n .snippet(markerSnippet))\n .setIcon(BitmapDescriptorFactory.fromBitmap(smallMarker));\n\n // Position the customer_map's camera at the location of the marker.\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(markerLatLng,\n DEFAULT_ZOOM));\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n MarkerOptions m= new MarkerOptions().position(new LatLng(28.7041,77.1025)).icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_AZURE)).title(\"tap to get the alerts\");\n n= mMap.addMarker(m);\n\n mMap.setOnMapClickListener(new GoogleMap.OnMapClickListener() {\n @Override\n public void onMapClick(LatLng latLng) {\n\n if (!lati.equals(\"false\") && !longi.equals(\"false\")) {\n Double la = Double.parseDouble(lati);\n Double lo = Double.parseDouble(longi);\n // Add a marker in Sydney and move the camera\n n.setPosition(new LatLng(la,lo));\n n.setTitle(level);\n if(level.equals(\"hard\")){\n n.setIcon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_MAGENTA));}\n else\n {\n n.setIcon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_GREEN));}\n LatLng posi = new LatLng(la, lo);\n mMap.moveCamera(CameraUpdateFactory.newLatLng(posi));\n }\n\n\n }\n });\n\n\n\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n\n mMap = googleMap;\n // Add a marker in Sydney and move the camera\n\n MarkerOptions markerOptions =new MarkerOptions().position(x).title(\"abane ramdane\");\n CircleOptions circleOptions = new CircleOptions().center(x).radius(1000).fillColor(0xffffff0).strokeColor(0xffff0000).strokeWidth(2);\n markerOptions.icon(BitmapDescriptorFactory.fromResource(R.drawable.house));\n mMap.addMarker(markerOptions);\n mMap.addCircle(circleOptions);\n\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(x, 13));\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n LatLng sydney = new LatLng(-34, 151);\n mMap.addMarker(new MarkerOptions().position(sydney).title(\"Marker in Sydney\")\n //below line is use to add custom marker on our map.\n .icon(BitmapFromVector(getApplicationContext(), R.drawable.ic_flag)));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n }", "public GraphicsOverlay setLocico(AMapLocation mAMapLocation, MapView mMapView, GraphicsOverlay mLocationOverlay, String message, CallBackMap mCallBackMap) {\n if (mAMapLocation == null || mAMapLocation.getLatitude() == 0 || mAMapLocation.getLatitude() == 0) {\n if (!AppTool.isNull(message)) {\n ToastUtils.showToast(message);\n }\n return null;\n }\n\n if (mLocationOverlay == null) {\n mLocationOverlay = new GraphicsOverlay();\n\n } else {\n mLocationOverlay.getGraphics().clear();\n mMapView.getGraphicsOverlays().remove(mLocationOverlay);\n }\n\n Gps gpsE = PositionUtil.gcj_To_Gps84(mAMapLocation.getLatitude(), mAMapLocation.getLongitude());\n\n Drawable drawable = mContext.getResources().getDrawable(R.mipmap.btn_weizhi);\n PictureMarkerSymbol pictureMarkerSymbol = new PictureMarkerSymbol((BitmapDrawable) drawable);\n double lon = gpsE.getWgLon();\n double lat = gpsE.getWgLat();\n Point point = new Point(lon, lat, SpatialReference.create(4326));\n// GeographicTransformation transform = GeographicTransformation.create(GeographicTransformationStep.create(108336));\n// Point pot102100 = (Point) GeometryEngine.project(point, SpatialReference.create(102100), transform);\n Graphic graphicimg = new Graphic(point, pictureMarkerSymbol);\n mLocationOverlay.getGraphics().add(graphicimg);\n\n mMapView.getGraphicsOverlays().add(mLocationOverlay);\n mMapView.setViewpointCenterAsync(point, 10000);\n\n if (mCallBackMap != null) {\n mCallBackMap.onClick(OnClickInteDef.setOnclick(OnClickInteDef.REMOVEMAPLOC));\n }\n return mLocationOverlay;\n }" ]
[ "0.80976343", "0.7814771", "0.71024084", "0.7094355", "0.7047824", "0.7037042", "0.69868714", "0.69708914", "0.69266194", "0.69211483", "0.69054985", "0.69044816", "0.6883242", "0.6798756", "0.6781235", "0.6750478", "0.66908693", "0.66906977", "0.66830915", "0.66564304", "0.6626863", "0.662169", "0.6619113", "0.6619113", "0.6619113", "0.6606142", "0.66042125", "0.65746295", "0.6552007", "0.64912605", "0.6486736", "0.6479848", "0.6468346", "0.6455113", "0.6404709", "0.6399969", "0.6393817", "0.6359257", "0.63534886", "0.63450897", "0.6310817", "0.6297499", "0.6297065", "0.626993", "0.625768", "0.62534374", "0.6237453", "0.62086636", "0.61869746", "0.61822283", "0.61778784", "0.6177415", "0.617124", "0.6126733", "0.6116908", "0.61146003", "0.61044955", "0.6103452", "0.61031395", "0.60923666", "0.60768956", "0.60710144", "0.6070642", "0.605536", "0.60524446", "0.6052188", "0.60394895", "0.6033202", "0.60221875", "0.60173637", "0.60099703", "0.6009511", "0.6007448", "0.5984243", "0.5983465", "0.5981473", "0.5976296", "0.597449", "0.59694487", "0.595953", "0.5958844", "0.59526545", "0.5948258", "0.59352195", "0.59173787", "0.5905313", "0.59049517", "0.5904754", "0.5903955", "0.59017235", "0.59013885", "0.5900936", "0.589959", "0.58979017", "0.58921003", "0.5888667", "0.5872331", "0.586591", "0.586216", "0.5860771" ]
0.62654275
44
Creates new form UserEmitirLicencia
public UserEmitirLicencia() { //Inicializacion de la ventana ImageIcon logo = new ImageIcon("src/res/drawable/sfc_logo.jpg"); Image icon = logo.getImage(); this.setIconImage(icon); initComponents(); Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); double width = screenSize.getWidth()/2; double height = screenSize.getHeight()/2; this.setLocation((int)width-this.getWidth()/2,(int)height-this.getHeight()/2); this.setLocationRelativeTo(null); radioGroup.add(radioA); radioGroup.add(radioB); radioGroup.add(radioC); radioGroup.add(radioD); radioGroup.add(radioE); radioGroup.add(radioF); radioGroup.add(radioG); txtAreaClaseLicencia.setBackground(Color.LIGHT_GRAY); tableTitulares.setRowSelectionAllowed(true); tableTitulares.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); tableTitulares.getTableHeader().setReorderingAllowed(false); tableTitulares.getSelectionModel().addListSelectionListener(new ListSelectionListener(){ public void valueChanged(ListSelectionEvent event) { if(tableTitulares.getSelectedRow() == -1) return; //btnEmitirLicencia.setEnabled(false); SimpleDateFormat simpleDateFormat = new SimpleDateFormat("dd/MM/yyyy"); txtFiltro.setText(""); txtFiltro.setEnabled(false); btnAplicarFiltro.setEnabled(false); btnLimpiarFiltro.setEnabled(true); radioA.setEnabled(true); radioB.setEnabled(true); radioC.setEnabled(true); radioD.setEnabled(true); radioE.setEnabled(true); radioF.setEnabled(true); radioG.setEnabled(true); radioGroup.clearSelection(); txtAreaClaseLicencia.setText(""); Titular t = titulares.get(tableTitulares.getSelectedRow()); labelNombre.setText("Nombre: "+t.getNombre()); labelApellido.setText("Apellido: "+t.getApellido()); labelTipoNroDocumento.setText("Documento: "+t.getTipoDocumento().toString()+" "+t.getCodigoDocumento()); labelDomicilio.setText("Domicilio: "+t.getDomicilio()); labelFechaNacimiento.setText("Fecha de nacimiento: "+simpleDateFormat.format(t.getFechaNacimiento())); String factor; if(t.isFactor()) factor="+"; else factor="-"; labelGrupoFactorSanguineo.setText("Grupo Sanguineo: "+t.getGrupoSanguineo().toString()+" "+factor); String donante; if(t.isDonanteOrganos()) donante="Donante de Órganos: SI"; else donante="Donante de Órganos: NO"; labelDonanteOrganos.setText(donante); lblObservaciones.setText("Observaciones: "+t.getObservaciones()); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public RenovarLicencia() {\n //borrar todo cuando este listo el metodo de abajo\n initComponents();\n setTitle(\"Renovar Licencia\");\n setLocationRelativeTo(null);\n //se pide al gestor y se muestra por pantalla los datos del administrativo registrado\n txt_user.setText(GestorAdministrativo.getInstance().getAdministrativo().getUsername());\n txt_nombre_user.setText(GestorAdministrativo.getInstance().getAdministrativo().getNombre() + \" \" + GestorAdministrativo.getInstance().getAdministrativo().getApellido());\n //borrar hasta aca\n }", "License createLicense();", "public T generateLicense();", "public Cgg_res_oficial_seguimiento_usuario(){}", "public String registrarLibroPorFormulario(HttpServletRequest request)\r\n {\r\n StringBuilder salidaTabla=new StringBuilder();\r\n if(request==null)\r\n {\r\n return \"\";\r\n }\r\n if(conexion!=null)\r\n {\r\n try{\r\n //atributos\r\n String nombre,paterno,materno,nacionalidad,titulo;\r\n StringBuilder query=new StringBuilder();\r\n int registro,registro1,codigo_autor,edicion,nroEjemplar;\r\n //sacamos del request a los atributos para autor\r\n materno=request.getParameter(\"materno\");\r\n paterno=request.getParameter(\"paterno\");\r\n nombre=request.getParameter(\"nombre\");\r\n nacionalidad=request.getParameter(\"nacionalidad\");\r\n //sacamos del request los atributos para libro\r\n titulo=request.getParameter(\"titulo\");\r\n edicion=Integer.parseInt(request.getParameter(\"edicion\"));\r\n nroEjemplar=Integer.parseInt(request.getParameter(\"nroEjemplar\"));\r\n //consulta sql\r\n query.append(\" insert into autor(paterno,materno,nombre,nacionalidad) values( \");\r\n query.append(\"'\"+materno+\"',\"+\"'\"+paterno+\"',\"+\"'\"+nombre+\"',\"+\"'\"+nacionalidad+\"')\");\r\n insertLibro=conexion.prepareStatement(query.toString());\r\n registro=insertLibro.executeUpdate();\r\n if(registro==1)\r\n {\r\n codigo_autor=listarUltimoIdAutor();\r\n if(codigo_autor!=0)\r\n {\r\n registro1=registrarLibro1(codigo_autor,titulo,edicion,nroEjemplar);\r\n }\r\n }\r\n }catch(Exception e){\r\n salidaTabla.append(e);\r\n e.printStackTrace();\r\n System.out.println(\"ERROR\");\r\n }\r\n }\r\n return salidaTabla.toString();\r\n }", "com.soa.SolicitarCreditoDocument.SolicitarCredito addNewSolicitarCredito();", "public frm_tutor_subida_prueba() {\n }", "LicenseUpdate create(LicenseUpdate newLicenseUpdate);", "@_esCocinero\n public Result crearPaso() {\n Form<Paso> frm = frmFactory.form(Paso.class).bindFromRequest();\n\n // Comprobación de errores\n if (frm.hasErrors()) {\n return status(409, frm.errorsAsJson());\n }\n\n Paso nuevoPaso = frm.get();\n\n // Comprobar autor\n String key = request().getQueryString(\"apikey\");\n if (!SeguridadFunctions.esAutorReceta(nuevoPaso.p_receta.getId(), key))\n return Results.badRequest();\n\n // Checkeamos y guardamos\n if (nuevoPaso.checkAndCreate()) {\n Cachefunctions.vaciarCacheListas(\"pasos\", Paso.numPasos(), cache);\n Cachefunctions.vaciarCacheListas(\"recetas\", Receta.numRecetas(), cache);\n return Results.created();\n } else {\n return Results.badRequest();\n }\n\n }", "ch.crif_online.www.webservices.crifsoapservice.v1_00.BusinessIndustryLicense addNewBusinessIndustryLicenses();", "public void generarContrato() {\r\n\t\ttry {\r\n\t\t\tString nombre = Contrato.generarContrato(estudiante, periodo, reserva.getArrSitioPeriodo().getSitNombre());\r\n\t\t\tnombre = \"Contrato_\" + estudiante.getId().getPerDni() + \".zip\";\r\n\t\t\tthis.zip(estudiante.getId().getPerDni(), periodo.getPrdId());\r\n\t\t\tFunciones.descargarZip(url_contrato+ nombre);\r\n\t\t\t// MODIFICAR NOMBRE CONTRATO\r\n\t\t\tmngRes.agregarContratoReserva(estudiante, periodo.getPrdId());\r\n\t\t} catch (Exception e) {\r\n\t\t\tFunciones.descargarPdf(url_contrato + \"error.pdf\");\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t}\r\n\r\n\t}", "private void btnAgregarUsuarioActionPerformed(java.awt.event.ActionEvent evt) {\n String v_nombre=\" \";\n\n if(txtNombreAU.getText().length()==0){\n Utilidades.mensajeInformacion(\"Digite un nombre, por favor\", \"Informacion\");\n return;\n }\n v_nombre=txtNombreAU.getText(); \n //Valido la contrasenia\n if(txtContraseniaAU.getText().length()==0){\n Utilidades.mensajeInformacion(\"Es obligatorio ingresar una contraseña\", \"Informacion\");\n return;\n }\n if(!validarContraseniaUsuario(txtContraseniaAU.getText())){\n return;\n }\n String v_contrasenia=txtContraseniaAU.getText();\n //Valido nombre completo\n if(txtNombreCompletoAU.getText().length()==0){\n Utilidades.mensajeInformacion(\"Es obligatorio ingresar el nombre completo\", \"Informacion\");\n return;\n }\n String v_nombreCompleto=txtNombreCompletoAU.getText();\n \n //Valido que se escogio un valor para el cargo\n int v_cargo=0;\n //10 = Administrador, 20=Funcionario\n if(rbtnAdministradorAU.isSelected()){\n v_cargo=10;\n }else if(rbtnFuncionarioAU.isSelected()){\n v_cargo=20;\n }else{\n Utilidades.mensajeInformacion(\"Escoga un cargo\", \"Informacion\");\n return;\n }\n \n //Creo y agreggo un usuario dependiendo del cargo escogido (Administrador o funcionario)\n try{\n boolean agregado=false;\n if(v_cargo==10){\n Administrador nuevoUsuario=new Administrador(v_nombre, v_contrasenia, v_nombreCompleto, null);\n agregado = administrador.agregarUsuario(nuevoUsuario);\n\n } \n if(v_cargo==20){\n Funcionario nuevoUsuario=new Funcionario(v_nombre, v_contrasenia, v_nombreCompleto, null);\n agregado = administrador.agregarUsuario(nuevoUsuario);\n }\n\n\n if(agregado){\n Utilidades.mensajeExito(\"Se agrego el Usuario\", \"Agregacion Exitosa\");\n limpiarCamposAgregarUsuario();\n }else{\n Utilidades.mensajeError(\"El Usuario a agregar ya existe\", \"Error\");\n }\n\n }catch (IOException ex) {\n Logger.getLogger(Funcionario.class.getName()).log(Level.SEVERE, null, ex);\n Utilidades.mensajeAdvertencia(\"Se ha interrumpido la conexion con el servidor\", \"Error\");\n }\n \n }", "@Override\r\n\tpublic void crearVehiculo() {\n\t\t\r\n\t}", "public FormPrincipal(String privilegio) {\r\n\r\n initComponents();\r\n// jTextFieldPreco.setText(\"0.0\");\r\n// System.out.println(Float.valueOf(\"\"));\r\n if (privilegio.equals(\"administrador\") == false) {\r\n jButtonNovoUsuario.setEnabled(false);\r\n jButtonRemover.setEnabled(false);\r\n\r\n }\r\n atualizarLinhas();\r\n\r\n }", "Compuesta createCompuesta();", "Builder addLicense(String value);", "@Override\n\tpublic void create(CreateCoinForm form) throws Exception {\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n lblapellido = new javax.swing.JLabel();\n lblnombre = new javax.swing.JLabel();\n lblfn = new javax.swing.JLabel();\n lbltel = new javax.swing.JLabel();\n lbldir = new javax.swing.JLabel();\n lbluser = new javax.swing.JLabel();\n lblcontra = new javax.swing.JLabel();\n btncancelar = new javax.swing.JButton();\n btnaceptar = new javax.swing.JButton();\n txtnombre = new javax.swing.JTextField();\n txtapellido = new javax.swing.JTextField();\n txtfechanac = new javax.swing.JTextField();\n txttelef = new javax.swing.JTextField();\n txtdireccion = new javax.swing.JTextField();\n txtusuario = new javax.swing.JTextField();\n txtcontrasena = new javax.swing.JPasswordField();\n jLabel3 = new javax.swing.JLabel();\n cbgenero = new javax.swing.JComboBox<>();\n imgNuevo = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n\n jPanel1.setBackground(new java.awt.Color(255, 255, 255));\n\n jLabel1.setFont(new java.awt.Font(\"Swis721 Lt BT\", 3, 24)); // NOI18N\n jLabel1.setText(\"CREANDO NUEVO EMPLEADO\");\n\n lblapellido.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n lblapellido.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n lblapellido.setText(\"Apellido :\");\n\n lblnombre.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n lblnombre.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n lblnombre.setText(\"Nombre :\");\n\n lblfn.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n lblfn.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n lblfn.setText(\"Fecha Nac :\");\n\n lbltel.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n lbltel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n lbltel.setText(\"Telefono :\");\n\n lbldir.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n lbldir.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n lbldir.setText(\"Direccion :\");\n\n lbluser.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n lbluser.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n lbluser.setText(\"Usuario :\");\n\n lblcontra.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n lblcontra.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n lblcontra.setText(\"Contraseña :\");\n\n btncancelar.setText(\"Cancelar\");\n\n btnaceptar.setText(\"Aceptar\");\n\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel3.setText(\"Genero :\");\n\n cbgenero.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Masculino\", \"Femenino\", \"Otros\", \"Otros 2\", \" \" }));\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(186, 186, 186)\n .addComponent(btncancelar)\n .addGap(80, 80, 80)\n .addComponent(btnaceptar))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(124, 124, 124)\n .addComponent(jLabel1))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(87, 87, 87)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(lblfn, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(lblapellido, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(lblnombre, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txtfechanac, javax.swing.GroupLayout.PREFERRED_SIZE, 109, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(txtapellido, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txtnombre, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 240, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(77, 77, 77)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(9, 9, 9)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(lbltel, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(lbldir, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(lbluser, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel3, javax.swing.GroupLayout.Alignment.TRAILING)))\n .addComponent(lblcontra))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txttelef, javax.swing.GroupLayout.PREFERRED_SIZE, 109, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtdireccion, javax.swing.GroupLayout.PREFERRED_SIZE, 359, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(txtusuario, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 164, Short.MAX_VALUE)\n .addComponent(txtcontrasena, javax.swing.GroupLayout.Alignment.LEADING))\n .addComponent(cbgenero, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGap(67, 67, 67)\n .addComponent(imgNuevo, javax.swing.GroupLayout.PREFERRED_SIZE, 390, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(42, Short.MAX_VALUE))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(34, 34, 34)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 86, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(35, 35, 35)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtnombre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(lblnombre, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(28, 28, 28)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lblapellido, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtapellido, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(29, 29, 29)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lblfn, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtfechanac, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(24, 24, 24)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(cbgenero, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(20, 20, 20)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lbltel, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txttelef, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(28, 28, 28)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lbldir, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtdireccion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(29, 29, 29)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lbluser, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtusuario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(27, 27, 27))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(imgNuevo, javax.swing.GroupLayout.PREFERRED_SIZE, 386, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(11, 11, 11)))\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(lblcontra, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtcontrasena, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(48, 48, 48)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(btncancelar)\n .addComponent(btnaceptar))\n .addGap(40, 40, 40))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n );\n\n pack();\n }", "public ViewCreatePagamento() {\n initComponents();\n clientesDAO cDAO = DaoFactory.createClientesDao(); \n matriculaDAO mDAO = DaoFactory.createMatriculaDao();\n \n cmbIDClientes.addItem(null);\n cDAO.findAll().forEach((p) -> {\n cmbIDClientes.addItem(p.getNome());\n });\n \n \n txtDataAtual.setText(DateFormat.getDateInstance().format(new Date()));\n }", "OperacionColeccion createOperacionColeccion();", "public RegistrarPagoCXC() {\n initComponents();\n HoraFecha ob2 = new HoraFecha();\n jdfecha.setDate(ob2.obtenerFechamascienanos());\n Buscar_cxc.restropagocxcCxpexitoso = false;\n Buscar_cxp.restropagocxpCxpexitoso = false;\n\n//// spinerDiasCredito.setValue(30);\n//// HoraFecha ob2 = new HoraFecha();\n//// fecha = ob2.obtenerFecha();\n//// jDateChooser1.setDate(fecha);\n//// \n//// jDateChooser1.setDate(sumarRestarDiasFecha(fecha, Integer.valueOf(spinerDiasCredito.getValue().toString())));\n//// txt_entrada.grabFocus(); \n//// txt_entrada.selectAll();\n//// \n ////formas de pago\n fp = OperacionesForms.FormasPagoCXC_seExceptualaformadePago_Credito(jComboBox1);\n\n//OperacionesForms.getAllComponents(this)\n// jComboBox1.setSelectedItem(Principal.formadepagopredeterminada);\n /// HoraFecha.fecha(fecha)\n }", "@RequestMapping(value = \"/crearusuario\", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_VALUE)\n public CommonsResponse createuser(@RequestParam String llave_seguridad, @RequestBody NewUserInputDTO request, HttpServletRequest requestTransaction)\n {\n CommonsResponse response = new CommonsResponse();\n Map<String, String> mapConfiguration = null;\n try\n {\n logger.debug(\"Se valida la licencia si puede consumir los procesos.\");\n mapConfiguration = GatewayBaseBean.validateLicenceToWS(llave_seguridad, webUtils.getClientIp(requestTransaction));\n\n userServices.createUser(mapConfiguration, request);\n }\n catch (ParamsException ex)\n {\n response.toParamsWarn(messageSource, KEY_ERRORS_GENERIC + ex.getCode());\n logger.error(\"Parametros de Licencia Errados WS [crearusuarioisoft], key[\"+llave_seguridad+\"].\", ex);\n return response;\n }\n catch (LicenseException ex)\n {\n response.toLicenceWarn(messageSource, KEY_ERRORS_GENERIC + ex.getCode(), llave_seguridad);\n logger.error(\"Parametros de Licencia Errados WS [consultarusuariossistema], key[\"+llave_seguridad+\"].\", ex);\n return response;\n }\n catch (ServiceException ex)\n {\n response.toParamsWarn(messageSource, KEY_ERRORS_GENERIC + ex.getCode());\n logger.warn(\"Error de Servicio WS [crearusuarioisoft].\", ex);\n return response;\n }\n catch (Exception ex)\n {\n logger.error(\"Error Generico en WS [crearusuarioisoft].\", ex);\n GatewayBaseBean.matchToResponses(response);\n return response;\n }\n logger.info(\"Se retorna respuesta efectiva del WS [crearusuario].\");\n return response.toOk();\n }", "public String registrarExtra(){\n\t\tFacesContext context = FacesContext.getCurrentInstance();\n\t\tActividad actividad = context.getApplication().evaluateExpressionGet(context, \"#{actividad}\", Actividad.class);\n\t\tEncargado encargado = context.getApplication().evaluateExpressionGet(context, \"#{encargado}\", Encargado.class);\n\t\t\n\t\ttry {\n\t\t\tactividad.registrarActividad_Encargado(encargado.getCedula());\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\t\n\t\t\t\t\t\n\t\t// put the user object into the POST request \n\t\tFacesContext.getCurrentInstance().getExternalContext().getRequestMap().put(\"actividad\", actividad);\n\t\t\n\t\treturn \"principalAdministrador.xhtml\";\n\t}", "public LicenciaController() {\n }", "public void guardarSolicitud() {\n Map<String, String> paramMap = getParametrosSesion();\n String cadenaFirmada;\n try {\n if (paramMap != null) {\n cadenaFirmada = paramMap.get(firmaFormHelper.FIRMA_DIGITAL);\n firmaFormHelper.setSelloDigital(paramMap.get(FirmaFormHelper.FIRMA_DIGITAL));\n\n SimpleDateFormat formato = new SimpleDateFormat(\"dd/MM/yyyy\");\n produccion.setFechProduccion(new Date());\n desperdiciosHelper.setFechaAcuse(formato.format(produccion.getFechProduccion()));\n\n if (cadenaFirmada.length() > 0) {\n guardarRangosFolios();\n Acuse acuse = new Acuse();\n acuse.setSerieAcuse(TipoAcuse.DESPERDICIO);\n acuse.setIdProveedor(produccionCigarrosHelper.getProveedor().getIdProveedor());\n acuse.setSelloDigital(firmaFormHelper.getSelloDigital());\n acuse.setCadenaOriginal(firmaFormHelper.getCadenaOriginal());\n acuse.setFecCaptura(new Date());\n desperdiciosHelper.setIdAcuseRecibo(commonService.crearAcuse(acuse));\n habilitarPnlAcuse();\n registroMovimientoBitacora(getSession(), IdentificadorProcesoEnum.CONTRIBUYENTE_TRAMITES, new Date(), new Date(), MovimientosBitacoraEnum.DESPERDICIOS_DESTRUCCION);\n } else {\n habilitarPnlPrincipal();\n }\n }\n } catch (CommonServiceException e) {\n LOGGER.error(e.getMessage(), e);\n addErrorMessage(ERROR, \"No se pudo generar el acuse\");\n } catch (Exception ex) {\n LOGGER.error(ex.getMessage());\n }\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n btn_1 = new javax.swing.JButton();\n txt_1 = new javax.swing.JTextField();\n txt_2 = new javax.swing.JTextField();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n txt_3 = new javax.swing.JTextField();\n txt_4 = new javax.swing.JTextField();\n txt_5 = new javax.swing.JTextField();\n txt_6 = new javax.swing.JTextField();\n jButton1 = new javax.swing.JButton();\n jLabel8 = new javax.swing.JLabel();\n caja_1 = new javax.swing.JComboBox<>();\n jLabel9 = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n btn_3 = new javax.swing.JButton();\n jButton2 = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jLabel1.setText(\"CIFRADO RSA\");\n\n jLabel2.setText(\"Número p: \");\n\n jLabel3.setText(\"Número q:\");\n\n btn_1.setText(\"Generar números\");\n btn_1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btn_1ActionPerformed(evt);\n }\n });\n\n jLabel4.setText(\"Módulo n:\");\n\n jLabel5.setText(\"Cálculo de phi por fórmula:\");\n\n jLabel6.setText(\"Clave pública e:\");\n\n jLabel7.setText(\"Clave privada d:\");\n\n jButton1.setText(\"Generar claves\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jLabel8.setText(\"Logitud de bits de su cifrado\");\n\n caja_1.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"8\", \"16\", \"64\", \"512\" }));\n caja_1.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n caja_1ItemStateChanged(evt);\n }\n });\n\n jLabel9.setText(\"Claves\");\n\n jLabel10.setText(\"Primos\");\n\n btn_3.setText(\"Encriptar mensaje\");\n btn_3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btn_3ActionPerformed(evt);\n }\n });\n\n jButton2.setText(\"Desencriptar mensaje\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel8)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(caja_1, javax.swing.GroupLayout.PREFERRED_SIZE, 106, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addComponent(jLabel5)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txt_4))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel4)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txt_3, javax.swing.GroupLayout.PREFERRED_SIZE, 280, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel6)\n .addComponent(jLabel7))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(btn_3, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txt_5)\n .addComponent(txt_6)))))))\n .addGroup(layout.createSequentialGroup()\n .addGap(124, 124, 124)\n .addComponent(jButton1)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(btn_1)\n .addGap(116, 116, 116))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jLabel1)\n .addGap(143, 143, 143))))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel9))\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel10))\n .addGroup(layout.createSequentialGroup()\n .addGap(38, 38, 38)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2)\n .addComponent(jLabel3))\n .addGap(3, 3, 3)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(txt_1, javax.swing.GroupLayout.DEFAULT_SIZE, 245, Short.MAX_VALUE)\n .addComponent(txt_2)))\n .addGroup(layout.createSequentialGroup()\n .addGap(86, 86, 86)\n .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 181, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(0, 0, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(12, 12, 12)\n .addComponent(jLabel10)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel8)\n .addComponent(caja_1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(txt_1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(txt_2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(btn_1)\n .addGap(29, 29, 29)\n .addComponent(jLabel9)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(txt_3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5)\n .addComponent(txt_4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel6)\n .addComponent(txt_5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel7)\n .addComponent(txt_6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addComponent(jButton1)\n .addGap(18, 18, 18)\n .addComponent(btn_3)\n .addGap(18, 18, 18)\n .addComponent(jButton2)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n pack();\n }", "public RegistroCompra() {\n initComponents();\n buscarProveedor();\n }", "@GetMapping(\"/createRegistro\")\n\tpublic String crearValidacion(Model model) {\n\t\tList<Barrio> localidades = barrioService.obtenerBarrios();\n\t\tmodel.addAttribute(\"localidades\",localidades);\n\t\tmodel.addAttribute(\"persona\",persona);\n\t\tmodel.addAttribute(\"validacion\",validacion);\n\t\tmodel.addAttribute(\"registro\",registro);\n\t\tmodel.addAttribute(\"barrio\",barrio);\n\t\treturn \"RegistroForm\";\n\t}", "public void onShowLicences();", "public Asignacion_usuario_Perfil1() {\n int CodigoAplicacion = 120;\n initComponents();\n llenadoDeCombos();\n llenadoDeTablas();\n \n\n \n }", "public creacionempresa() {\n initComponents();\n mostrardatos();\n }", "public InformeLicenciasOdesVO(\r\n java.lang.String licencia,\r\n int numOdes)\r\n\r\n {\r\n this.licencia = licencia;\r\n this.numOdes = numOdes;\r\n }", "public CrearProductos() {\n initComponents();\n }", "private ProcesoDTO registrarProcesoCoactivo() {\n RegistraProcesoDTO registra = new RegistraProcesoDTO();\n registra.setObservacion(EnumTipoProceso.COACTIVO.name());\n registra.setTipoProceso(EnumTipoProceso.COACTIVO);\n registra.setEstado(EnumEstadoProceso.ECUADOR_COACTIVO_RADICACION);\n registra.setConsecutivo(EnumConsecutivo.NUMERO_COACTIVO_ECUADOR);\n return iRFachadaProceso.crearProceso(registra);\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n paneInputData = new javax.swing.JPanel();\n lblInvoice2 = new javax.swing.JLabel();\n cbAccessible = new javax.swing.JComboBox<>();\n btnBatal = new javax.swing.JButton();\n btnSubmit = new javax.swing.JButton();\n lblInvoice3 = new javax.swing.JLabel();\n txtUsername = new javax.swing.JTextField();\n lblInvoice5 = new javax.swing.JLabel();\n txtPassword = new javax.swing.JPasswordField();\n txtPasswordulang = new javax.swing.JPasswordField();\n lblInvoice6 = new javax.swing.JLabel();\n lblInvoice7 = new javax.swing.JLabel();\n lblInvoice8 = new javax.swing.JLabel();\n txtIdPegawai = new javax.swing.JTextField();\n lblInvoice9 = new javax.swing.JLabel();\n txtEmail = new javax.swing.JTextField();\n lblEmail = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"Tambah User Admin\");\n\n jPanel1.setBackground(new java.awt.Color(0, 123, 32));\n jPanel1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jLabel1.setFont(new java.awt.Font(\"Trebuchet MS\", 0, 32)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(255, 255, 255));\n jLabel1.setText(\"Tambah User\");\n jPanel1.add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 10, -1, -1));\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n jLabel2.setForeground(new java.awt.Color(204, 204, 204));\n jLabel2.setText(\"Tambah data User\");\n jPanel1.add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(230, 30, -1, -1));\n\n paneInputData.setBackground(new java.awt.Color(255, 255, 255));\n paneInputData.setPreferredSize(new java.awt.Dimension(1010, 580));\n\n lblInvoice2.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n lblInvoice2.setText(\"Permission\");\n\n cbAccessible.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"-- Pilih --\", \"ADMINISTRATOR\", \"SUPER ADMINISTRATOR\" }));\n\n btnBatal.setText(\"Batal\");\n btnBatal.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnBatalActionPerformed(evt);\n }\n });\n\n btnSubmit.setText(\"Submit\");\n btnSubmit.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnSubmitActionPerformed(evt);\n }\n });\n\n lblInvoice3.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n lblInvoice3.setText(\"Username\");\n\n txtUsername.setText(\"username\");\n\n lblInvoice5.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n lblInvoice5.setText(\"Password\");\n\n txtPassword.setText(\"Password12345678\");\n\n txtPasswordulang.setText(\"Password12345678\");\n\n lblInvoice6.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n lblInvoice6.setText(\"Ulangi Password\");\n\n lblInvoice7.setFont(new java.awt.Font(\"Tahoma\", 0, 10)); // NOI18N\n lblInvoice7.setForeground(new java.awt.Color(255, 0, 0));\n lblInvoice7.setHorizontalAlignment(javax.swing.SwingConstants.TRAILING);\n lblInvoice7.setText(\"Min. 8 - 16 Karakter\");\n\n lblInvoice8.setFont(new java.awt.Font(\"Tahoma\", 0, 10)); // NOI18N\n lblInvoice8.setForeground(new java.awt.Color(255, 0, 0));\n lblInvoice8.setHorizontalAlignment(javax.swing.SwingConstants.TRAILING);\n lblInvoice8.setText(\"Password belum sama\");\n\n txtIdPegawai.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n txtIdPegawaiFocusLost(evt);\n }\n });\n\n lblInvoice9.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n lblInvoice9.setText(\"Id Pegawai\");\n\n txtEmail.setText(\"username\");\n\n lblEmail.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n lblEmail.setText(\"Email\");\n\n javax.swing.GroupLayout paneInputDataLayout = new javax.swing.GroupLayout(paneInputData);\n paneInputData.setLayout(paneInputDataLayout);\n paneInputDataLayout.setHorizontalGroup(\n paneInputDataLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(paneInputDataLayout.createSequentialGroup()\n .addGroup(paneInputDataLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(paneInputDataLayout.createSequentialGroup()\n .addGap(328, 328, 328)\n .addComponent(btnBatal, javax.swing.GroupLayout.PREFERRED_SIZE, 137, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(btnSubmit, javax.swing.GroupLayout.PREFERRED_SIZE, 137, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(paneInputDataLayout.createSequentialGroup()\n .addGap(38, 38, 38)\n .addGroup(paneInputDataLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(paneInputDataLayout.createSequentialGroup()\n .addComponent(lblInvoice5)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(lblInvoice7))\n .addComponent(txtPassword)\n .addComponent(txtPasswordulang)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, paneInputDataLayout.createSequentialGroup()\n .addComponent(lblInvoice6)\n .addGap(229, 229, 229)\n .addComponent(lblInvoice8))\n .addComponent(txtUsername, javax.swing.GroupLayout.PREFERRED_SIZE, 427, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(lblInvoice3))\n .addGap(18, 18, 18)\n .addGroup(paneInputDataLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(lblInvoice9)\n .addComponent(txtIdPegawai, javax.swing.GroupLayout.DEFAULT_SIZE, 452, Short.MAX_VALUE)\n .addComponent(lblInvoice2)\n .addComponent(cbAccessible, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(lblEmail)\n .addComponent(txtEmail))))\n .addContainerGap(155, Short.MAX_VALUE))\n );\n paneInputDataLayout.setVerticalGroup(\n paneInputDataLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(paneInputDataLayout.createSequentialGroup()\n .addGap(33, 33, 33)\n .addGroup(paneInputDataLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(paneInputDataLayout.createSequentialGroup()\n .addComponent(lblInvoice9)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(txtIdPegawai, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(paneInputDataLayout.createSequentialGroup()\n .addComponent(lblInvoice3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(txtUsername, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(18, 18, 18)\n .addGroup(paneInputDataLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(paneInputDataLayout.createSequentialGroup()\n .addGroup(paneInputDataLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lblInvoice5)\n .addComponent(lblInvoice7))\n .addGap(135, 135, 135))\n .addGroup(paneInputDataLayout.createSequentialGroup()\n .addGroup(paneInputDataLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(paneInputDataLayout.createSequentialGroup()\n .addComponent(lblEmail)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(txtEmail, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(txtPassword, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(paneInputDataLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, paneInputDataLayout.createSequentialGroup()\n .addGroup(paneInputDataLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lblInvoice6)\n .addComponent(lblInvoice8))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(txtPasswordulang, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, paneInputDataLayout.createSequentialGroup()\n .addComponent(lblInvoice2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(cbAccessible, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)))))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 205, Short.MAX_VALUE)\n .addGroup(paneInputDataLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(btnBatal, javax.swing.GroupLayout.PREFERRED_SIZE, 47, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnSubmit, javax.swing.GroupLayout.PREFERRED_SIZE, 47, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(41, 41, 41))\n );\n\n jPanel1.add(paneInputData, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 67, 1090, 560));\n\n jLabel4.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel4.setForeground(new java.awt.Color(255, 255, 255));\n jLabel4.setText(\"V1.0\");\n jPanel1.add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(1070, 640, -1, 30));\n\n jLabel5.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel5.setForeground(new java.awt.Color(255, 255, 255));\n jLabel5.setText(\"2019, Hotel Indonesia\");\n jPanel1.add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 637, -1, 30));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, 1133, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, 682, Short.MAX_VALUE)\n );\n\n pack();\n }", "@RequestMapping(value = \"/backoffice/ajouterCompte\", method = RequestMethod.POST)\n\tpublic String ajouterCompte(@Valid @ModelAttribute(\"newUser\") Utilisateur user,\n\t\t\t@Valid @ModelAttribute(\"role\") String role, Model model,\n\t\t\tHttpServletRequest request) {\n\t\tif (role.equals(\"Administrateur\")) {\n\t\t\tAdministrateur admin = new Administrateur();\n\t\t\tadmin.setActive(true);\n\t\t\tadmin.setAdresse(user.getAdresse());\n\t\t\tadmin.setIdentifiant(user.getIdentifiant());\n\t\t\tadmin.setMotDePasse(user.getMotDePasse());\n\t\t\tadmin.setNomEtPrenom(user.getNomEtPrenom());\n\t\t\tadmin.setTelephone(user.getTelephone());\n\t\t\tadminDao.ajouterAdmin(admin);\n\n\t\t} else if (role.equals(\"Candidat\")) {\n\t\t\tCandidat candidat = new Candidat();\n\t\t\tcandidat.setActive(true);\n\t\t\tcandidat.setAdresse(user.getAdresse());\n\t\t\tcandidat.setIdentifiant(user.getIdentifiant());\n\t\t\tcandidat.setMotDePasse(user.getMotDePasse());\n\t\t\tcandidat.setNomEtPrenom(user.getNomEtPrenom());\n\t\t\tcandidat.setTelephone(user.getTelephone());\n\t\t\tcandidatDao.ajouterCandidat(candidat);\n\n\t\t}\n\t\treturn \"redirect:/backoffice/accounts\";\n\t}", "public void makeClient() {\n try {\n clienteFacade.create(cliente);\n FacesContext.getCurrentInstance().addMessage(\"messages\", new FacesMessage(FacesMessage.SEVERITY_INFO, \"Cliente creado exitosamente\", null));\n } catch (Exception e) {\n System.err.println(\"Error en la creacion del usuario: \" + e.getMessage());\n FacesContext.getCurrentInstance().addMessage(\"messages\", new FacesMessage(FacesMessage.SEVERITY_FATAL, e.getMessage(), null));\n }\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n RazonSocialjTextField = new javax.swing.JTextField();\n jLabel2 = new javax.swing.JLabel();\n DireccionjTextField = new javax.swing.JTextField();\n jLabel3 = new javax.swing.JLabel();\n EmailjTextField = new javax.swing.JTextField();\n jLabel4 = new javax.swing.JLabel();\n CodPostjTextField = new javax.swing.JTextField();\n jLabel5 = new javax.swing.JLabel();\n TelefonojTextField = new javax.swing.JTextField();\n jLabel6 = new javax.swing.JLabel();\n CUITjTextField = new javax.swing.JTextField();\n CancelarjButton = new javax.swing.JButton();\n GuardarjButton = new javax.swing.JButton();\n jLabel9 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n ProvinciasjComboBox = new javax.swing.JComboBox<>();\n jLabel10 = new javax.swing.JLabel();\n LocalidadesjComboBox = new javax.swing.JComboBox<>();\n NombreFantasiajTextField = new javax.swing.JTextField();\n ProveedorIDjTextField = new javax.swing.JTextField();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"Agregar nuevo proveedor - OSG\");\n\n jLabel1.setText(\"Razon social\");\n\n jLabel2.setText(\"Dirección\");\n\n jLabel3.setText(\"Email\");\n\n jLabel4.setText(\"Código postal\");\n\n CodPostjTextField.setEditable(false);\n CodPostjTextField.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n CodPostjTextFieldKeyTyped(evt);\n }\n });\n\n jLabel5.setText(\"Telefono\");\n\n TelefonojTextField.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n TelefonojTextFieldKeyTyped(evt);\n }\n });\n\n jLabel6.setText(\"CUIT\");\n\n CUITjTextField.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n CUITjTextFieldKeyTyped(evt);\n }\n });\n\n CancelarjButton.setText(\"Cancelar\");\n CancelarjButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n CancelarjButtonActionPerformed(evt);\n }\n });\n\n GuardarjButton.setText(\"Guardar\");\n GuardarjButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n GuardarjButtonActionPerformed(evt);\n }\n });\n\n jLabel9.setText(\"Nombre de fantasia\");\n\n jLabel7.setText(\"Provincia\");\n\n ProvinciasjComboBox.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n ProvinciasjComboBoxItemStateChanged(evt);\n }\n });\n\n jLabel10.setText(\"Localidad\");\n\n LocalidadesjComboBox.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n LocalidadesjComboBoxItemStateChanged(evt);\n }\n });\n\n ProveedorIDjTextField.setVisible(false);\n ProveedorIDjTextField.setEditable(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jLabel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(56, 56, 56)\n .addComponent(TelefonojTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 233, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(56, 56, 56)\n .addComponent(EmailjTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 233, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, 107, Short.MAX_VALUE)\n .addGap(56, 56, 56)\n .addComponent(CodPostjTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 233, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(56, 56, 56)\n .addComponent(ProvinciasjComboBox, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(56, 56, 56)\n .addComponent(LocalidadesjComboBox, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(CUITjTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 233, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(RazonSocialjTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 233, Short.MAX_VALUE)\n .addComponent(NombreFantasiajTextField)))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(DireccionjTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 233, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(ProveedorIDjTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 75, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(GuardarjButton)\n .addGap(18, 18, 18)\n .addComponent(CancelarjButton)))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel6)\n .addComponent(CUITjTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(RazonSocialjTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel9)\n .addComponent(NombreFantasiajTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(21, 21, 21)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel7)\n .addComponent(ProvinciasjComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel10)\n .addComponent(LocalidadesjComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(CodPostjTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(DireccionjTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(EmailjTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5)\n .addComponent(TelefonojTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(CancelarjButton)\n .addComponent(GuardarjButton)\n .addComponent(ProveedorIDjTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n pack();\n }", "public CreateAccount() {\n initComponents();\n selectionall();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jLabel3 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n cedulaTxt = new javax.swing.JTextField();\n jLabel4 = new javax.swing.JLabel();\n nombreApellidoTxt = new javax.swing.JTextField();\n jLabel5 = new javax.swing.JLabel();\n telfTxt = new javax.swing.JTextField();\n jLabel6 = new javax.swing.JLabel();\n direccionTxt = new javax.swing.JTextField();\n jLabel7 = new javax.swing.JLabel();\n sueldoTxt = new javax.swing.JTextField();\n jLabel8 = new javax.swing.JLabel();\n agregar = new javax.swing.JButton();\n cancelar = new javax.swing.JButton();\n jLabel9 = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n nutricionTxt = new javax.swing.JTextField();\n jLabel11 = new javax.swing.JLabel();\n turnoCombo = new javax.swing.JComboBox();\n areaTxt = new javax.swing.JTextField();\n jLabel12 = new javax.swing.JLabel();\n jLabel13 = new javax.swing.JLabel();\n jLabel14 = new javax.swing.JLabel();\n jLabel15 = new javax.swing.JLabel();\n jLabel17 = new javax.swing.JLabel();\n jLabel18 = new javax.swing.JLabel();\n jLabel19 = new javax.swing.JLabel();\n rutinaTxt = new javax.swing.JComboBox();\n jLabel1 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"REGISTRAR INSTRUCTOR\");\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jPanel1.setOpaque(false);\n\n jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/instructor.png\"))); // NOI18N\n\n jLabel2.setFont(new java.awt.Font(\"Arial\", 1, 11)); // NOI18N\n jLabel2.setText(\"CEDULA\");\n\n cedulaTxt.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n cedulaTxtMousePressed(evt);\n }\n });\n cedulaTxt.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cedulaTxtActionPerformed(evt);\n }\n });\n cedulaTxt.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n cedulaTxtKeyTyped(evt);\n }\n });\n\n jLabel4.setFont(new java.awt.Font(\"Arial\", 1, 11)); // NOI18N\n jLabel4.setText(\"NOMBRE Y APELLIDO\");\n\n nombreApellidoTxt.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n nombreApellidoTxtMousePressed(evt);\n }\n });\n nombreApellidoTxt.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n nombreApellidoTxtActionPerformed(evt);\n }\n });\n nombreApellidoTxt.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n nombreApellidoTxtKeyTyped(evt);\n }\n });\n\n jLabel5.setFont(new java.awt.Font(\"Arial\", 1, 11)); // NOI18N\n jLabel5.setText(\"TELEFONO\");\n\n telfTxt.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n telfTxtMousePressed(evt);\n }\n });\n telfTxt.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n telfTxtActionPerformed(evt);\n }\n });\n telfTxt.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n telfTxtKeyTyped(evt);\n }\n });\n\n jLabel6.setFont(new java.awt.Font(\"Arial\", 1, 11)); // NOI18N\n jLabel6.setText(\"DIRECCION\");\n\n direccionTxt.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n direccionTxtMousePressed(evt);\n }\n });\n direccionTxt.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n direccionTxtActionPerformed(evt);\n }\n });\n direccionTxt.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n direccionTxtKeyTyped(evt);\n }\n });\n\n jLabel7.setFont(new java.awt.Font(\"Arial\", 1, 11)); // NOI18N\n jLabel7.setText(\" SUELDO\");\n\n sueldoTxt.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n sueldoTxtMousePressed(evt);\n }\n });\n sueldoTxt.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n sueldoTxtActionPerformed(evt);\n }\n });\n sueldoTxt.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n sueldoTxtKeyTyped(evt);\n }\n });\n\n jLabel8.setFont(new java.awt.Font(\"Arial\", 1, 11)); // NOI18N\n jLabel8.setText(\"AREA ENTRENAMIENTO\");\n\n agregar.setText(\"AGREGAR\");\n agregar.setOpaque(false);\n agregar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n agregarActionPerformed(evt);\n }\n });\n\n cancelar.setText(\"CANCELAR\");\n cancelar.setOpaque(false);\n cancelar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cancelarActionPerformed(evt);\n }\n });\n\n jLabel9.setFont(new java.awt.Font(\"Arial\", 1, 11)); // NOI18N\n jLabel9.setText(\"RUTINA\");\n\n jLabel10.setFont(new java.awt.Font(\"Arial\", 1, 11)); // NOI18N\n jLabel10.setText(\"NUTRICION\");\n\n nutricionTxt.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n nutricionTxtMousePressed(evt);\n }\n });\n nutricionTxt.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n nutricionTxtActionPerformed(evt);\n }\n });\n nutricionTxt.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n nutricionTxtKeyTyped(evt);\n }\n });\n\n jLabel11.setFont(new java.awt.Font(\"Arial\", 1, 11)); // NOI18N\n jLabel11.setText(\"TURNO\");\n\n turnoCombo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n turnoComboActionPerformed(evt);\n }\n });\n\n areaTxt.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n areaTxtMousePressed(evt);\n }\n });\n areaTxt.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n areaTxtActionPerformed(evt);\n }\n });\n areaTxt.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n areaTxtKeyTyped(evt);\n }\n });\n\n jLabel12.setForeground(new java.awt.Color(255, 0, 0));\n jLabel12.setText(\"*\");\n\n jLabel13.setForeground(new java.awt.Color(255, 0, 0));\n jLabel13.setText(\"*\");\n\n jLabel14.setForeground(new java.awt.Color(255, 0, 0));\n jLabel14.setText(\"*\");\n\n jLabel15.setForeground(new java.awt.Color(255, 0, 0));\n jLabel15.setText(\"*\");\n\n jLabel17.setForeground(new java.awt.Color(255, 0, 0));\n jLabel17.setText(\"*\");\n\n jLabel18.setForeground(new java.awt.Color(255, 0, 0));\n jLabel18.setText(\"*\");\n\n jLabel19.setForeground(new java.awt.Color(255, 0, 0));\n jLabel19.setText(\"*\");\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel3)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(50, 50, 50)\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel12)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(cedulaTxt, javax.swing.GroupLayout.PREFERRED_SIZE, 102, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addComponent(jLabel4)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 13, Short.MAX_VALUE)\n .addComponent(jLabel13)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(nombreApellidoTxt, javax.swing.GroupLayout.PREFERRED_SIZE, 102, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(149, 149, 149)\n .addComponent(turnoCombo, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(50, 50, 50)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel6)\n .addComponent(jLabel5))\n .addGap(42, 42, 42))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(53, 53, 53)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel11)\n .addComponent(jLabel9))\n .addGap(41, 41, 41))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()\n .addGap(41, 41, 41)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel10)\n .addComponent(jLabel7))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel17, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 6, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel18, javax.swing.GroupLayout.Alignment.TRAILING))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)))\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(nutricionTxt)\n .addComponent(rutinaTxt, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(agregar)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(cancelar))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel15, javax.swing.GroupLayout.PREFERRED_SIZE, 6, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel14, javax.swing.GroupLayout.PREFERRED_SIZE, 6, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(telfTxt)\n .addComponent(direccionTxt)\n .addComponent(sueldoTxt, javax.swing.GroupLayout.DEFAULT_SIZE, 102, Short.MAX_VALUE)))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(60, 60, 60)\n .addComponent(jLabel8)\n .addGap(18, 18, 18)\n .addComponent(jLabel19)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(areaTxt)))\n .addContainerGap())\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(cedulaTxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel12))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(nombreApellidoTxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel4))\n .addComponent(jLabel13, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(telfTxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel14))\n .addComponent(jLabel5))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(direccionTxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel6)\n .addComponent(jLabel15)))\n .addComponent(jLabel3))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 24, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(sueldoTxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel7)\n .addComponent(jLabel17))\n .addGap(22, 22, 22)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel11)\n .addComponent(turnoCombo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(19, 19, 19)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel9)\n .addComponent(rutinaTxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(nutricionTxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel10)\n .addComponent(jLabel18))\n .addGap(21, 21, 21)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel8)\n .addComponent(areaTxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel19))\n .addGap(19, 19, 19)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(agregar)\n .addComponent(cancelar)))\n );\n\n getContentPane().add(jPanel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 30, 330, 380));\n\n jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/FONDO INICIO_1.png\"))); // NOI18N\n getContentPane().add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 400, 450));\n\n pack();\n }", "private void registrar(HttpServletRequest request, HttpServletResponse response) throws ServletException {\n\t\ttry {\n\t\t\t//leo lo que nos envia el formulario de la vista nuevoCliente.jsp y los almaceno en un objeto tipo Cliente\n\t\t\tCliente miCliente = new Cliente();\n\t\t\t\t\n\t\t\t//agregamos al objeto lo que proviene del formulario usando el constructor de clase Cliente\n\t\t\tmiCliente.setNombre(request.getParameter(\"nombre\"));\n\t\t\tmiCliente.setEmail(request.getParameter(\"email\"));\n\t\t\tmiCliente.setPass(request.getParameter(\"password\"));\n\t\t\tmiCliente.setEdad(Integer.parseInt(request.getParameter(\"edad\")));\n\t\t\tmiCliente.setDomicilioCalle(request.getParameter(\"domicilioCalle\"));\n\t\t\tmiCliente.setDomicilioNumero(Integer.parseInt(request.getParameter(\"domicilioNumero\")));\n\t\t\tmiCliente.setLocalidad(request.getParameter(\"localidad\"));\n\t\t\t\n\t\t\t//seteamos la fecha/hora de sesion\n\t\t\tDate d=new Date();\n\t\t\tSimpleDateFormat sdf=new SimpleDateFormat(\"yy-MM-dd hh:mm:ss\");//objeto tipo formato de fecha. Le pasamos el formato de la fecha\n\t\t\tString ultimaSesion=sdf.format(d);\n\t\t\tmiCliente.setUltimaSesion(ultimaSesion);\n\t\t\t\n\t\t\tmiCliente.setIdUsuario(Integer.parseInt(request.getParameter(\"idUsuario\")));//seteo el valor 2 que viene oculto desde el form\n\t\t\t\n\t\t\t//llamo al modelo para hacer el INSERT verfico si pudo insertar\n\t\t\tif(modelo.crearCliente(miCliente)) {\n\t\t\t\tresponse.getWriter().println(\"Usted se ha registrado Correctamente\");\n\t\t\t\t\n\t\t\t}\n\t\t\telse {\n\t\t\t\t\tresponse.getWriter().println(\"No se pudo efectuar registrar\");\n\t\t\t\t}\n\t\t} catch (NumberFormatException | NoSuchAlgorithmException | SQLException | IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@FXML\r\n private void crearSolicitud() {\r\n try {\r\n //Carga la vista de crear solicitud rma\r\n FXMLLoader loader = new FXMLLoader();\r\n loader.setLocation(Principal.class.getResource(\"/vista/CrearSolicitud.fxml\"));\r\n BorderPane vistaCrear = (BorderPane) loader.load();\r\n\r\n //Crea un dialogo para mostrar la vista\r\n Stage dialogo = new Stage();\r\n dialogo.setTitle(\"Solicitud RMA\");\r\n dialogo.initModality(Modality.WINDOW_MODAL);\r\n dialogo.initOwner(primerStage);\r\n Scene escena = new Scene(vistaCrear);\r\n dialogo.setScene(escena);\r\n\r\n //Annadir controlador y datos\r\n ControladorCrearSolicitud controlador = loader.getController();\r\n controlador.setDialog(dialogo, primerStage);\r\n\r\n //Carga el numero de Referencia\r\n int numReferencia = DAORma.crearReferencia();\r\n\r\n //Modifica el dialogo para que no se pueda cambiar el tamaño y lo muestra\r\n dialogo.setResizable(false);\r\n dialogo.showAndWait();\r\n\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }", "private DocumentoProcesoDTO registrarDocumentoCoactivo(EnumTipoDocumentoGenerado tipoDocGenerado,\n TrazabilidadProcesoDTO traza, Coactivo coactivo, EnumTipoDocumentoProceso tipoDocProceso,\n String responsableGeneracion) throws CirculemosAlertaException {\n // Genera documento\n GeneraDocumentoDTO generaDocumento = new GeneraDocumentoDTO();\n generaDocumento.setFechaGeneracion(coactivo.getProceso().getFechaInicio());\n generaDocumento.setIdTipoDocumentoGenerado(tipoDocGenerado);\n Object[] valoresParametros = { coactivo.getId() };\n generaDocumento.setValoresParametros(valoresParametros);\n Map<String, Object> valoresVistaPreliminar = new HashMap<>();\n valoresVistaPreliminar.put(ConstantesDocumentosC2.TOTAL_LETRAS, coactivo.getValorTotalObligaciones());\n valoresVistaPreliminar.put(ConstantesDocumentosC2.VALOR_TOTAL, coactivo.getValorTotalObligaciones());\n generaDocumento.setValoresVistaPreliminar(valoresVistaPreliminar);\n Long idDocumento = iRDocumentosCirculemos.generarDocumento(generaDocumento);\n\n // Guarda el documento generado\n DocumentoProcesoDTO documentoProceso = new DocumentoProcesoDTO();\n documentoProceso.setNumeroDocumento(idDocumento);\n documentoProceso.setTrazabilidadProceso(traza);\n TipoDocumentoProcesoDTO tipoDocumento = new TipoDocumentoProcesoDTO();\n tipoDocumento.setId(tipoDocProceso.getValue());\n documentoProceso.setTipoDocumento(tipoDocumento);\n // Responsable de la generacion de los documentos\n documentoProceso.setResponsableGeneracion(responsableGeneracion);\n documentoProceso = iRFachadaProceso.registrarDocumento(documentoProceso);\n return documentoProceso;\n }", "protected void agregarUbicacion(){\n\n\n\n }", "public void createAccount(){\n System.out.println(\"vi skal starte \");\n }", "public modificarCuentasProveedor() {\n initComponents();\n }", "@SuppressWarnings(\"empty-statement\")\n private void registrarBActionPerformed(java.awt.event.ActionEvent evt) {\n procesos.clear();\n numeroProcesos=Integer.parseInt(numeroProcesosT.getText());\n int op1,op2,op,tiempoMaximo,lote;\n int id=0;\n String [] operadores= {\"+\",\"/\",\"*\",\"%\",\"potencia\",\"sqrt\",\"-\"};\n \n \n lote=numeroProcesos/4;\n \n if(numeroProcesos%4!=0){\n lote++;\n }\n \n lotesL.setText(Integer.toString(lote));\n procesosL.setText(Integer.toString(numeroProcesos));\n \n \n for(int i=0; i<numeroProcesos; i++){\n \n op1=(int) (Math.random()*25+1);\n op=(int) (Math.random()*6+0);\n op2=(int) (Math.random()*25+1);\n tiempoMaximo=(int) (Math.random()*20+1);\n \n procesos.add(new Procesos(\"\",\n Integer.toString(op1),\n operadores[op],\n Integer.toString(op2),\n \"\",\n Integer.toString(id),\n Integer.toString(tiempoMaximo),\n \"\",\"0\"\n ));\n \n \n id++;\n }\n \n numeroProcesosT.setText(\"\");\n \n \n \n \n \n }", "public static void addLicensee(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, Contact value) {\r\n\t\tBase.add(model, instanceResource, LICENSEE, value);\r\n\t}", "@SuppressWarnings(\"unchecked\")\r\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\r\n private void initComponents() {\r\n\r\n jPanel1 = new javax.swing.JPanel();\r\n jPanel2 = new javax.swing.JPanel();\r\n btn_Registrar = new javax.swing.JButton();\r\n btn_cancelar = new javax.swing.JButton();\r\n jLabel2 = new javax.swing.JLabel();\r\n jLabel3 = new javax.swing.JLabel();\r\n jLabel5 = new javax.swing.JLabel();\r\n jLabel6 = new javax.swing.JLabel();\r\n jLabel7 = new javax.swing.JLabel();\r\n jLabel8 = new javax.swing.JLabel();\r\n t_txt_cedulaV = new javax.swing.JTextField();\r\n txt_nombreV = new javax.swing.JTextField();\r\n txt_apellidoV = new javax.swing.JTextField();\r\n txt_tlfV = new javax.swing.JTextField();\r\n btn_Examninar = new javax.swing.JButton();\r\n lbl_fotoV = new javax.swing.JLabel();\r\n fechaNaciV = new com.toedter.calendar.JDateChooser();\r\n jLabel10 = new javax.swing.JLabel();\r\n jpas_vendedor = new javax.swing.JPasswordField();\r\n jLabel11 = new javax.swing.JLabel();\r\n jpasw_vendedor1 = new javax.swing.JPasswordField();\r\n lbl_codigo = new javax.swing.JLabel();\r\n jLabel9 = new javax.swing.JLabel();\r\n jLabel4 = new javax.swing.JLabel();\r\n txt_CorreoV = new javax.swing.JTextField();\r\n lbl_text1 = new javax.swing.JLabel();\r\n jLabel12 = new javax.swing.JLabel();\r\n\r\n jPanel1.setBackground(new java.awt.Color(151, 28, 28));\r\n\r\n jPanel2.setBackground(new java.awt.Color(255, 255, 255));\r\n\r\n btn_Registrar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/iconos/save.png\"))); // NOI18N\r\n btn_Registrar.setText(\"Registrar\");\r\n btn_Registrar.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n btn_RegistrarActionPerformed(evt);\r\n }\r\n });\r\n\r\n btn_cancelar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/iconos/borrar.png\"))); // NOI18N\r\n btn_cancelar.setText(\"Cancelar\");\r\n\r\n jLabel2.setText(\"Nombre:\");\r\n\r\n jLabel3.setText(\"Apellido:\");\r\n\r\n jLabel6.setText(\"Telefono:\");\r\n\r\n jLabel7.setText(\"Fecha de Nacimiento:\");\r\n\r\n jLabel8.setText(\"Cédula:\");\r\n\r\n t_txt_cedulaV.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n t_txt_cedulaVActionPerformed(evt);\r\n }\r\n });\r\n\r\n txt_nombreV.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n txt_nombreVActionPerformed(evt);\r\n }\r\n });\r\n\r\n txt_apellidoV.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n txt_apellidoVActionPerformed(evt);\r\n }\r\n });\r\n\r\n btn_Examninar.setText(\"Examinar\");\r\n\r\n lbl_fotoV.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));\r\n\r\n jLabel10.setText(\"Contraseña:\");\r\n\r\n jLabel11.setText(\"Confirme Contraseña: \");\r\n\r\n jpasw_vendedor1.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jpasw_vendedor1ActionPerformed(evt);\r\n }\r\n });\r\n\r\n lbl_codigo.setFont(new java.awt.Font(\"Dialog\", 1, 18)); // NOI18N\r\n lbl_codigo.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\r\n\r\n jLabel9.setFont(new java.awt.Font(\"Dialog\", 1, 24)); // NOI18N\r\n jLabel9.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\r\n jLabel9.setText(\"ID:\");\r\n\r\n jLabel4.setText(\"Correo:\");\r\n\r\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\r\n jPanel2.setLayout(jPanel2Layout);\r\n jPanel2Layout.setHorizontalGroup(\r\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\r\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\r\n .addGroup(jPanel2Layout.createSequentialGroup()\r\n .addGap(25, 25, 25)\r\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel2Layout.createSequentialGroup()\r\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\r\n .addComponent(jLabel8)\r\n .addComponent(jLabel2)\r\n .addComponent(jLabel3)\r\n .addComponent(jLabel6))\r\n .addGap(32, 32, 32)\r\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(t_txt_cedulaV, javax.swing.GroupLayout.PREFERRED_SIZE, 186, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(txt_nombreV, javax.swing.GroupLayout.PREFERRED_SIZE, 186, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(txt_apellidoV, javax.swing.GroupLayout.PREFERRED_SIZE, 186, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(txt_tlfV, javax.swing.GroupLayout.PREFERRED_SIZE, 186, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addGap(0, 83, Short.MAX_VALUE))\r\n .addGroup(jPanel2Layout.createSequentialGroup()\r\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 128, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 81, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(jLabel11)\r\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 64, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(txt_CorreoV)\r\n .addComponent(jpas_vendedor)\r\n .addComponent(fechaNaciV, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addComponent(jpasw_vendedor1))))\r\n .addGap(151, 151, 151)\r\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(btn_Examninar)\r\n .addComponent(lbl_fotoV, javax.swing.GroupLayout.PREFERRED_SIZE, 94, javax.swing.GroupLayout.PREFERRED_SIZE)))\r\n .addGroup(jPanel2Layout.createSequentialGroup()\r\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addComponent(jLabel5)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(lbl_codigo, javax.swing.GroupLayout.PREFERRED_SIZE, 106, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGap(50, 50, 50))\r\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel2Layout.createSequentialGroup()\r\n .addGap(0, 0, Short.MAX_VALUE)\r\n .addComponent(btn_Registrar)\r\n .addGap(44, 44, 44)\r\n .addComponent(btn_cancelar)\r\n .addGap(71, 71, 71)))\r\n .addGap(40, 40, 40))\r\n );\r\n jPanel2Layout.setVerticalGroup(\r\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\r\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel2Layout.createSequentialGroup()\r\n .addGap(76, 76, 76)\r\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(jLabel8)\r\n .addComponent(t_txt_cedulaV, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addGap(21, 21, 21)\r\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(jLabel2)\r\n .addComponent(txt_nombreV, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\r\n .addGroup(jPanel2Layout.createSequentialGroup()\r\n .addGap(33, 33, 33)\r\n .addComponent(lbl_fotoV, javax.swing.GroupLayout.PREFERRED_SIZE, 93, javax.swing.GroupLayout.PREFERRED_SIZE)))\r\n .addGap(18, 18, 18)\r\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(btn_Examninar)\r\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(txt_apellidoV, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(jLabel3)))\r\n .addGap(18, 18, 18)\r\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(txt_tlfV, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(jLabel6))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jLabel7)\r\n .addComponent(fechaNaciV, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addGap(18, 18, 18)\r\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jLabel10)\r\n .addComponent(jpas_vendedor, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addGap(32, 32, 32)\r\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(jLabel11)\r\n .addComponent(jpasw_vendedor1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addGap(14, 14, 14)\r\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel2Layout.createSequentialGroup()\r\n .addComponent(jLabel5)\r\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel2Layout.createSequentialGroup()\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 11, Short.MAX_VALUE)\r\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\r\n .addComponent(lbl_codigo, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addComponent(jLabel9, javax.swing.GroupLayout.DEFAULT_SIZE, 40, Short.MAX_VALUE))\r\n .addGap(129, 129, 129))\r\n .addGroup(jPanel2Layout.createSequentialGroup()\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(txt_CorreoV, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(btn_Registrar)\r\n .addComponent(btn_cancelar))\r\n .addGap(36, 36, 36))))\r\n .addGroup(jPanel2Layout.createSequentialGroup()\r\n .addComponent(jLabel4)\r\n .addContainerGap(166, Short.MAX_VALUE))))\r\n );\r\n\r\n lbl_text1.setBackground(new java.awt.Color(166, 166, 35));\r\n lbl_text1.setFont(new java.awt.Font(\"Trebuchet MS\", 3, 18)); // NOI18N\r\n lbl_text1.setForeground(new java.awt.Color(255, 255, 255));\r\n lbl_text1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\r\n lbl_text1.setText(\"Registro Vendedor\");\r\n\r\n jLabel12.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\r\n jLabel12.setForeground(new java.awt.Color(255, 255, 255));\r\n jLabel12.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/iconos/iconoGenral.png\"))); // NOI18N\r\n jLabel12.setText(\"EcuCinema\");\r\n\r\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\r\n jPanel1.setLayout(jPanel1Layout);\r\n jPanel1Layout.setHorizontalGroup(\r\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel1Layout.createSequentialGroup()\r\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\r\n .addGroup(jPanel1Layout.createSequentialGroup()\r\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addComponent(lbl_text1, javax.swing.GroupLayout.PREFERRED_SIZE, 239, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGap(63, 63, 63)\r\n .addComponent(jLabel12, javax.swing.GroupLayout.PREFERRED_SIZE, 152, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()\r\n .addGap(61, 61, 61)\r\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\r\n .addContainerGap(60, Short.MAX_VALUE))\r\n );\r\n jPanel1Layout.setVerticalGroup(\r\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel1Layout.createSequentialGroup()\r\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel1Layout.createSequentialGroup()\r\n .addGap(21, 21, 21)\r\n .addComponent(lbl_text1))\r\n .addComponent(jLabel12))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\r\n );\r\n\r\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\r\n getContentPane().setLayout(layout);\r\n layout.setHorizontalGroup(\r\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n );\r\n layout.setVerticalGroup(\r\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n );\r\n\r\n pack();\r\n }", "public String desactivarEditarLicencia() {\r\n\r\n this.bandMod = true;\r\n if (puntAnt.compareTo(\"2\") == 0) {\r\n this.activeTabIndex = Constantes.TAB_BUSQUEDA;\r\n } else {\r\n\r\n if (puntAnt.compareTo(\"1\") == 0) {\r\n\r\n this.activeTabIndex = Constantes.TAB_MODIFICAR;\r\n \r\n }\r\n }\r\n\r\n Mensaje.guardarMensajeExito(\"Cancelar, Editar Licencia !!!\", \"Licencias\");\r\n\r\n return null;\r\n }", "public static void addLicensee( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.add(model, instanceResource, LICENSEE, value);\r\n\t}", "public void createPersonalInfos(JFrame jFrame, ControllerAdmin controllerAdminPersonalInfos){\n JLabel jLabelAcount = new JLabel(\"Compte\");\n jLabelAcount.setBounds(20, 20, 100, 28);\n\n JLabel jLabelId = new JLabel(\"Identifiant :\");\n jLabelId.setBounds(40, 50, 300, 28);\n JTextField jTextFieldId = new JTextField(controllerAdminPersonalInfos.getUser().getId());\n jTextFieldId.setBounds(40, 80, 300, 28);\n\n JLabel jLabelLastName = new JLabel(\"Nom :\");\n jLabelLastName.setBounds(40, 110, 300, 28);\n JTextField jTextFieldLastName = new JTextField(controllerAdminPersonalInfos.getUser().getLastName());\n jTextFieldLastName.setBounds(40, 140, 300, 28);\n\n JLabel jLabelFirstName = new JLabel(\"Prenom :\");\n jLabelFirstName.setBounds(40, 170, 300, 28);\n JTextField jTextFieldFirstName = new JTextField(controllerAdminPersonalInfos.getUser().getFirstName());\n jTextFieldFirstName.setBounds(40, 200, 300, 28);\n\n JLabel jLabelEmail = new JLabel(\"Email :\");\n jLabelEmail.setBounds(40, 230, 300, 28);\n JTextField jTextFieldEmail = new JTextField(controllerAdminPersonalInfos.getUser().getEmail());\n jTextFieldEmail.setBounds(40, 260, 300, 28);\n\n JLabel jLabelPassword = new JLabel(\"Mot de passe :\");\n jLabelPassword.setBounds(40, 290, 300, 28);\n JPasswordField jPasswordFieldPassword = new JPasswordField(controllerAdminPersonalInfos.getUser().getPassword());\n jPasswordFieldPassword.setBounds(40, 320, 300, 28);\n\n JButton jButtonModifPassword = new JButton(\"Modifier le mot de passe\");\n jButtonModifPassword.setBounds(350, 320, 200, 28);\n\n //set editabilite\n jTextFieldId.setEditable(false);\n jTextFieldLastName.setEditable(false);\n jTextFieldFirstName.setEditable(false);\n jTextFieldEmail.setEditable(false);\n jPasswordFieldPassword.setEditable(false);\n\n // Ajout des element à la JFrame\n jFrame.add(jLabelAcount);\n jFrame.add(jLabelId);\n jFrame.add(jTextFieldId);\n jFrame.add(jLabelLastName);\n jFrame.add(jTextFieldLastName);\n jFrame.add(jLabelFirstName);\n jFrame.add(jTextFieldFirstName);\n jFrame.add(jLabelEmail);\n jFrame.add(jTextFieldEmail);\n jFrame.add(jLabelPassword);\n jFrame.add(jButtonModifPassword);\n jFrame.add(jPasswordFieldPassword);\n\n jButtonModifPassword.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n createModifPassword(jFrame, controllerAdminPersonalInfos);\n jFrame.repaint();\n }\n });\n\n jFrame.setLayout(null);\n jFrame.setVisible(true);\n }", "Secuencia createSecuencia();", "private void botaoSalvar4MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_botaoSalvar4MouseClicked\n\n // Instancia objeto com metodo de verificacao dos campos.\n VerificacoesCamposCliente verificarCampos = new VerificacoesCamposCliente();\n\n // Insere confirmacao para insercao.\n int confirmar = JOptionPane.showConfirmDialog(null, \"Confirmacao\", \"Deseja prosseguir?\", JOptionPane.OK_OPTION);\n\n // Se positiva a continuacao.\n if (confirmar == 0) {\n\n // Para erros em sql.\n try {\n\n //Cria objeto de verificacao.\n boolean verificar = false;\n\n // Instancia objeto com o metodo de verificacao.\n // Seu parametro tem os campos de verificacao do painel.\n verificar = verificarCampos.verificarFormularios(\n textoNome.getText(),\n textoCPF.getText(),\n comboGenero.getSelectedItem().toString(),\n textoDataDeNascimento.getText(),\n textoEnderecoLogradouro.getText(),\n textoBairro.getText(),\n textoComplemento.getText(),\n textoNumero.getText(),\n textoTelefone.getText(),\n textoCelular.getText(),\n textoCEP.getText(),\n textoDD_Telefone.getText(),\n textoDD_Celular.getText()\n );\n \n // Verifica se ja eh existente o cpf.\n boolean verificaCPF = verificarCampos.verificarCPF(textoCPF.getText());\n \n // Se os campos estiverem de acorda com as regras, insere.\n if (verificar && verificaCPF) {\n\n // Instancia nos objetos os metodos de dados, endereco e contato.\n DadosPessoais dados = new DadosPessoais();\n Endereco endereco = new Endereco();\n Contato contato = new Contato();\n\n // Objeto de dados insere os dados pessoais do cliente.\n dados.setNome(textoNome.getText());\n dados.setCPF(textoCPF.getText());\n dados.setGenero(comboGenero.getSelectedItem().toString());\n dados.setDataNascimento(textoDataDeNascimento.getText());\n\n // Objeto de endereco insere o endereco do cliente.\n endereco.setLogradouro(textoEnderecoLogradouro.getText());\n endereco.setBairro(textoBairro.getText());\n endereco.setComplemento(textoComplemento.getText());\n endereco.setNumero(textoNumero.getText());\n endereco.setCEP(textoCEP.getText());\n\n // Objeto de contato insere os contatos do cliente.\n contato.setEmail(textoEmail.getText());\n contato.setTelefone(textoTelefone.getText());\n contato.setDD_Telefone(textoDD_Telefone.getText());\n contato.setCelular(textoCelular.getText());\n contato.setDD_Celular(textoDD_Celular.getText());\n\n // Verifica se tem imagem selecionada.\n if (imgCaminho == null) {\n\n // Se não, insere um caminho de imagem pre definido.\n imgCaminho = \"src\\\\br\\\\com\\\\Grupo07\\\\Imagens\\\\perfil.jpg\";\n dados.setImagem(imgCaminho);\n\n } else {\n\n // Se sim, insere o caminho da imagem selecionada.\n dados.setImagem(imgCaminho);\n\n }\n\n // Chama classe de servico para cadastrar cliente com seus construtores(objetos).\n ServicosCliente.cadastrarCliente(dados, endereco, contato);\n\n // Mensagem de sucesso\n JOptionPane.showMessageDialog(null, \"Cadastratado\", \"Sucesso\", JOptionPane.INFORMATION_MESSAGE);\n\n // Limpa campos.\n limparCampos();\n\n }\n\n // Mensagem de erro no banco de dados\n } catch (SQLException ex) {\n\n JOptionPane.showMessageDialog(null, \"Erro no banco de dados\", \"Erro\", JOptionPane.ERROR);\n\n // Mensagem de erro na imagem.\n } catch (FileNotFoundException ex) {\n\n JOptionPane.showMessageDialog(null, \"Erro no imagem\", \"Erro\", JOptionPane.ERROR);\n \n }\n\n // Se negativa a continuacao.\n } else {\n\n JOptionPane.showMessageDialog(null, \"Cancelado, sucesso\", \"Cancelamento\", JOptionPane.OK_OPTION);\n\n }\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel7 = new javax.swing.JLabel();\n jPanel1 = new javax.swing.JPanel();\n jLabel8 = new javax.swing.JLabel();\n jLabel9 = new javax.swing.JLabel();\n jLabel1 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n jLabel11 = new javax.swing.JLabel();\n jButton1 = new javax.swing.JButton();\n BTNDarseDeBaja = new javax.swing.JButton();\n jDCDate = new com.toedter.calendar.JDateChooser();\n TFAddPassword = new javax.swing.JTextField();\n LabelLevel = new javax.swing.JLabel();\n TFAddAltEmail = new javax.swing.JTextField();\n TFAddPhoneNumber = new javax.swing.JTextField();\n BTNAddPhoto = new javax.swing.JButton();\n TFAddPhoto = new javax.swing.JTextField();\n ButtonExit = new javax.swing.JButton();\n\n jLabel7.setFont(new java.awt.Font(\"Castellar\", 1, 18)); // NOI18N\n jLabel7.setForeground(new java.awt.Color(237, 178, 0));\n jLabel7.setText(\"CREAR CUENTA\");\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(15, 0, 105));\n\n jPanel1.setBackground(new java.awt.Color(15, 0, 105));\n\n jLabel8.setForeground(new java.awt.Color(153, 153, 153));\n jLabel8.setText(\"____________________________\");\n\n jLabel9.setForeground(new java.awt.Color(153, 153, 153));\n jLabel9.setText(\"____________________________\");\n\n jLabel1.setForeground(new java.awt.Color(255, 255, 255));\n jLabel1.setText(\"Nueva contraseña\");\n\n jLabel3.setForeground(new java.awt.Color(255, 255, 255));\n jLabel3.setText(\"Nuevo correo alterno\");\n\n jLabel4.setForeground(new java.awt.Color(255, 255, 255));\n jLabel4.setText(\"Fecha de nacimiento\");\n\n jLabel5.setForeground(new java.awt.Color(255, 255, 255));\n jLabel5.setText(\"Nuevo teléfono\");\n\n jLabel6.setForeground(new java.awt.Color(255, 255, 255));\n jLabel6.setText(\"Nueva fotografía\");\n\n jLabel10.setForeground(new java.awt.Color(153, 153, 153));\n jLabel10.setText(\"o\");\n\n jLabel11.setFont(new java.awt.Font(\"Castellar\", 1, 18)); // NOI18N\n jLabel11.setForeground(new java.awt.Color(237, 178, 0));\n jLabel11.setText(\"Información de la cuenta\");\n\n jButton1.setBackground(new java.awt.Color(0, 153, 0));\n jButton1.setForeground(new java.awt.Color(255, 255, 255));\n jButton1.setText(\"Actualizar información\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n BTNDarseDeBaja.setBackground(new java.awt.Color(204, 0, 51));\n BTNDarseDeBaja.setForeground(new java.awt.Color(255, 255, 255));\n BTNDarseDeBaja.setText(\"Darse de baja\");\n BTNDarseDeBaja.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n BTNDarseDeBajaActionPerformed(evt);\n }\n });\n\n TFAddPassword.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n TFAddPasswordActionPerformed(evt);\n }\n });\n TFAddPassword.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyReleased(java.awt.event.KeyEvent evt) {\n TFAddPasswordKeyReleased(evt);\n }\n public void keyTyped(java.awt.event.KeyEvent evt) {\n TFAddPasswordKeyTyped(evt);\n }\n });\n\n LabelLevel.setForeground(new java.awt.Color(255, 0, 0));\n\n TFAddAltEmail.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n TFAddAltEmailFocusLost(evt);\n }\n });\n TFAddAltEmail.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n TFAddAltEmailKeyTyped(evt);\n }\n });\n\n TFAddPhoneNumber.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n TFAddPhoneNumberKeyTyped(evt);\n }\n });\n\n BTNAddPhoto.setBackground(new java.awt.Color(18, 30, 49));\n BTNAddPhoto.setText(\"...\");\n BTNAddPhoto.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n BTNAddPhotoActionPerformed(evt);\n }\n });\n\n TFAddPhoto.setText(\"Seleccionar archivo\");\n TFAddPhoto.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n TFAddPhotoKeyTyped(evt);\n }\n });\n\n ButtonExit.setBackground(new java.awt.Color(97, 0, 0));\n ButtonExit.setForeground(new java.awt.Color(255, 255, 255));\n ButtonExit.setText(\"Salir\");\n ButtonExit.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ButtonExitActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(79, 79, 79)\n .addComponent(jLabel11)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(51, 51, 51)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(TFAddPhoneNumber, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(TFAddAltEmail, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jDCDate, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(TFAddPassword))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(LabelLevel, javax.swing.GroupLayout.PREFERRED_SIZE, 156, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(36, 36, 36))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(TFAddPhoto, javax.swing.GroupLayout.PREFERRED_SIZE, 255, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(BTNAddPhoto))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(24, 24, 24)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(6, 6, 6)\n .addComponent(BTNDarseDeBaja, javax.swing.GroupLayout.PREFERRED_SIZE, 167, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 192, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGap(0, 27, Short.MAX_VALUE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1)\n .addComponent(jLabel3)\n .addComponent(jLabel4)\n .addComponent(jLabel5)\n .addComponent(jLabel6)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(12, 12, 12)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jButton1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 168, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel8, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 180, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(210, 210, 210)\n .addComponent(ButtonExit)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel11)\n .addGap(12, 12, 12)\n .addComponent(jLabel1)\n .addGap(4, 4, 4)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(LabelLevel, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(TFAddPassword, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel3)\n .addGap(3, 3, 3)\n .addComponent(TFAddAltEmail, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel4)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jDCDate, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(9, 9, 9)\n .addComponent(jLabel5)\n .addGap(7, 7, 7)\n .addComponent(TFAddPhoneNumber, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabel6)\n .addGap(8, 8, 8)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(TFAddPhoto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(BTNAddPhoto, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(42, 42, 42)\n .addComponent(jButton1)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel10)\n .addComponent(jLabel8)\n .addComponent(jLabel9))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(BTNDarseDeBaja)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 11, Short.MAX_VALUE)\n .addComponent(ButtonExit)\n .addContainerGap())))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n );\n\n pack();\n }", "@PostMapping(value = \"/competitionAdminRequest/new\")\n\tpublic String processCreationForm(@Valid final CompAdminRequest compAdminRequest, final BindingResult result) throws DataAccessException {\n\n\t\t//Obtenemos el username del usuario actual conectado\n\t\tAuthentication authentication = SecurityContextHolder.getContext().getAuthentication();\n\t\tString currentPrincipalName = authentication.getName();\n\n\t\tAuthenticated thisUser = this.authenticatedService.findAuthenticatedByUsername(currentPrincipalName);\n\n\t\t//Si hay errores seguimos en la vista de creación\n\t\tif (result.hasErrors()) {\n\t\t\treturn CompAdminRequestController.VIEWS_COMP_ADMIN_REQUEST_CREATE_OR_UPDATE_FORM;\n\t\t} else {\n\t\t\tcompAdminRequest.setUser(thisUser.getUser());\n\t\t\tcompAdminRequest.setStatus(RequestStatus.ON_HOLD);\n\n\t\t\tthis.compAdminRequestService.saveCompAdminRequest(compAdminRequest);\n\n\t\t\t//Si todo sale bien vamos a la vista de mi club\n\t\t\treturn \"redirect:/myCompetitionAdminRequest\";\n\t\t}\n\t}", "Builder addLicense(CreativeWork value);", "public String crea() {\n c.setId(0);\n clienteDAO.crea(c); \n //Post-Redirect-Get\n return \"visualiza?faces-redirect=true&id=\"+c.getId();\n }", "public ModificarUser() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"Cotizador Encinales\");\n this.jLabel7.setText(\"\");\n this.jLabel8.setText(\"\");\n this.jLabel9.setText(\"\");\n this.jLabel10.setText(\"\");\n \n evitarPegar(this.TxtModCorreo);\n evitarPegar(this.TxtModNombre);\n evitarPegar(this.TxtModPassword);\n evitarPegar(this.TxtModUsuario);\n }", "public void crear() {\n con = new Conexion();\n con.setInsertar(\"insert into lenguajes_programacion (nombre, fecha_creacion, estado) values ('\"+this.getNombre()+\"', '\"+this.getFecha_creacion()+\"', 'activo')\");\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n panelTitleLbl = new javax.swing.JLabel();\n titleSeparator = new javax.swing.JSeparator();\n nameLbl = new javax.swing.JLabel();\n nameTextField = new javax.swing.JTextField();\n surnameLbl = new javax.swing.JLabel();\n surnameTextField = new javax.swing.JTextField();\n birthDateLbl = new javax.swing.JLabel();\n birthDateChooser = new com.toedter.calendar.JDateChooser();\n emailLbl = new javax.swing.JLabel();\n emailUserNameTextField = new javax.swing.JTextField();\n usernameLbl = new javax.swing.JLabel();\n userNameTextField = new javax.swing.JTextField();\n passwordLbl = new javax.swing.JLabel();\n createAccountBtn = new javax.swing.JButton();\n generateUserNameBtn = new javax.swing.JButton();\n generatePasswordBtn = new javax.swing.JButton();\n atLbl = new javax.swing.JLabel();\n emailDomainTextField = new javax.swing.JTextField();\n dotLbl = new javax.swing.JLabel();\n emailDotComTextField = new javax.swing.JTextField();\n passwordTextField = new javax.swing.JTextField();\n\n panelTitleLbl.setFont(panelTitleLbl.getFont().deriveFont(panelTitleLbl.getFont().getSize()+12f));\n panelTitleLbl.setText(\"Registracija\");\n\n nameLbl.setText(\"Ime:\");\n\n surnameLbl.setText(\"Prezime:\");\n\n birthDateLbl.setText(\"Datum rođenja:\");\n\n emailLbl.setText(\"e-mail adresa:\");\n\n usernameLbl.setText(\"Korisničko ime:\");\n\n passwordLbl.setText(\"Lozinka:\");\n\n createAccountBtn.setText(\"Kreiraj nalog\");\n createAccountBtn.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n createAccountBtnActionPerformed(evt);\n }\n });\n\n generateUserNameBtn.setText(\"Predloži\");\n generateUserNameBtn.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n generateUserNameBtnActionPerformed(evt);\n }\n });\n\n generatePasswordBtn.setText(\"Predloži\");\n generatePasswordBtn.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n generatePasswordBtnActionPerformed(evt);\n }\n });\n\n atLbl.setText(\"@\");\n\n dotLbl.setText(\".\");\n\n emailDotComTextField.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n emailDotComTextFieldActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(titleSeparator)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(panelTitleLbl, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createSequentialGroup()\n .addComponent(surnameLbl)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(surnameTextField))\n .addGroup(layout.createSequentialGroup()\n .addComponent(nameLbl)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(nameTextField))\n .addGroup(layout.createSequentialGroup()\n .addComponent(birthDateLbl)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(birthDateChooser, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(createAccountBtn, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(generateUserNameBtn, javax.swing.GroupLayout.Alignment.TRAILING)))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(passwordLbl)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(passwordTextField))\n .addGroup(layout.createSequentialGroup()\n .addComponent(usernameLbl)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(userNameTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 220, Short.MAX_VALUE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(generatePasswordBtn, javax.swing.GroupLayout.PREFERRED_SIZE, 84, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(emailLbl)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(emailUserNameTextField)\n .addGap(3, 3, 3)\n .addComponent(atLbl)\n .addGap(3, 3, 3)\n .addComponent(emailDomainTextField)\n .addGap(5, 5, 5)\n .addComponent(dotLbl)\n .addGap(5, 5, 5)\n .addComponent(emailDotComTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 62, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(panelTitleLbl)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(titleSeparator, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(nameLbl)\n .addComponent(nameTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(surnameLbl)\n .addComponent(surnameTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(birthDateLbl)\n .addComponent(birthDateChooser, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(emailLbl)\n .addComponent(emailUserNameTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(atLbl)\n .addComponent(emailDomainTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(dotLbl)\n .addComponent(emailDotComTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(usernameLbl)\n .addComponent(userNameTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(generateUserNameBtn))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(passwordLbl)\n .addComponent(generatePasswordBtn)\n .addComponent(passwordTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 30, Short.MAX_VALUE)\n .addComponent(createAccountBtn)\n .addContainerGap())\n );\n }", "public ViewPrescriptionForm() {\n initComponents();\n }", "public CARGOS_REGISTRO() {\n initComponents();\n InputMap map2 = txtNombre.getInputMap(JTextField.WHEN_FOCUSED); \n map2.put(KeyStroke.getKeyStroke(KeyEvent.VK_V, Event.CTRL_MASK), \"null\");\n InputMap maps = TxtSue.getInputMap(JTextField.WHEN_FOCUSED); \n maps.put(KeyStroke.getKeyStroke(KeyEvent.VK_V, Event.CTRL_MASK), \"null\");\n InputMap map3 = txtFun.getInputMap(JTextField.WHEN_FOCUSED); \n map3.put(KeyStroke.getKeyStroke(KeyEvent.VK_V, Event.CTRL_MASK), \"null\");\n this.setLocationRelativeTo(null);\n this.txtFun.setLineWrap(true);\n this.lblId.setText(Funciones.extraerIdMax());\n\t\tsexo.addItem(\"Administrativo\");\n\t\tsexo.addItem(\"Operativo\");\n sexo.addItem(\"Tecnico\");\n sexo.addItem(\"Servicios\");\n \n }", "@GetMapping(value = \"/utilisateur/inscription\")\n public String inscriptionForm(Model model){\n Utilisateur utilisateur=new Utilisateur();\n logger.info(\"Un visiteur veut accéder au formulaire d'inscription\");\n model.addAttribute(\"utilisateur\",utilisateur);\n return \"inscription\";\n }", "private String creerOeuvre(HttpServletRequest request) throws Exception {\n\n String vueReponse;\n try {\n Oeuvre oeuvreE = new Oeuvre();\n oeuvreE.setIdOeuvre(0);\n request.setAttribute(\"oeuvreR\", oeuvreE);\n request.setAttribute(\"titre\", \"Créer une oeuvre\");\n vueReponse = \"/oeuvre.jsp\";\n return (vueReponse);\n } catch (Exception e) {\n throw e;\n }\n }", "public String registrarActividad(){\n\t\tFacesContext context = FacesContext.getCurrentInstance();\n\t\tBloque bloque = context.getApplication().evaluateExpressionGet(context, \"#{bloque}\", Bloque.class);\n\t\tActividad actividad = context.getApplication().evaluateExpressionGet(context, \"#{actividad}\", Actividad.class);\n\t\tEncargado encargado = context.getApplication().evaluateExpressionGet(context, \"#{encargado}\", Encargado.class);\n\t\t\n\t\ttry {\n\t\t\tactividad.registrarActividad();\n\t\t\tactividad.registrarActividad_Bloque(bloque.getTematica());\n\t\t\tactividad.registrarActividad_Encargado(encargado.getCedula());\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\t\n\t\t\t\t\t\n\t\t// put the user object into the POST request \n\t\tFacesContext.getCurrentInstance().getExternalContext().getRequestMap().put(\"actividad\", actividad);\n\t\t\n\t\treturn \"principalAdministrador.xhtml\";\n\t}", "@GetMapping(\"/producto/nuevo\")\n\tpublic String nuevoProductoForm(Model model) {\n\t\tmodel.addAttribute(\"producto\", new Producto());\n\t\treturn \"app/producto/form\";\n\t}", "@Override\n\t\t\tpublic void buttonClick(ClickEvent event) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tConfirmDialog.show(UI.getCurrent(), MESSAGE_1,\"\",\"Aceptar\",\"Crear mas Usuarios\",\n\t\t\t\t new ConfirmDialog.Listener() {\n\n\t\t\t\t public void onClose(ConfirmDialog dialog) {\t\n\t\t\t\t \tent= false;\n\t\t\t\t if (dialog.isConfirmed()) {\n\t\t\t\t // Confirmed to continue\t\n\t\t\t\t \tc.navegar((StartView.VIEW_NAME));\n\t\t\t\t } else {\n\t\t\t\t // User did not confirm\t\t\t \n\t\t\t\t \t//c.crearWindow(RegistrarUser.VIEW_NAME);\n\t\t\t\t \tc.navegar((StartView.VIEW_NAME));\n\t\t\t\t \n\t\t\t\t }\n\t\t\t\t \n\t\t\t\t }\n\t\t\t\t \n\t\t\t\t });\n\t\t\t\t\n\t\t\t\t//Notification nota= new Notification(\"Registro Exitoso!\",Notification.Type.HUMANIZED_MESSAGE);\n\t\t\t\t//nota.setDelayMsec(-1);\n\t\t\t\t//nota.show(Page.getCurrent());\t\n\t\t\t\t\n\t\t\t\tclose();\t\t\t\n\t\t\t}", "public void setLicence(Long licence) {\r\n this.licence = licence;\r\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel7 = new javax.swing.JLabel();\n jLabel1 = new javax.swing.JLabel();\n rp_tx_clave = new javax.swing.JTextField();\n jLabel2 = new javax.swing.JLabel();\n rp_tx_nombre = new javax.swing.JTextField();\n jLabel3 = new javax.swing.JLabel();\n rp_tx_cantidad = new javax.swing.JTextField();\n jLabel4 = new javax.swing.JLabel();\n rp_tx_marca = new javax.swing.JComboBox<String>();\n jLabel5 = new javax.swing.JLabel();\n rp_tx_precio = new javax.swing.JTextField();\n jLabel6 = new javax.swing.JLabel();\n rp_tx_descripcion = new javax.swing.JTextField();\n jButton1 = new javax.swing.JButton();\n\n setClosable(true);\n setIconifiable(true);\n setMaximizable(true);\n setResizable(true);\n\n jLabel7.setBackground(new java.awt.Color(0, 0, 0));\n jLabel7.setFont(new java.awt.Font(\"Verdana\", 3, 24)); // NOI18N\n jLabel7.setForeground(new java.awt.Color(255, 255, 255));\n jLabel7.setText(\"REGISTRAR PRODUCTO\");\n\n jLabel1.setFont(new java.awt.Font(\"Verdana\", 1, 14)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(255, 255, 255));\n jLabel1.setText(\"Clave:\");\n\n jLabel2.setFont(new java.awt.Font(\"Verdana\", 1, 14)); // NOI18N\n jLabel2.setForeground(new java.awt.Color(255, 255, 255));\n jLabel2.setText(\"Nombre:\");\n\n jLabel3.setFont(new java.awt.Font(\"Verdana\", 1, 14)); // NOI18N\n jLabel3.setForeground(new java.awt.Color(255, 255, 255));\n jLabel3.setText(\"Cantidad:\");\n\n jLabel4.setFont(new java.awt.Font(\"Verdana\", 1, 14)); // NOI18N\n jLabel4.setForeground(new java.awt.Color(255, 255, 255));\n jLabel4.setText(\"Marca:\");\n\n jLabel5.setFont(new java.awt.Font(\"Verdana\", 1, 14)); // NOI18N\n jLabel5.setForeground(new java.awt.Color(255, 255, 255));\n jLabel5.setText(\"Precio:\");\n\n jLabel6.setFont(new java.awt.Font(\"Verdana\", 1, 14)); // NOI18N\n jLabel6.setForeground(new java.awt.Color(255, 255, 255));\n jLabel6.setText(\"Descripcion:\");\n\n jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Imagenes/btn_guardar.jpg\"))); // NOI18N\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(26, 26, 26)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel7)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(rp_tx_descripcion, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 212, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(rp_tx_precio, javax.swing.GroupLayout.PREFERRED_SIZE, 212, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(rp_tx_nombre, javax.swing.GroupLayout.PREFERRED_SIZE, 212, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(rp_tx_clave, javax.swing.GroupLayout.PREFERRED_SIZE, 212, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(rp_tx_cantidad)\n .addComponent(rp_tx_marca, javax.swing.GroupLayout.PREFERRED_SIZE, 212, javax.swing.GroupLayout.PREFERRED_SIZE))))))\n .addGroup(layout.createSequentialGroup()\n .addGap(95, 95, 95)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 129, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(25, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 47, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(17, 17, 17)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(rp_tx_clave, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(rp_tx_nombre)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(24, 24, 24)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(rp_tx_cantidad)\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createSequentialGroup()\n .addGap(3, 3, 3)\n .addComponent(rp_tx_marca, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(rp_tx_precio)\n .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(rp_tx_descripcion, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(24, Short.MAX_VALUE))\n );\n\n pack();\n }", "public SalidaCajaForm() {\n\t\tinicializarComponentes();\n }", "public void actionPerformed(ActionEvent e) {\n\t\t\t\tdialogLicense();\r\n\t\t\t}", "public void addLicensee( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.add(this.model, this.getResource(), LICENSEE, value);\r\n\t}", "public UsuarioForm(java.awt.Frame parent, boolean modal, Usuarios usuario) {\n super(parent, modal);\n initComponents(); \n this.usuario = usuario;\n llenarDatos();\n }", "public VistaUsuarioContenido() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n txtPassword = new javax.swing.JPasswordField();\n lblPassword = new javax.swing.JLabel();\n btnSignUp = new javax.swing.JButton();\n txtNombre = new javax.swing.JTextField();\n lblNombre = new javax.swing.JLabel();\n txtUsuario = new javax.swing.JTextField();\n lblUsuario = new javax.swing.JLabel();\n lblDocumento = new javax.swing.JLabel();\n txtDocumento = new javax.swing.JTextField();\n txtPasswordConf = new javax.swing.JPasswordField();\n lblPassword2 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n cmbEmail = new javax.swing.JComboBox();\n txtOtrocorreol = new javax.swing.JTextField();\n btnBack = new javax.swing.JButton();\n lblCorreo = new javax.swing.JLabel();\n txtCorreo = new javax.swing.JTextField();\n lblTelefono = new javax.swing.JLabel();\n txtTelefono = new javax.swing.JTextField();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"Registro Vendedor\");\n setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n setResizable(false);\n\n txtPassword.setBackground(new java.awt.Color(240, 240, 240));\n\n lblPassword.setFont(new java.awt.Font(\"Bitstream Vera Sans\", 0, 14)); // NOI18N\n lblPassword.setForeground(new java.awt.Color(255, 255, 255));\n lblPassword.setText(\"Contraseña:\");\n\n btnSignUp.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Vista/media/registerB.png\"))); // NOI18N\n btnSignUp.setToolTipText(\"Sign Up\");\n btnSignUp.setBorder(null);\n btnSignUp.setBorderPainted(false);\n btnSignUp.setContentAreaFilled(false);\n btnSignUp.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n btnSignUp.setFocusPainted(false);\n btnSignUp.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n btnSignUp.setPressedIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Vista/media/registerC.png\"))); // NOI18N\n btnSignUp.setRolloverIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Vista/media/registerA.png\"))); // NOI18N\n btnSignUp.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM);\n btnSignUp.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n btnSignUp.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnSignUpActionPerformed(evt);\n }\n });\n\n txtNombre.setBackground(new java.awt.Color(240, 240, 240));\n\n lblNombre.setFont(new java.awt.Font(\"Bitstream Vera Sans\", 0, 14)); // NOI18N\n lblNombre.setForeground(new java.awt.Color(255, 255, 255));\n lblNombre.setText(\"Nombre:\");\n\n txtUsuario.setBackground(new java.awt.Color(240, 240, 240));\n\n lblUsuario.setFont(new java.awt.Font(\"Bitstream Vera Sans\", 0, 14)); // NOI18N\n lblUsuario.setForeground(new java.awt.Color(255, 255, 255));\n lblUsuario.setText(\"Usuario:\");\n\n lblDocumento.setFont(new java.awt.Font(\"Bitstream Vera Sans\", 0, 14)); // NOI18N\n lblDocumento.setForeground(new java.awt.Color(255, 255, 255));\n lblDocumento.setText(\"Documento:\");\n\n txtDocumento.setBackground(new java.awt.Color(240, 240, 240));\n\n txtPasswordConf.setBackground(new java.awt.Color(240, 240, 240));\n\n lblPassword2.setFont(new java.awt.Font(\"Bitstream Vera Sans\", 0, 14)); // NOI18N\n lblPassword2.setForeground(new java.awt.Color(255, 255, 255));\n lblPassword2.setText(\"Confirmar contraseña:\");\n\n jLabel5.setFont(new java.awt.Font(\"Papyrus\", 0, 14)); // NOI18N\n jLabel5.setForeground(new java.awt.Color(255, 255, 255));\n jLabel5.setText(\"@\");\n\n cmbEmail.setFont(new java.awt.Font(\"Bitstream Vera Sans\", 0, 14)); // NOI18N\n cmbEmail.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"gmail.com\", \"outlook.com\", \"hotmail.com\", \"yahoo.com\", \"Otro\" }));\n cmbEmail.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cmbEmailActionPerformed(evt);\n }\n });\n\n txtOtrocorreol.setEnabled(false);\n\n btnBack.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Vista/media/rbackB.png\"))); // NOI18N\n btnBack.setToolTipText(\"Go back\");\n btnBack.setBorder(null);\n btnBack.setBorderPainted(false);\n btnBack.setContentAreaFilled(false);\n btnBack.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n btnBack.setFocusPainted(false);\n btnBack.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n btnBack.setPressedIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Vista/media/rbackC.png\"))); // NOI18N\n btnBack.setRolloverIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Vista/media/rbackA.png\"))); // NOI18N\n btnBack.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnBackActionPerformed(evt);\n }\n });\n\n lblCorreo.setFont(new java.awt.Font(\"Bitstream Vera Sans\", 0, 14)); // NOI18N\n lblCorreo.setForeground(new java.awt.Color(255, 255, 255));\n lblCorreo.setText(\"Correo:\");\n\n txtCorreo.setBackground(new java.awt.Color(240, 240, 240));\n\n lblTelefono.setFont(new java.awt.Font(\"Bitstream Vera Sans\", 0, 14)); // NOI18N\n lblTelefono.setForeground(new java.awt.Color(255, 255, 255));\n lblTelefono.setText(\"Telefono:\");\n\n txtTelefono.setBackground(new java.awt.Color(240, 240, 240));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(63, 63, 63)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(lblNombre)\n .addComponent(lblCorreo)\n .addComponent(lblDocumento)\n .addComponent(lblTelefono))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(txtTelefono, javax.swing.GroupLayout.PREFERRED_SIZE, 158, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(lblPassword2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(txtPasswordConf, javax.swing.GroupLayout.PREFERRED_SIZE, 147, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(lblPassword)\n .addComponent(lblUsuario)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(cmbEmail, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txtPassword, javax.swing.GroupLayout.PREFERRED_SIZE, 147, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, 147, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtOtrocorreol, javax.swing.GroupLayout.PREFERRED_SIZE, 147, javax.swing.GroupLayout.PREFERRED_SIZE)))))\n .addComponent(txtNombre, javax.swing.GroupLayout.PREFERRED_SIZE, 158, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtDocumento, javax.swing.GroupLayout.PREFERRED_SIZE, 158, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtCorreo, javax.swing.GroupLayout.PREFERRED_SIZE, 158, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(63, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(btnSignUp)\n .addGap(84, 84, 84)\n .addComponent(btnBack)\n .addGap(0, 0, Short.MAX_VALUE))))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtDocumento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(lblDocumento))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txtNombre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createSequentialGroup()\n .addComponent(lblNombre)\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lblCorreo)\n .addComponent(txtCorreo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel5)\n .addComponent(cmbEmail, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtOtrocorreol, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lblTelefono)\n .addComponent(txtTelefono, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(lblUsuario))\n .addGap(6, 6, 6)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtPassword, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(lblPassword))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtPasswordConf, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(lblPassword2))))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(btnSignUp, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(btnBack, javax.swing.GroupLayout.Alignment.TRAILING))\n .addContainerGap())\n );\n\n pack();\n }", "Compleja createCompleja();", "public registrarConsumo() throws DAOException {\n initComponents();\n SimpleDateFormat formato = new SimpleDateFormat(\"yyyy-MM-dd\");\n String fechaformateada = formato.format(new Date());\n anio = Integer.parseInt(fechaformateada.substring(0, 4));\n mes = Integer.parseInt(fechaformateada.substring(5, 7));\n conn = conecionBD.conexion();\n CoutaDAO couta= new CoutaDAOImpl(conn);\n Couta couata= couta.buscarCuota();\n precio=couata.getPRECIO();\n \n if(mes == 12 || mes == 1){\n p = 1;\n comboPeriodo.setSelectedIndex(0);\n }else if(mes == 2 || mes == 3){\n p = 2;\n comboPeriodo.setSelectedIndex(1);\n }else if(mes == 4 || mes == 5){\n p = 3;\n comboPeriodo.setSelectedIndex(2);\n }else if(mes == 6 || mes == 7){\n p = 4;\n comboPeriodo.setSelectedIndex(3);\n }else if(mes == 8 || mes == 9){\n p = 5;\n comboPeriodo.setSelectedIndex(4); \n }else if(mes == 10 || mes == 11){\n p = 6;\n comboPeriodo.setSelectedIndex(5); \n }\n periodo = p;\n }", "private void B_InscrireActionPerformed(java.awt.event.ActionEvent evt) {\n \n String ident=T_Email.getText();\n String mdp1=String.valueOf(Ps_Mdp.getPassword());\n String mdp2=String.valueOf(Ps_ConfirmeMdp.getPassword());\n String prenom_uti=prenom.getText();\n String nom_uti=nom.getText();\n \n boolean ajout;\n \n if (mdp1.equals(mdp2)){\n System.out.println(\"Les deux mots de passe correspondent\");\n Bdd bdd = new Bdd();\n \n //On vérifie que l'utilisateur existe pas déjà\n boolean exists = bdd.liste_uti(ident);\n \n if(exists==true){ //alors on ajoute\n bdd.Inscription(ident,mdp1,prenom_uti,nom_uti);\n AffichageConnexion Aff = new AffichageConnexion();\n Aff.setLocationRelativeTo(null);\n Aff.setVisible(true);\n this.dispose();\n }\n else {\n System.out.println(\"existe déjà\");\n } \n }\n else \n System.out.println(\"mdp diff\");\n }", "private DocumentoProcesoDTO registrarDocumentoSolicitudBien(EnumTipoDocumentoGenerado tipoDocGenerado,\n TrazabilidadProcesoDTO traza, OficioBienDTO oficioBienDTO, EnumTipoDocumentoProceso tipoDocProceso,\n String responsableGeneracion) throws CirculemosAlertaException {\n // Genera documento\n GeneraDocumentoDTO generaDocumento = new GeneraDocumentoDTO();\n generaDocumento.setFechaGeneracion(oficioBienDTO.getFechaGeneracion());\n generaDocumento.setIdTipoDocumentoGenerado(tipoDocGenerado);\n Object[] valoresParametros = { oficioBienDTO.getId() };\n generaDocumento.setValoresParametros(valoresParametros);\n Long idDocumento = iRDocumentosCirculemos.generarDocumento(generaDocumento);\n\n // Guarda el documento generado\n DocumentoProcesoDTO documentoProceso = new DocumentoProcesoDTO();\n documentoProceso.setNumeroDocumento(idDocumento);\n documentoProceso.setTrazabilidadProceso(traza);\n TipoDocumentoProcesoDTO tipoDocumento = new TipoDocumentoProcesoDTO();\n tipoDocumento.setId(tipoDocProceso.getValue());\n documentoProceso.setTipoDocumento(tipoDocumento);\n // Responsable de la generacion de los documentos\n documentoProceso.setResponsableGeneracion(responsableGeneracion);\n documentoProceso = iRFachadaProceso.registrarDocumento(documentoProceso);\n return documentoProceso;\n }", "public FormularioCliente() {\n initComponents();\n }", "private PersonCtr createCustomer()\n {\n\n // String name, String addres, int phone, int customerID\n PersonCtr c = new PersonCtr();\n String name = jTextField3.getText();\n String address = jTextPane1.getText();\n int phone = Integer.parseInt(jTextField2.getText());\n int customerID = phone;\n Customer cu = new Customer();\n cu = c.addCustomer(name, address, phone, customerID);\n JOptionPane.showMessageDialog(null, cu.getName() + \", \" + cu.getAddress()\n + \", tlf.nr.: \" + cu.getPhone() + \" er oprettet med ID nummer: \" + cu.getCustomerID()\n , \"Kunde opretttet\", JOptionPane.INFORMATION_MESSAGE);\n return c;\n\n\n }", "Builder addLicense(CreativeWork.Builder value);", "public void CrearNew(ActionEvent e) {\n List<Pensum> R = ejbFacade.existePensumID(super.getSelected().getIdpensum());\n if(R.isEmpty()){\n super.saveNew(e);\n }else{\n new Auxiliares().setMsj(3,\"PENSUM ID YA EXISTE\");\n }\n }", "public RespuestaDTO registrarUsuario(Connection conexion, UsuarioDTO usuario) throws SQLException {\n PreparedStatement ps = null;\n ResultSet rs = null;\n int nRows = 0;\n StringBuilder cadSQL = null; //para crear el ddl \n RespuestaDTO registro = null;\n \n try {\n registro = new RespuestaDTO();\n System.out.println(\"usuario----\" + usuario.toStringJson());\n cadSQL = new StringBuilder();\n cadSQL.append(\" INSERT INTO usuario(usua_correo, usua_usuario,tius_id, usua_clave)\");\n cadSQL.append(\" VALUES (?, ?, ?, SHA2(?,256)) \");\n \n ps = conexion.prepareStatement(cadSQL.toString(), Statement.RETURN_GENERATED_KEYS);\n \n AsignaAtributoStatement.setString(1, usuario.getCorreo(), ps);// se envian los datos a los ?, el orden importa mucho\n AsignaAtributoStatement.setString(2, usuario.getUsuario(), ps);\n AsignaAtributoStatement.setString(3, usuario.getIdTipoUsuario(), ps);\n AsignaAtributoStatement.setString(4, usuario.getClave(), ps);\n \n nRows = ps.executeUpdate(); // ejecuta el proceso\n if (nRows > 0) { //nRows es el numero de filas que hubo de movimiento, es decir si hizo el registro, con este if se sabe\n rs = ps.getGeneratedKeys(); // esto se usa para capturar el id recien ingresado en caso de necesitarlo despues\n if (rs.next()) {\n registro.setRegistro(true);\n registro.setIdResgistrado(rs.getString(1)); // guardo el id en en este atributo del objeto\n\n }\n // cerramos los rs y ps\n ps.close();\n ps = null;\n rs.close();\n rs = null;\n }\n } catch (SQLException se) {\n LoggerMessage.getInstancia().loggerMessageException(se);\n return null;\n }\n return registro;\n }", "@RequestMapping(value=\"/carryuser\", method=RequestMethod.POST)\r\n\tpublic String readProductForm(@ModelAttribute(\"usr\") User user)\r\n\t{\n\t\tuserDaoImpl.insertUser(user);\r\n\t\t\r\n\t\treturn \"home\";\r\n\t}", "Builder addLicense(URL value);", "public Result inicioGenerarLibro(){\n ContabilidadDTO dto = new ContabilidadDTO();\n dto.tipoLibro = new Parametro(\"\",\"LVEN\",\"\");\n //dto.tipoLibro.id.codigo =\"LVEN\";\n dto.anio = new Parametro(\"\",\"2018\",\"\");\n //dto.anio.id.codigo =\"2018\";\n dto.mes = new Parametro(\"\",\"3\",\"\");\n //dto.mes.id.codigo =\"3\"; //Simpre debe ser el mes anterior al actual\n\n Form<ContabilidadDTO> contabilidadDTOForm = formFactory.form(ContabilidadDTO.class).fill(dto);\n\n/*\n EbeanServer db = DBConnectionUtil.getDBServerFacturador();\n List<BandejaFactura> lista = db.find(BandejaFactura.class).findList();; //BandejaFactura.find.all();//obtenerTodos();\n for (BandejaFactura x:lista) {\n System.out.println(x);\n }\n*/\n/*\n EbeanServer db = DBConnectionUtil.getDBServerSGV();\n List<ControlVenta> lista = db.find(ControlVenta.class)\n .where().ilike(\"CVNT_NUM_DOCUMENTO\", \"F002-00000213\")\n .findList();\n for (ControlVenta x:lista) {\n System.out.println(\"*********** \"+x);\n }\n*/\n/*\n EbeanServer db = DBConnectionUtil.getDBServerSGV();\n List<ControlVenta> lista = db.find(ControlVenta.class).findList();; //BandejaFactura.find.all();//obtenerTodos();\n for (ControlVenta x:lista) {\n System.out.println(x);\n }\n*/\n\n return ok(generadorLibrosContables.render(contabilidadDTOForm));\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n btn_cancelar = new javax.swing.JButton();\n jSeparator1 = new javax.swing.JSeparator();\n txt_pass = new javax.swing.JPasswordField();\n jLabel1 = new javax.swing.JLabel();\n jLabel11 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n rb_admin = new javax.swing.JRadioButton();\n jLabel3 = new javax.swing.JLabel();\n rb_emplea = new javax.swing.JRadioButton();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n jLabel9 = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n txt_cedula = new javax.swing.JTextField();\n txt_nombres = new javax.swing.JTextField();\n txt_apePa = new javax.swing.JTextField();\n txt_apeMat = new javax.swing.JTextField();\n txt_telefono = new javax.swing.JTextField();\n txt_celular = new javax.swing.JTextField();\n txt_direccion = new javax.swing.JTextField();\n txt_nombre_usu = new javax.swing.JTextField();\n btn_registrar = new javax.swing.JButton();\n\n setClosable(true);\n\n btn_cancelar.setText(\"Cancelar\");\n btn_cancelar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btn_cancelarActionPerformed(evt);\n }\n });\n\n jLabel1.setFont(new java.awt.Font(\"Copperplate Gothic Bold\", 0, 12)); // NOI18N\n jLabel1.setText(\"Cedula:\");\n\n jLabel11.setFont(new java.awt.Font(\"Copperplate Gothic Bold\", 0, 12)); // NOI18N\n jLabel11.setText(\"Privilegio:\");\n\n jLabel2.setFont(new java.awt.Font(\"Copperplate Gothic Bold\", 0, 12)); // NOI18N\n jLabel2.setText(\"Nombres:\");\n\n rb_admin.setText(\"Administrador\");\n\n jLabel3.setFont(new java.awt.Font(\"Copperplate Gothic Bold\", 0, 12)); // NOI18N\n jLabel3.setText(\"Apellido Paterno:\");\n\n rb_emplea.setText(\"Empleado\");\n\n jLabel4.setFont(new java.awt.Font(\"Copperplate Gothic Bold\", 0, 12)); // NOI18N\n jLabel4.setText(\"Apellido Materno:\");\n\n jLabel5.setFont(new java.awt.Font(\"Copperplate Gothic Bold\", 0, 12)); // NOI18N\n jLabel5.setText(\"Telefono:\");\n\n jLabel6.setFont(new java.awt.Font(\"Copperplate Gothic Bold\", 0, 12)); // NOI18N\n jLabel6.setText(\"Celular:\");\n\n jLabel7.setFont(new java.awt.Font(\"Copperplate Gothic Bold\", 0, 12)); // NOI18N\n jLabel7.setText(\"Dirección\");\n\n jLabel8.setFont(new java.awt.Font(\"Copperplate Gothic Bold\", 0, 12)); // NOI18N\n jLabel8.setText(\"Nombre Usuario:\");\n\n jLabel9.setFont(new java.awt.Font(\"Copperplate Gothic Bold\", 0, 12)); // NOI18N\n jLabel9.setText(\"Contraseña:\");\n\n jLabel10.setFont(new java.awt.Font(\"Shruti\", 0, 18)); // NOI18N\n jLabel10.setText(\"Datos de Usuarios\");\n\n txt_cedula.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n txt_cedulaFocusLost(evt);\n }\n });\n\n txt_nombres.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n txt_nombresKeyTyped(evt);\n }\n });\n\n txt_apePa.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n txt_apePaKeyTyped(evt);\n }\n });\n\n txt_apeMat.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n txt_apeMatKeyTyped(evt);\n }\n });\n\n txt_telefono.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n txt_telefonoKeyTyped(evt);\n }\n });\n\n txt_celular.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n txt_celularKeyTyped(evt);\n }\n });\n\n btn_registrar.setText(\"Registrar\");\n btn_registrar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btn_registrarActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(42, 42, 42)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addComponent(jLabel4)\n .addGap(18, 18, 18)\n .addComponent(txt_apeMat))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addComponent(jLabel3)\n .addGap(18, 18, 18)\n .addComponent(txt_apePa))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel5)\n .addGap(76, 76, 76)\n .addComponent(txt_telefono))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel6)\n .addGap(85, 85, 85)\n .addComponent(txt_celular))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel7)\n .addGap(77, 77, 77)\n .addComponent(txt_direccion))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(1, 1, 1)\n .addComponent(jLabel1))\n .addComponent(jLabel2))\n .addGap(80, 80, 80)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txt_nombres)\n .addGroup(layout.createSequentialGroup()\n .addComponent(txt_cedula, javax.swing.GroupLayout.PREFERRED_SIZE, 141, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))))\n .addGroup(layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(btn_registrar)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(btn_cancelar)\n .addGap(19, 19, 19))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel9)\n .addComponent(jLabel8)\n .addComponent(jLabel11))\n .addGap(32, 32, 32)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txt_nombre_usu)\n .addComponent(txt_pass)\n .addGroup(layout.createSequentialGroup()\n .addComponent(rb_admin)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(rb_emplea)\n .addGap(0, 0, Short.MAX_VALUE)))))\n .addGap(15, 15, 15))\n .addGroup(layout.createSequentialGroup()\n .addGap(99, 99, 99)\n .addComponent(jLabel10))\n .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 324, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(37, 37, 37))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addComponent(jLabel10)\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(txt_cedula, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(txt_nombres, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(txt_apePa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(txt_apeMat, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5)\n .addComponent(txt_telefono, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel6)\n .addComponent(txt_celular, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel7)\n .addComponent(txt_direccion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel8)\n .addComponent(txt_nombre_usu, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel9)\n .addComponent(txt_pass, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel11)\n .addComponent(rb_admin)\n .addComponent(rb_emplea))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 6, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(btn_registrar)\n .addComponent(btn_cancelar))\n .addContainerGap())\n );\n\n pack();\n }", "public CrearCuenta(UsuarioVO usu) {\r\n\t\tsuper();\r\n\t\tlogger.trace(\"Constructor CrearCuenta\");\r\n\t\tinitialize();\r\n\t\tthis.setExtendedState(JFrame.MAXIMIZED_BOTH);\r\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tusuario = usu;\r\n\t}", "public void agregar(JComboBox cbx, RSDateChooser dt,\n JPasswordField pws, JTextField txtCorreo, JTextField txtDNI, JTextField txtNombre, JTextField txtApellidos,\n JTextField txtTelef) {\n\n dConfirmar = new D_Confirmar(new JFrame(), true);\n\n mComboRoll = (M_ComboRoll) cbx.getSelectedItem();\n date = dt.getDatoFecha();\n d = date.getTime();\n sqlFecha = new java.sql.Date(d);\n\n Pass = new String(pws.getPassword());\n\n nuevoPass = rText.ecnode(secretKey, Pass);\n\n mUsuarios.setDni(txtDNI.getText());\n mUsuarios.setPassword(nuevoPass);\n mUsuarios.setNombre(txtNombre.getText());\n mUsuarios.setApellidos(txtApellidos.getText());\n mUsuarios.setFechaNacimiento(sqlFecha.toString());\n mUsuarios.setCorreoElectronico(txtCorreo.getText());\n mUsuarios.setTelefono(txtTelef.getText());\n mUsuarios.setRoll(mComboRoll.getId());\n\n if (sUsuario.agregarUsuarios(mUsuarios)) {\n rAgregarImg.agregarImagen(\"/Img/Dialogos/Hecho.png\", D_Confirmar.lblImg);\n D_Confirmar.lblMensaje.setText(\"Registro Exitoso\".toUpperCase());\n limpiarCajas(pws, txtDNI, txtNombre, txtApellidos, txtTelef, txtCorreo, cbx, dt);\n mostrarTablaUsuario(V_PanelUsuario.tblUsuarios);\n dConfirmar.setVisible(true);\n } else {\n rAgregarImg.agregarImagen(\"/Img/Dialogos/Error.png\", D_Confirmar.lblImg);\n D_Confirmar.lblMensaje.setText(\"Al parecer ocurrio un error\".toUpperCase());\n limpiarCajas(pws, txtDNI, txtNombre, txtApellidos, txtTelef, txtCorreo, cbx, dt);\n dConfirmar.setVisible(true);\n }\n }", "private void newUser(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {\n\t\ttry {\n\t\t\tPrintWriter out = res.getWriter();\n\t\t\tString name = req.getParameter(Constants.NAME_USER);\n\t\t\tUserDB.introduceUser(name);\n\t\t\tlong id = UserDB.getUserId(name);\n\t\t\tUsuario u = new Usuario(name, Long.toString(id));\n\t\t\tout.print(gson.toJson(u));\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tres.setStatus(HttpServletResponse.SC_BAD_REQUEST);\n\t\t}\n\t}", "ch.crif_online.www.webservices.crifsoapservice.v1_00.BusinessIndustryLicense insertNewBusinessIndustryLicenses(int i);", "public Cuenta(Usuario usuario) { // constructor que crea objetos tipo cuenta que recibe por parámetro\n //un objeto de tipo usuario\n\n this.usuario = usuario;\n saldo = 0;\n }", "public Create_Course() {\n initComponents();\n comboBoxLec();\n comboBoxDep();\n }", "public InvoiceCreate() {\n initComponents();\n }", "public JogadorTradutor() {\n this.nome= \"Sem Registro\";\n this.pontuacao = pontuacao;\n id = id;\n \n geradorDesafioItaliano = new GerarPalavra(); // primeira palavra ja é gerada para o cliente\n }", "private void controladorUser(Controlador controlador){\n this.contUserCrearProyecto = controlador.getUserCrearProyecto();\n inicioUser.setControlCrearProyecto(contUserCrearProyecto);\n \n this.contUserCrearColectivo = controlador.getUserCrearColectivo();\n inicioUser.setControlCrearColectivo(contUserCrearColectivo);\n\n this.contInformes = controlador.getInformes();\n inicioUser.setControlSolicitarInformes(contInformes); \n \n this.contFiltrar = controlador.getFiltrar();\n inicioUser.setControlFiltrar(contFiltrar);\n\n this.contLimpiar = controlador.getLimpiarFiltro();\n inicioUser.setControlLimpiarFiltro(contLimpiar);\n }", "public void addLicensee(Contact value) {\r\n\t\tBase.add(this.model, this.getResource(), LICENSEE, value);\r\n\t}", "@FXML\n\tpublic void createProduct(ActionEvent event) {\n\t\tif (!txtProductName.getText().equals(\"\") && !txtProductPrice.getText().equals(\"\")\n\t\t\t\t&& ComboSize.getValue() != null && ComboType.getValue() != null && selectedIngredients.size() != 0) {\n\n\t\t\tProduct objProduct = new Product(txtProductName.getText(), ComboSize.getValue(), txtProductPrice.getText(),\n\t\t\t\t\tComboType.getValue(), selectedIngredients);\n\n\t\t\ttry {\n\t\t\t\trestaurant.addProduct(objProduct, empleadoUsername);\n\n\t\t\t\ttxtProductName.setText(null);\n\t\t\t\ttxtProductPrice.setText(null);\n\t\t\t\tComboSize.setValue(null);\n\t\t\t\tComboType.setValue(null);\n\t\t\t\tChoiceIngredients.setValue(null);\n\t\t\t\tselectedIngredients.clear();\n\t\t\t\tproductOptions.clear();\n\t\t\t\tproductOptions.addAll(restaurant.getStringReferencedIdsProducts());\n\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t} else {\n\t\t\tDialog<String> dialog = createDialog();\n\t\t\tdialog.setContentText(\"Todos los campos deben de ser llenados\");\n\t\t\tdialog.setTitle(\"Error al guardar los datos\");\n\t\t\tdialog.show();\n\t\t}\n\n\t}" ]
[ "0.65295434", "0.6292501", "0.61832136", "0.5693625", "0.5649373", "0.5616681", "0.55986005", "0.5573216", "0.5563004", "0.55428797", "0.55081636", "0.54571605", "0.5422036", "0.5405338", "0.5404129", "0.5397651", "0.53787017", "0.53703076", "0.53700215", "0.5358131", "0.53520346", "0.534426", "0.53216225", "0.5305847", "0.52623063", "0.52575326", "0.52505225", "0.52503663", "0.5240425", "0.5228477", "0.52185094", "0.5217024", "0.5191904", "0.5190312", "0.5184138", "0.5181335", "0.5179878", "0.5166891", "0.5148751", "0.5144099", "0.51415724", "0.5133238", "0.5133233", "0.5121529", "0.5118642", "0.5118465", "0.51121086", "0.50999343", "0.50976986", "0.50971264", "0.50914437", "0.5090669", "0.50861967", "0.5080084", "0.5077775", "0.5070355", "0.5069614", "0.5069456", "0.5066549", "0.50622886", "0.50617576", "0.5059581", "0.50559783", "0.5050869", "0.50505966", "0.5046772", "0.5044335", "0.5036545", "0.5034845", "0.5028842", "0.5024853", "0.50172526", "0.5013144", "0.5013019", "0.50114346", "0.500934", "0.5004147", "0.500226", "0.5000062", "0.49996626", "0.49979997", "0.49969485", "0.49966934", "0.49964213", "0.49950853", "0.498782", "0.49857503", "0.49850294", "0.4984383", "0.4983464", "0.4983404", "0.49816787", "0.49799955", "0.49799052", "0.49744567", "0.49744058", "0.4974317", "0.49737102", "0.4972609", "0.49670696" ]
0.67060494
0
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("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { radioGroup = new javax.swing.ButtonGroup(); lblSantaFe = new javax.swing.JLabel(); pnlTitulo = new javax.swing.JPanel(); lblEmitirLicencia = new javax.swing.JLabel(); lblSubtitulo = new javax.swing.JLabel(); pnlTitulares = new javax.swing.JPanel(); jScrollPane1 = new javax.swing.JScrollPane(); tableTitulares = new javax.swing.JTable(); txtFiltro = new javax.swing.JTextField(); btnFiltroNombre = new javax.swing.JButton(); btnFiltroApellido = new javax.swing.JButton(); btnFiltroDocumento = new javax.swing.JButton(); btnAplicarFiltro = new javax.swing.JButton(); btnLimpiarFiltro = new javax.swing.JButton(); lblBuscarPor = new javax.swing.JLabel(); pnlClaseLicencia = new javax.swing.JPanel(); jScrollPane3 = new javax.swing.JScrollPane(); txtAreaClaseLicencia = new javax.swing.JTextArea(); pnlClases = new javax.swing.JPanel(); radioE = new javax.swing.JRadioButton(); radioG = new javax.swing.JRadioButton(); radioB = new javax.swing.JRadioButton(); radioF = new javax.swing.JRadioButton(); radioA = new javax.swing.JRadioButton(); radioC = new javax.swing.JRadioButton(); radioD = new javax.swing.JRadioButton(); lblDescripcionClase = new javax.swing.JLabel(); btnEmitirLicencia = new javax.swing.JButton(); pnlDatosTitular = new javax.swing.JPanel(); labelNombre = new javax.swing.JLabel(); labelApellido = new javax.swing.JLabel(); labelTipoNroDocumento = new javax.swing.JLabel(); labelDomicilio = new javax.swing.JLabel(); labelFechaNacimiento = new javax.swing.JLabel(); labelGrupoFactorSanguineo = new javax.swing.JLabel(); labelDonanteOrganos = new javax.swing.JLabel(); lblObservaciones = new javax.swing.JLabel(); btnCancelar = new javax.swing.JButton(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); setTitle("GLC | SFC - Emitir Licencias"); setResizable(false); lblSantaFe.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); lblSantaFe.setIcon(new javax.swing.ImageIcon(getClass().getResource("/res/drawable/logo-santafe.png"))); // NOI18N lblSantaFe.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); lblEmitirLicencia.setFont(new java.awt.Font("Arial", 1, 25)); // NOI18N lblEmitirLicencia.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); lblEmitirLicencia.setText("EMITIR UNA LICENCIA"); lblSubtitulo.setFont(new java.awt.Font("Dialog", 0, 14)); // NOI18N lblSubtitulo.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); lblSubtitulo.setText("A continuación, seleccione el titular y el tipo de licencia que desea emitir."); javax.swing.GroupLayout pnlTituloLayout = new javax.swing.GroupLayout(pnlTitulo); pnlTitulo.setLayout(pnlTituloLayout); pnlTituloLayout.setHorizontalGroup( pnlTituloLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(pnlTituloLayout.createSequentialGroup() .addContainerGap() .addGroup(pnlTituloLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(lblSubtitulo, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(lblEmitirLicencia, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addContainerGap()) ); pnlTituloLayout.setVerticalGroup( pnlTituloLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(pnlTituloLayout.createSequentialGroup() .addGap(16, 16, 16) .addComponent(lblEmitirLicencia, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(lblSubtitulo, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); pnlTitulares.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Seleccione el Titular", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Dialog", 1, 12), java.awt.SystemColor.textHighlight)); // NOI18N tableTitulares.setModel(new javax.swing.table.DefaultTableModel( new Object [][] { }, new String [] { "Nombre", "Apellido", "Tipo Documento", "N° Documento" } ) { Class[] types = new Class [] { java.lang.String.class, java.lang.String.class, java.lang.Object.class, java.lang.String.class }; boolean[] canEdit = new boolean [] { false, false, false, false }; public Class getColumnClass(int columnIndex) { return types [columnIndex]; } public boolean isCellEditable(int rowIndex, int columnIndex) { return canEdit [columnIndex]; } }); tableTitulares.setRowHeight(20); jScrollPane1.setViewportView(tableTitulares); txtFiltro.setFont(txtFiltro.getFont().deriveFont(txtFiltro.getFont().getSize()+4f)); txtFiltro.setEnabled(false); btnFiltroNombre.setFont(new java.awt.Font("Dialog", 1, 14)); // NOI18N btnFiltroNombre.setIcon(new javax.swing.ImageIcon(getClass().getResource("/res/icons/filter_mini.png"))); // NOI18N btnFiltroNombre.setText("Nombre"); btnFiltroNombre.setToolTipText("Filtre a los contribuyentes por su nombre."); btnFiltroNombre.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnFiltroNombreActionPerformed(evt); } }); btnFiltroApellido.setFont(new java.awt.Font("Dialog", 1, 14)); // NOI18N btnFiltroApellido.setIcon(new javax.swing.ImageIcon(getClass().getResource("/res/icons/filter_mini.png"))); // NOI18N btnFiltroApellido.setText("Apellido"); btnFiltroApellido.setToolTipText("Filtre a los contribuyentes por su apellido."); btnFiltroApellido.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnFiltroApellidoActionPerformed(evt); } }); btnFiltroDocumento.setFont(new java.awt.Font("Dialog", 1, 14)); // NOI18N btnFiltroDocumento.setIcon(new javax.swing.ImageIcon(getClass().getResource("/res/icons/filter_mini.png"))); // NOI18N btnFiltroDocumento.setText("Documento"); btnFiltroDocumento.setToolTipText("Filtre a los contribuyentes por su N° de documento."); btnFiltroDocumento.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnFiltroDocumentoActionPerformed(evt); } }); btnAplicarFiltro.setIcon(new javax.swing.ImageIcon(getClass().getResource("/res/icons/search_mini.png"))); // NOI18N btnAplicarFiltro.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED)); btnAplicarFiltro.setEnabled(false); btnAplicarFiltro.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnAplicarFiltroActionPerformed(evt); } }); btnLimpiarFiltro.setIcon(new javax.swing.ImageIcon(getClass().getResource("/res/icons/cancel_mini.png"))); // NOI18N btnLimpiarFiltro.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED)); btnLimpiarFiltro.setEnabled(false); btnLimpiarFiltro.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnLimpiarFiltroActionPerformed(evt); } }); lblBuscarPor.setForeground(java.awt.Color.gray); lblBuscarPor.setText("Buscar por..."); javax.swing.GroupLayout pnlTitularesLayout = new javax.swing.GroupLayout(pnlTitulares); pnlTitulares.setLayout(pnlTitularesLayout); pnlTitularesLayout.setHorizontalGroup( pnlTitularesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlTitularesLayout.createSequentialGroup() .addContainerGap() .addGroup(pnlTitularesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 506, Short.MAX_VALUE) .addGroup(javax.swing.GroupLayout.Alignment.LEADING, pnlTitularesLayout.createSequentialGroup() .addComponent(txtFiltro) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(btnAplicarFiltro, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(btnLimpiarFiltro, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(javax.swing.GroupLayout.Alignment.LEADING, pnlTitularesLayout.createSequentialGroup() .addComponent(lblBuscarPor) .addGap(0, 434, Short.MAX_VALUE)) .addGroup(javax.swing.GroupLayout.Alignment.LEADING, pnlTitularesLayout.createSequentialGroup() .addComponent(btnFiltroNombre, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(28, 28, 28) .addComponent(btnFiltroApellido, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(btnFiltroDocumento, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE))) .addContainerGap()) ); pnlTitularesLayout.setVerticalGroup( pnlTitularesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(pnlTitularesLayout.createSequentialGroup() .addComponent(lblBuscarPor) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(pnlTitularesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(btnFiltroDocumento) .addComponent(btnFiltroNombre) .addComponent(btnFiltroApellido)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(pnlTitularesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(txtFiltro) .addComponent(btnAplicarFiltro, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(btnLimpiarFiltro, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE) .addContainerGap()) ); pnlClaseLicencia.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Seleccione la Clase", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Dialog", 1, 12), java.awt.SystemColor.textHighlight)); // NOI18N txtAreaClaseLicencia.setEditable(false); txtAreaClaseLicencia.setColumns(20); txtAreaClaseLicencia.setFont(txtAreaClaseLicencia.getFont().deriveFont(txtAreaClaseLicencia.getFont().getStyle() | java.awt.Font.BOLD, txtAreaClaseLicencia.getFont().getSize()-1)); txtAreaClaseLicencia.setRows(3); jScrollPane3.setViewportView(txtAreaClaseLicencia); radioE.setFont(radioE.getFont().deriveFont(radioE.getFont().getStyle() | java.awt.Font.BOLD, radioE.getFont().getSize()+8)); radioE.setForeground(javax.swing.UIManager.getDefaults().getColor("Button.darcula.selection.color2")); radioE.setText("E"); radioE.setEnabled(false); radioE.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { radioEActionPerformed(evt); } }); radioG.setFont(radioG.getFont().deriveFont(radioG.getFont().getStyle() | java.awt.Font.BOLD, radioG.getFont().getSize()+8)); radioG.setForeground(javax.swing.UIManager.getDefaults().getColor("Button.darcula.selection.color2")); radioG.setText("G"); radioG.setEnabled(false); radioG.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { radioGActionPerformed(evt); } }); radioB.setFont(radioB.getFont().deriveFont(radioB.getFont().getStyle() | java.awt.Font.BOLD, radioB.getFont().getSize()+8)); radioB.setForeground(javax.swing.UIManager.getDefaults().getColor("Button.darcula.selection.color2")); radioB.setText("B"); radioB.setEnabled(false); radioB.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { radioBActionPerformed(evt); } }); radioF.setFont(radioF.getFont().deriveFont(radioF.getFont().getStyle() | java.awt.Font.BOLD, radioF.getFont().getSize()+8)); radioF.setForeground(javax.swing.UIManager.getDefaults().getColor("Button.darcula.selection.color2")); radioF.setText("F"); radioF.setEnabled(false); radioF.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { radioFActionPerformed(evt); } }); radioA.setFont(radioA.getFont().deriveFont(radioA.getFont().getStyle() | java.awt.Font.BOLD, radioA.getFont().getSize()+8)); radioA.setForeground(new java.awt.Color(35, 48, 69)); radioA.setText("A"); radioA.setEnabled(false); radioA.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { radioAActionPerformed(evt); } }); radioC.setFont(radioC.getFont().deriveFont(radioC.getFont().getStyle() | java.awt.Font.BOLD, radioC.getFont().getSize()+8)); radioC.setForeground(javax.swing.UIManager.getDefaults().getColor("Button.darcula.selection.color2")); radioC.setText("C"); radioC.setEnabled(false); radioC.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { radioCActionPerformed(evt); } }); radioD.setFont(radioD.getFont().deriveFont(radioD.getFont().getStyle() | java.awt.Font.BOLD, radioD.getFont().getSize()+8)); radioD.setForeground(javax.swing.UIManager.getDefaults().getColor("Button.darcula.selection.color2")); radioD.setText("D"); radioD.setEnabled(false); radioD.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { radioDActionPerformed(evt); } }); javax.swing.GroupLayout pnlClasesLayout = new javax.swing.GroupLayout(pnlClases); pnlClases.setLayout(pnlClasesLayout); pnlClasesLayout.setHorizontalGroup( pnlClasesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(pnlClasesLayout.createSequentialGroup() .addComponent(radioA) .addGap(18, 18, 18) .addComponent(radioB, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18) .addComponent(radioC, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18) .addComponent(radioD, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18) .addComponent(radioE, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18) .addComponent(radioF, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18) .addComponent(radioG) .addGap(0, 0, Short.MAX_VALUE)) ); pnlClasesLayout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {radioA, radioB, radioC, radioD, radioE, radioF, radioG}); pnlClasesLayout.setVerticalGroup( pnlClasesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(pnlClasesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(radioA) .addComponent(radioB) .addComponent(radioC) .addComponent(radioD) .addComponent(radioE) .addComponent(radioF) .addComponent(radioG)) ); lblDescripcionClase.setFont(lblDescripcionClase.getFont().deriveFont(lblDescripcionClase.getFont().getStyle() & ~java.awt.Font.BOLD, lblDescripcionClase.getFont().getSize()-1)); lblDescripcionClase.setForeground(java.awt.Color.gray); lblDescripcionClase.setPreferredSize(new java.awt.Dimension(63, 16)); javax.swing.GroupLayout pnlClaseLicenciaLayout = new javax.swing.GroupLayout(pnlClaseLicencia); pnlClaseLicencia.setLayout(pnlClaseLicenciaLayout); pnlClaseLicenciaLayout.setHorizontalGroup( pnlClaseLicenciaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(pnlClaseLicenciaLayout.createSequentialGroup() .addContainerGap() .addGroup(pnlClaseLicenciaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(lblDescripcionClase, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jScrollPane3) .addComponent(pnlClases, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addContainerGap()) ); pnlClaseLicenciaLayout.setVerticalGroup( pnlClaseLicenciaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(pnlClaseLicenciaLayout.createSequentialGroup() .addComponent(pnlClases, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(lblDescripcionClase, javax.swing.GroupLayout.DEFAULT_SIZE, 27, Short.MAX_VALUE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap()) ); btnEmitirLicencia.setFont(btnEmitirLicencia.getFont().deriveFont(btnEmitirLicencia.getFont().getSize()+2f)); btnEmitirLicencia.setIcon(new javax.swing.ImageIcon(getClass().getResource("/res/icons/save.png"))); // NOI18N btnEmitirLicencia.setText("Emitir Licencia"); btnEmitirLicencia.setEnabled(false); btnEmitirLicencia.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnEmitirLicenciaActionPerformed(evt); } }); pnlDatosTitular.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Datos del Titular", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Dialog", 1, 12), java.awt.SystemColor.textHighlight)); // NOI18N labelNombre.setFont(labelNombre.getFont().deriveFont(labelNombre.getFont().getStyle() & ~java.awt.Font.BOLD, labelNombre.getFont().getSize()-2)); labelNombre.setText(" "); labelApellido.setFont(labelApellido.getFont().deriveFont(labelApellido.getFont().getStyle() & ~java.awt.Font.BOLD, labelApellido.getFont().getSize()-2)); labelApellido.setText(" "); labelTipoNroDocumento.setFont(labelTipoNroDocumento.getFont().deriveFont(labelTipoNroDocumento.getFont().getStyle() & ~java.awt.Font.BOLD, labelTipoNroDocumento.getFont().getSize()-2)); labelTipoNroDocumento.setText(" "); labelDomicilio.setFont(labelDomicilio.getFont().deriveFont(labelDomicilio.getFont().getStyle() & ~java.awt.Font.BOLD, labelDomicilio.getFont().getSize()-2)); labelDomicilio.setText(" "); labelFechaNacimiento.setFont(labelFechaNacimiento.getFont().deriveFont(labelFechaNacimiento.getFont().getStyle() & ~java.awt.Font.BOLD, labelFechaNacimiento.getFont().getSize()-2)); labelFechaNacimiento.setText(" "); labelGrupoFactorSanguineo.setFont(labelGrupoFactorSanguineo.getFont().deriveFont(labelGrupoFactorSanguineo.getFont().getStyle() & ~java.awt.Font.BOLD, labelGrupoFactorSanguineo.getFont().getSize()-2)); labelGrupoFactorSanguineo.setText(" "); labelDonanteOrganos.setFont(labelDonanteOrganos.getFont().deriveFont(labelDonanteOrganos.getFont().getStyle() & ~java.awt.Font.BOLD, labelDonanteOrganos.getFont().getSize()-2)); labelDonanteOrganos.setText(" "); lblObservaciones.setFont(new java.awt.Font("Dialog", 0, 12)); // NOI18N lblObservaciones.setVerticalAlignment(javax.swing.SwingConstants.TOP); javax.swing.GroupLayout pnlDatosTitularLayout = new javax.swing.GroupLayout(pnlDatosTitular); pnlDatosTitular.setLayout(pnlDatosTitularLayout); pnlDatosTitularLayout.setHorizontalGroup( pnlDatosTitularLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(pnlDatosTitularLayout.createSequentialGroup() .addContainerGap() .addGroup(pnlDatosTitularLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(labelTipoNroDocumento, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(labelApellido, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(labelDomicilio, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(labelFechaNacimiento, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(labelGrupoFactorSanguineo, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(labelDonanteOrganos, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(pnlDatosTitularLayout.createSequentialGroup() .addComponent(labelNombre, javax.swing.GroupLayout.PREFERRED_SIZE, 210, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(0, 0, Short.MAX_VALUE)) .addComponent(lblObservaciones, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addContainerGap()) ); pnlDatosTitularLayout.setVerticalGroup( pnlDatosTitularLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(pnlDatosTitularLayout.createSequentialGroup() .addComponent(labelNombre) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(labelApellido) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(labelTipoNroDocumento) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(labelDomicilio) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(labelFechaNacimiento) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(labelGrupoFactorSanguineo) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(labelDonanteOrganos) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(lblObservaciones, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(0, 6, Short.MAX_VALUE)) ); btnCancelar.setFont(btnCancelar.getFont().deriveFont(btnCancelar.getFont().getSize()+2f)); btnCancelar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/res/icons/cancel.png"))); // NOI18N btnCancelar.setText("Cancelar"); btnCancelar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnCancelarActionPerformed(evt); } }); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addComponent(pnlTitulo, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap()) .addComponent(lblSantaFe, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addGroup(layout.createSequentialGroup() .addComponent(btnCancelar, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(btnEmitirLicencia, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(layout.createSequentialGroup() .addComponent(pnlTitulares, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(pnlClaseLicencia, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(pnlDatosTitular, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))) .addGap(0, 9, Short.MAX_VALUE)))) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addComponent(lblSantaFe, javax.swing.GroupLayout.PREFERRED_SIZE, 159, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(0, 0, 0) .addComponent(pnlTitulo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addComponent(pnlDatosTitular, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(pnlClaseLicencia, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addComponent(pnlTitulares, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(btnCancelar) .addComponent(btnEmitirLicencia)) .addGap(10, 10, 10)) ); pack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n initComponents();\n }", "public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }", "public FormListRemarking() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n \n }", "public FormPemilihan() {\n initComponents();\n }", "public GUIForm() { \n initComponents();\n }", "public FrameForm() {\n initComponents();\n }", "public TorneoForm() {\n initComponents();\n }", "public FormCompra() {\n initComponents();\n }", "public muveletek() {\n initComponents();\n }", "public Interfax_D() {\n initComponents();\n }", "public quanlixe_form() {\n initComponents();\n }", "public SettingsForm() {\n initComponents();\n }", "public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public Soru1() {\n initComponents();\n }", "public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }", "public soal2GUI() {\n initComponents();\n }", "public EindopdrachtGUI() {\n initComponents();\n }", "public MechanicForm() {\n initComponents();\n }", "public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }", "public BloodDonationGUI() {\n initComponents();\n }", "public quotaGUI() {\n initComponents();\n }", "public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }", "public PatientUI() {\n initComponents();\n }", "public myForm() {\n\t\t\tinitComponents();\n\t\t}", "public Oddeven() {\n initComponents();\n }", "public intrebarea() {\n initComponents();\n }", "public Magasin() {\n initComponents();\n }", "public RadioUI()\n {\n initComponents();\n }", "public NewCustomerGUI() {\n initComponents();\n }", "public ZobrazUdalost() {\n initComponents();\n }", "public FormUtama() {\n initComponents();\n }", "public p0() {\n initComponents();\n }", "public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }", "public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }", "public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }", "public form2() {\n initComponents();\n }", "public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}", "public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }", "public kunde() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }", "public MusteriEkle() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public DESHBORDPANAL() {\n initComponents();\n }", "public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }", "public frmVenda() {\n initComponents();\n }", "public Botonera() {\n initComponents();\n }", "public FrmMenu() {\n initComponents();\n }", "public OffertoryGUI() {\n initComponents();\n setTypes();\n }", "public JFFornecedores() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }", "public EnterDetailsGUI() {\n initComponents();\n }", "public vpemesanan1() {\n initComponents();\n }", "public Kost() {\n initComponents();\n }", "public FormHorarioSSE() {\n initComponents();\n }", "public UploadForm() {\n initComponents();\n }", "public frmacceso() {\n initComponents();\n }", "public HW3() {\n initComponents();\n }", "public Managing_Staff_Main_Form() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "public sinavlar2() {\n initComponents();\n }", "public P0405() {\n initComponents();\n }", "public IssueBookForm() {\n initComponents();\n }", "public MiFrame2() {\n initComponents();\n }", "public Choose1() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }", "public GUI_StudentInfo() {\n initComponents();\n }", "public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }", "public JFrmPrincipal() {\n initComponents();\n }", "public bt526() {\n initComponents();\n }", "public Pemilihan_Dokter() {\n initComponents();\n }", "public Ablak() {\n initComponents();\n }", "@Override\n\tprotected void initUi() {\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}", "public Pregunta23() {\n initComponents();\n }", "public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }", "public AvtekOkno() {\n initComponents();\n }", "public busdet() {\n initComponents();\n }", "public ViewPrescriptionForm() {\n initComponents();\n }", "public Ventaform() {\n initComponents();\n }", "public Kuis2() {\n initComponents();\n }", "public CreateAccount_GUI() {\n initComponents();\n }", "public POS1() {\n initComponents();\n }", "public Carrera() {\n initComponents();\n }", "public EqGUI() {\n initComponents();\n }", "public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }", "public nokno() {\n initComponents();\n }", "public dokter() {\n initComponents();\n }", "public ConverterGUI() {\n initComponents();\n }", "public hitungan() {\n initComponents();\n }", "public Modify() {\n initComponents();\n }", "public frmAddIncidencias() {\n initComponents();\n }", "public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }" ]
[ "0.73191476", "0.72906625", "0.72906625", "0.72906625", "0.72860986", "0.7248112", "0.7213479", "0.72078276", "0.7195841", "0.71899796", "0.71840525", "0.7158498", "0.71477973", "0.7092748", "0.70800966", "0.70558053", "0.69871384", "0.69773406", "0.69548076", "0.69533914", "0.6944929", "0.6942576", "0.69355655", "0.6931378", "0.6927896", "0.69248974", "0.6924723", "0.69116884", "0.6910487", "0.6892381", "0.68921053", "0.6890637", "0.68896896", "0.68881863", "0.68826133", "0.68815064", "0.6881078", "0.68771756", "0.6875212", "0.68744373", "0.68711984", "0.6858978", "0.68558776", "0.6855172", "0.6854685", "0.685434", "0.68525875", "0.6851834", "0.6851834", "0.684266", "0.6836586", "0.6836431", "0.6828333", "0.68276715", "0.68262815", "0.6823921", "0.682295", "0.68167603", "0.68164384", "0.6809564", "0.68086857", "0.6807804", "0.6807734", "0.68067646", "0.6802192", "0.67943805", "0.67934304", "0.6791657", "0.6789546", "0.6789006", "0.67878324", "0.67877173", "0.6781847", "0.6765398", "0.6765197", "0.6764246", "0.6756036", "0.6755023", "0.6751404", "0.67508715", "0.6743043", "0.67387456", "0.6736752", "0.67356426", "0.6732893", "0.6726715", "0.6726464", "0.67196447", "0.67157453", "0.6714399", "0.67140275", "0.6708251", "0.6707117", "0.670393", "0.6700697", "0.66995865", "0.66989213", "0.6697588", "0.66939527", "0.66908985", "0.668935" ]
0.0
-1
TODO Autogenerated method stub
@Override public boolean register(String email, String id, String pw) { return jdbcTemplate.update("insert into s_member values(?,?,?," + "'normal',sysdate)",email,id,pw)>0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public boolean register(MemberDto mem) { return register(mem.getEmail(),mem.getName(),mem.getPw()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public boolean login(String email, String pw) { return jdbcTemplate.query( "select * from s_member where email=? and pw=?", extractor,email,pw)!=null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public boolean login(MemberDto mem) { return login(mem.getEmail(),mem.getPw()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public MemberDto myInfo(String email) { return jdbcTemplate.query("select * from s_member where email=?", extractor,email); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public boolean delete(String email, String pw) { return jdbcTemplate.update("delete s_member where email=?,pw=?", email,pw)>0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public boolean delete(MemberDto mem) { return delete(mem.getEmail(),mem.getPw()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public List<MemberDto> list() { return jdbcTemplate.query("select * from s_member", mapper); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public boolean overlapCheck(String email) { return select("email", email).size()==0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public List<MemberDto> select(String col,String keyword) { return jdbcTemplate.query("select * from s_member where "+col+"=?", mapper,keyword); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public Set<String> emailList() { return new HashSet<String>(jdbcTemplate.query("select * from s_member", (rs,idx)->{return rs.getString("email");})); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public Map<String, MemberDto> nameList() { Map<String, MemberDto> list = new HashMap<>(); for (String email : emailList()) { list.put(email, myInfo(email)); } return list; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
list each calculation result which can merge with this type of result
public boolean isCompatible(CalcResult targetResults) { if (targetResults instanceof BoundsResult || targetResults == CalcResult.NULL_RESULT) { return true; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void aggregateResults()\n\t{\n\t\ttry {\n\t\t\tAggregateableEvaluation aggContNaive = new AggregateableEvaluation(this.evalNaiveBayesList.get(0));\n\t\t\tAggregateableEvaluation aggContSMO = new AggregateableEvaluation(this.evalSMOList.get(0));\n\t\t\tAggregateableEvaluation aggDonaNaive = new AggregateableEvaluation(this.evalNaiveBayesList.get(15));\n\t\t\tAggregateableEvaluation aggDonaSMO = new AggregateableEvaluation(this.evalSMOList.get(15));\n\t\t\tAggregateableEvaluation aggOffiNaive = new AggregateableEvaluation(this.evalNaiveBayesList.get(30));\n\t\t\tAggregateableEvaluation aggOffiSMO = new AggregateableEvaluation(this.evalSMOList.get(30));\n\t\t\tAggregateableEvaluation aggAdviNaive = new AggregateableEvaluation(this.evalNaiveBayesList.get(45));\n\t\t\tAggregateableEvaluation aggAdviSMO = new AggregateableEvaluation(this.evalSMOList.get(45));\n\t\t\tAggregateableEvaluation aggMultNaive = new AggregateableEvaluation(this.evalNaiveBayesList.get(60));\n\t\t\tAggregateableEvaluation aggMultSMO = new AggregateableEvaluation(this.evalSMOList.get(60));\n\t\t\tAggregateableEvaluation aggGoodNaive = new AggregateableEvaluation(this.evalNaiveBayesList.get(75));\n\t\t\tAggregateableEvaluation aggGoodSMO = new AggregateableEvaluation(this.evalSMOList.get(75));\n\t\t\t\n\n\t\t\tfor (int i = 1; i < 15; i++)\n\t\t\t{\n\t\t\t\taggContNaive.aggregate(this.evalNaiveBayesList.get(i));\n\t\t\t\taggContSMO.aggregate(this.evalSMOList.get(i));\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tfor (int i = 16; i < 30; i++)\n\t\t\t{\n\t\t\t\taggDonaNaive.aggregate(this.evalNaiveBayesList.get(i));\n\t\t\t\taggDonaSMO.aggregate(this.evalSMOList.get(i));\t\t\t\t\n\t\t\t}\n\n\t\t\tfor (int i = 31; i < 45; i++)\n\t\t\t{\n\t\t\t\taggOffiNaive.aggregate(this.evalNaiveBayesList.get(i));\n\t\t\t\taggOffiSMO.aggregate(this.evalSMOList.get(i));\t\t\t\t\n\t\t\t}\n\n\t\t\tfor (int i = 46; i < 60; i++)\n\t\t\t{\n\t\t\t\taggAdviNaive.aggregate(this.evalNaiveBayesList.get(i));\n\t\t\t\taggAdviSMO.aggregate(this.evalSMOList.get(i));\n\t\t\t}\n\n\t\t\tfor (int i = 61; i < 75; i++)\n\t\t\t{\n\t\t\t\taggMultNaive.aggregate(this.evalNaiveBayesList.get(i));\n\t\t\t\taggMultSMO.aggregate(this.evalSMOList.get(i));\n\t\t\t}\n\n\t\t\tfor (int i = 76; i < 90; i++)\n\t\t\t{\n\t\t\t\taggGoodNaive.aggregate(this.evalNaiveBayesList.get(i));\n\t\t\t\taggGoodSMO.aggregate(this.evalSMOList.get(i));\n\t\t\t}\n\n\t\t\tfor (int a = 0; a < 6; a++)\n\t\t\t{\n\t\t\t\tString aggregateText;\n\t\t\t\tswitch (a)\n\t\t\t\t{\n\t\t\t\tcase 0: aggregateText = \"ContinuingNewsAggregateResults.txt\"; break;\n\t\t\t\tcase 1: aggregateText = \"DonationsAggregateResults.txt\"; break;\n\t\t\t\tcase 2: aggregateText = \"OfficialAggregateResults.txt\"; break;\n\t\t\t\tcase 3: aggregateText = \"AdviceAggregateResults.txt\"; break;\n\t\t\t\tcase 4: aggregateText = \"MultimediaAggregateResults.txt\"; break;\n\t\t\t\tcase 5: aggregateText = \"GoodsAggregateResults.txt\"; break;\n\t\t\t\tdefault: aggregateText = \"CompleteAggregateResults.txt\";\n\t\t\t\t}\n\n\t\t\t\tBufferedWriter bw = new BufferedWriter(new FileWriter(aggregateText));\n\t\t\t\tbw.write(\"=== Summary of Naive Bayes ===\");\n\n\t\t\t\tswitch (a)\n\t\t\t\t{\n\t\t\t\tcase 0:\tbw.write(aggContNaive.toSummaryString());\n\t\t\t\tbw.write(aggContNaive.toClassDetailsString());\n\t\t\t\tbw.write(aggContNaive.toMatrixString()); break;\n\t\t\t\tcase 1:\tbw.write(aggDonaNaive.toSummaryString());\n\t\t\t\tbw.write(aggDonaNaive.toClassDetailsString());\n\t\t\t\tbw.write(aggDonaNaive.toMatrixString()); break;\n\t\t\t\tcase 2:\tbw.write(aggOffiNaive.toSummaryString());\n\t\t\t\tbw.write(aggOffiNaive.toClassDetailsString());\n\t\t\t\tbw.write(aggOffiNaive.toMatrixString()); break;\n\t\t\t\tcase 3:\tbw.write(aggAdviNaive.toSummaryString());\n\t\t\t\tbw.write(aggAdviNaive.toClassDetailsString());\n\t\t\t\tbw.write(aggAdviNaive.toMatrixString()); break;\n\t\t\t\tcase 4:\tbw.write(aggMultNaive.toSummaryString());\n\t\t\t\tbw.write(aggMultNaive.toClassDetailsString());\n\t\t\t\tbw.write(aggMultNaive.toMatrixString()); break;\n\t\t\t\tdefault:\tbw.write(aggGoodNaive.toSummaryString());\n\t\t\t\tbw.write(aggGoodNaive.toClassDetailsString());\n\t\t\t\tbw.write(aggGoodNaive.toMatrixString()); \n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tbw.write(\"=== Summary of SMO ===\");\n\n\t\t\t\tswitch (a)\n\t\t\t\t{\n\t\t\t\tcase 0:\tbw.write(aggContSMO.toSummaryString());\n\t\t\t\tbw.write(aggContSMO.toClassDetailsString());\n\t\t\t\tbw.write(aggContSMO.toMatrixString()); break;\n\t\t\t\tcase 1:\tbw.write(aggDonaSMO.toSummaryString());\n\t\t\t\tbw.write(aggDonaSMO.toClassDetailsString());\n\t\t\t\tbw.write(aggDonaSMO.toMatrixString()); break;\n\t\t\t\tcase 2:\tbw.write(aggOffiSMO.toSummaryString());\n\t\t\t\tbw.write(aggOffiSMO.toClassDetailsString());\n\t\t\t\tbw.write(aggOffiSMO.toMatrixString()); break;\n\t\t\t\tcase 3:\tbw.write(aggAdviSMO.toSummaryString());\n\t\t\t\tbw.write(aggAdviSMO.toClassDetailsString());\n\t\t\t\tbw.write(aggAdviSMO.toMatrixString()); break;\n\t\t\t\tcase 4:\tbw.write(aggMultSMO.toSummaryString());\n\t\t\t\tbw.write(aggMultSMO.toClassDetailsString());\n\t\t\t\tbw.write(aggMultSMO.toMatrixString()); break;\n\t\t\t\tdefault:\tbw.write(aggGoodSMO.toSummaryString());\n\t\t\t\tbw.write(aggGoodSMO.toClassDetailsString());\n\t\t\t\tbw.write(aggGoodSMO.toMatrixString()); \t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tbw.close();\n\t\t\t}\n\n\n\t\t} catch (Exception e) {\n\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public List<Result> calculateResult()\n\t{\n\t\tpersons=calculatePersonWiseContribution(transactions,persons);\t\t\t\n\t\t\n\t\t//calculate total amount spend.\n\t\tfloat totalAmt=calculateTotalAmt(persons);\n\t\t\n\t\t//calculate total persons.\n\t\tint noOfPersons =calculateNoOfPersons(persons);\n\t\t\n\t\t//calculate amount to be contributed by each person (avg amt).\n\t\tfloat avgAmt=totalAmt/noOfPersons;\n\t\t\n\t\t//remove person who calculated = avg amt , since it is idle person hence doesnt participated in transfer money operation\n\t\tList <Person> activePersons=removePerson(persons,avgAmt);\n\t\t\n\t\t//Seperate list of persons who contributed > avg amt (credit list) and <avg amt (debit list).\t\t\n\t\tMap <String, List<Person>> creditDebitList=seperateCreditDebitPersonList(activePersons,avgAmt);\n\t\tList<Person> creditList=creditDebitList.get(\"CREDIT\");\n\t\tList<Person> debitList=creditDebitList.get(\"DEBIT\");\n\t\t\t\t\n\t\t//transfer money from debit list to credit list of persons and store the result.\n\t\t//return the result.\n\t\treturn calculate(creditList,debitList);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\t\t\n\t\n\t}", "@Override\n\tpublic void getResultat() {\n\t\tcalcul();\n\t}", "List<BigDecimal> computeRes();", "@Override\r\n\tpublic Double aggregate(List<? extends Serializable> results) {\r\n\t\t\r\n\t\tsw.stop();\r\n\t\t\r\n\t\t// Total execution time\r\n\t\tdouble timeSecs = sw.getTotalTimeSeconds();\r\n\t\t\r\n\t\tint cycleCount = 0;\r\n\t\t\r\n\t\tfor (Serializable r : results) {\r\n\t\t\tif (r instanceof LinPackResult) {\r\n\t\t\t\t\r\n\t\t\t\t// We do not check for any value from result\r\n\t\t\t\t// as the number of floating point operations\r\n\t\t\t\t// are constant for each task\r\n\t\t\t\t\r\n\t\t\t\t// A better solution is to check the normRes\r\n\t\t\t\t// for extreme conditions and ignore\r\n\t\t\t\t// such results\r\n\t\t\t\t\r\n\t\t\t\tcycleCount+=cycles;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Calculate final MFLOPs for Grid\r\n\t\treturn Linpack.calculateMFLOPS(cycleCount, timeSecs);\r\n\t}", "private List<Object> handleResult(List<Object> resultSet)\n {\n List<Object> result = new ArrayList<>();\n final Expression[] grouping = compilation.getExprGrouping();\n if (grouping != null)\n {\n Comparator<Object> c = new Comparator<>()\n {\n public int compare(Object arg0, Object arg1)\n {\n for (int i = 0; i < grouping.length; i++)\n {\n state.put(candidateAlias, arg0);\n Object a = grouping[i].evaluate(evaluator);\n state.put(candidateAlias, arg1);\n Object b = grouping[i].evaluate(evaluator);\n\n // Put any null values at the end\n if (a == null && b == null)\n {\n return 0;\n }\n else if (a == null)\n {\n return -1;\n }\n else if (b == null)\n {\n return 1;\n }\n else\n {\n int result = ((Comparable)a).compareTo(b);\n if (result != 0)\n {\n return result;\n }\n }\n }\n return 0;\n }\n };\n \n List<List<Object>> groups = new ArrayList<>();\n List<Object> group = new ArrayList<>();\n if (!resultSet.isEmpty())\n {\n groups.add(group);\n }\n for (int i = 0; i < resultSet.size(); i++)\n {\n if (i > 0)\n {\n if (c.compare(resultSet.get(i - 1), resultSet.get(i)) != 0)\n {\n group = new ArrayList<>();\n groups.add(group);\n }\n }\n group.add(resultSet.get(i));\n }\n\n // Apply the result to the generated groups\n for (int i = 0; i < groups.size(); i++)\n {\n group = groups.get(i);\n result.add(result(group));\n }\n }\n else\n {\n boolean aggregates = false;\n Expression[] resultExprs = compilation.getExprResult();\n if (resultExprs.length > 0 && resultExprs[0] instanceof CreatorExpression)\n {\n Expression[] resExpr = ((CreatorExpression)resultExprs[0]).getArguments().toArray(\n new Expression[((CreatorExpression)resultExprs[0]).getArguments().size()]);\n for (int i = 0; i < resExpr.length; i++)\n {\n if (resExpr[i] instanceof InvokeExpression)\n {\n String method = ((InvokeExpression) resExpr[i]).getOperation().toLowerCase();\n if (method.equals(\"count\") || method.equals(\"sum\") || method.equals(\"avg\") || method.equals(\"min\") || method.equals(\"max\"))\n {\n aggregates = true;\n }\n }\n }\n }\n else\n {\n for (int i = 0; i < resultExprs.length; i++)\n {\n if (resultExprs[i] instanceof InvokeExpression)\n {\n String method = ((InvokeExpression)resultExprs[i]).getOperation().toLowerCase();\n if (method.equals(\"count\") || method.equals(\"sum\") || method.equals(\"avg\") || method.equals(\"min\") || method.equals(\"max\"))\n {\n aggregates = true;\n }\n }\n }\n }\n \n if (aggregates)\n {\n result.add(result(resultSet));\n }\n else\n {\n for (int i = 0; i < resultSet.size(); i++)\n {\n result.add(result(resultSet.get(i)));\n }\n }\n }\n\n if (!result.isEmpty() && ((Object[])result.get(0)).length == 1)\n {\n List r = result;\n result = new ArrayList<>();\n for (int i = 0; i < r.size(); i++)\n {\n result.add(((Object[]) r.get(i))[0]);\n }\n }\n return result;\n }", "@Override\n public List<Map<String, Serializable>> getResult() {\n Preconditions.checkState(_finish, \"GetResult cannot be called before finish.\");\n List<Map<String, Serializable>> result = new ArrayList<Map<String, Serializable>>(_aggrFuncContextList.size());\n\n for (int i = 0; i < _aggrFuncContextList.size(); i++) {\n result.add(new HashMap<String, Serializable>());\n }\n\n Iterator<Pair<Long, String>> groupKeys = _groupKeyGenerator.getUniqueGroupKeys();\n while (groupKeys.hasNext()) {\n Pair<Long, String> idKeyPair = groupKeys.next();\n String stringGroupKey = idKeyPair.getSecond();\n\n for (int i = 0; i < _aggrFuncContextList.size(); i++) {\n double resultForGroupKey = _resultHolderArray[i].getResultForGroupKey(idKeyPair.getFirst());\n result.get(i).put(stringGroupKey, resultForGroupKey);\n }\n }\n return result;\n }", "public EvaluationResult<T> mergeEvaluations(Collection<EvaluationResult<T>> results);", "public Object[][] exportResults(){\n \tObject[][] results = new Object[calculators.length][];\n \tfor(int i=0; i<calculators.length; i++){\n \t\tICalculator[] row = calculators[i];\n \t\tresults[i] = new Object[row.length];\n \t\tfor(int j=0; j<row.length; j++){\n \t\t\tresults[i][j] = row[j].getResult();\n \t\t}\n \t}\n \treturn results;\n }", "@Override\n public BinaryOperator<List<Integer>> combiner() {\n return (resultList1, resultList2) -> {\n Integer currentTotal1 = resultList1.get(0);\n Integer currentTotal2 = resultList2.get(0);\n currentTotal1 += currentTotal2;\n resultList1.set(0, currentTotal1);\n return resultList1;\n };\n }", "protected abstract Object doCalculations();", "protected void calculaterVSMforAllQuery(String type)\n {\n ArrayList<String> resultAll=new ArrayList<>();\n for(String qid: this.queryTFscore.keySet())\n {\n //System.out.println(qid+\"----------------------------------------------------------------------------------------------\"+this.maxLength+\" \"+this.minLength);\n HashMap<String, Double> queryInfo=this.queryTFscore.get(qid);\n System.out.println(qid+\" \"+queryInfo);\n HashMap <String, Double> finalResult=new HashMap<>();\n for(String docID:this.corpusTFscore.keySet())\n {\n HashMap<String, Double> docInfo=this.corpusTFscore.get(docID);\n double upperscore=this.calculateUpperPart(queryInfo, docInfo, docID);\n double lowerscore=this.calculateLowerPart(queryInfo, docInfo, docID);\n double score=0.0;\n \n //Calculate gTerms\n //Calculate Nx\n double Nx=0.0;\n if(this.LengthInfoMap.containsKey(docID)){\n Nx=(this.LengthInfoMap.get(docID)-this.minLength)/(this.maxLength-this.minLength);\n }\n \n //Calculate gTerms\n double gTerms=1/(1+Math.exp(-Nx));\n if(upperscore!=0&&lowerscore!=0) score=gTerms*(upperscore)/lowerscore;\n //if(upperscore!=0&&lowerscore!=0) score=(upperscore)/lowerscore;\n if(score>0) {\n //System.out.println(docID+\" = \"+score);\n finalResult.put(docID, score);\n }\n \n }\n HashMap<String, Double> normalizedAndSortedResult=doNormalization(finalResult);\n //HashMap<String, Double> sortedResult=MiscUtility.sortByValues(finalResult);\n //System.out.println(normalizedAndSortedResult);\n int count=0;\n for(String docID:normalizedAndSortedResult.keySet())\n {\n if(count>9) break;\n String fullPath=this.corpusMap.get(docID);\n resultAll.add(qid+\",\"+fullPath+\",\"+normalizedAndSortedResult.get(docID));\n count++;\n }\n }\n ContentWriter.writeContent(this.base+\"\\\\Result\\\\\"+this.corpus+\"_result\"+type+\".txt\", resultAll);\n }", "private synchronized void addResultToMultiList() {\n\t addObjectToMultiList(resultArrayList);\r\n\t }", "private List<Result> addAllResults(List<Result> result) {\n\n MongoCollection<Document> collection = mongoDatabase.getCollection(\"result\");\n List<Result> allResults = new LinkedList<>();\n for (Result res : result) {\n Document newResult = new Document();\n newResult.put(\"student1\", res.getStudent1());\n newResult.put(\"student2\", res.getStudent2());\n newResult.put(\"percentage\", res.getPercentage());\n newResult.put(\"snippets\", res.getSnippets());\n newResult.put(\"type\", res.getType().toString());\n collection.insertOne(newResult);\n\n\n ObjectId resultId = newResult.getObjectId(\"_id\");\n res.setObjectId(resultId);\n newResult.put(\"hexId\", resultId.toHexString());\n res.setHexId(resultId.toHexString());\n Bson updateOperationDocument = new Document(\"$set\", newResult);\n collection.updateOne(eq(\"_id\", new ObjectId(resultId.toHexString())), updateOperationDocument);\n\n allResults.add(res);\n }\n return allResults;\n }", "List<BigDecimal> computeSol();", "void ComputeResult(Object result);", "private void calculate() {\n try {\n String result = \"\";\n switch (mCalculationType) {\n case CONSUMPTION_L_100_KM:\n result = calculateL100Km();\n break;\n case CONSUMPTION_KM_L:\n case CONSUMPTION_MPG:\n result = calculateDistancePerAmount();\n break;\n default:\n makeToast(getResourceString(R.string.err_no_calc_type));\n }\n\n showResult(result);\n } catch (NumberFormatException e) {\n catcher();\n }\n }", "public ArrayList<Tuple> getResults() {\n ArrayList<Tuple> result = new ArrayList<Tuple>();\n\n switch (this.ag) {\n case COUNT:\n if (!gb) {\n int res = 0;\n for (Tuple a : tupleList) {\n res++;\n }\n Tuple newTup = new Tuple(this.tdc);\n newTup.setField(0, new IntField(res));\n result.add(newTup);\n } else {\n for (Tuple ca : compareList) {\n int res = 0;\n for (Tuple tl : tupleList) {\n if (tl.equals(ca))\n res++;\n }\n Tuple newTup = new Tuple(this.tdc);\n newTup.setField(0, ca.getField(0));\n newTup.setField(1, new IntField(res));\n result.add(newTup);\n }\n }\n break;\n\n case MAX:\n if (!gb) {\n int max = Integer.MIN_VALUE;\n boolean whetherInt = false;\n String firstVal = \"\";\n\n if (tupleList.get(0).getField(0).getType().equals(Type.INT)) {\n whetherInt = true;\n }\n if (!whetherInt) {\n StringField first = (StringField) tupleList.get(0).getField(0);\n firstVal = first.toString();\n }\n\n for (Tuple tp : tupleList) {\n if (tp.getDesc().getType(0).equals(Type.STRING)) {\n StringField val = (StringField) tp.getField(0);\n String actualv = val.toString();\n\n if (actualv.compareTo(firstVal) == 1) { // if the new string is supposed to be lexicographically greater than the cu\n // max, set the cur max to be the new\n firstVal = actualv;\n }\n\n\n } else {\n IntField intFl = new IntField(tp.getField(0).toByteArray());\n int actualVal = intFl.getValue();\n if (actualVal > max) {\n max = actualVal;\n }\n }\n }\n if (whetherInt) {\n Tuple maxTup = new Tuple(this.tdc);\n maxTup.setField(0, new IntField(max));\n result.add(maxTup);\n } else {\n Tuple maxTup = new Tuple(this.tdc);\n maxTup.setField(0, new StringField(firstVal));\n result.add(maxTup);\n }\n\n } else {\n int max = Integer.MIN_VALUE;\n boolean whetherInt = false;\n\n String firstVal = \"\";\n\n if (compareList.get(0).getField(0).getType().equals(Type.INT)) {\n whetherInt = true;\n }\n if (!whetherInt) {\n StringField first = (StringField) tupleList.get(0).getField(1);\n firstVal = first.toString();\n }\n\n for (Tuple a : compareList) {\n Type aTp = a.getDesc().getType(0);\n IntField intVal = (IntField) a.getField(0);\n int actualVal = intVal.getValue();\n\n for (Tuple b : tupleList) {\n if (b.getDesc().getType(0) == Type.INT) {\n IntField intVal1 = (IntField) b.getField(0);\n int actualVal1 = intVal1.getValue();\n if (actualVal1 == actualVal) {\n IntField compareVal = (IntField) b.getField(1);\n int valueb = compareVal.getValue();\n if (valueb > max) {\n max = valueb;\n }\n }\n\n } else {\n StringField val = (StringField) b.getField(1);\n String actualv = val.toString();\n\n if (actualv.compareTo(firstVal) == 1) { // if the new string is supposed to be lexicographically greater than the cu\n // max, set the cur max to be the new\n firstVal = actualv;\n }\n }\n }\n if (whetherInt) {\n Tuple maxTup = new Tuple(this.tdc);\n maxTup.setField(0, a.getField(0));\n maxTup.setField(1, new IntField(max));\n result.add(maxTup);\n } else {\n Tuple maxTup = new Tuple(this.tdc);\n maxTup.setField(0, a.getField(0));\n maxTup.setField(1,new StringField(firstVal));\n result.add(maxTup);\n }\n }\n }\n break;\n case MIN:\n if (!gb) {\n int min = Integer.MAX_VALUE;\n boolean whetherInt = false;\n String firstVal = \"\";\n if (tupleList.get(0).getField(0).getType().equals(Type.INT)) {\n whetherInt = true;\n }\n if (!whetherInt) {\n StringField first = (StringField) tupleList.get(0).getField(0);\n firstVal = first.toString();\n\n }\n for (Tuple tp : tupleList) {\n if (tp.getDesc().getType(0).equals(Type.STRING)) {\n StringField val = (StringField) tp.getField(0);\n String actualv = val.toString();\n\n if (actualv.compareTo(firstVal) == -1) { // if the new string is supposed to be lexicographically SMALLER than the cu\n // max, set the cur mIN to be the new\n firstVal = actualv;\n }\n\n } else {\n IntField intFl = new IntField(tp.getField(0).toByteArray());\n int actualVal = intFl.getValue();\n if (actualVal < min) {\n min = actualVal;\n }\n }\n }\n if (whetherInt) {\n Tuple maxTup = new Tuple(this.tdc);\n maxTup.setField(0, new IntField(min));\n result.add(maxTup);\n } else {\n Tuple maxTup = new Tuple(this.tdc);\n maxTup.setField(0, new StringField(firstVal));\n result.add(maxTup);\n }\n } else {\n int min = Integer.MAX_VALUE;\n boolean whetherInt = false;\n\n String firstVal = \"\";\n\n if (compareList.get(0).getField(0).getType().equals(Type.INT)) {\n whetherInt = true;\n }\n if (!whetherInt) {\n StringField first = (StringField) tupleList.get(0).getField(1);\n firstVal = first.toString();\n\n }\n for (Tuple a : compareList) {\n Type aTp = a.getDesc().getType(0);\n\n\n IntField intVal = (IntField) a.getField(0);\n int actualVal = intVal.getValue();\n\n for (Tuple b : tupleList) {\n if (b.getDesc().getType(0) == Type.INT) {\n IntField intVal1 = (IntField) b.getField(0);\n int actualVal1 = intVal1.getValue();\n if (actualVal1 == actualVal) {\n IntField compareVal = (IntField) b.getField(1);\n int valueb = compareVal.getValue();\n if (valueb > min) {\n min = valueb;\n }\n }\n } else {\n StringField val = (StringField) b.getField(1);\n String actualv = val.toString();\n\n if (actualv.compareTo(firstVal) == 1) { // if the new string is supposed to be lexicographically greater than the cu\n // max, set the cur max to be the new\n firstVal = actualv;\n }\n\n }\n }\n if (whetherInt) {\n Tuple maxTup = new Tuple(this.tdc);\n maxTup.setField(0, a.getField(0));\n maxTup.setField(1, new IntField(min));\n result.add(maxTup);\n } else {\n Tuple maxTup = new Tuple(this.tdc);\n maxTup.setField(0, a.getField(0));\n maxTup.setField(1,new StringField(firstVal));\n result.add(maxTup);\n }\n }\n }\n break;\n case AVG:\n int sum = 0;\n\n if (!gb) {\n for (Tuple tp : tupleList) {\n if (tp.getDesc().getType(0).equals(Type.STRING)) {\n System.out.println(\"cannot call avg on string\");\n } else {\n int val = ((IntField) tp.getField(0)).getValue();\n sum += val;\n\n }\n\n\n }\n int avgValue = sum / tupleList.size();\n // not sure what the new tuple's pid and id should be\n Tuple avgTup = new Tuple(this.tdc);\n avgTup.setField(0, new IntField(avgValue));\n\n } else {\n // now it is group by avg\n for (Tuple a : compareList) {\n Type aTp = a.getDesc().getType(0);\n int sumt = 0;\n int ct = 0;\n if (aTp.equals(Type.STRING)) {\n System.out.println(\"cannot call avg on string\");\n\n } else {\n IntField intVal = (IntField) a.getField(0);\n int actualVal = intVal.getValue();\n\n for (Tuple b : tupleList) {\n if (b.getDesc().getType(0) == Type.INT) {\n IntField intVal1 = (IntField) b.getField(0);\n int actualVal1 = intVal1.getValue();\n if (actualVal1 == actualVal) {\n IntField compareVal = (IntField) b.getField(1);\n int valueb = compareVal.getValue();\n sum += valueb;\n ct++;\n }\n } else {\n System.out.println(\"cannot call group by avg on string \");\n }\n }\n }\n int trueAvg = sum / ct;\n Tuple avgTup = new Tuple(this.tdc);\n avgTup.setField(0, a.getField(0));\n avgTup.setField(1, new IntField(trueAvg));\n result.add(avgTup);\n }\n }\n\n break;\n case SUM:\n int sumA = 0;\n if (!gb) {\n for (Tuple tp : tupleList) {\n if (tp.getDesc().getType(0).equals(Type.STRING)) {\n System.out.println(\"cannot call sUM on string\");\n } else {\n int val = ((IntField) tp.getField(0)).getValue();\n sumA += val;\n }\n }\n\n // not sure what the new tuple's pid and id should be\n Tuple avgTup = new Tuple(this.tdc);\n avgTup.setField(0, new IntField(sumA));\n result.add(avgTup);\n\n } else {\n // now it is group by sum\n int sumt = 0;\n for (Tuple a : compareList) {\n sumt = 0;\n Type aTp = a.getDesc().getType(0);\n\n if (aTp.equals(Type.STRING)) {\n System.out.println(\"cannot call sum on string\");\n\n } else {\n IntField intVal = (IntField) a.getField(0);\n int actualVal = intVal.getValue();\n\n for (Tuple b : tupleList) {\n if (b.getDesc().getType(0) == Type.INT) {\n IntField intVal1 = (IntField) b.getField(0);\n int actualVal1 = intVal1.getValue();\n if (actualVal1 == actualVal) {\n IntField compareVal = (IntField) b.getField(1);\n int valueb = compareVal.getValue();\n sumt += valueb;\n }\n\n } else {\n System.out.println(\"cannot call SUM on string \");\n }\n\n }\n }\n Tuple avgTup = new Tuple(this.tdc);\n avgTup.setField(0, a.getField(0));\n avgTup.setField(1, new IntField(sumt));\n if (!result.contains(avgTup)) {\n result.add(avgTup);\n }\n }\n\n }\n break;\n }// this is the closing for switch\n return result;\n }", "private void finalCalculation()\n {\n // Variables for computational tasks during this part alone\n double result = 0;\n String stringOperator = \"\";\n String stringValue1 = \"\";\n String stringValue2 = \"\";\n\n try\n {\n // If an operator has previously been assigned, ignore key press\n if(values.size() == 0 || isOperator(values.get(values.size()-1).toString()) || !hasOperator)\n {\n return;\n }\n \n\n // Calculate the total value\n for(Iterator<String> i = values.iterator(); i.hasNext();)\n {\n // Get text\n String item = i.next();\n \n // If it is an operator\n if(isOperator(item))\n {\n // Calculate previous values and add to value1 - then set latest operator\n if(!\"\".equals(stringOperator))\n {\n // Calculate previously stored\n result = calculate(Double.parseDouble(stringValue1), Double.parseDouble(stringValue2), stringOperator);\n stringValue1 = result + \"\"; // Add calculated value as first result\n stringValue2 = \"\";\n }\n stringOperator = item;\n }\n else\n {\n // If no operator has previously been assigned, just append values to first value\n if(\"\".equals(stringOperator))\n {\n // Append values on eachother\n stringValue1 = stringValue1 + item;\n }\n else\n {\n // Operator have been assigned, which means we already have a value1 - add to string value 2 instead\n stringValue2 = stringValue2 + item;\n }\n }\n \n // If this is our last loop, calculate total and add into result\n if(!i.hasNext())\n {\n result = calculate(Double.parseDouble(stringValue1), Double.parseDouble(stringValue2), stringOperator);\n } \n }\n \n // Output results\n textOutput.setText(result + \"\");\n \n // Clear stored values\n values.clear();\n \n // Reset\n reset = true;\n hasOperator = false;\n \n }\n catch(Exception ex)\n {\n // Output results\n textOutput.setText(0 + \"\");\n \n // Clear stored values\n values.clear();\n \n // Reset\n reset = true;\n hasOperator = false;\n } \n }", "@Override\r\n\tpublic String getResult() {\n\t\tString res;\r\n\t\ttry {\r\n\t\t\tresult = c.calculate(o.getFirst(), o.getSecond(), o.getOperator());\r\n\t\t\t// System.out.println(\"00\");\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO: handle exception\r\n\r\n\t\t\tthrow new RuntimeException();\r\n\t\t}\r\n\r\n\t\tres = String.valueOf(result);\r\n\r\n\t\treturn res;\r\n\t}", "private Object[] result(List<Object> set)\n {\n state.put(RESULTS_SET, set);\n\n Expression[] result = compilation.getExprResult();\n\n // Use first element only (if there are any). Should be same in other \"group-by\" components\n Object element = set != null && !set.isEmpty() ? set.get(0) : null;\n state.put(candidateAlias, element);\n\n Object[] r = new Object[result.length];\n for (int j=0; j<result.length; j++)\n {\n r[j] = result[j].evaluate(evaluator);\n }\n\n return r;\n }", "@Override\n\tpublic void calculate(systemSelection selection) {\n\t\t\n\t\t// Get selection parameters\n\t\tVector<String> viewers = selection.getSelectedViewers();\n\t\t\t\t\n\t\t// Create Result Object\n\t\tResultObject result = new ResultObject();\n\t\t\n\t\t// Create viewers (stored in this.viewers)\n\t\tthis.setViewers(viewers);\n\t\t\t\t\n\t\t// Set Analysis Name\n\t\tresult.setName(selection.getSelectedAnalysis());\n\t\t\t\t\n\t\tfor (ConcreteViewer viewer : this.viewers) {\n\t\t\tresult.attach(viewer);\n\t\t\t\t\t\n\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t// Package data from World Bank API\n\t\t\n\t\t// Our reader\n\t\tDataReader dr = new DataReader(selection);\n\t\t\t\t\n\t\t// Retrieve cost of education\n\t\tDataObject educationCost = dr.getData(\"SE.XPD.TOTL.GD.ZS\");\n\t\tArrayList<Double> educationCostData = educationCost.getData();\n\t\t\t\t\n\t\t// Retrieve cost of healthcare\n\t\tDataObject healthCost = dr.getData(\"SH.XPD.CHEX.GD.ZS\");\n\t\tArrayList<Double> healthCostData = healthCost.getData();\n\t\t\t\t\t\n\t\t//new ArrayList holds values of the calculation\n\t\tArrayList<Double> ratioEducationHealth = new ArrayList<Double>();\n\t\t\t\t\n\t\t//perform calculation\n\t\tint maxIndex = selection.getSelectedYears()[1] - selection.getSelectedYears()[0];\n\t\tboolean allZero = true;\n\t\tfor(int i=0;i<=maxIndex;i++) {\n\t\t\tdouble ratio = educationCostData.get(i)/healthCostData.get(i);\n\t\t\tratioEducationHealth.add(ratio);\n\t\t\t\n\t\t\tif(ratio!=0 && Double.isNaN(ratio)==false) {\n\t\t\t\tallZero = false;\n\t\t\t}\n\t\t}\n\t\t\t\t\n\t\tif(!allZero) {\n\t\t\t\t\n\t\t\tArrayList<ArrayList<Double>> dataList = new ArrayList<ArrayList<Double>>();\n\t\t\tdataList.add(ratioEducationHealth);\n\t\t\t\t\t\n\t\t\t\t\t\n\t\n\t\t\t// Set Analysis Name\n\t\t\tresult.setName(selection.getSelectedAnalysis());\n\t\t\t\t\t\n\t\t\t// Set years\n\t\t\tresult.setYears(selection.getSelectedYears());\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\tArrayList<String> dataNames = new ArrayList<String>();\n\t\t\tdataNames.add(\"Ratio of Government expenditure on education \"\n\t\t\t\t\t\t\t+ \"vs Current health expenditure\");\n\t\t\t\t\t\n\t\t\tresult.setDataNames(dataNames);\n\t\t\t\n\t\t\t// Set Panel that viewers will belong to\n\t\t\tSystem.out.println(\"Setting Viewer Panel\");\n\t\t\tresult.setPanel(this.viewerPanel);\n\t\t\t\n\t\t\t\n\t\t\tSystem.out.println(\"Sending Data to Result Object.\");\n\t\t\tSystem.out.println(dataList);\n\t\t\tresult.setResult(dataList);\n\t\t\ttry {\n\t\t\t\tMainUI.getInstance().errorLabel.setText(\"\");\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\n\t\n\t\t} else {\n\t\t\ttry {\n\t\t\t\tMainUI.getInstance().errorLabel.setText(\"All data is 0!\");\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public ArrayList<Number> GetResult() throws RuntimeException {\r\n\t\tArrayList<Number> result = new ArrayList<>();\r\n\r\n\t\tint size = CurrentData.size();\r\n\t\t// if list has an odd number of items\r\n\t\tif (CurrentData.size() % 2 == 1) {\r\n\t\t\tresult.add(CurrentData.get(size / 2));\r\n\t\t}\r\n\t\t// if its not odd must be even\r\n\t\telse {\r\n\t\t\tdouble temp = (CurrentData.get(size / 2).doubleValue() + CurrentData.get((size / 2 - 1)).doubleValue()) / 2;\r\n\t\t\tresult.add((Number) temp);\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "@Override\n \tpublic Object getResult() {\n \t\treturn result;\n \t}", "public ServiceResultAggregate(String name, List<Result<?>> resultList) {\n\t\tsuper(name, resultList);\n\t\tthis.components = new ArrayList<>(5);\n\t}", "@Override\n public void execute() {\n for (LinearEquation e : m) {\n ComplexNumber temp = new ComplexNumber(e.getCoefficient(a));\n e.setCoefficient(a, e.getCoefficient(b));\n e.setCoefficient(b, temp);\n }\n }", "public List<Integer> Result()\n\t{\n\t\treturn result;\n\t}", "public void calculate();", "private Pair<JsonArray, JsonArray> performManyOpsAndReturnResultingErrorsAndResults(String accession,\n Iterable<Op> ops) {\n JsonArray opsWithErrors = new JsonArray();\n JsonArray opsWithResults = new JsonArray();\n boolean failed = false;\n boolean setFailed = false;\n JsonElement resultOfPreviousOperations = JsonNull.INSTANCE;\n JsonElement resultOfCurrentOperation;\n List<Op> opsThatProducedTheSameResult = new ArrayList<>();\n for (Op op: ops) {\n if (failed) {\n resultOfCurrentOperation = new JsonPrimitive(\"Not started\");\n } else {\n Pair<OpResult, ? extends JsonElement> r = performOneOp(accession, op);\n if (r.getLeft().equals(OpResult.FAILURE)) {\n setFailed = true;\n }\n resultOfCurrentOperation = r.getRight();\n }\n\n if (resultOfPreviousOperations.equals(resultOfCurrentOperation)) {\n opsThatProducedTheSameResult.add(op);\n } else {\n if (!resultOfPreviousOperations.equals(JsonNull.INSTANCE)) {\n (failed ? opsWithErrors : opsWithResults)\n .add(aggregatedResultsObject(opsThatProducedTheSameResult, resultOfPreviousOperations));\n }\n opsThatProducedTheSameResult = new ArrayList<>();\n opsThatProducedTheSameResult.add(op);\n resultOfPreviousOperations = resultOfCurrentOperation;\n }\n failed |= setFailed;\n }\n (failed ? opsWithErrors : opsWithResults)\n .add(aggregatedResultsObject(opsThatProducedTheSameResult, resultOfPreviousOperations));\n return Pair.of(opsWithErrors, opsWithResults);\n }", "protected abstract O getResult();", "protected void extractCalculatorsData(List<IDataColumn> columns){\n \t\n \t//prepare the temporary values \n \tICalculator[] tempCalcPrototypes = new ICalculator[columns.size()];\n \tIDataColumn[] tempDataCols = new IDataColumn[columns.size()];\n \tint[] tempColIndex = new int[columns.size()];\n \t\n \t//prepare also final value for calculatorsDistributionInDataColumnsArray\n \t\n \tint columnWithCalculatorsCount = 0;\n \tfor(int i=0; i<columns.size(); i++){\n \t\tICalculator calcPrototype = columns.get(i).getCalculator();\n \t\tif(calcPrototype != null){\n \t\t\ttempCalcPrototypes[columnWithCalculatorsCount] = calcPrototype;\n \t\t\ttempDataCols[columnWithCalculatorsCount] = columns.get(i);\n \t\t\ttempColIndex[columnWithCalculatorsCount] = i; \n \t\t\tcolumnWithCalculatorsCount++;\n \t\t}\n \t}\n \t\n \t//prepare the results \t\n \tcalculatorPrototypes = new ICalculator[columnWithCalculatorsCount];\n \tdataColumnsHavingCalculators = new IDataColumn[columnWithCalculatorsCount];\n \tindexOfColumnsHavingCalculators = new int[columnWithCalculatorsCount];\n \t\n \t//copy the temporary values to final destination\n \tSystem.arraycopy(tempCalcPrototypes, 0, calculatorPrototypes, 0, columnWithCalculatorsCount);\n \tSystem.arraycopy(tempDataCols, 0, dataColumnsHavingCalculators, 0, columnWithCalculatorsCount);\n \tSystem.arraycopy(tempColIndex, 0, indexOfColumnsHavingCalculators, 0, columnWithCalculatorsCount);\n }", "public interface Result {\n\n int getSum(int item, int filter, int from, int to) throws IOException;\n\n public Map<Integer, Integer> getItems();\n public Map<Integer, Integer> getFilters();\n public Map<Integer, Integer> getValues();\n\n public SegmentTree[][] getData();\n\n List<Integer> getSum(List<Integer> filters, int from, int to) throws IOException;\n}", "public List<TransactionOutput> calculateAllSpendCandidates() {\n return calculateAllSpendCandidates(true, true);\n }", "@SuppressWarnings({ \"rawtypes\", \"unchecked\" })\n\tprivate static List<Object> mergeResult(List<Object> list1, List<Object> list2) {\n\t\tList<Object> result = new ArrayList<Object>();\n\t\tfor (int i = 0; i < list1.size(); i++) {\n\t\t\tfor (int j = 0; j < list2.size(); j++) {\n\t\t\t\tif (Integer.parseInt(((Map) list1.get(i)).get(MongoDBConstants.DOCUMENT_ID).toString()) == Integer\n\t\t\t\t\t\t.parseInt(((Map) list2.get(j)).get(MongoDBConstants.DOCUMENT_ID).toString())) {\n\t\t\t\t\tMap data = new HashMap();\n\t\t\t\t\tint hour = (Integer.parseInt(((Map) list1.get(i)).get(MongoDBConstants.DOCUMENT_ID).toString()) + 8) % 24;\n\t\t\t\t\tdata.put(MongoDBConstants.DOCUMENT_ID, hour + \"\");\n\t\t\t\t\tdata.put(\"value\", Integer.parseInt(((Map) list1.get(i)).get(\"value\").toString())\n\t\t\t\t\t\t\t+ Integer.parseInt(((Map) list2.get(j)).get(\"value\").toString()));\n\t\t\t\t\tresult.add(data);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "private void analyze() {\n\t\tdouble org = 0;\n\t\tdouble avgIndPerDoc = 0;\n\t\tdouble avgTotalPerDoc = 0;\n\n\t\tfor (Instance instance : instanceProvider.getInstances()) {\n\n\t\t\tint g = 0;\n\t\t\tSet<AbstractAnnotation> orgM = new HashSet<>();\n\n//\t\t\torgM.addAll(instance.getGoldAnnotations().getAnnotations());\n//\t\t\tg += instance.getGoldAnnotations().getAnnotations().size();\n\n\t\t\tfor (AbstractAnnotation instance2 : instance.getGoldAnnotations().getAnnotations()) {\n\n\t\t\t\tResult r = new Result(instance2);\n\n\t\t\t\t{\n////\t\t\t\t\tList<AbstractAnnotation> aa = Arrays.asList(r.getTrend());\n//\t\t\t\t\tList<AbstractAnnotation> aa = Arrays.asList(r.getInvestigationMethod());\n////\t\t\t\t\tList<AbstractAnnotation> aa = new ArrayList<>(\n////\t\t\t\t\t\t\tr.getDefinedExperimentalGroups().stream().map(a -> a.get()).collect(Collectors.toList()));\n//\n//\t\t\t\t\torgM.addAll(aa);\n//\t\t\t\t\tg += aa.size();\n\t\t\t\t}\n\n\t\t\t\t{\n\t\t\t\t\t/**\n\t\t\t\t\t * props of exp\n\t\t\t\t\t */\n\t\t\t\t\tfor (DefinedExperimentalGroup instance3 : r.getDefinedExperimentalGroups()) {\n\n//\t\t\t\t\tList<AbstractAnnotation> aa = Arrays.asList(instance3.getOrganismModel());\n//\t\t\t\t\tList<AbstractAnnotation> aa = new ArrayList<>(instance3.getTreatments());\n//\t\t\t\t\t\tList<AbstractAnnotation> aa = Arrays.asList(instance3.getInjury());\n\n\t\t\t\t\t\tList<AbstractAnnotation> ab = Arrays.asList(instance3.getInjury());\n\n\t\t\t\t\t\tList<AbstractAnnotation> aa = ab.stream().filter(i -> i != null)\n\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Injury(et))\n\t\t\t\t\t\t\t\t.filter(i -> i != null).flatMap(i -> i.getDeliveryMethods().stream())\n\t\t\t\t\t\t\t\t.filter(i -> i != null).collect(Collectors.toList());\n\n\t\t\t\t\t\taa.addAll(instance3.getTreatments().stream().filter(i -> i != null)\n\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Treatment(et))\n\t\t\t\t\t\t\t\t.filter(i -> i != null).map(i -> i.getDeliveryMethod()).filter(i -> i != null)\n\t\t\t\t\t\t\t\t.collect(Collectors.toList()));\n\n//\t\t\t\t\t\tList<AbstractAnnotation> aa = ab.stream().filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Injury(et))\n//\t\t\t\t\t\t\t\t.filter(i -> i != null).flatMap(i -> i.getAnaesthetics().stream())\n//\t\t\t\t\t\t\t\t.filter(i -> i != null).collect(Collectors.toList());\n\n//\t\t\t\t\t\tList<AbstractAnnotation> aa = ab.stream().filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Injury(et))\n//\t\t\t\t\t\t\t\t.filter(i -> i != null).map(i -> i.getInjuryDevice()).filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.collect(Collectors.toList());\n\n\t\t\t\t\t\t// List<AbstractAnnotation> aa = ab.stream().filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Injury(et))\n//\t\t\t\t\t\t\t\t.filter(i -> i != null).map(i -> i.getInjuryLocation()).filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.collect(Collectors.toList());\n\n\t\t\t\t\t\torgM.addAll(aa);\n\t\t\t\t\t\tg += aa.size();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tavgIndPerDoc += orgM.size();\n\t\t\tavgTotalPerDoc += g;\n\n\t\t\torg += ((double) orgM.size()) / (g == 0 ? 1 : g);\n//\t\t\tSystem.out.println(((double) orgM.size()) / g);\n\n\t\t}\n\t\tSystem.out.println(\"avgTotalPerDoc = \" + avgTotalPerDoc / instanceProvider.getInstances().size());\n\t\tSystem.out.println(\"avgIndPerDoc = \" + avgIndPerDoc / instanceProvider.getInstances().size());\n\t\tSystem.out.println(\"org = \" + org);\n\t\tSystem.out.println(\"avg. org = \" + (org / instanceProvider.getInstances().size()));\n\t\tSystem.out.println(new DecimalFormat(\"0.00\").format(avgTotalPerDoc / instanceProvider.getInstances().size())\n\t\t\t\t+ \" & \" + new DecimalFormat(\"0.00\").format(avgIndPerDoc / instanceProvider.getInstances().size())\n\t\t\t\t+ \" & \" + new DecimalFormat(\"0.00\").format(org / instanceProvider.getInstances().size()));\n\t\tSystem.exit(1);\n\n\t\tStats.countVariables(0, instanceProvider.getInstances());\n\n\t\tint count = 0;\n\t\tfor (SlotType slotType : EntityType.get(\"Result\").getSlots()) {\n\n\t\t\tif (slotType.isExcluded())\n\t\t\t\tcontinue;\n\t\t\tcount++;\n\t\t\tSystem.out.println(slotType.name);\n\n\t\t}\n\t\tSystem.out.println(count);\n\t\tSystem.exit(1);\n\t}", "static final void addAll(ContainerValue cont, List<Value> result) {\r\n for (int i = 0; i < cont.getElementSize(); i++) {\r\n result.add(cont.getElement(i));\r\n }\r\n }", "private CountingResult aggregateEvaluateAndCompareResults(\r\n\t\t\tString suffix,\r\n\t\t\tCountingResultCollector crCollector, \r\n\t\t\tList<CountingResult> countingResults) {\r\n // only see how many CountingResults a signature has in \"results\"\r\n\t\tthis.aggregateResultBySignature(countingResults);//TODO add comments\r\n\t\t\r\n\t\tlog.debug(\"CountingResult that is the sum of counts \" +\r\n\t\t\t\t\"reported using _inlined reporting methods: \\n\"+\r\n\t\t\t\tcrCollector.getInlined_countingResult());\r\n\t\t\r\n\t\tlong timestampToUse = System.nanoTime();\r\n\t\tCountingResult sumOfAllCountingResults = null; //\"Type 1\"\r\n\t\tCountingResult compressCR_evaluated = null; //\"Type 2\"\r\n\r\n\t\tif(countingResults.size()==0){\r\n\t\t\tlog.error(\"Zero counting results!\");\r\n\t\t}else{\r\n\t\t\t//6. add up (first approach)\r\n\t\t\tsumOfAllCountingResults = new CountingResult(\r\n\t\t\t\t\tUUID.randomUUID(),\r\n\t\t\t\t\tUUID.randomUUID(),\r\n\t\t\t\t\tUUID.randomUUID(),\r\n\t\t\t\t\t\r\n\t\t\t\t\t\"allCountingResults\", //ID\r\n\t\t\t\t\t\"spec.benchmarks.compress.Compressor.compress\", //results.get(0).getQualifyingMethodName(),//qualifyingMethodName\r\n\t\t\t\t\tcountingResults.get(0).getFileType(), //fileType\r\n\t\t\t\t\tcountingResults.get(0).getInputCharacterisation(), //inputCharacterisation\r\n\t\t\t\t\tcountingResults.get(0).getOutputCharacterisation(),//outputCharacterisation\r\n\t\t\t\t\t0L, //methodInvocationBeginning\r\n\t\t\t\t\t0L, //methodReportingTime\r\n\t\t\t\t\tnew long[202], //opcodeCounts\r\n\t\t\t\t\tnew TreeMap<String,Long>(), //methodCallCounts\r\n\t\t\t\t\tnew long[]{}, //arrayCreationCounts\r\n\t\t\t\t\tnew int[]{}, //arrayCreationDimensions\r\n\t\t\t\t\tnew String[]{}, //arrayCreationTypeInfo\r\n\t\t\t\t\tnew TreeMap<BytecodeSectionDescription, SortedMap<Integer,Long>>(), //sectionInstCounts\r\n\t\t\t\t\tnew TreeMap<BytecodeSectionDescription, SortedMap<String,Long>>()); //sectionMethCounts\r\n\t\t\t\t\t\r\n\t\t\tint currResultIndex = 0;\r\n\t\t\tCountingResult compressCR = null;\r\n\t\t\tfor(CountingResult r : countingResults) {\r\n\t\t\t\tif(r.getQualifyingMethodName().contains(\"compress\")){//TODO document this\r\n\t\t\t\t\tcompressCR = r;\r\n\t\t\t\t}\r\n\t\t\t\tsumOfAllCountingResults.add(r);//TODO\r\n\t//\t\t\tlog.debug(\"after adding CountingResult \"+currResultIndex+\":\");\r\n\t\t\t\tcurrResultIndex++;\r\n\t\t\t}\r\n\t\t\tif(compressCR!=null){\r\n\t\t\t\tsumOfAllCountingResults.setMethodInvocationBeginning(compressCR.getMethodInvocationBeginning());\r\n\t\t\t\tsumOfAllCountingResults.setMethodReportingTime(compressCR.getMethodReportingTime());\r\n\t\t\t}\r\n\t\t\tlog.info(\"Addition Type1 \\\"simply all, before adding the inlined\\\": \"+sumOfAllCountingResults);\r\n\t\t\t\r\n\t\t\tsumOfAllCountingResults.add_methodsInstructionsOnly(crCollector.getInlined_countingResult());\r\n\t\t\tlog.info(\"Addition Type1 \\\"simply all, after adding the inlined\\\", final result: \"+sumOfAllCountingResults);\r\n\t\t\t\r\n\t\t\tString[] splits = Harness.MK_FILES_NAMES[Harness.MK_getFileIndex()].split(\"/\");\r\n\t\t\tcsvrw = new CountingResultCSVWriter(\r\n\t\t\t\t\ttrue, //append grand total at the end\r\n\t\t\t\t\t';',//entriesSeparationChar\r\n\t\t\t\t\ttrue,//listInvokeOpcodes\r\n\t\t\t\t\ttrue,//performIntegrityCheckOnInvokeOpcodes\r\n\t\t\t\t\t\"CountingResult.Sum1\",//pieceFileNameCore\r\n\t\t\t\t\tsplits[splits.length-1]+\".\"+suffix+\".MK.csv\",//pieceFileNameExtension\r\n\t\t\t\t\t\"MK_results\",//pieceFilePath\r\n\t\t\t\t\ttrue,//writeBooleansAsIntegers\r\n\t\t\t\t\ttrue,//writeOpcodesAsIntegers\r\n\t\t\t\t\ttrue,//writeUnusedOpcodes\r\n\t\t\t\t\ttrue,//truncateUndefinedOpcodes\r\n\t\t\t\t\tfalse//writeArrayDetailsToSeparateFile\r\n\t\t\t\t);\r\n\t\t\tcsvrw.writeResultToCSV(\r\n\t\t\t\t\tsumOfAllCountingResults, \r\n\t\t\t\t\ttrue, //use previous timestamp \r\n\t\t\t\t\ttimestampToUse //previous timestamp to use\r\n\t\t\t\t);\r\n\t\t\t\t\t\r\n\t\t\t//8. serialise first CountingResult\r\n\t\t\tCountingResultPersistance.serialiseCountingResult(//TODO this used splits to map to file names...\r\n\t\t\t\t\tsumOfAllCountingResults, \r\n\t\t\t\t\t\".\", \r\n\t\t\t\t\tCountingResultPersistance.DEFAULT_COUNTING_RESULT_NAMECORE, \r\n\t\t\t\t\tsuffix, //CountingResultPersistance.DEFAULT_COUNTING_RESULT_NAME_SUFFIX, \r\n\t\t\t\t\tCountingResultPersistance.DEFAULT_COUNTING_RESULT_EXTENSION,\r\n\t\t\t\t\tfalse,\r\n\t\t\t\t\tfalse,\r\n\t\t\t\t\ttrue,\r\n\t\t\t\t\ttimestampToUse);\r\n\r\n\t\t\t//7. try a different addition approach:\r\n\t\t\tif(compressCR==null){\r\n\t\t\t\tlog.error(\"There is no CountingResult for the compress() method !!!\");\r\n\t\t\t}else{\r\n\t\t\t\tlog.debug(\"The compress() method DOES have a CountingResult\");\r\n\t\t\t\tlong callerStartTime;\r\n\t\t\t\tcallerStartTime = compressCR.getMethodInvocationBeginning();\r\n\t\t\t\tcompressCR_evaluated = crCollector.retrieveCountingResultByStartTime_evaluateCallingTree(callerStartTime, true);\r\n\t\t\t\tlog.info(\"Addition Type2 \\\"within timespan, without inlined\\\"\"+compressCR_evaluated);\r\n\t\t\t\t\r\n\t\t\t\tcompressCR_evaluated.add_methodsInstructionsOnly(crCollector.getInlined_countingResult());\r\n\t\t\t\tlog.info(\"Addition Type2 \\\"within timespan, with inlined\\\", final result: \"+compressCR_evaluated);\r\n\r\n\t\t\t\tif(compressCR_evaluated.shallowEquals(sumOfAllCountingResults)){\r\n\t\t\t\t\tlog.info(\"Aggregated results are equal for both computation ways; not writing CountingResult as second time\");\r\n\t\t\t\t}else{\r\n\t\t\t\t\tlog.error(\"Aggregated results are different for both computation ways; writing the different CountingResult (as CSV only)\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tcsvrw = new CountingResultCSVWriter(\r\n\t\t\t\t\t\t\ttrue,\r\n\t\t\t\t\t\t\t';',\r\n\t\t\t\t\t\t\ttrue,\r\n\t\t\t\t\t\t\ttrue,\r\n\t\t\t\t\t\t\t\"CountingResult.Sum2\",\r\n\t\t\t\t\t\t\tsplits[splits.length-1]+\".\"+suffix+\".MK.csv\",\r\n\t\t\t\t\t\t\t\"MK_results\",\r\n\t\t\t\t\t\t\ttrue,\r\n\t\t\t\t\t\t\tfalse,\r\n\t\t\t\t\t\t\ttrue,\r\n\t\t\t\t\t\t\ttrue,\r\n\t\t\t\t\t\t\tfalse);\r\n\t\t\t\t\tcsvrw.writeResultToCSV(compressCR_evaluated, true, timestampToUse);//TODO use the timestamp!\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\r\n\t//\t\tfor(int i = 0; i < results.size(); i++) {\r\n\t//\t\t\tcallerStartTime = results.get(i).getMethodInvocationBeginning();\r\n\t//\t\t\tcalcResult.add(crc.getCountingResultByStartTime_evaluateCallingTree(callerStartTime));\r\n\t//\t\t}\r\n\t//\t\tTODO\r\n\t//\t\tfor(CountingResult c in calcResult) {\r\n\t//\t\t\tif c name is compress log\r\n\t//\t\t}\r\n\t\t}\r\n\t\treturn sumOfAllCountingResults;\r\n\t}", "public Double getResult();", "public void mergeResults(DefaultResults other) {\n for (int i=0; i<other.iterations; i++) {\n addCycle(\n (Long)other.maximalCc.get(i),\n (Long)other.totalCc.get(i),\n (Long)other.maximalBytes.get(i),\n (Long)other.totalBytes.get(i),\n (Long)other.maximalMemory.get(i)\n );\n }\n }", "private LinkedHashMap<String, List<String[]>> generateResultMap(List<FinanceDocument> financeDocumentList) {\n\n LinkedHashMap<String, List<String[]>> resultMap = new LinkedHashMap<>();\n for (FinanceDocument doc : financeDocumentList) {\n\n String date = DateUtils.getNormalDate(DateUtils.DATE_FORMAT_LONG, doc.getDate());\n HashMap<String, Float> valuesMap = doc.getConvertedValuesMap().get(dataType);\n\n String sign = \"+\";\n if (dataType == FinanceDocument.CUSTOM_EXPENSE) {\n sign = \"-\";\n }\n for (Map.Entry<String, Float> entry : valuesMap.entrySet()) {\n String valueString = sign + String.format(Locale.getDefault(), \"%1$,.2f\", entry.getValue()) + \" \" + MainActivity.defaultCurrency;\n if (resultMap.containsKey(date)) {\n resultMap.get(date).add(new String[]{\n Utils.keyToString(getContext(), entry.getKey()),\n valueString});\n\n\n } else {\n List<String[]> resultList = new ArrayList<>();\n resultList.add(new String[]{\n Utils.keyToString(getContext(), entry.getKey()),\n valueString});\n resultMap.put(date, resultList);\n\n }\n\n }\n }\n\n return resultMap;\n }", "@Override\r\n public void calculate() {\r\n // do the calculations\r\n this.categories = new String[]{\"one\", \"two\"};\r\n this.data = new double[]{75, 50};\r\n }", "public void evaluate(ContainerValue c1, ContainerValue c2, List<Value> result);", "@Override\r\n\tpublic List<T> getResult() {\n\t\treturn null;\r\n\t}", "public abstract List<Double> updatePopulations();", "public void outputCalcResult2(ArrayList<TLEString> tleList) throws ObjectDecayed, SatElsetException,\r\n\t\t\tFileNotFoundException, CannotInverseException, CannotCalculateException {\r\n\r\n\t\tSgp4Unit sgp4 = new Sgp4Unit();\r\n\t\tint startYear, stopYear, step;\r\n\t\tdouble startDay, stopDay;\r\n\r\n\t\tCalendar startDate = new GregorianCalendar(2017, 5 - 1, 15, 9, 0, 0);\r\n\t\tstartYear = startDate.get(Calendar.YEAR);\r\n\t\tstartDay = startDate.get(GregorianCalendar.DAY_OF_YEAR);\r\n\t\tCalendar stopDate = new GregorianCalendar(2017, 5 - 1, 16, 9, 0, 0);\r\n\t\tstopYear = stopDate.get(Calendar.YEAR);\r\n\t\tstopDay = stopDate.get(GregorianCalendar.DAY_OF_YEAR);\r\n\t\tstep = 60;// 60 [minutes] = 1 hour\r\n\r\n\t\tVector<Sgp4Data> results;\r\n\t\t// SimpleDateFormat sdf = new SimpleDateFormat(\"yyyyMMdd_HHmm\");\r\n\r\n\t\tIterator<TLEString> ite = tleList.iterator();\r\n\t\tArrayList<Vector<Sgp4Data>> resultsList = new ArrayList<Vector<Sgp4Data>>(tleList.size());\r\n\t\twhile (ite.hasNext()) {\r\n\t\t\tTLEString tle = (TLEString) ite.next();\r\n\t\t\tresults = sgp4.runSgp4(tle.getLine1(), tle.getLine2(), startYear, startDay, stopYear, stopDay, step);// step's\r\n\t\t\tresultsList.add(results);\r\n\t\t}\r\n\t\tKml kml = new Kml();\r\n\t\tKMLCreator kmlCreator = new KMLCreator(kml);\r\n\r\n\t\tdouble mesh = 1.0;// [degree]]\r\n\t\tPositionLLH currentPosllh = null;\r\n\t\tdouble hdop_atOneMoment = Double.MIN_VALUE;\r\n\t\tfor (int i = 0; i < 360 / mesh; i++) {\r\n\t\t\tfor (int j = 0; j < 180 / mesh; j++) {\r\n\t\t\t\tcurrentPosllh = new PositionLLH((j * mesh - 90.0) / 180.0 * Math.PI, (i * mesh) / 180.0 * Math.PI, 0.0);\r\n\t\t\t\thdop_atOneMoment = calcHDOPatOneMoment(currentPosllh, resultsList, 15.0, startDay, startYear);\r\n\t\t\t\tif (hdop_atOneMoment > 16.0) {\r\n\t\t\t\t\thdop_atOneMoment = 16.0;\r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.println((i * mesh) + \", \" + (j * mesh - 90.0) + \" :\" + hdop_atOneMoment);\r\n\t\t\t\tkmlCreator.createUnitPlacemark(new Coordinate(i * mesh, j * mesh - 90, 30), (int) mesh,\r\n\t\t\t\t\t\t\"polystyle\" + ((int) (16.0 - hdop_atOneMoment)), Double.toString(hdop_atOneMoment));\r\n\t\t\t}\r\n\t\t}\r\n\t\tString kmlFileName = \"testdata/hdop2.kml\";\r\n\t\tkml.marshal(new File(kmlFileName));\r\n\t\tSystem.out.println(\"completed: \" + kmlFileName);\r\n\t}", "public String getResult()\r\n {\r\n\r\n if (!divisionFormatResult)\r\n {\r\n \r\n if (resultDoubles == null)\r\n {\r\n return \"0+0i\";\r\n }\r\n \r\n double real = resultDoubles[0];\r\n double imag = resultDoubles[1];\r\n result = Operations.formatResult(real, imag, false);\r\n \r\n \r\n if (fractionDisplay)\r\n {\r\n return Operations.formatResult(real, imag, true);\r\n }\r\n }\r\n else \r\n {\r\n divisionFormatResult = false;\r\n return result;\r\n }\r\n return result;\r\n }", "public double getResult() {\n\t\treturn result; // so that skeleton code compiles\n\t}", "private<T> void addManyResults(T... results)\n {\n int i =0;\n for(T result : results)\n {\n this.add(\"morgen-main-result\"+i, new LazyDynamicPrimitive<>(result));\n i++;\n }\n\n results = null; // Prevents Heap pollution\n }", "@Override\n @XmlElement(name = \"result\", required = true)\n public Collection<Result> getResults() {\n return results = nonNullCollection(results, Result.class);\n }", "protected List<Result> getResult(DAObject o, Class<? extends MetricMeasurement> clazz, \n Metric m, Result.ResultType type) {\n DBService dbs = AlitheiaCore.getInstance().getDBService();\n Map<String, Object> props = new HashMap<String, Object>();\n \n props.put(resultFieldNames.get(clazz), o);\n props.put(\"metric\", m);\n List resultat = dbs.findObjectsByProperties(clazz, props);\n \n if (resultat.isEmpty())\n return Collections.EMPTY_LIST;\n \n ArrayList<Result> result = new ArrayList<Result>();\n result.add(new Result(o, m, ((MetricMeasurement)resultat.get(0)).getResult(), type));\n return result;\n \n }", "@Override\n public double getResult()\n {\n double result = this.factor1 + this.factor2;\n return result;\n }", "public static ArrayList<StatisticResult> composeStatisticalResult(List<LocalFile> files) {\n ArrayList<StatisticResult> result = new ArrayList<>();\n if (files.size() == 0) return result;\n Map<String, Long> sizeMap = new HashMap<>();\n Map<String, Integer> extensionMap = new HashMap<>();\n long totalSize = 0;\n\n for (LocalFile file : files) {\n if (sizeMap.containsKey(file.getFileName())) {\n sizeMap.put(file.getFileName(),\n sizeMap.get(file.getFileName()) > file.getFileSize() ?\n sizeMap.get(file.getFileName()) : file.getFileSize());\n } else {\n sizeMap.put(file.getFileName(), file.getFileSize());\n }\n if (extensionMap.containsKey(file.getFileExtension())) {\n extensionMap.put(file.getFileExtension(), extensionMap.get(file.getFileExtension())+1);\n } else {\n extensionMap.put(file.getFileExtension(), 1);\n }\n totalSize += file.getFileSize();\n }\n\n result.add(new StatisticResult(BIGEST_FILE_SIZE_TAB, BYTE_TAB));\n sortBySize(sizeMap, result);\n addDivider(result);\n result.add(new StatisticResult(AVERAGE_FILE_SIZE_TAB, (totalSize / files.size()) + BYTE_TAB));\n addDivider(result);\n result.add(new StatisticResult(POPULAR_FILE_EXTENSION, FREQUENCY_TAB));\n sortByExtension(extensionMap, result);\n return result;\n }", "private List<Node> compute() {\n\t\t\tgetGraphFromResolvedTree(root);\n\t\t\tdepthFirst(root);\n\t\t\treturn result;\n\t\t}", "private List<List<XMLResults>> loadResults()\n {\n List<List<XMLResults>> ret = new ArrayList<List<XMLResults>>();\n\n for( Platform p : platforms ) {\n\n String platformResultsDir = p.resultsDir+\"/\"+p.libraryDir;\n\n File platformDir = new File(platformResultsDir);\n\n if( !platformDir.exists() ) {\n throw new RuntimeException(\"Results for \"+p.libraryDir+\" do not exist in \"+p.resultsDir);\n }\n\n List<XMLResults> opResults = new ArrayList<XMLResults>();\n\n File[] files = platformDir.listFiles();\n\n for( File f : files ) {\n String fileName = f.getName();\n\n if( fileName.contains(\".csv\")) {\n // extract the operation name\n String stripName = fileName.substring(0,fileName.length()-4);\n\n XMLResults r = new XMLResults();\n r.fileName = stripName;\n r.results = RuntimeResultsCsvIO.read(new File(f.getAbsolutePath()));\n\n opResults.add(r);\n }\n }\n\n ret.add( opResults );\n }\n\n return ret;\n }", "public Vector getResultObjects() {\n\treturn _vcResults;\n }", "@Override\n public void possibleResultPoints(List<ResultPoint> resultPoints) {\n }", "public void setResults(ArrayList<Double> values, ArrayList<Double> results) {\n StringBuilder stringBuilder = new StringBuilder();\n for (int i = 0; i < results.size(); i++) {\n stringBuilder.append(values.get(i) + \" --> \" + decimalFormat.format(results.get(i)) + '\\n');\n }\n calcResults.setText(stringBuilder.toString());\n }", "void expand(List<R> results);", "double getResult() {\r\n\t\treturn result;\r\n\t}", "Double executeOperation(List<Double> operands);", "public void add()\r\n {\r\n resultDoubles = Operations.addition(leftOperand, rightOperand);\r\n resultResetHelper();\r\n }", "public void calcOutput()\n\t{\n\t}", "public String operate() {\r\n\r\n\t\t// Logger log = Logger.getLogger(IterationFactory.class);\r\n\t\tDecimalFormat form = new DecimalFormat(\"0.0000\");\r\n\t\tStringBuffer sb = new StringBuffer();\r\n\t\tOperationFactory operateF;\r\n\t\tList<Integer> valueList;\r\n\r\n\t\tIterator<String> inputItr = this.getInputList().iterator();\r\n\r\n\t\tIterator<Character> opItr = this.getOperator().iterator();\r\n\r\n\t\ttry {\r\n\t\t\t/* Domain check */\r\n\t\t\tif (this.getInputList().size() <= 1 && this.getInputList().size() >= 10) {\r\n\t\t\t\tthrow new ValuePairOutOfLimit(this.getInputList().size());\r\n\t\t\t}\r\n\r\n\t\t\twhile (inputItr.hasNext()) {\r\n\r\n\t\t\t\t/* To get individual operands from operand sets */\r\n\t\t\t\tvalueList = u.toValueList(inputItr.next());\r\n\t\t\t\tIterator<Integer> valItr = valueList.iterator();\r\n\r\n\t\t\t\t/* Check for validity of operands and string format */\r\n\t\t\t\tif (valueList.size() < Constant.TWO)\r\n\t\t\t\t\tthrow new OperandException();\r\n\t\t\t\tif (valueList.size() > Constant.TWO)\r\n\t\t\t\t\tthrow new StringFormatException();\r\n\r\n\t\t\t\t/*\r\n\t\t\t\t * If there is empty operator string default operator sets to\r\n\t\t\t\t * plus\r\n\t\t\t\t */\r\n\t\t\t\tif (operator.size() == 0)\r\n\t\t\t\t\toperateF = new OperationFactory(valItr.next(), valItr.next(), Constant.PLUS);\r\n\t\t\t\telse\r\n\t\t\t\t\toperateF = new OperationFactory(valItr.next(), valItr.next(), opItr.next());\r\n\r\n\t\t\t\t/* Output */\r\n\t\t\t\tsb.append(operateF.getmOp().getmOperand1() + operateF.getmOp().getmWord()\r\n\t\t\t\t\t\t+ operateF.getmOp().getmOperand2() + \" = \" + form.format(operateF.operate()) + \"\\n\");\r\n\r\n\t\t\t\t/*To reset operator iterator.*/\r\n\t\t\t\tif (!opItr.hasNext())\r\n\t\t\t\t\topItr = this.getOperator().iterator();\r\n\t\t\t}\r\n\t\t} catch (IntegerOutOfLimit e) {\r\n\t\t\tsb.append(e);\r\n\t\t} catch (InvalidOperator e) {\r\n\t\t\tsb.append(e);\r\n\t\t} catch (OperandException e) {\r\n\t\t\tsb.append(e);\r\n\t\t} catch (StringFormatException e) {\r\n\t\t\tsb.append(e);\r\n\t\t} catch (ValuePairOutOfLimit e) {\r\n\t\t\tsb.append(e);\r\n\t\t}\r\n\t\treturn sb.toString();\r\n\t}", "public double getStockFinal(long pv) {\n float entree = 0 ;\n float sortie = 0 ;\n\n ArrayList<Produit> produits = null ;\n if (pv==0) produits = produitDAO.getAll();\n else produits = produitDAO.getAllByPv(pv) ;\n\n ArrayList<Mouvement> mouvements = null;\n\n double valeur = 0 ;\n double total = 0 ;\n double quantite = 0 ;\n double cmpu = 0 ;\n double restant = 0 ;\n double qsortie = 0 ;\n double qentree = 0 ;\n // Vente par produit\n Mouvement mouvement = null ;\n Operation operation = null ;\n\n for (int i = 0; i < produits.size(); i++) {\n try {\n mouvements = mouvementDAO.getManyByProductInterval(produits.get(i).getId_externe(),DAOBase.formatter2.parse(datedebut),DAOBase.formatter2.parse(datefin)) ;\n } catch (ParseException e) {\n e.printStackTrace();\n }\n\n if (mouvements != null){\n valeur = 0 ;\n quantite = 0 ;\n restant = 0 ;\n qentree = 0 ;\n cmpu = 0 ;\n qsortie = 0 ;\n\n for (int j = 0; j < mouvements.size(); j++) {\n mouvement = mouvements.get(j) ;\n operation = operationDAO.getOne(mouvement.getOperation_id()) ;\n if (operation==null || (operation.getAnnuler()==1 && operation.getDateannulation().before(new Date())) || operation.getTypeOperation_id().startsWith(OperationDAO.CMD)) continue;\n\n //if (pv!=0 && caisseDAO.getOne(operation.getCaisse_id()).getPointVente_id()!=pv) continue;\n if (j==0)\n if (mouvement.getRestant()==mouvement.getQuantite() && mouvement.getEntree()==0){\n restant = 0 ;\n }\n else restant = mouvement.getRestant() ;\n\n if (mouvement.getEntree()==0) {\n valeur -= mouvement.getPrixA() * mouvement.getQuantite() ;\n qentree += mouvement.getQuantite() ;\n cmpu = mouvement.getPrixA() ;\n }\n else {\n valeur += mouvement.getCmup() * mouvement.getQuantite() ;\n qsortie += mouvement.getQuantite() ;\n }\n /*\n if (restant!=0) cmpu = valeur / restant ;\n else cmpu = mouvement.getCmup() ;\n */\n }\n\n quantite = restant + qentree - qsortie ;\n total+=Math.abs(valeur) ;\n }\n }\n\n return total;\n }", "@Override\n\tpublic String toString() {\n\t\treturn super.toString() + \" \" + op1 + \" + \" + op2 + \" to \" + result;\n\t}", "List<T> getResults();", "static void _cpmvMergeResult(Object result_, Vector vresult_)\r\n {\r\n if (result_ == null) return;\r\n if (result_ instanceof Component || result_ instanceof Port)\r\n vresult_.addElement(result_);\r\n else {\r\n Object[] tmp_ = (Object[])result_;\r\n for (int j=0; j<tmp_.length; j++) vresult_.addElement(tmp_[j]);\r\n }\r\n }", "@Override\r\n public List<Document> processDocument(Document doc) {\n if (!(doc.hasField(dividendField) && doc.hasField(divisorField))) {\r\n return null;\r\n }\r\n if (doc.getField(dividendField).size() != doc.getField(divisorField).size()) {\r\n log.warn(\"Dividend and Divisor fields of unequal length.\");\r\n return null;\r\n }\r\n ArrayList<Double> results = new ArrayList<Double>();\r\n int size = doc.getField(dividendField).size();\r\n for (int i = 0; i < size; i++) {\r\n try {\r\n // log.info(\"Compute {} divided by {}\",\r\n // doc.getField(dividendField).get(i),\r\n // doc.getField(divisorField).get(i));\r\n Double divisor = convertToDouble(doc.getField(divisorField).get(i));\r\n Double dividend = convertToDouble(doc.getField(dividendField).get(i));\r\n if (divisor == 0.0) {\r\n continue;\r\n }\r\n Double quotient = dividend / divisor;\r\n results.add(quotient);\r\n } catch (ClassCastException e) {\r\n log.warn(\"Division Error DocID: \", doc.getId());\r\n e.printStackTrace();\r\n }\r\n }\r\n\r\n if (dividendField.equals(quotentField)) {\r\n doc.removeField(quotentField);\r\n }\r\n for (Double v : results) {\r\n doc.addToField(quotentField, v);\r\n }\r\n\r\n return null;\r\n }", "public DiffResult() {\n\t\tthis.files = new ArrayList<String>();\n\t\tthis.functionCalls = new HashMap<String, Integer>();\n\t}", "public Result getResults()\r\n {\r\n return result;\r\n }", "public static void show(){\r\n for(int i =0; i<loan.size(); i++){\r\n loan.get(i).calculate();\r\n }\r\n }", "@Override\r\n\t\tvoid calculate() {\r\n\t\t\tnum3=num1+num2;\r\n\t\t\t\r\n\t\t}", "public List<m> b(List<CheckoutItem> list) {\n ArrayList arrayList = new ArrayList();\n for (final CheckoutItem next : list) {\n com.shopee.app.d.b.a.a a2 = h.a(next);\n arrayList.add(new com.shopee.app.ui.order.b.a.a());\n List<OrderDetail> orderDetailList = next.getOrderDetailList();\n int i = 0;\n for (OrderDetail next2 : orderDetailList) {\n i += next2.getDistinctItemCount();\n com.shopee.app.ui.order.b.a.c cVar = new com.shopee.app.ui.order.b.a.c();\n cVar.b(next2);\n cVar.a(new c.a(next2, a2));\n arrayList.add(cVar);\n com.shopee.app.ui.order.b.a.d dVar = new com.shopee.app.ui.order.b.a.d();\n dVar.b(next2);\n dVar.a(new d.a(next2));\n arrayList.add(dVar);\n }\n if (i > orderDetailList.size()) {\n final int size = i - orderDetailList.size();\n com.shopee.app.ui.order.b.a.h hVar = new com.shopee.app.ui.order.b.a.h();\n hVar.b(next);\n hVar.a(new h.a() {\n public int a() {\n return size;\n }\n\n public List<Long> b() {\n return Arrays.asList(new Long[]{Long.valueOf(next.getCheckoutId())});\n }\n });\n arrayList.add(hVar);\n }\n g gVar = new g();\n gVar.b(next);\n gVar.a(new g.a() {\n public int e() {\n return R.string.sp_label_order_total;\n }\n\n public int a() {\n return next.getTotalCount();\n }\n\n public long b() {\n return next.getTotalPrice();\n }\n\n public List<Long> c() {\n return Arrays.asList(new Long[]{Long.valueOf(next.getCheckoutId())});\n }\n\n public int d() {\n if (next.isEscrow()) {\n return R.drawable.ic_guarantee;\n }\n return 0;\n }\n });\n arrayList.add(gVar);\n com.shopee.app.ui.order.b.a.b bVar = new com.shopee.app.ui.order.b.a.b();\n bVar.b(next);\n bVar.a(a2);\n arrayList.add(bVar);\n }\n return arrayList;\n }", "public ArrayList<Double> calculateOutput(){\n for(int i = 0; i < inputSize; i++){\n network.get(0).get(i).setInput(inputs.get(i));\n }\n //Make it go through each node in the network and calculate output for each of them top down\n for(int i = 0; i < numOutputs; i++){\n output.set(i, network.get(layers-1).get(i).calculateOutput());\n }\n return output;\n }", "@Override\r\n\tpublic double calculate() {\n\r\n\t\treturn n1 + n2;\r\n\t}", "@Override\r\n\tpublic void calculateFinalData() {\n\t\tfor(TeamPO oneTeam:teams.getAllTeams()){\r\n\t\t\toneTeam.calculateTeamDataInOneSeason();\r\n\t\t}\r\n\t}", "public ExportResults()\n\t{\n\t\tthis.evalNaiveBayesList = new ArrayList<Evaluation>();\n\t\tthis.evalSMOList = new ArrayList<Evaluation>();\n\t}", "@Override\n\tpublic List<Double> computeValues() {\n\t\treturn null;\n\t}", "public void calculateMetrics(){\n //precision\n precisionFinal = precision.stream().mapToDouble(f -> f).sum()/precision.size();\n System.out.print(\"Precision: \");\n System.out.println(precisionFinal);\n //recall\n recallFinal = recall.stream().mapToDouble(f -> f).sum()/recall.size();\n System.out.print(\"Recall: \");\n System.out.println(recallFinal);\n //fMeasures\n fMeausureFinal = fMeasures.stream().mapToDouble(f -> f).sum()/fMeasures.size();\n System.out.print(\"Fmeasure: \");\n System.out.println(fMeausureFinal);\n\n //MAP\n mapFinal = apRes.stream().mapToDouble(d->d).sum()/apRes.size();\n System.out.print(\"Mean Avarage Precision: \");\n System.out.println(mapFinal);\n \n mapLimitedFinal = apResRankedTopLimited.stream().mapToDouble(d->d).sum()/apResRankedTopLimited.size();\n System.out.print(\"Mean Precision at rank 10: \");\n System.out.println(mapLimitedFinal);\n \n //NDCG\n ndcgResultsFinal =0;\n ndcgResults.stream().forEach(l-> {\n //it is always true, only added to ensure that doesnt' break with another examples where some queries doens't have results.\n if(l.size()>0){\n ndcgResultsFinal= l.get(l.size()-1)+ndcgResultsFinal;\n }\n });\n ndcgResultsFinal=ndcgResultsFinal/ndcgResults.size();\n \n System.out.print(\"NDCG: \");\n System.out.println(ndcgResultsFinal);\n }", "public List<Distribution> calculateDistribution() {\n String[] distinctExpenses = getDistinctElements(listOfTargets);\n distributionList = initializeList(distinctExpenses);\n\n for (int i = 0; i < distributionList.size(); i++) {\n for (int j = 0; j < distinctExpenses.length; j++) {\n\n if (distinctExpenses[i].equals(distributionList.get(i).getName())) {\n distributionList.get(i).setAmount(valueLoader(distinctExpenses[i]));\n double tmp1 = valueLoader(distinctExpenses[i]);\n double tmp2 = sumOfExpenses;\n distributionList.get(i).setPercentage(tmp1 / tmp2 * 100);\n logger.debug(\"Calculated the distribution of an entity. {}\",\n distributionList.get(i).toString());\n }\n }\n }\n return distributionList;\n }", "private void molCalculator() {\n\t\tdouble finalMolRMultiplier = 100000000;\n\t\tint finalMolRIndex = 0;\n\t\tdouble finalMolPMultiplier = 100000000;\n\t\tint finalMolPIndex = 0;\n\t\tdouble finalMol = 0;\n\t\tint finalMolAmt = 0;\n\n\t\t/* Finds the limiting moles on the reactant side and sets the # textfield to its assumed value \n\t\tin case of non-numerical values */\n\t\tfor (int i = 0; i < intReactant; i++) {\n\t\t\tif (reactantMM[i] > 0) {\n\t\t\t\tif (reactantAmt[i] == 0) {\n\t\t\t\t\treactantTextAmt.get(i).setText(\"1\");\n\t\t\t\t\treactantAmt[i] = 1;\n\t\t\t\t}\n\t\t\t\treactantTextAmt.get(i).setText(reactantAmt[i] + \"\");\n\t\t\t\tif (!(reactantMoles[i] == 0)) {\n\t\t\t\t\tdouble temp = reactantMoles[i] / reactantAmt[i];\n\t\t\t\t\tif (finalMolRMultiplier > temp) {\n\t\t\t\t\t\tfinalMolRMultiplier = temp;\n\t\t\t\t\t\tfinalMolRIndex = i;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t/* Finds the limiting moles on the product side and sets the # textfield to its assumed value \n\t\tin case of non-numerical values */\n\t\tfor (int i = 0; i < intProduct; i++) {\n\t\t\tif (productMM[i] > 0) {\n\t\t\t\tif (productAmt[i] == 0) {\n\t\t\t\t\tproductTextAmt.get(i).setText(\"1\");\n\t\t\t\t\tproductAmt[i] = 1;\n\t\t\t\t}\n\t\t\t\tproductTextAmt.get(i).setText(productAmt[i] + \"\");\n\t\t\t\tif (!(productMoles[i] == 0)) {\n\t\t\t\t\tdouble temp = productMoles[i] / productAmt[i];\n\t\t\t\t\tif (finalMolPMultiplier > temp) {\n\t\t\t\t\t\tfinalMolPMultiplier = temp;\n\t\t\t\t\t\tfinalMolPIndex = i;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Finds the final limiting moles\n\t\tif (finalMolRMultiplier > finalMolPMultiplier) {\n\t\t\tfinalMol = productMoles[finalMolPIndex];\n\t\t\tfinalMolAmt = productAmt[finalMolPIndex];\n\t\t} else {\n\t\t\tfinalMol = reactantMoles[finalMolRIndex];\n\t\t\tfinalMolAmt = reactantAmt[finalMolRIndex];\n\t\t}\n\n\t\t// Stores the final limiting moles of each reactant\n\t\tfor (int i = 0; i < intReactant; i++) {\n\t\t\tif (reactantMM[i] > 0) {\n\t\t\t\t// Tries to find the final mol on the reactant side but if the calculation is NaN, don't divide\n\t\t\t\ttry {\n\t\t\t\t\tfinalMolReactant[i] = Double.parseDouble(numberFormat.format((reactantAmt[i] * finalMol) / finalMolAmt));\n\t\t\t\t} catch(Exception e) {\n\t\t\t\t\tfinalMolAmt = 1;\n\t\t\t\t\tfinalMolReactant[i] = Double.parseDouble(numberFormat.format(reactantAmt[i] * finalMol));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Stores the final limiting moles of each product\n\t\tfor (int i = 0; i < intProduct; i++) {\n\t\t\tif (productMM[i] > 0) {\n\t\t\t\t// Tries to find the final mol on the product side but if the calculation is NaN, don't divide\n\t\t\t\ttry {\n\t\t\t\t\tfinalMolProduct[i] = Double.parseDouble(numberFormat.format((productAmt[i] * finalMol) / finalMolAmt));\n\t\t\t\t} catch(Exception e) {\n\t\t\t\t\tfinalMolProduct[i] = Double.parseDouble(numberFormat.format(productAmt[i] * finalMol));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public double merge( Double topLevelResult, List<Double> recursiveResult ) {\n /* Accumulate the total similarity in recursive_average */\n Double recursive_average = 0.;\n for( Double d : recursiveResult ) {\n recursive_average += d;\n }\n\n /* Divide by length of the list to get the average */\n recursive_average /= recursiveResult.size();\n\n /* Return the average of toplevel and recursive average */\n return ( topLevelResult + recursive_average ) / 2;\n\n }", "public void deliverResult(List<VehiclesTotalRunningCosts> data) {\n super.deliverResult(data);\n }", "public List<Double> calculate1a(List<C> listOfNodes,double a, double b);", "public list_results_doc_result(list_results_doc_result other) {\n if (other.isSetSuccess()) {\n java.util.List<Examination> __this__success = new java.util.ArrayList<Examination>(other.success.size());\n for (Examination other_element : other.success) {\n __this__success.add(new Examination(other_element));\n }\n this.success = __this__success;\n }\n }", "public List<Object[]> getReporte(Reporteador reporteadorSeleccionado, Date fechaDesde, Date fechaHasta, int idSucursal)\r\n/* 266: */ throws AS2Exception, IllegalArgumentException, ArithmeticException\r\n/* 267: */ {\r\n/* 268:291 */ reporteadorSeleccionado = cargarDetalle(reporteadorSeleccionado.getId());\r\n/* 269:292 */ Map<Integer, BigDecimal> mapaValorVariables = new HashMap();\r\n/* 270: */ \r\n/* 271:294 */ List<Object[]> resultado = new ArrayList();\r\n/* 272:297 */ for (Iterator localIterator1 = reporteadorSeleccionado.getListaDetalleReporteadorVariable().iterator(); localIterator1.hasNext();)\r\n/* 273: */ {\r\n/* 274:297 */ detalle1 = (DetalleReporteadorVariable)localIterator1.next();\r\n/* 275:298 */ for (DetalleReporteadorVariable detalle2 : reporteadorSeleccionado.getListaDetalleReporteadorVariable()) {\r\n/* 276:299 */ if ((detalle2.isIndicadorFormula()) && \r\n/* 277:300 */ (detalle2.getExpresion().contains(detalle1.getCodigo()))) {\r\n/* 278:301 */ detalle2.getListaDetalleVariablesExpresion().add(detalle1);\r\n/* 279: */ }\r\n/* 280: */ }\r\n/* 281: */ }\r\n/* 282: */ DetalleReporteadorVariable detalle1;\r\n/* 283:307 */ resultado.addAll(getReporteRecursivo(reporteadorSeleccionado, null, fechaDesde, fechaHasta, idSucursal, 0, mapaValorVariables));\r\n/* 284: */ \r\n/* 285:309 */ return resultado;\r\n/* 286: */ }", "public ArrayList<Chunk> getResult() {\n\t\treturn copyOfChunks;\n\t}", "public void calculos() {\n a = a1+a2+a3;\n b = b1+b2+b3;\n c = c1+c2+c3;\n }", "public void outputCalcResult(ArrayList<TLEString> tleList) throws ObjectDecayed, SatElsetException,\r\n\t\t\tFileNotFoundException, CannotInverseException, CannotCalculateException {\r\n\r\n\t\tSgp4Unit sgp4 = new Sgp4Unit();\r\n\t\tint startYear, stopYear, step;\r\n\t\tdouble startDay, stopDay;\r\n\r\n\t\tCalendar startDate = new GregorianCalendar(2017, 5 - 1, 15, 9, 0, 0);\r\n\t\tstartYear = startDate.get(Calendar.YEAR);\r\n\t\tstartDay = startDate.get(GregorianCalendar.DAY_OF_YEAR);\r\n\t\tCalendar stopDate = new GregorianCalendar(2017, 5 - 1, 16, 9, 0, 0);\r\n\t\tstopYear = stopDate.get(Calendar.YEAR);\r\n\t\tstopDay = stopDate.get(GregorianCalendar.DAY_OF_YEAR);\r\n\t\tstep = 60;// 60 [minutes] = 1 hour\r\n\r\n\t\tVector<Sgp4Data> results;\r\n\t\t// SimpleDateFormat sdf = new SimpleDateFormat(\"yyyyMMdd_HHmm\");\r\n\r\n\t\tIterator<TLEString> ite = tleList.iterator();\r\n\t\tArrayList<Vector<Sgp4Data>> resultsList = new ArrayList<Vector<Sgp4Data>>(tleList.size());\r\n\t\twhile (ite.hasNext()) {\r\n\t\t\tTLEString tle = (TLEString) ite.next();\r\n\t\t\tresults = sgp4.runSgp4(tle.getLine1(), tle.getLine2(), startYear, startDay, stopYear, stopDay, step);// step's\r\n\t\t\tresultsList.add(results);\r\n\t\t}\r\n\t\tKml kml = new Kml();\r\n\t\tKMLCreator kmlCreator = new KMLCreator(kml);\r\n\r\n\t\tdouble mesh = 3.0;// [degree]]\r\n\t\tdouble targetHDOP = 3.0;\r\n\t\tPositionLLH currentPosllh = null;\r\n\t\tdouble percentageUnderCertainHDOP = 0;\r\n\t\tfor (int i = 0; i < 180 / mesh; i++) {\r\n\t\t\tfor (int j = 0; j < 180 / mesh; j++) {\r\n\t\t\t\tcurrentPosllh = new PositionLLH((j * mesh - 90.0) / 180.0 * Math.PI, (i * mesh) / 180.0 * Math.PI, 0.0);\r\n\t\t\t\tpercentageUnderCertainHDOP = calcpercentageUnderCertainHDOP(currentPosllh, resultsList, targetHDOP,\r\n\t\t\t\t\t\t15.0, startDay, startYear, step);\r\n\t\t\t\tif (percentageUnderCertainHDOP == 100.0) {\r\n\t\t\t\t\tpercentageUnderCertainHDOP = 99.0;\r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.println((i * mesh) + \", \" + (j * mesh - 90.0) + \" :\" + percentageUnderCertainHDOP);\r\n\t\t\t\tkmlCreator.createUnitPlacemark(new Coordinate(i * mesh, j * mesh - 90, 30), (int) mesh,\r\n\t\t\t\t\t\t\"polystyle\" + ((int) percentageUnderCertainHDOP * 16 / 100),\r\n\t\t\t\t\t\tDouble.toString(percentageUnderCertainHDOP));\r\n\t\t\t}\r\n\t\t}\r\n\t\tString kmlFileName = \"testdata/hdop.kml\";\r\n\t\tkml.marshal(new File(kmlFileName));\r\n\t\tSystem.out.println(\"completed: \" + kmlFileName);\r\n\t}", "void onResultCalculated(ResultCalculatedEvent event);", "public void calculateResult() {\n\t\tfor (GameEngineCallback callback : callbacks) {\n\t\t\t// Roll for house\n\t\t\tthis.rollHouse(INITIAL_DELAY, FINAL_DELAY, DELAY_INCREMENT);\n\t\t\t\n\t\t\tfor (Player player : this.players.values()) {\n\t\t\t\t// Players who are playing must have a bet and a score\n\t\t\t\t// This conditional may not be required in Assignment 2\n\t\t\t\tif (player.getBet() > 0 && player.getRollResult()\n\t\t\t\t\t\t.getTotalScore() > 0) {\n\t\t\t\t\t// Compare rolls, set result and add/subtract points\n\t\t\t\t\tif (this.houseDice.getTotalScore() > player.\n\t\t\t\t\t\t\tgetRollResult().getTotalScore()) {\n\t\t\t\t\t\tGameStatus status = GameEngine.GameStatus.LOST;\t\t\t\t\t\n\t\t\t\t\t\tplayer.setGameResult(status);\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Subtract bet from player points\n\t\t\t\t\t\tint points = player.getPoints() - player.getBet();\n\t\t\t\t\t\tthis.setPlayerPoints(player, points);\n\t\t\t\t\t}\n\t\t\t\t\telse if (houseDice.getTotalScore() == player.\n\t\t\t\t\t\t\tgetRollResult().getTotalScore()) {\n\t\t\t\t\t\tGameStatus status = GameEngine.GameStatus.DREW;\t\t\t\t\t\n\t\t\t\t\t\tplayer.setGameResult(status);\n\t\t\t\t\t\t\n\t\t\t\t\t\t// No change to points on a draw\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tGameStatus status = GameEngine.GameStatus.WON;\t\t\t\t\t\n\t\t\t\t\t\tplayer.setGameResult(status);\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Add bet to player points\n\t\t\t\t\t\tint points = player.getPoints() + player.getBet();\n\t\t\t\t\t\tthis.setPlayerPoints(player, points);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// Display result\n\t\t\t\t\tcallback.gameResult(this.getPlayer(player.getPlayerId()), \n\t\t\t\t\t\t\tthis.getPlayer(player.getPlayerId()).getGameResult(), this);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private static ArrayList<String> construireMatriceCalcul() throws Exception_AbsenceExperienceBiomass, Exception_ParseException,IOException, Exception_SparqlConnexion {\n\n /*Pour chaque objetc : Object_TIEG de vDocExp construire le vecteur d'entrée au calul*/\n /*Le vecteur résultant sera placé sur : vVecteurCalculGlobal*/\n /*En cas de valeurs manquantes, le vecteur sera null, un message indiquant l'emplacement du manque ser transmis à la servlet*/\n \n Object_RapportCalculVecteur rapport;\n \n ArrayList<String> message= new ArrayList<>();\n \n if(vDocExp.size() > 0)\n {\n \n for(Object_TIEG obj : vDocExp)\n {\n try { \n\n if((rapport=InterrogationDataRDF.getVecteurCalcul(vPathRacine, obj, vTopicOperations, vRelationParametres)).getVecteurCalcul()!=null)\n {\n vVecteurCalculGlobal.add(rapport.getVecteurCalcul());\n }\n else\n {\n if(rapport.getMessage()!=null)\n {\n message.add(rapport.getMessage());\n }\n \n }\n \n } catch (Exception_ParseException ex) {\n \n throw ex;\n }\n }\n }\n else\n {\n throw new Exception_AbsenceExperienceBiomass();\n }\n \n return message;\n \n }", "public HashMap<String, Integer> setResults(ArrayList<HasCodeSmell> trueResults) { \n\t\t\tHashMap<String, Integer> mapValues = new HashMap<>();\n\t\t\tint falsepositive = 0;\n\t\t\tint falsenegative = 0;\n\t\t\tint truepositive = 0;\n\t\t\tint truenegative = 0;\n\t\t\tfor (HasCodeSmell indicator : result) {\n\t\t\t\tif(indicator.isMethod()) {\n\t\t\t\t\tfor (HasCodeSmell calculated : trueResults) {\n\t\t\t\t\t\t\tif (indicator.isEqual(calculated)) {\n\t\t\t\t\t\t\t\tif (calculator.isTruePositive(indicator, calculated)) truepositive++;\n\t\t\t\t\t\t\t\telse if (calculator.isFalsePositive(indicator, calculated)) falsepositive++;\n\t\t\t\t\t\t\t\telse if (calculator.isFalseNegative(indicator, calculated)) falsenegative++;\n\t\t\t\t\t\t\t\telse if (calculator.isTrueNegative(indicator, calculated)) truenegative++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tmapValues.put(QualityCalculator.FALSE_POSITIVE, falsepositive);\n\t\t\tmapValues.put(QualityCalculator.FALSE_NEGATIVE, falsenegative);\n\t\t\tmapValues.put(QualityCalculator.TRUE_POSITIVE, truepositive);\n\t\t\tmapValues.put(QualityCalculator.TRUE_NEGATIVE, truenegative);\n\t\t\treturn mapValues;\n\t\t}", "@Override\n protected Object aggregateResult(Object aggregate, Object nextResult)\n {\n if (nextResult == null) {\n throw new UnsupportedOperationException(\"not yet implemented\");\n }\n if (aggregate == null) {\n return nextResult;\n }\n throw new UnsupportedOperationException(format(\"Cannot combine %s and %s\", aggregate, nextResult));\n }", "@Override\n public double calcularValorCompra(ArrayList<Mueble> muebles){\n double total = 0d;\n for (Mueble m : muebles) {\n total+= m.getCantidad()*m.getPrecio();\n }\n return total; \n }", "private void calculateIncomings(List<ClientInstructions> instructions) {\r\n\t\tgetCalculationService().calculateTotalAmount(instructions, incomingPredicate).entrySet().stream()\r\n\t\t\t\t.forEach(p -> allIncomings.merge(p.getKey(), p.getValue(), ReportingSystemProcessor::addition));\r\n\t}", "private Map<String,Operation> resortByOperation( List<List<XMLResults>> results )\n {\n Map<String,Operation> ret = new HashMap<String,Operation>();\n\n for( int i = 0; i < platforms.size(); i++ ) {\n Platform p = platforms.get(i);\n\n\n for( XMLResults r : results.get(i) ) {\n Operation o;\n\n if( ret.containsKey(r.fileName)) {\n o = ret.get(r.fileName);\n } else {\n o = new Operation();\n o.fileName = r.fileName;\n o.plotName = r.results.getOpName();\n ret.put(o.fileName,o);\n }\n o.platforms.add(p);\n o.results.add(r.results);\n }\n }\n\n return ret;\n }", "public FrmResult(ArrayList<DataReview> dataRvw) {\n this.dataRvw = dataRvw;\n ArrayList<Results> arrRes = new ArrayList<Results>();\n // ArrayList<Results> arrResFinal = new ArrayList<Results>();\n Results resLower = null;\n initComponents();\n \n Iterator<DataReview> itrDr = this.dataRvw.iterator();\n while(itrDr.hasNext()){\n DataReview dr = itrDr.next();\n String code = dr.getCode();\n float ave = dr.getAverage();\n \n // Data\n Results r = new Results();\n ArrayList<Feature> arrFea = new ArrayList<Feature>(); //Array de Features\n \n // System.out.println(\"code: \"+code+\" ave: \"+ave);\n \n int limit = 1; // Cut String limite\n for (int i = 0; i < code.length()-1; i++) {\n Feature f = new Feature();\n f.setFtr(Integer.parseInt(code.substring(i,limit)));\n limit += 1;\n \n arrFea.add(f);\n }\n \n r.setCode(arrFea);\n r.setAve(ave);\n \n arrRes.add(r);\n }\n \n// Iterator<Results> itrRes = arrRes.iterator();\n// while (itrRes.hasNext()){\n// Results res = itrRes.next();\n// ArrayList<Feature> arrFea2 = res.getCode();\n// float ave = res.getAve();\n// \n// System.out.print(\"ArrayFeatures: \");\n// Iterator<Feature> itrFea = arrFea2.iterator();\n// while (itrFea.hasNext()) {\n// Feature f = itrFea.next();\n// System.out.print(f.getFtr());\n// }\n// System.out.println(\" Average: \"+res.getAve());\n// }\n \n resLower = arrRes.get(0); // Take teh lower result to get the neighbors.\n \n Iterator<Results> itrRes = arrRes.iterator();\n while (itrRes.hasNext()){\n Results res = itrRes.next();\n ArrayList<Feature> arrFeaRes = res.getCode();\n float ave = res.getAve();\n \n ArrayList<Feature> arrFeaRLower = resLower.getCode();\n \n int cont = 0;\n \n for (int i = 0; i < arrFeaRes.size(); i++) {\n if (arrFeaRes.get(i).getFtr()!=arrFeaRLower.get(i).getFtr()) {\n // System.out.println(\"AR: \"+arrFeaRes.get(i).getFtr()+\" >> \"+arrFeaRLower.get(i).getFtr());\n cont += 1;\n }\n }\n \n // System.out.println(\"\");\n \n // Create de Result Final\n Results resFinal = new Results();\n resFinal.setCode(arrFeaRes);\n resFinal.setAve(ave);\n resFinal.setDist(cont);\n \n if(cont!=0){\n this.arrResFinal.add(resFinal);\n }\n }\n \n\n System.out.println(\"<< RESULTS >>\");\n System.out.print(\"Lower Node: \");\n Iterator<Feature> itrFeaResLow = resLower.getCode().iterator();\n while (itrFeaResLow.hasNext()) {\n System.out.print(itrFeaResLow.next().getFtr()); \n }\n System.out.println(\"\");\n \n Iterator<Results> itrResFinal = this.arrResFinal.iterator();\n while (itrResFinal.hasNext()) {\n Results r = itrResFinal.next();\n ArrayList<Feature> arrFea = r.getCode();\n float ave = r.getAve();\n int dist = r.getDist();\n \n System.out.print(\"Features: \");\n Iterator<Feature> itrArrFea = arrFea.iterator();\n while (itrArrFea.hasNext()) {\n Feature f = itrArrFea.next();\n System.out.print(f.getFtr());\n }\n System.out.println(\" Average: \"+ave+\" Distance: \"+dist);\n }\n \n // take the first object DataReview cause it's lower.\n for (int i = 0; i < 1; i++) {\n DataReview dr = this.dataRvw.get(i);\n KnnId.setText(dr.getCode());\n KnnAve.setText(String.valueOf(dr.getAverage()));\n }\n }", "public ArrayList<Integer>get_res_recursive() {\n\t\t\n\t\tArrayList<Integer> res= new ArrayList<>();\n\t\t\n\t\tif(!this.hasEulerLoop()) return res;\n\t\t\n\t\tresult_recur(graph,0,res);\n\t\t\n\t\treturn res;\n\t}", "public abstract void calculate();", "public ServiceResultAggregate(String name, List<Result<?>> resultList, List<ServiceResultInterface> components) {\n\t\tsuper(name, resultList);\n\t\tthis.components = components;\n\t}" ]
[ "0.67934626", "0.6618641", "0.6544018", "0.64243835", "0.63483876", "0.6308836", "0.6161013", "0.6153274", "0.6129737", "0.60887206", "0.5996882", "0.59237415", "0.58870184", "0.5716267", "0.5678678", "0.5657646", "0.56493026", "0.56466585", "0.56365275", "0.56297565", "0.5625309", "0.56158394", "0.56151384", "0.5614878", "0.5589197", "0.5582008", "0.5574858", "0.5532831", "0.5512377", "0.5494724", "0.5491384", "0.54889137", "0.5484201", "0.54838824", "0.54615444", "0.5450532", "0.54388493", "0.5436241", "0.543494", "0.54301417", "0.5429509", "0.5418952", "0.5385237", "0.53749746", "0.53739923", "0.53657365", "0.535591", "0.5349091", "0.5345794", "0.5326978", "0.53108233", "0.52976686", "0.5296443", "0.5292445", "0.52810234", "0.52804106", "0.52728885", "0.52713645", "0.52694803", "0.5262698", "0.52565783", "0.52503055", "0.5249013", "0.5243325", "0.52420235", "0.5241359", "0.5236938", "0.52322936", "0.52237076", "0.5219541", "0.52179265", "0.5200018", "0.51929235", "0.5190949", "0.518032", "0.5173154", "0.5167578", "0.5167426", "0.51652455", "0.5161965", "0.516079", "0.51591814", "0.51489836", "0.5145819", "0.5143023", "0.5142434", "0.51419413", "0.514115", "0.5138875", "0.51313096", "0.5130311", "0.510706", "0.51004297", "0.50981903", "0.50910884", "0.5084232", "0.50836015", "0.5082359", "0.50808775", "0.5077585", "0.50769603" ]
0.0
-1
Do some basic checks on the URI and name. Try to lookup the URI. See if the name is qualified.
private static String verifyXPathRoot(String schemaNS, String rootProp) throws XMPException { if (schemaNS == null || schemaNS.length() == 0) { throw new XMPException("Schema namespace URI is required", XMPError.BADSCHEMA); } if ((rootProp.charAt(0) == '?') || (rootProp.charAt(0) == '@')) { throw new XMPException("Top level name must not be a qualifier", XMPError.BADXPATH); } if (rootProp.indexOf('/') >= 0 || rootProp.indexOf('[') >= 0) { throw new XMPException("Top level name must be simple", XMPError.BADXPATH); } String prefix = XMPMetaFactory.getSchemaRegistry().getNamespacePrefix(schemaNS); if (prefix == null) { throw new XMPException("Unregistered schema namespace URI", XMPError.BADSCHEMA); } // Verify the various URI and prefix combinations. Initialize the // expanded XMPPath. int colonPos = rootProp.indexOf(':'); if (colonPos < 0) { // The propName is unqualified, use the schemaURI and associated // prefix. verifySimpleXMLName(rootProp); // Verify the part before any colon return prefix + rootProp; } else { // The propName is qualified. Make sure the prefix is legit. Use the associated // URI and // qualified name. // Verify the part before any colon verifySimpleXMLName(rootProp.substring(0, colonPos)); verifySimpleXMLName(rootProp.substring(colonPos)); prefix = rootProp.substring(0, colonPos + 1); String regPrefix = XMPMetaFactory.getSchemaRegistry().getNamespacePrefix(schemaNS); if (regPrefix == null) { throw new XMPException("Unknown schema namespace prefix", XMPError.BADSCHEMA); } if (!prefix.equals(regPrefix)) { throw new XMPException("Schema namespace URI and prefix mismatch", XMPError.BADSCHEMA); } return rootProp; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasUri();", "private void initialize(URI p_base, String p_uriSpec)\n throws MalformedURIException {\n \n String uriSpec = p_uriSpec;\n int uriSpecLen = (uriSpec != null) ? uriSpec.length() : 0;\n \n if (p_base == null && uriSpecLen == 0) {\n throw new MalformedURIException(\n \"Cannot initialize URI with empty parameters.\");\n }\n \n // just make a copy of the base if spec is empty\n if (uriSpecLen == 0) {\n initialize(p_base);\n return;\n }\n \n int index = 0;\n \n // Check for scheme, which must be before '/', '?' or '#'. Also handle\n // names with DOS drive letters ('D:'), so 1-character schemes are not\n // allowed.\n int colonIdx = uriSpec.indexOf(':');\n if (colonIdx != -1) {\n final int searchFrom = colonIdx - 1;\n // search backwards starting from character before ':'.\n int slashIdx = uriSpec.lastIndexOf('/', searchFrom);\n int queryIdx = uriSpec.lastIndexOf('?', searchFrom);\n int fragmentIdx = uriSpec.lastIndexOf('#', searchFrom);\n \n if (colonIdx < 2 || slashIdx != -1 || \n queryIdx != -1 || fragmentIdx != -1) {\n // A standalone base is a valid URI according to spec\n if (colonIdx == 0 || (p_base == null && fragmentIdx != 0)) {\n throw new MalformedURIException(\"No scheme found in URI.\");\n }\n }\n else {\n initializeScheme(uriSpec);\n index = m_scheme.length()+1;\n \n // Neither 'scheme:' or 'scheme:#fragment' are valid URIs.\n if (colonIdx == uriSpecLen - 1 || uriSpec.charAt(colonIdx+1) == '#') {\n throw new MalformedURIException(\"Scheme specific part cannot be empty.\"); \n }\n }\n }\n else if (p_base == null && uriSpec.indexOf('#') != 0) {\n throw new MalformedURIException(\"No scheme found in URI.\"); \n }\n \n // Two slashes means we may have authority, but definitely means we're either\n // matching net_path or abs_path. These two productions are ambiguous in that\n // every net_path (except those containing an IPv6Reference) is an abs_path. \n // RFC 2396 resolves this ambiguity by applying a greedy left most matching rule. \n // Try matching net_path first, and if that fails we don't have authority so \n // then attempt to match abs_path.\n //\n // net_path = \"//\" authority [ abs_path ]\n // abs_path = \"/\" path_segments\n if (((index+1) < uriSpecLen) &&\n (uriSpec.charAt(index) == '/' && uriSpec.charAt(index+1) == '/')) {\n index += 2;\n int startPos = index;\n \n // Authority will be everything up to path, query or fragment\n char testChar = '\\0';\n while (index < uriSpecLen) {\n testChar = uriSpec.charAt(index);\n if (testChar == '/' || testChar == '?' || testChar == '#') {\n break;\n }\n index++;\n }\n \n // Attempt to parse authority. If the section is an empty string\n // this is a valid server based authority, so set the host to this\n // value.\n if (index > startPos) {\n // If we didn't find authority we need to back up. Attempt to\n // match against abs_path next.\n if (!initializeAuthority(uriSpec.substring(startPos, index))) {\n index = startPos - 2;\n }\n }\n else {\n m_host = \"\";\n }\n }\n \n initializePath(uriSpec, index);\n \n // Resolve relative URI to base URI - see RFC 2396 Section 5.2\n // In some cases, it might make more sense to throw an exception\n // (when scheme is specified is the string spec and the base URI\n // is also specified, for example), but we're just following the\n // RFC specifications\n if (p_base != null) {\n \n // check to see if this is the current doc - RFC 2396 5.2 #2\n // note that this is slightly different from the RFC spec in that\n // we don't include the check for query string being null\n // - this handles cases where the urispec is just a query\n // string or a fragment (e.g. \"?y\" or \"#s\") -\n // see <http://www.ics.uci.edu/~fielding/url/test1.html> which\n // identified this as a bug in the RFC\n if (m_path.length() == 0 && m_scheme == null &&\n m_host == null && m_regAuthority == null) {\n m_scheme = p_base.getScheme();\n m_userinfo = p_base.getUserinfo();\n m_host = p_base.getHost();\n m_port = p_base.getPort();\n m_regAuthority = p_base.getRegBasedAuthority();\n m_path = p_base.getPath();\n \n if (m_queryString == null) {\n m_queryString = p_base.getQueryString();\n }\n return;\n }\n \n // check for scheme - RFC 2396 5.2 #3\n // if we found a scheme, it means absolute URI, so we're done\n if (m_scheme == null) {\n m_scheme = p_base.getScheme();\n }\n else {\n return;\n }\n \n // check for authority - RFC 2396 5.2 #4\n // if we found a host, then we've got a network path, so we're done\n if (m_host == null && m_regAuthority == null) {\n m_userinfo = p_base.getUserinfo();\n m_host = p_base.getHost();\n m_port = p_base.getPort();\n m_regAuthority = p_base.getRegBasedAuthority();\n }\n else {\n return;\n }\n \n // check for absolute path - RFC 2396 5.2 #5\n if (m_path.length() > 0 &&\n m_path.startsWith(\"/\")) {\n return;\n }\n \n // if we get to this point, we need to resolve relative path\n // RFC 2396 5.2 #6\n String path = \"\";\n String basePath = p_base.getPath();\n \n // 6a - get all but the last segment of the base URI path\n if (basePath != null && basePath.length() > 0) {\n int lastSlash = basePath.lastIndexOf('/');\n if (lastSlash != -1) {\n path = basePath.substring(0, lastSlash+1);\n }\n }\n else if (m_path.length() > 0) {\n path = \"/\";\n }\n \n // 6b - append the relative URI path\n path = path.concat(m_path);\n \n // 6c - remove all \"./\" where \".\" is a complete path segment\n index = -1;\n while ((index = path.indexOf(\"/./\")) != -1) {\n path = path.substring(0, index+1).concat(path.substring(index+3));\n }\n \n // 6d - remove \".\" if path ends with \".\" as a complete path segment\n if (path.endsWith(\"/.\")) {\n path = path.substring(0, path.length()-1);\n }\n \n // 6e - remove all \"<segment>/../\" where \"<segment>\" is a complete\n // path segment not equal to \"..\"\n index = 1;\n int segIndex = -1;\n String tempString = null;\n \n while ((index = path.indexOf(\"/../\", index)) > 0) {\n tempString = path.substring(0, path.indexOf(\"/../\"));\n segIndex = tempString.lastIndexOf('/');\n if (segIndex != -1) {\n if (!tempString.substring(segIndex).equals(\"..\")) {\n path = path.substring(0, segIndex+1).concat(path.substring(index+4));\n index = segIndex;\n }\n else\n index += 4;\n }\n else\n index += 4;\n }\n \n // 6f - remove ending \"<segment>/..\" where \"<segment>\" is a\n // complete path segment\n if (path.endsWith(\"/..\")) {\n tempString = path.substring(0, path.length()-3);\n segIndex = tempString.lastIndexOf('/');\n if (segIndex != -1) {\n path = path.substring(0, segIndex+1);\n }\n }\n m_path = path;\n }\n }", "private String getQName(String uri, String name) throws UndeclaredNamespaceException {\r\n String prefix = (String)this.prefixMapping.get((uri != null)? uri : \"\");\r\n if (prefix == null) {\r\n \tif (uri.equals(\"http://www.w3.org/XML/1998/namespace\")) {\r\n \t\t// eg xml:space .. \r\n \t\t// per the namespace recommendation, this namespace may, but need not, be declared\r\n \t\t// It is bound by definition to ...\r\n \treturn \"xml:\"+name; \t \t\t\r\n \t} else {\r\n \t\tDocx4jDriver.log(\"FIX ME - com.topologi.diffx.xml.NSAwareXMLWriter.getQName(null, \" + name + \") @599)\"); \t\r\n \t\tthrow new UndeclaredNamespaceException(uri + \" for \" + name);\r\n \t}\r\n } else if (\"\".equals(prefix)) {\r\n return name; \t\r\n } else { \t\r\n try {\r\n\t\t\treturn this.prefixMapping.get(uri)+\":\"+name;\r\n\t\t} catch (RuntimeException e) {\r\n\t\t\tSystem.out.println(\"uri: \" + uri + \", name: \" + name);\r\n\t\t\t// uri=null\r\n\t\t\t// seems to occur due to or resulting from xmlns:xmlns=\"\"\r\n\t\t\t// and later causes error: Non-default namespace can not map to empty URI (as per Namespace 1.0 # 2) in XML 1.0 documents\r\n\t\t\t// Workaround is to ignore such things in \r\n\t\t\t// DOMRecoder.load(AttributeEvent @line 456\r\n\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn name;\r\n\t\t}\r\n } \r\n }", "public boolean isGenericURI() {\n // presence of the host (whether valid or empty) means\n // double-slashes which means generic uri\n return (m_host != null);\n }", "public boolean isQualified() {\n\t\treturn (did != null && fragment != null);\n\t}", "boolean hasDidUri();", "public boolean matches(String uri);", "public boolean isSetUri() {\n return this.uri != null;\n }", "private URI checkUri(final URI uri) {\n // non-null URI\n Utils.nonNull(uri, () -> \"null URI\");\n // non-null authority\n Utils.nonNull(uri.getAuthority(),\n () -> String.format(\"%s requires URI with authority: invalid %s\", this, uri));\n // check the scheme (sanity check)\n if (!getScheme().equalsIgnoreCase(uri.getScheme())) {\n throw new ProviderMismatchException(String.format(\"Invalid scheme for %s: %s\",\n this, uri.getScheme()));\n }\n return uri;\n }", "@Test\r\n public void testParseQName() {\r\n QName qName1 = SpecificationUtil.parseQName(\"{http://mayaa.seasar.org}id\");\r\n assertEquals(\"http://mayaa.seasar.org\", qName1.getNamespaceURI().getValue());\r\n assertEquals(\"id\", qName1.getLocalName());\r\n\r\n QName qName2 = SpecificationUtil.parseQName(\"{ http://mayaa.seasar.org } id \");\r\n assertEquals(\"http://mayaa.seasar.org\", qName2.getNamespaceURI().getValue());\r\n assertEquals(\"id\", qName2.getLocalName());\r\n\r\n try {\r\n SpecificationUtil.parseQName(\"\");\r\n fail();\r\n } catch (IllegalArgumentException e) {\r\n assertEquals(\"\", e.getMessage());\r\n }\r\n\r\n try {\r\n SpecificationUtil.parseQName(\"{foobar\");\r\n fail();\r\n } catch (IllegalArgumentException e) {\r\n assertEquals(\"{foobar\", e.getMessage());\r\n }\r\n\r\n try {\r\n SpecificationUtil.parseQName(\"{foo} \");\r\n fail();\r\n } catch (IllegalArgumentException e) {\r\n assertEquals(\"{foo} \", e.getMessage());\r\n }\r\n\r\n try {\r\n SpecificationUtil.parseQName(\"bar}id\");\r\n fail();\r\n } catch (IllegalArgumentException e) {\r\n assertEquals(\"bar}id\", e.getMessage());\r\n }\r\n }", "boolean hasOriginName();", "protected boolean isMatchingElement(String uri, String localName) {\n return (uri.equals(this.uri) && localName.equals(this.localName)) ||\n (parentMatchLevel > 0 &&\n ((uri.equals(URI_RDF) && localName.equals(LOCAL_NAME_RDF_BAG)) ||\n (uri.equals(URI_RDF) && localName.equals(LOCAL_NAME_RDF_LI))));\n }", "protected abstract URL resolve(NamespaceId namesapace, String resource) throws IOException;", "private static boolean belongs(URL base, URL derived) {\n return derived.toString().startsWith(base.toString());\n }", "public abstract boolean isQualifiedName(@Nullable String text);", "private boolean examineName(String name) {\r\n resourceName = null;\r\n resourceIsClass = false;\r\n\r\n if (name.endsWith(\".java\")) {\r\n return false;\r\n }\r\n\r\n if (name.endsWith(\".class\")) {\r\n name = name.substring(0, name.length() - 6);\r\n if (classMap.containsKey(name)) {\r\n return false;\r\n }\r\n resourceIsClass = true;\r\n } else {\r\n if (resourceMap.containsKey(name)) {\r\n return false;\r\n }\r\n }\r\n\r\n resourceName = name;\r\n return true;\r\n }", "abstract boolean canHandle(\n final PathReal name);", "public URI selfIdentify();", "@Test\n public void testResolveName_againstEmptyPath() {\n assertPathEquals(\"foo\", pathService.emptyPath().resolve(Name.simple(\"foo\")));\n }", "abstract boolean matchesResourceName( String resourceName );", "@Test\n public void testRemainingResourceStringValid() {\n Matcher mtch = filter.getMatcher(FULL_URI);\n\n filter.isResourceAccess(mtch);\n\n assertEquals(\"resource string differs\", REMAINING_RES_STRING, filter.getRootResourceString(mtch));\n }", "public boolean isUri(String obj) {\r\n//\t\treturn obj.matches(\"(([a-zA-Z][0-9a-zA-Z+\\\\\\\\-\\\\\\\\.]*:)?/{0,2}[0-9a-zA-Z;/?:@&=+$\\\\\\\\.\\\\\\\\-_!~*'()%]+)?(#[0-9a-zA-Z;/?:@&=+$\\\\\\\\.\\\\\\\\-_!~*'()%]+)?\");\r\n\t\treturn false;\r\n\t}", "public boolean isNilUrlName()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlString target = null;\r\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(URLNAME$12, 0);\r\n if (target == null) return false;\r\n return target.isNil();\r\n }\r\n }", "public boolean m1183a(Uri uri) {\n if (uri == null) {\n throw new NullPointerException();\n }\n try {\n String host = uri.getHost();\n for (String endsWith : this.kf) {\n if (host.endsWith(endsWith)) {\n return true;\n }\n }\n return false;\n } catch (NullPointerException e) {\n return false;\n }\n }", "private void expectName(String namespace, String name)\n\t\t\tthrows XmpUnexpectedElementQualifiedNameException {\n\t\tif (!reader.get().getNamespaceURI().equals(namespace)) {\n\t\t\tthrow new XmpUnexpectedElementQualifiedNameException(\"Expected '\"\n\t\t\t\t\t+ namespace + \"' and found '\"\n\t\t\t\t\t+ reader.get().getNamespaceURI() + \"'\");\n\t\t}\n\t\tif (!reader.get().getLocalName().equals(name)) {\n\t\t\tthrow new XmpUnexpectedElementQualifiedNameException(\"Expected '\"\n\t\t\t\t\t+ name + \"' and found '\" + reader.get().getLocalName()\n\t\t\t\t\t+ \"'\");\n\t\t}\n\t}", "@Test\n public void testMatchValid() {\n Matcher mtch = filter.getMatcher(FULL_URI);\n assertTrue(\"no match\", filter.isResourceAccess(mtch));\n }", "boolean existsPath(String requestedUrl);", "String qualifiedName();", "String getURI();", "String getURI();", "String getURI();", "URI getUri();", "@Override\r\n\t\tpublic String lookupNamespaceURI(String prefix)\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "abstract String getUri();", "@Test\n\tpublic void test_TCM__String_getQualifiedName() {\n final String prefix = \"prefx\";\n final String uri = \"http://some.other.place\";\n\n final Namespace namespace = Namespace.getNamespace(prefix, uri);\n\n final String attributeName = \"test\";\n final String attributeQName = prefix + ':' + attributeName;\n final String attributeValue = \"value\";\n\n final Attribute qulifiedAttribute = new Attribute(attributeName, attributeValue, namespace);\n assertEquals(\"incorrect qualified name\", qulifiedAttribute.getQualifiedName(), attributeQName);\n\n final Attribute attribute = new Attribute(attributeName, attributeValue);\n assertEquals(\"incorrect qualified name\", attribute.getQualifiedName(), attributeName);\n\n\t}", "private static boolean _inNamespace(Resource resource, String namespace) {\n\t\tString resourceNamespace = resource.getNameSpace();\n\t\t\n\t\tif ( namespace.endsWith(\"/\") || namespace.endsWith(\"#\") ) {\n\t\t\treturn namespace.equals(resourceNamespace);\n\t\t}\n\t\telse {\n\t\t\treturn resourceNamespace != null && namespace.equals(resourceNamespace.replaceAll(\"(/|#)$\", \"\"));\n\t\t}\n\t}", "public static boolean BaseURIDecl(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"BaseURIDecl\")) return false;\n if (!nextTokenIs(b, K_DECLARE)) return false;\n boolean r, p;\n Marker m = enter_section_(b, l, _NONE_, BASE_URI_DECL, null);\n r = consumeTokens(b, 2, K_DECLARE, K_BASE_URI);\n p = r; // pin = 2\n r = r && report_error_(b, URILiteral(b, l + 1));\n r = p && Separator(b, l + 1) && r;\n exit_section_(b, l, m, r, p, null);\n return r || p;\n }", "@NotNull URI getURI();", "public abstract boolean isNameAvailable(String readerName);", "@Check\n \tpublic void checkQualifiedNames(Label label) {\n \t\t\n \t\t// Try get first bit of qualified name, i.e. \"ResEng\". Labels do no necessarily follow Idents, but ANY type of Exp6.\n \t\ttry {\n \t\t\tIdent qualifier = ((Exp5)label.eContainer()).getV().getName();\n \t\t\tQualifiedName fullyQualifiedName = getConverter().toQualifiedName(qualifier.getS() + \".\" + label.getName().getS());\n \t\t\t\n \t\t\t// See if the qualifier is a valid MODULE name\n \t\t\tEObject temp = label;\n \t\t\twhile (!(temp instanceof TopDef) && temp.eContainer() != null) {\n \t\t\t\ttemp = temp.eContainer();\n \t\t\t}\n \t\t\tTopDef topDef = (TopDef)temp;\n \t\t\tIScope scope = getScopeProvider().getScope(topDef, GFPackage.Literals.TOP_DEF__DEFINITIONS);\n \t\t\tif (scope.getSingleElement(qualifier) != null) {\n \t\t\t\t\n \t\t\t\t// We now we are dealing with a Qualified name, now see if the full thing is valid:\n \t\t\t\tif (scope.getSingleElement(fullyQualifiedName) == null) {\n \t\t\t\t\tString msg = String.format(\"No declaration \\\"%1$s\\\" found in module \\\"%2$s\\\"\", label.getName().getS(), qualifier.getS());\n \t\t\t\t\terror(msg, GFPackage.Literals.LABEL__NAME);\n \t\t\t\t}\n \t\t\t}\n \t\t\t\n \t\t} catch (Exception _) {\n \t\t\t// just means the first part wasn't an Ident\n \t\t}\n \t}", "public void testResourceURI() throws Exception {\n testResourceURI(\"RELS-EXT\");\n testResourceURI(\"RELS-INT\");\n }", "public boolean isSetUrlName()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(URLNAME$12) != 0;\r\n }\r\n }", "private static boolean isURIString(String p_uric) {\n if (p_uric == null) {\n return false;\n }\n int end = p_uric.length();\n char testChar = '\\0';\n for (int i = 0; i < end; i++) {\n testChar = p_uric.charAt(i);\n if (testChar == '%') {\n if (i+2 >= end ||\n !isHex(p_uric.charAt(i+1)) ||\n !isHex(p_uric.charAt(i+2))) {\n return false;\n }\n else {\n i += 2;\n continue;\n }\n }\n if (isURICharacter(testChar)) {\n continue;\n }\n else {\n return false;\n }\n }\n return true;\n }", "public URI getURI()\r\n/* 49: */ {\r\n/* 50: */ try\r\n/* 51: */ {\r\n/* 52: 83 */ return new URI(this.servletRequest.getScheme(), null, this.servletRequest.getServerName(), \r\n/* 53: 84 */ this.servletRequest.getServerPort(), this.servletRequest.getRequestURI(), \r\n/* 54: 85 */ this.servletRequest.getQueryString(), null);\r\n/* 55: */ }\r\n/* 56: */ catch (URISyntaxException ex)\r\n/* 57: */ {\r\n/* 58: 88 */ throw new IllegalStateException(\"Could not get HttpServletRequest URI: \" + ex.getMessage(), ex);\r\n/* 59: */ }\r\n/* 60: */ }", "static boolean EQName(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"EQName\")) return false;\n if (!nextTokenIs(b, \"\", NCNAME, URIQUALIFIEDNAME)) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = QName(b, l + 1);\n if (!r) r = consumeToken(b, URIQUALIFIEDNAME);\n exit_section_(b, m, null, r);\n return r;\n }", "public boolean isAnyURI() {\n return false;\n }", "public abstract String validateQNamePrefix(QName name)\n throws XMLStreamException;", "@org.junit.Test\n public void constrCompelemBaseuri2() {\n final XQuery query = new XQuery(\n \"fn:base-uri(exactly-one((<elem xml:base=\\\"http://www.example.com\\\">{element a {}}</elem>)/a))\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n assertStringValue(false, \"http://www.example.com\")\n );\n }", "public static boolean isURI(String string) {\n\t\treturn string.startsWith(\"http://\") && string.length() > 7;\n\t}", "public boolean handles(Uri uri) {\n return C8904b.m21373c(uri);\n }", "public static URI uriNameExists(final URI baseUri, final String roleName) {\n final UriBuilder bld = UriBuilder.fromUri(baseUri).path(\"/roles/exists/{roleName}\");\n return bld.build(roleName);\n }", "private URI lookupURI(URI imdbURI) throws IOException,\n URISyntaxException {\n // lookup uri if not yet set\n String imdbString = IMDBLink.getMovieURIString(target\n .getMovieTitle(), target.getYear());\n if (imdbString != null) {\n imdbURI = new URI(imdbString);\n target.setIMDBMovieURI(imdbURI);\n }\n return imdbURI;\n }", "public boolean isValidUri(String uri) {\n Map resp;\n try {\n resp = k8s.callWS(uri);\n int responseCode = (int) resp.get(\"code\");\n return (responseCode == 200);\n } catch (Exception e) {\n e.printStackTrace();\n return false;\n }\n \n }", "@Test\n\tpublic void test_TCM__String_getNamespaceURI() {\n\t\tfinal Namespace namespace = Namespace.getNamespace(\"prefx\", \"http://some.other.place\");\n\n\t\tfinal Attribute attribute = new Attribute(\"test\", \"value\", namespace);\n\t\tassertTrue(\"incorrect URI\", attribute.getNamespaceURI().equals(\"http://some.other.place\"));\n\n\t}", "@Test\n public void testGetShareResourceStringValid() {\n Matcher mtch = filter.getMatcher(FULL_URI);\n\n filter.isResourceAccess(mtch);\n\n assertEquals(\"share resource string differs\", SHARE_RES_STRING, filter.getShareResourceString(mtch));\n }", "static private boolean existingURL( final URL baseURL, final String urlSpec ) throws Exception {\n\t\tfinal URL url = new URL( baseURL, urlSpec );\n\t\treturn new File( url.toURI() ).exists();\n\t}", "public boolean isUri() {\n return isUri;\n }", "java.lang.String getUri();", "java.lang.String getUri();", "String getQualifiedName(final String namespaceURI, final String localName) {\n final String qualifiedName;\n if (namespaceURI != null) {\n final String prefix = namespaces().get(namespaceURI);\n if (prefix != null) {\n qualifiedName = prefix + ':' + localName;\n }\n else {\n qualifiedName = null;\n }\n }\n else {\n qualifiedName = localName;\n }\n return qualifiedName;\n }", "private boolean initializeAuthority(String p_uriSpec) {\n \n int index = 0;\n int start = 0;\n int end = p_uriSpec.length();\n \n char testChar = '\\0';\n String userinfo = null;\n \n // userinfo is everything up to @\n if (p_uriSpec.indexOf('@', start) != -1) {\n while (index < end) {\n testChar = p_uriSpec.charAt(index);\n if (testChar == '@') {\n break;\n }\n index++;\n }\n userinfo = p_uriSpec.substring(start, index);\n index++;\n }\n \n // host is everything up to last ':', or up to \n // and including ']' if followed by ':'.\n String host = null;\n start = index;\n boolean hasPort = false;\n if (index < end) {\n if (p_uriSpec.charAt(start) == '[') {\n int bracketIndex = p_uriSpec.indexOf(']', start);\n index = (bracketIndex != -1) ? bracketIndex : end;\n if (index+1 < end && p_uriSpec.charAt(index+1) == ':') {\n ++index;\n hasPort = true;\n }\n else {\n index = end;\n }\n }\n else {\n int colonIndex = p_uriSpec.lastIndexOf(':', end);\n index = (colonIndex > start) ? colonIndex : end;\n hasPort = (index != end);\n }\n }\n host = p_uriSpec.substring(start, index);\n int port = -1;\n if (host.length() > 0) {\n // port\n if (hasPort) {\n index++;\n start = index;\n while (index < end) {\n index++;\n }\n String portStr = p_uriSpec.substring(start, index);\n if (portStr.length() > 0) {\n // REVISIT: Remove this code.\n /** for (int i = 0; i < portStr.length(); i++) {\n if (!isDigit(portStr.charAt(i))) {\n throw new MalformedURIException(\n portStr +\n \" is invalid. Port should only contain digits!\");\n }\n }**/\n // REVISIT: Remove this code.\n // Store port value as string instead of integer.\n try {\n port = Integer.parseInt(portStr);\n if (port == -1) --port;\n }\n catch (NumberFormatException nfe) {\n port = -2;\n }\n }\n }\n }\n \n if (isValidServerBasedAuthority(host, port, userinfo)) {\n m_host = host;\n m_port = port;\n m_userinfo = userinfo;\n return true;\n }\n // Note: Registry based authority is being removed from a\n // new spec for URI which would obsolete RFC 2396. If the\n // spec is added to XML errata, processing of reg_name\n // needs to be removed. - mrglavas.\n else if (isValidRegistryBasedAuthority(p_uriSpec)) {\n m_regAuthority = p_uriSpec;\n return true;\n }\n return false;\n }", "public boolean hasReqUri() {\n return fieldSetFlags()[4];\n }", "boolean isResolvable(String name);", "private boolean checkDuplicateNamespace(NamespaceDefinition def) {\n \n // create structures if not already done\n if (m_namespaces == null) {\n m_namespaces = new ArrayList();\n m_uriMap = new HashMap();\n }\n \n // check for conflict (or duplicate) definition\n String uri = def.getUri();\n NamespaceDefinition prior = (NamespaceDefinition)m_uriMap.get(uri);\n return prior != null && (prior.getPrefix() != null || def.getPrefix() == null);\n }", "@org.junit.Test\n public void constrCompelemBaseuri1() {\n final XQuery query = new XQuery(\n \"fn:base-uri(element elem {attribute xml:base {\\\"http://www.example.com\\\"}})\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n assertStringValue(false, \"http://www.example.com\")\n );\n }", "public final boolean isThereSomeQualifierUri() {\n\t\treturn !qualifiersList.isEmpty();\n\t}", "URI uri();", "@Override\r\n\t\tpublic String lookupPrefix(String namespaceURI)\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "static boolean QName(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"QName\")) return false;\n if (!nextTokenIs(b, NCNAME)) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = PrefixedName(b, l + 1);\n if (!r) r = UnprefixedName(b, l + 1);\n exit_section_(b, m, null, r);\n return r;\n }", "boolean hasName();", "boolean hasName();", "boolean hasName();", "boolean hasName();", "boolean hasName();", "boolean hasName();", "boolean hasName();", "boolean hasName();", "boolean hasName();", "boolean hasName();", "boolean hasName();", "boolean hasName();", "boolean hasName();", "boolean hasName();", "boolean hasName();", "boolean hasName();", "boolean hasName();", "boolean hasName();", "boolean hasName();", "boolean hasName();", "boolean hasName();", "boolean hasName();", "boolean hasName();", "String getQualifiedName();", "private boolean testURLIsValid(String itemName) {\n if (itemName.endsWith(\".html\")) {\n if (itemName.contains(\"manual\") || itemName.contains(\"MediaRecorder-iframe\")) {\n // return itemName.contains(\"none-manual\");\n return false;\n } else {\n return true;\n }\n }\n\n return false;\n }", "public URI getURI()\r\n/* 34: */ {\r\n/* 35:60 */ return this.uri;\r\n/* 36: */ }", "private static final void assertName(final WadlElementName name, final XMLStreamReader reader) {\n if (!match(name, reader)) {\n throw new AssertionError(reader.getLocalName());\n }\n }", "protected boolean isApplicable(SPRequest req) {\n\n Log.debug(\"isApplicable ? \" + req.getPath() + \" vs \" + getRoute());\n\n if (!req.getMethod().equals(getHttpMethod()))\n return false;\n\n String[] uri = req.getSplitUri();\n String[] tok = splitPath;\n if (uri.length != tok.length && splatIndex == -1)\n return false;\n\n if (uri.length <= splatIndex)\n return false;\n\n for (int i = 0; i < tok.length; i++) {\n if (tok[i].charAt(0) != ':' && tok[i].charAt(0) != '*' && !tok[i].equals(uri[i]))\n return false;\n }\n\n return true;\n }", "@Override\n public boolean validate(String str) {\n\n if (Utils.isEmpty(str)) {\n return false;\n }\n\n // Assuming str is relative url\n if (str.startsWith(\"/\")) {\n try {\n URL url = new URL(\"http://www.stub.com\" + str);\n if (url.getQuery() != null) {\n for (String word : keyWords) {\n Map<String, String> params = getQueryParams(url.getQuery());\n if (params.containsKey(word)) {\n resource = str;\n return true;\n }\n }\n }\n } catch (MalformedURLException ignored) {\n return false;\n }\n }\n\n // Or plain 'get/update/etc' resources\n if (str.chars().allMatch(Character::isLetter)) {\n for (String keyWord : keyWords) {\n if (str.startsWith(keyWord)) {\n resource = str;\n return true;\n }\n }\n }\n\n return false;\n }", "abstract public URIType getURIType();", "private static String getResourceName(String uri) {\r\n int p = uri.lastIndexOf('/');\r\n if (p != -1) {\r\n return uri.substring(p + 1);\r\n } else {\r\n return uri;\r\n }\r\n }", "public URI getURI()\r\n/* 36: */ {\r\n/* 37:64 */ return this.httpRequest.getURI();\r\n/* 38: */ }" ]
[ "0.66084146", "0.5936904", "0.5914554", "0.586109", "0.5844678", "0.58187443", "0.5811132", "0.576999", "0.5683028", "0.5629858", "0.56010085", "0.55975103", "0.5524592", "0.5516831", "0.54808366", "0.5477357", "0.54768324", "0.54545456", "0.54465", "0.5444912", "0.5429449", "0.5426218", "0.5418171", "0.5415732", "0.53829664", "0.5349731", "0.5292745", "0.5282978", "0.5282062", "0.5282062", "0.5282062", "0.5279562", "0.5269303", "0.52667964", "0.52480364", "0.52318954", "0.5217813", "0.5211704", "0.52021646", "0.52001166", "0.51941615", "0.5193278", "0.51855385", "0.5181919", "0.5170777", "0.51632124", "0.51597714", "0.5153236", "0.515167", "0.51303023", "0.51232517", "0.5121338", "0.5117019", "0.5107502", "0.5098622", "0.50976366", "0.5092549", "0.5086458", "0.5086458", "0.5056843", "0.5056434", "0.5054033", "0.5053721", "0.5046039", "0.50365657", "0.5034107", "0.50334346", "0.5027211", "0.5008188", "0.50044876", "0.50044876", "0.50044876", "0.50044876", "0.50044876", "0.50044876", "0.50044876", "0.50044876", "0.50044876", "0.50044876", "0.50044876", "0.50044876", "0.50044876", "0.50044876", "0.50044876", "0.50044876", "0.50044876", "0.50044876", "0.50044876", "0.50044876", "0.50044876", "0.50044876", "0.50044876", "0.5001967", "0.49973854", "0.499177", "0.4966902", "0.49609008", "0.49590275", "0.49580866", "0.4957778", "0.4957422" ]
0.0
-1
Create contents of the dialog.
private void createContents() { shell = new Shell(getParent(), getStyle()); shell.setSize(650, 300); shell.setText(getText()); shell.setLayout(new FormLayout()); lblSOName = new Label(shell, SWT.CENTER); lblSOName.setFont(SWTResourceManager.getFont("Segoe UI", 11, SWT.NORMAL)); FormData fd_lblSOName = new FormData(); fd_lblSOName.bottom = new FormAttachment(0, 20); fd_lblSOName.right = new FormAttachment(100, -2); fd_lblSOName.top = new FormAttachment(0, 2); fd_lblSOName.left = new FormAttachment(0, 2); lblSOName.setLayoutData(fd_lblSOName); lblSOName.setText(soName); tableParams = new Table(shell, SWT.BORDER | SWT.FULL_SELECTION | SWT.H_SCROLL | SWT.V_SCROLL); tableParams.setFont(SWTResourceManager.getFont("Segoe UI", 11, SWT.NORMAL)); FormData fd_tableParams = new FormData(); fd_tableParams.bottom = new FormAttachment(100, -40); fd_tableParams.right = new FormAttachment(100, -2); fd_tableParams.top = new FormAttachment(0, 22); fd_tableParams.left = new FormAttachment(0, 2); tableParams.setLayoutData(fd_tableParams); tableParams.setHeaderVisible(true); tableParams.setLinesVisible(true); fillInTable(tableParams); tableParams.addControlListener(new ControlAdapter() { @Override public void controlResized(ControlEvent e) { Table table = (Table)e.getSource(); table.getColumn(0).setWidth((int)(table.getClientArea().width*nameSpace)); table.getColumn(1).setWidth((int)(table.getClientArea().width*valueSpace)); table.getColumn(2).setWidth((int)(table.getClientArea().width*hintSpace)); } }); tableParams.pack(); //paramName.pack(); //paramValue.pack(); final TableEditor editor = new TableEditor(tableParams); //The editor must have the same size as the cell and must //not be any smaller than 50 pixels. editor.horizontalAlignment = SWT.LEFT; editor.grabHorizontal = true; editor.minimumWidth = 50; // editing the second column tableParams.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { // Identify the selected row TableItem item = (TableItem) e.item; if (item == null) { return; } // The control that will be the editor must be a child of the Table IReplaceableParam<?> editedParam = (IReplaceableParam<?>)item.getData(DATA_VALUE_PARAM); if (editedParam != null) { // Clean up any previous editor control Control oldEditor = editor.getEditor(); if (oldEditor != null) { oldEditor.dispose(); } Control editControl = null; String cellText = item.getText(columnValueIndex); switch (editedParam.getType()) { case BOOLEAN: Combo cmb = new Combo(tableParams, SWT.READ_ONLY); String[] booleanItems = {Boolean.toString(true), Boolean.toString(false)}; cmb.setItems(booleanItems); cmb.select(1); if (Boolean.parseBoolean(cellText)) { cmb.select(0); } editControl = cmb; cmb.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent se) { Combo text = (Combo) editor.getEditor(); editor.getItem().setText(columnValueIndex, text.getText()); } }); break; case DATE: IReplaceableParam<LocalDateTime> calParam = (IReplaceableParam<LocalDateTime>)editedParam; LocalDateTime calToUse = calParam.getValue(); Composite dateAndTime = new Composite(tableParams, SWT.NONE); RowLayout rl = new RowLayout(); rl.wrap = false; dateAndTime.setLayout(rl); //Date cellDt; try { LocalDateTime locDT = LocalDateTime.parse(cellText, dtFmt); if (locDT != null) { calToUse = locDT; } /*cellDt = dateFmt.parse(cellText); if (cellDt != null) { calToUse.setTime(cellDt); }*/ } catch (DateTimeParseException e1) { log.error("widgetSelected ", e1); } DateTime datePicker = new DateTime(dateAndTime, SWT.DATE | SWT.MEDIUM | SWT.DROP_DOWN); datePicker.setData(DATA_VALUE_PARAM, calParam); DateTime timePicker = new DateTime(dateAndTime, SWT.TIME | SWT.LONG); timePicker.setData(DATA_VALUE_PARAM, calParam); // for the date picker the months are zero-based, the first month is 0 the last is 11 // for LocalDateTime the months range 1-12 datePicker.setDate(calToUse.getYear(), calToUse.getMonthValue() - 1, calToUse.getDayOfMonth()); timePicker.setTime(calToUse.getHour(), calToUse.getMinute(), calToUse.getSecond()); datePicker.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent se) { DateTime source = (DateTime)se.getSource(); IReplaceableParam<LocalDateTime> calParam1 = (IReplaceableParam<LocalDateTime>)source.getData(DATA_VALUE_PARAM); if (calParam1 != null) { LocalDateTime currDt = calParam1.getValue(); // for the date picker the months are zero-based, the first month is 0 the last is 11 // for LocalDateTime the months range 1-12 calParam1.setValue(currDt.withYear(source.getYear()).withMonth(source.getMonth() + 1).withDayOfMonth(source.getDay())); String resultText = dtFmt.format(calParam1.getValue()); log.debug("Result Text " + resultText); editor.getItem().setText(columnValueIndex, resultText); } else { log.warn("widgetSelected param is null"); } } }); timePicker.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent se) { DateTime source = (DateTime)se.getSource(); IReplaceableParam<LocalDateTime> calParam1 = (IReplaceableParam<LocalDateTime>)source.getData(DATA_VALUE_PARAM); if (calParam1 != null) { LocalDateTime currDt = calParam1.getValue(); calParam1.setValue(currDt.withHour(source.getHours()).withMinute(source.getMinutes()).withSecond(source.getSeconds())); String resultText = dtFmt.format(calParam1.getValue()); log.debug("Result Text " + resultText); editor.getItem().setText(columnValueIndex, resultText); } else { log.warn("widgetSelected param is null"); } } }); dateAndTime.layout(); editControl = dateAndTime; break; case INTEGER: Text intEditor = new Text(tableParams, SWT.NONE); intEditor.setText(item.getText(columnValueIndex)); intEditor.selectAll(); intEditor.addModifyListener(new ModifyListener() { @Override public void modifyText(ModifyEvent se) { Text text = (Text) editor.getEditor(); Integer resultInt = null; try { resultInt = Integer.parseInt(text.getText()); } catch (NumberFormatException nfe) { log.error("NFE ", nfe); } if (resultInt != null) { editor.getItem().setText(columnValueIndex, resultInt.toString()); } } }); editControl = intEditor; break; case STRING: default: Text newEditor = new Text(tableParams, SWT.NONE); newEditor.setText(item.getText(columnValueIndex)); newEditor.setFont(tableParams.getFont()); newEditor.selectAll(); newEditor.addModifyListener(new ModifyListener() { @Override public void modifyText(ModifyEvent se) { Text text = (Text) editor.getEditor(); editor.getItem().setText(columnValueIndex, text.getText()); } }); editControl = newEditor; break; } editControl.setFont(tableParams.getFont()); editControl.setFocus(); editor.setEditor(editControl, item, columnValueIndex); } } }); btnOK = new Button(shell, SWT.NONE); btnOK.setFont(SWTResourceManager.getFont("Segoe UI", 11, SWT.NORMAL)); FormData fd_btnOK = new FormData(); fd_btnOK.bottom = new FormAttachment(100, -7); fd_btnOK.right = new FormAttachment(40, 2); fd_btnOK.top = new FormAttachment(100, -35); fd_btnOK.left = new FormAttachment(15, 2); btnOK.setLayoutData(fd_btnOK); btnOK.setText("OK"); btnOK.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { result = new DialogResult<>(SWT.OK, getParamMap()); shell.close(); } }); shell.setDefaultButton(btnOK); btnCancel = new Button(shell, SWT.NONE); btnCancel.setFont(SWTResourceManager.getFont("Segoe UI", 11, SWT.NORMAL)); FormData fd_btnCancel = new FormData(); fd_btnCancel.bottom = new FormAttachment(100, -7); fd_btnCancel.left = new FormAttachment(60, -2); fd_btnCancel.top = new FormAttachment(100, -35); fd_btnCancel.right = new FormAttachment(85, -2); btnCancel.setLayoutData(fd_btnCancel); btnCancel.setText("Cancel"); btnCancel.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { result = new DialogResult<>(SWT.CANCEL, null); shell.close(); } }); tableParams.redraw(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createContents() {\n\t\tshell = new Shell(getParent(), getStyle());\n\n\t\tshell.setSize(379, 234);\n\t\tshell.setText(\"\\u0410\\u043A\\u043A\\u0430\\u0443\\u043D\\u0442\");\n\t\tshell.setLayout(new BorderLayout(0, 0));\n\t\t\n\t\tLabel dialogAccountHeader = new Label(shell, SWT.NONE);\n\t\tdialogAccountHeader.setAlignment(SWT.CENTER);\n\t\tdialogAccountHeader.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.BOLD));\n\t\tdialogAccountHeader.setLayoutData(BorderLayout.NORTH);\n\t\tif(!this.isNeedAdd)\n\t\t{\n\t\t\tdialogAccountHeader.setText(\"\\u0420\\u0435\\u0434\\u0430\\u043A\\u0442\\u0438\\u0440\\u043E\\u0432\\u0430\\u043D\\u0438\\u0435 \\u0430\\u043A\\u043A\\u0430\\u0443\\u043D\\u0442\\u0430\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tdialogAccountHeader.setText(\"\\u0414\\u043E\\u0431\\u0430\\u0432\\u043B\\u0435\\u043D\\u0438\\u0435 \\u0430\\u043A\\u043A\\u0430\\u0443\\u043D\\u0442\\u0430\");\n\t\t}\n\t\t\n\t\tComposite composite = new Composite(shell, SWT.NONE);\n\t\tcomposite.setFont(SWTResourceManager.getFont(\"Segoe UI\", 9, SWT.BOLD));\n\t\tcomposite.setLayoutData(BorderLayout.CENTER);\n\t\t\n\t\tLabel label = new Label(composite, SWT.NONE);\n\t\tlabel.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\t\tlabel.setBounds(10, 16, 106, 21);\n\t\tlabel.setText(\"\\u0418\\u043C\\u044F \\u0441\\u0435\\u0440\\u0432\\u0435\\u0440\\u0430\");\n\t\t\n\t\ttextServer = new Text(composite, SWT.BORDER);\n\t\ttextServer.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.NORMAL));\n\t\ttextServer.setBounds(122, 13, 241, 32);\n\t\t\n\t\n\t\tLabel label_1 = new Label(composite, SWT.NONE);\n\t\tlabel_1.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\t\tlabel_1.setText(\"\\u041B\\u043E\\u0433\\u0438\\u043D\");\n\t\tlabel_1.setBounds(10, 58, 55, 21);\n\t\t\n\t\ttextLogin = new Text(composite, SWT.BORDER);\n\t\ttextLogin.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.NORMAL));\n\t\ttextLogin.setBounds(122, 55, 241, 32);\n\t\ttextLogin.setFocus();\n\t\t\n\t\tLabel label_2 = new Label(composite, SWT.NONE);\n\t\tlabel_2.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\t\tlabel_2.setText(\"\\u041F\\u0430\\u0440\\u043E\\u043B\\u044C\");\n\t\tlabel_2.setBounds(10, 106, 55, 21);\n\t\t\n\t\ttextPass = new Text(composite, SWT.PASSWORD | SWT.BORDER);\n\t\ttextPass.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.NORMAL));\n\t\ttextPass.setBounds(122, 103, 241, 32);\n\t\t\n\t\tif(isNeedAdd){\n\t\t\ttextServer.setText(\"imap.mail.ru\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\ttextServer.setText(this.account.getServer());\n\t\t\ttextLogin.setText(account.getLogin());\n\t\t\ttextPass.setText(account.getPass());\n\t\t}\n\t\t\n\t\tComposite composite_1 = new Composite(shell, SWT.NONE);\n\t\tcomposite_1.setLayoutData(BorderLayout.SOUTH);\n\t\t\n\t\tButton btnSaveAccount = new Button(composite_1, SWT.NONE);\n\t\tbtnSaveAccount.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tString login = textLogin.getText();\n\t\t\t\tif(textServer.getText()==\"\")\n\t\t\t\t{\n\t\t\t\t\tMessageDialog.openError(shell, \"Ошибка\", \"Поле имя сервера не введен!\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif(textLogin.getText()==\"\")\n\t\t\t\t{\n\t\t\t\t\tMessageDialog.openError(shell, \"Ошибка\", \"Поле логин не введен!\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\telse if (!login.matches(\"^([_A-Za-z0-9-]+)@([A-Za-z0-9]+)\\\\.([A-Za-z]{2,})$\"))\n\t\t\t\t{\n\t\t\t\t\tMessageDialog.openError(shell, \"Ошибка\", \"Поле логин введен некорректно!\");\n\t\t\t\t\treturn;\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse if(Setting.Instance().AnyAccounts(textLogin.getText(), isNeedAdd))\n\t\t\t\t{\n\t\t\t\t\tMessageDialog.openError(shell, \"Ошибка\", \"такой логин уже существует!\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif(textPass.getText()==\"\")\n\t\t\t\t{\n\t\t\t\t\tMessageDialog.openError(shell, \"Ошибка\", \"Поле пароль не введен!\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif(isNeedAdd)\n\t\t\t\t{\n\t\t\t\t\tservice.AddAccount(textServer.getText(), textLogin.getText(), textPass.getText());\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\taccount.setLogin(textLogin.getText());\n\t\t\t\t\taccount.setPass(textPass.getText());\n\t\t\t\t\taccount.setServer(textServer.getText());\t\n\t\t\t\t\tservice.EditAccount(account);\n\t\t\t\t}\n\t\t\t\tservice.RepaintAccount(table);\n\t\t\t\tshell.close();\n\t\t\t}\n\t\t});\n\t\tbtnSaveAccount.setLocation(154, 0);\n\t\tbtnSaveAccount.setSize(96, 32);\n\t\tbtnSaveAccount.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\t\tbtnSaveAccount.setText(\"\\u0421\\u043E\\u0445\\u0440\\u0430\\u043D\\u0438\\u0442\\u044C\");\n\t\t\n\t\tButton btnCancel = new Button(composite_1, SWT.NONE);\n\t\tbtnCancel.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t}\n\t\t});\n\t\tbtnCancel.setLocation(267, 0);\n\t\tbtnCancel.setSize(96, 32);\n\t\tbtnCancel.setText(\"\\u041E\\u0442\\u043C\\u0435\\u043D\\u0430\");\n\t\tbtnCancel.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\n\t}", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(340, 217);\n\t\tshell.setText(\"Benvenuto\");\n\t\tshell.setLayout(new FormLayout());\n\t\t\n\t\tComposite composite = new Composite(shell, SWT.NONE);\n\t\tFormData fd_composite = new FormData();\n\t\tfd_composite.bottom = new FormAttachment(100, -10);\n\t\tfd_composite.top = new FormAttachment(0, 10);\n\t\tfd_composite.right = new FormAttachment(100, -10);\n\t\tfd_composite.left = new FormAttachment(0, 10);\n\t\tcomposite.setLayoutData(fd_composite);\n\t\tcomposite.setLayout(new GridLayout(2, false));\n\t\t\n\t\tLabel lblUsername = new Label(composite, SWT.NONE);\n\t\tlblUsername.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tlblUsername.setText(\"Username\");\n\t\t\n\t\ttxtUsername = new Text(composite, SWT.BORDER);\n\t\ttxtUsername.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\t\tfinal String username = txtUsername.getText();\n\t\tSystem.out.println(username);\n\t\t\n\t\tLabel lblPeriodo = new Label(composite, SWT.NONE);\n\t\tlblPeriodo.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tlblPeriodo.setText(\"Periodo\");\n\t\t\n\t\tfinal CCombo combo_1 = new CCombo(composite, SWT.BORDER | SWT.READ_ONLY);\n\t\tcombo_1.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\n\t\tcombo_1.setVisibleItemCount(6);\n\t\tcombo_1.setItems(new String[] {\"1 settimana\", \"1 mese\", \"3 mesi\", \"6 mesi\", \"1 anno\", \"Overall\"});\n\t\t\n\t\tLabel lblNumeroCanzoni = new Label(composite, SWT.NONE);\n\t\tlblNumeroCanzoni.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tlblNumeroCanzoni.setText(\"Numero canzoni da analizzare\");\n\t\t\n\t\tfinal CCombo combo = new CCombo(composite, SWT.BORDER | SWT.READ_ONLY);\n\t\tcombo.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\n\t\tcombo.setItems(new String[] {\"25\", \"50\"});\n\t\tcombo.setVisibleItemCount(2);\n\t\tcombo.setToolTipText(\"Numero canzoni da analizzare\");\n\t\t\n\t\tLabel lblNumeroCanzoniDa = new Label(composite, SWT.NONE);\n\t\tlblNumeroCanzoniDa.setText(\"Numero canzoni da consigliare\");\n\t\t\n\t\tfinal CCombo combo_2 = new CCombo(composite, SWT.BORDER | SWT.READ_ONLY);\n\t\tcombo_2.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\n\t\tcombo_2.setVisibleItemCount(3);\n\t\tcombo_2.setToolTipText(\"Numero canzoni da consigliare\");\n\t\tcombo_2.setItems(new String[] {\"5\", \"10\", \"20\"});\n\t\t\n\t\tButton btnAvviaRicerca = new Button(composite, SWT.NONE);\n\t\tbtnAvviaRicerca.addSelectionListener(new SelectionAdapter() {\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tfinal String username = txtUsername.getText();\n\t\t\t\tfinal String numSong = combo.getText();\n\t\t\t\tfinal String period = combo_1.getText();\n\t\t\t\tfinal String numConsigli = combo_2.getText();\n\t\t\t\tif(username.isEmpty() || numSong.isEmpty() || period.isEmpty() || numConsigli.isEmpty()){\n\t\t\t\t\tSystem.out.println(\"si prega di compilare tutti i campi\");\n\t\t\t\t}\n\t\t\t\tif(!username.isEmpty() && !numSong.isEmpty() && !period.isEmpty() && !numConsigli.isEmpty()){\n\t\t\t\t\tSystem.out.println(\"tutto ok\");\n\t\t\t\t\t\n\t\t\t\t\tFileOutputStream out;\n\t\t\t\t\tPrintStream ps;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tout = new FileOutputStream(\"datiutente.txt\");\n\t\t\t\t\t\tps = new PrintStream(out);\n\t\t\t\t\t\tps.println(username);\n\t\t\t\t\t\tps.println(numSong);\n\t\t\t\t\t\tps.println(period);\n\t\t\t\t\t\tps.println(numConsigli);\n\t\t\t\t\t\tps.close();\n\t\t\t\t\t} catch (Exception e1) {\n\t\t\t\t\t\tSystem.err.println(\"Errore nella scrittura del file\");\n\t\t\t\t\t}\n\t\t\t\t\ttry {\n\t\t\t\t\t\tPrincipaleParteA.main();\n\t\t\t\t\t} catch (FileNotFoundException e1) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t }\n\t\t\t\n\t\t});\n\t\tGridData gd_btnAvviaRicerca = new GridData(SWT.FILL, SWT.CENTER, false, false, 2, 1);\n\t\tgd_btnAvviaRicerca.heightHint = 31;\n\t\tbtnAvviaRicerca.setLayoutData(gd_btnAvviaRicerca);\n\t\tbtnAvviaRicerca.setText(\"Avvia Ricerca\");\n\t}", "protected void createContents() {\n\t\tsetText(\"Muokkaa asiakastietoja\");\n\t\tsetSize(800, 550);\n\n\t}", "private void createContents() {\r\n\t\tshell = new Shell(getParent(), SWT.TITLE);\r\n\r\n\t\tgetParent().setEnabled(false);\r\n\r\n\t\tshell.addShellListener(new ShellAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void shellClosed(ShellEvent e) {\r\n\t\t\t\tgetParent().setEnabled(true);\r\n\t\t\t}\r\n\t\t});\r\n\t\tshell.setImage(SWTResourceManager.getImage(LoginInfo.class, \"/javax/swing/plaf/metal/icons/ocean/warning.png\"));\r\n\r\n\t\tsetMidden(397, 197);\r\n\r\n\t\tshell.setText(this.windows_name);\r\n\t\tshell.setLayout(null);\r\n\r\n\t\tLabel label = new Label(shell, SWT.NONE);\r\n\t\tlabel.setFont(SWTResourceManager.getFont(\"Microsoft YaHei UI\", 11, SWT.NORMAL));\r\n\t\tlabel.setBounds(79, 45, 226, 30);\r\n\t\tlabel.setAlignment(SWT.CENTER);\r\n\t\tlabel.setText(this.label_show);\r\n\r\n\t\tButton button = new Button(shell, SWT.NONE);\r\n\t\tbutton.setBounds(150, 107, 86, 30);\r\n\t\tbutton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tshell.close();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbutton.setText(\"确定\");\r\n\r\n\t}", "protected void createContents() {\r\n\t\tsetText(Messages.getString(\"HMS.PatientManagementShell.title\"));\r\n\t\tsetSize(900, 700);\r\n\r\n\t}", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(450, 300);\n\t\tshell.setText(\"SWT Application\");\n\t\t\n\t\tButton btnNewButton = new Button(shell, SWT.NONE);\n\t\tbtnNewButton.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t}\n\t\t});\n\t\tbtnNewButton.setBounds(41, 226, 75, 25);\n\t\tbtnNewButton.setText(\"Limpiar\");\n\t\t\n\t\tButton btnGuardar = new Button(shell, SWT.NONE);\n\t\tbtnGuardar.setBounds(257, 226, 75, 25);\n\t\tbtnGuardar.setText(\"Guardar\");\n\t\t\n\t\ttext = new Text(shell, SWT.BORDER);\n\t\ttext.setBounds(25, 181, 130, 21);\n\t\t\n\t\ttext_1 = new Text(shell, SWT.BORDER);\n\t\ttext_1.setBounds(230, 181, 130, 21);\n\t\t\n\t\ttext_2 = new Text(shell, SWT.BORDER);\n\t\ttext_2.setBounds(25, 134, 130, 21);\n\t\t\n\t\ttext_3 = new Text(shell, SWT.BORDER);\n\t\ttext_3.setBounds(25, 86, 130, 21);\n\t\t\n\t\ttext_4 = new Text(shell, SWT.BORDER);\n\t\ttext_4.setBounds(25, 42, 130, 21);\n\t\t\n\t\tButton btnNewButton_1 = new Button(shell, SWT.NONE);\n\t\tbtnNewButton_1.setBounds(227, 130, 75, 25);\n\t\tbtnNewButton_1.setText(\"Buscar\");\n\t\t\n\t\tLabel label = new Label(shell, SWT.NONE);\n\t\tlabel.setBounds(25, 21, 55, 15);\n\t\tlabel.setText(\"#\");\n\t\t\n\t\tLabel lblFechaYHora = new Label(shell, SWT.NONE);\n\t\tlblFechaYHora.setBounds(25, 69, 75, 15);\n\t\tlblFechaYHora.setText(\"Fecha y Hora\");\n\t\t\n\t\tLabel lblPlaca = new Label(shell, SWT.NONE);\n\t\tlblPlaca.setBounds(25, 113, 55, 15);\n\t\tlblPlaca.setText(\"Placa\");\n\t\t\n\t\tLabel lblMarca = new Label(shell, SWT.NONE);\n\t\tlblMarca.setBounds(25, 161, 55, 15);\n\t\tlblMarca.setText(\"Marca\");\n\t\t\n\t\tLabel lblColor = new Label(shell, SWT.NONE);\n\t\tlblColor.setBounds(230, 161, 55, 15);\n\t\tlblColor.setText(\"Color\");\n\n\t}", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.addShellListener(new ShellAdapter() {\n\t\t\t@Override\n\t\t\tpublic void shellActivated(ShellEvent e) {\n\t\t\t\tloadSettings();\n\t\t\t}\n\t\t});\n\t\tshell.setSize(450, 160);\n\t\tshell.setText(\"Settings\");\n\t\t\n\t\ttextUsername = new Text(shell, SWT.BORDER);\n\t\ttextUsername.setBounds(118, 10, 306, 21);\n\t\t\n\t\ttextPassword = new Text(shell, SWT.BORDER | SWT.PASSWORD);\n\t\ttextPassword.setBounds(118, 38, 306, 21);\n\t\t\n\t\tCLabel lblLogin = new CLabel(shell, SWT.NONE);\n\t\tlblLogin.setBounds(10, 10, 61, 21);\n\t\tlblLogin.setText(\"Login\");\n\t\t\n\t\tCLabel lblPassword = new CLabel(shell, SWT.NONE);\n\t\tlblPassword.setText(\"Password\");\n\t\tlblPassword.setBounds(10, 38, 61, 21);\n\t\t\n\t\tButton btnSave = new Button(shell, SWT.NONE);\n\t\tbtnSave.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tApplicationSettings as = new ApplicationSettings();\n\t\t as.savePassword(textPassword.getText());\n\t\t as.saveUsername(textUsername.getText());\n\t\t \n\t\t connectionOK = WSHandler.setAutoFillDailyReports(btnAutomaticDailyReport.getSelection());\n\t\t \n\t\t shell.close();\n\t\t if (!(parentDialog == null)) {\n\t\t \tparentDialog.reloadTable();\n\t\t }\n\t\t\t}\n\t\t});\n\t\tbtnSave.setBounds(10, 87, 414, 25);\n\t\tbtnSave.setText(\"Save\");\n\n\t}", "private void createContents(ArrayList<String> content) {\r\n\t\t// create ne whell for dialog window\r\n\t\tshell = new Shell(getParent(), SWT.APPLICATION_MODAL);\r\n\t\tshell.setSize(367, 348);\r\n\t\tshell.setText(getText());\r\n\t\t\r\n\t\tcenterDialog(shell);\r\n\r\n\t\t// create List component inside dialog window\r\n\t\tfinal List list = new List(shell, SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL);\r\n\t\tlist.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseDoubleClick(MouseEvent e) {\r\n\t\t\t\tselectedTopic = list.getSelection()[0];\r\n\t\t\t\tshell.dispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\t// fill list with documentation infElements\r\n\t\tfor (int i=0; i<content.size(); i++)\r\n\t\t\tlist.add(content.get(i));\r\n\t\t\r\n\t\t// set default selection\r\n\t\tlist.setSelection(0);\r\n\t\t\r\n\t\t// set position of List component\r\n\t\tlist.setBounds(10, 31, 341, 270);\r\n\t\t\r\n\t\t// create Label for the List component\r\n\t\tLabel lblSelectDocumentationTopic = new Label(shell, SWT.NONE);\r\n\t\tlblSelectDocumentationTopic.setBounds(10, 10, 173, 15);\r\n\t\tlblSelectDocumentationTopic.setText(\"Select Documentation Topic\");\r\n\r\n\t\t// create Cancel button\r\n\t\tButton btnCancel = new Button(shell, SWT.NONE);\r\n\t\tbtnCancel.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tselectedTopic = \"\";\r\n\t\t\t\tshell.dispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnCancel.setBounds(276, 307, 75, 25);\r\n\t\tbtnCancel.setText(\"Cancel\");\r\n\t\t\r\n\t\t// Create OK button\r\n\t\tButton btnOk = new Button(shell, SWT.NONE);\r\n\t\tbtnOk.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tselectedTopic = list.getSelection()[0];\r\n\t\t\t\tshell.dispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnOk.setBounds(183, 307, 75, 25);\r\n\t\tbtnOk.setText(\"OK\");\r\n\t\t\r\n\t}", "private void createContents() {\n\t\tshell = new Shell(getParent(), SWT.MIN |SWT.APPLICATION_MODAL);\n\t\tshell.setImage(SWTResourceManager.getImage(WordWatermarkDialog.class, \"/com/yc/ui/1.jpg\"));\n\t\tshell.setSize(436, 321);\n\t\tshell.setText(\"设置文字水印\");\n\t\t\n\t\tLabel label_font = new Label(shell, SWT.NONE);\n\t\tlabel_font.setBounds(38, 80, 61, 17);\n\t\tlabel_font.setText(\"字体名称:\");\n\t\t\n\t\tLabel label_style = new Label(shell, SWT.NONE);\n\t\tlabel_style.setBounds(232, 77, 61, 17);\n\t\tlabel_style.setText(\"字体样式:\");\n\t\t\n\t\tLabel label_size = new Label(shell, SWT.NONE);\n\t\tlabel_size.setBounds(38, 120, 68, 17);\n\t\tlabel_size.setText(\"字体大小:\");\n\t\t\n\t\tLabel label_color = new Label(shell, SWT.NONE);\n\t\tlabel_color.setBounds(232, 120, 68, 17);\n\t\tlabel_color.setText(\"字体颜色:\");\n\t\t\n\t\tLabel label_word = new Label(shell, SWT.NONE);\n\t\tlabel_word.setBounds(38, 38, 61, 17);\n\t\tlabel_word.setText(\"水印文字:\");\n\t\t\n\t\ttext = new Text(shell, SWT.BORDER);\n\t\ttext.setBounds(115, 35, 278, 23);\n\t\t\n\t\tButton button_confirm = new Button(shell, SWT.NONE);\n\t\t\n\t\tbutton_confirm.setBounds(313, 256, 80, 27);\n\t\tbutton_confirm.setText(\"确定\");\n\t\t\n\t\tCombo combo = new Combo(shell, SWT.NONE);\n\t\tcombo.setItems(new String[] {\"宋体\", \"黑体\", \"楷体\", \"微软雅黑\", \"仿宋\"});\n\t\tcombo.setBounds(115, 77, 93, 25);\n\t\tcombo.setText(\"黑体\");\n\t\t\n\t\tCombo combo_1 = new Combo(shell, SWT.NONE);\n\t\tcombo_1.setItems(new String[] {\"粗体\", \"斜体\"});\n\t\tcombo_1.setBounds(300, 74, 93, 25);\n\t\tcombo_1.setText(\"粗体\");\n\t\t\n\t\tCombo combo_2 = new Combo(shell, SWT.NONE);\n\t\tcombo_2.setItems(new String[] {\"1\", \"3\", \"5\", \"8\", \"10\", \"12\", \"16\", \"18\", \"20\", \"24\", \"30\", \"36\", \"48\", \"56\", \"66\", \"72\"});\n\t\tcombo_2.setBounds(115, 117, 93, 25);\n\t\tcombo_2.setText(\"24\");\n\t\t\n\t\tCombo combo_3 = new Combo(shell, SWT.NONE);\n\t\tcombo_3.setItems(new String[] {\"红色\", \"绿色\", \"蓝色\"});\n\t\tcombo_3.setBounds(300, 117, 93, 25);\n\t\tcombo_3.setText(\"红色\");\n\t\t\n\t\tButton button_cancle = new Button(shell, SWT.NONE);\n\t\t\n\t\tbutton_cancle.setBounds(182, 256, 80, 27);\n\t\tbutton_cancle.setText(\"取消\");\n\t\t\n\t\tLabel label_X = new Label(shell, SWT.NONE);\n\t\tlabel_X.setBounds(31, 161, 68, 17);\n\t\tlabel_X.setText(\"X轴偏移值:\");\n\t\t\n\t\tCombo combo_4 = new Combo(shell, SWT.NONE);\n\t\tcombo_4.setItems(new String[] {\"10\", \"20\", \"30\", \"40\", \"50\", \"80\", \"100\", \"160\", \"320\", \"640\"});\n\t\tcombo_4.setBounds(115, 158, 93, 25);\n\t\tcombo_4.setText(\"50\");\n\t\t\n\t\tLabel label_Y = new Label(shell, SWT.NONE);\n\t\tlabel_Y.setText(\"Y轴偏移值:\");\n\t\tlabel_Y.setBounds(225, 161, 68, 17);\n\t\t\n\t\tCombo combo_5 = new Combo(shell, SWT.NONE);\n\t\tcombo_5.setItems(new String[] {\"10\", \"20\", \"30\", \"40\", \"50\", \"80\", \"100\", \"160\", \"320\", \"640\"});\n\t\tcombo_5.setBounds(300, 158, 93, 25);\n\t\tcombo_5.setText(\"50\");\n\t\t\n\t\tLabel label_alpha = new Label(shell, SWT.NONE);\n\t\tlabel_alpha.setBounds(46, 204, 53, 17);\n\t\tlabel_alpha.setText(\"透明度:\");\n\t\t\n\t\tCombo combo_6 = new Combo(shell, SWT.NONE);\n\t\tcombo_6.setItems(new String[] {\"0\", \"0.1\", \"0.2\", \"0.3\", \"0.4\", \"0.5\", \"0.6\", \"0.7\", \"0.8\", \"0.9\", \"1.0\"});\n\t\tcombo_6.setBounds(115, 201, 93, 25);\n\t\tcombo_6.setText(\"0.8\");\n\t\t\n\t\t//取消按钮\n\t\tbutton_cancle.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tWordWatermarkDialog.this.shell.dispose();\n\t\t\t}\n\t\t});\n\t\t\n\t\t//确认按钮\n\t\tbutton_confirm.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\n\t\t\t\tif(text.getText().trim()==null || \"\".equals(text.getText().trim())\n\t\t\t\t\t\t||combo.getText().trim()==null || \"\".equals(combo.getText().trim()) \n\t\t\t\t\t\t\t||combo_1.getText().trim()==null || \"\".equals(combo_1.getText().trim())\n\t\t\t\t\t\t\t\t|| combo_2.getText().trim()==null || \"\".equals(combo_2.getText().trim())\n\t\t\t\t\t\t\t\t\t|| combo_3.getText().trim()==null || \"\".equals(combo_3.getText().trim())\n\t\t\t\t\t\t\t\t\t\t||combo_4.getText().trim()==null || \"\".equals(combo_4.getText().trim())\n\t\t\t\t\t\t\t\t\t\t\t||combo_5.getText().trim()==null || \"\".equals(combo_5.getText().trim())\n\t\t\t\t\t\t\t\t\t\t\t\t||combo_6.getText().trim()==null || \"\".equals(combo_6.getText().trim())){\n\t\t\t\t\tMessageDialog.openError(shell, \"错误\", \"输入框不能为空或输入空值,请确认后重新输入!\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tString word=text.getText().trim();\n\t\t\t\tString wordName=getFontName(combo.getText().trim());\n\t\t\t\tint wordStyle=getFonStyle(combo_1.getText().trim());\n\t\t\t\tint wordSize=Integer.parseInt(combo_2.getText().trim());\n\t\t\t\tColor wordColor=getFontColor(combo_3.getText().trim());\n\t\t\t\tint word_X=Integer.parseInt(combo_4.getText().trim());\n\t\t\t\tint word_Y=Integer.parseInt(combo_5.getText().trim());\n\t\t\t\tfloat word_Alpha=Float.parseFloat(combo_6.getText().trim());\n\t\t\t\t\n\t\t\t\tis=MeituUtils.waterMarkWord(EditorUi.filePath,word, wordName, wordStyle, wordSize, wordColor, word_X, word_Y,word_Alpha);\n\t\t\t\tCommon.image=new Image(display,is);\n\t\t\t\tWordWatermarkDialog.this.shell.dispose();\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t\tcombo.addVerifyListener(new VerifyListener() { \n\t\t\t public void verifyText(VerifyEvent e) { \n\t\t\t Pattern pattern = Pattern.compile(\"[^0-9]*\"); \n\t\t\t Matcher matcher = pattern.matcher(e.text); \n\t\t\t if (matcher.matches()) // 处理数字 \n\t\t\t \t e.doit = true; \n\t\t\t else if (e.text.length() > 0) // 有字符情况,包含中文、空格 \n\t\t\t \t e.doit = false; \n\t\t\t else \n\t\t\t \t e.doit = false; \n\t\t\t } \n\t\t });\n\n\t\tcombo_1.addVerifyListener(new VerifyListener() { \n\t\t\t public void verifyText(VerifyEvent e) { \n\t\t\t Pattern pattern = Pattern.compile(\"[^0-9]*\"); \n\t\t\t Matcher matcher = pattern.matcher(e.text); \n\t\t\t if (matcher.matches()) // 处理数字 \n\t\t\t \t e.doit = true; \n\t\t\t else if (e.text.length() > 0) // 有字符情况,包含中文、空格 \n\t\t\t \t e.doit = false; \n\t\t\t else \n\t\t\t \t e.doit = false; \n\t\t\t } \n\t\t });\n\t\t\n\t\tcombo_2.addVerifyListener(new VerifyListener() { \n\t\t\t public void verifyText(VerifyEvent e) { \n\t\t\t Pattern pattern = Pattern.compile(\"[0-9]\\\\d*\"); \n\t\t\t Matcher matcher = pattern.matcher(e.text); \n\t\t\t if (matcher.matches()) // 处理数字 \n\t\t\t \t e.doit = true; \n\t\t\t else if (e.text.length() > 0) // 有字符情况,包含中文、空格 \n\t\t\t \t e.doit = false; \n\t\t\t else \n\t\t\t \t e.doit = false; \n\t\t\t } \n\t\t });\n\t\t\n\t\tcombo_3.addVerifyListener(new VerifyListener() { \n\t\t\t public void verifyText(VerifyEvent e) { \n\t\t\t Pattern pattern = Pattern.compile(\"[^0-9]*\"); \n\t\t\t Matcher matcher = pattern.matcher(e.text); \n\t\t\t if (matcher.matches()) // 处理数字 \n\t\t\t \t e.doit = true; \n\t\t\t else if (e.text.length() > 0) // 有字符情况,包含中文、空格 \n\t\t\t \t e.doit = false; \n\t\t\t else \n\t\t\t \t e.doit = false; \n\t\t\t } \n\t\t });\n\t\t\n\t\t\n\t\t\n\t\tcombo_4.addVerifyListener(new VerifyListener() { \n\t\t\t public void verifyText(VerifyEvent e) { \n\t\t\t Pattern pattern = Pattern.compile(\"[0-9]\\\\d*\"); \n\t\t\t Matcher matcher = pattern.matcher(e.text); \n\t\t\t if (matcher.matches()) // 处理数字 \n\t\t\t \t e.doit = true; \n\t\t\t else if (e.text.length() > 0) // 有字符情况,包含中文、空格 \n\t\t\t \t e.doit = false; \n\t\t\t else \n\t\t\t \t e.doit = false; \n\t\t\t } \n\t\t });\n\t\t\n\t\tcombo_5.addVerifyListener(new VerifyListener() { \n\t\t\t public void verifyText(VerifyEvent e) { \n\t\t\t Pattern pattern = Pattern.compile(\"[0-9]\\\\d*\"); \n\t\t\t Matcher matcher = pattern.matcher(e.text); \n\t\t\t if (matcher.matches()) // 处理数字 \n\t\t\t \t e.doit = true; \n\t\t\t else if (e.text.length() > 0) // 有字符情况,包含中文、空格 \n\t\t\t \t e.doit = false; \n\t\t\t else \n\t\t\t \t e.doit = false; \n\t\t\t } \n\t\t });\n\t\t\n\t\tcombo_6.addVerifyListener(new VerifyListener() { \n\t\t\t public void verifyText(VerifyEvent e) { \n\t\t\t Pattern pattern = Pattern.compile(\".[0-9]*\"); \n\t\t\t Matcher matcher = pattern.matcher(e.text); \n\t\t\t if (matcher.matches()) // 处理数字 \n\t\t\t \t e.doit = true; \n\t\t\t else if (e.text.length() > 0) // 有字符情况,包含中文、空格 \n\t\t\t \t e.doit = false; \n\t\t\t else \n\t\t\t \t e.doit = false; \n\t\t\t } \n\t\t });\n\n\t}", "protected void createContents() {\n\n\t}", "protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setSize(450, 300);\r\n\t\tshell.setText(\"SWT Application\");\r\n\r\n\t}", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(764, 551);\n\t\tshell.setText(\"SWT Application\");\n\t\tshell.setLayout(new BorderLayout(0, 0));\n\t\t\n\t\tMenu menu = new Menu(shell, SWT.BAR);\n\t\tshell.setMenuBar(menu);\n\t\t\n\t\tMenuItem mntmFile = new MenuItem(menu, SWT.NONE);\n\t\tmntmFile.setText(\"File...\");\n\t\t\n\t\tMenuItem mntmEdit = new MenuItem(menu, SWT.NONE);\n\t\tmntmEdit.setText(\"Edit\");\n\t\t\n\t\tComposite composite = new Composite(shell, SWT.NONE);\n\t\tcomposite.setLayoutData(BorderLayout.CENTER);\n\t\tcomposite.setLayout(null);\n\t\t\n\t\tGroup grpDirectorio = new Group(composite, SWT.NONE);\n\t\tgrpDirectorio.setText(\"Directorio\");\n\t\tgrpDirectorio.setBounds(10, 86, 261, 387);\n\t\t\n\t\tGroup grpListadoDeAccesos = new Group(composite, SWT.NONE);\n\t\tgrpListadoDeAccesos.setText(\"Listado de Accesos\");\n\t\tgrpListadoDeAccesos.setBounds(277, 86, 477, 387);\n\t\t\n\t\tLabel label = new Label(composite, SWT.SEPARATOR | SWT.HORIZONTAL);\n\t\tlabel.setBounds(10, 479, 744, 2);\n\t\t\n\t\tButton btnNewButton = new Button(composite, SWT.NONE);\n\t\tbtnNewButton.setBounds(638, 491, 94, 28);\n\t\tbtnNewButton.setText(\"New Button\");\n\t\t\n\t\tButton btnNewButton_1 = new Button(composite, SWT.NONE);\n\t\tbtnNewButton_1.setBounds(538, 491, 94, 28);\n\t\tbtnNewButton_1.setText(\"New Button\");\n\t\t\n\t\tToolBar toolBar = new ToolBar(composite, SWT.FLAT | SWT.RIGHT);\n\t\ttoolBar.setBounds(10, 10, 744, 20);\n\t\t\n\t\tToolItem tltmAccion = new ToolItem(toolBar, SWT.NONE);\n\t\ttltmAccion.setText(\"Accion 1\");\n\t\t\n\t\tToolItem tltmAccion_1 = new ToolItem(toolBar, SWT.NONE);\n\t\ttltmAccion_1.setText(\"Accion 2\");\n\t\t\n\t\tToolItem tltmRadio = new ToolItem(toolBar, SWT.RADIO);\n\t\ttltmRadio.setText(\"Radio\");\n\t\t\n\t\tToolItem tltmItemDrop = new ToolItem(toolBar, SWT.DROP_DOWN);\n\t\ttltmItemDrop.setText(\"Item drop\");\n\t\t\n\t\tToolItem tltmCheckItem = new ToolItem(toolBar, SWT.CHECK);\n\t\ttltmCheckItem.setText(\"Check item\");\n\t\t\n\t\tCoolBar coolBar = new CoolBar(composite, SWT.FLAT);\n\t\tcoolBar.setBounds(10, 39, 744, 30);\n\t\t\n\t\tCoolItem coolItem_1 = new CoolItem(coolBar, SWT.NONE);\n\t\tcoolItem_1.setText(\"Accion 1\");\n\t\t\n\t\tCoolItem coolItem = new CoolItem(coolBar, SWT.NONE);\n\n\t}", "protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setSize(450, 300);\r\n\t\tshell.setText(\"SWT Application\");\r\n\t\t\r\n\t\tLabel label = new Label(shell, SWT.NONE);\r\n\t\tlabel.setBounds(44, 47, 90, 24);\r\n\t\tlabel.setText(\"充值金额:\");\r\n\t\t\r\n\t\ttext_balance = new Text(shell, SWT.BORDER);\r\n\t\ttext_balance.setBounds(156, 47, 198, 30);\r\n\t\t\r\n\t\tButton button = new Button(shell, SWT.NONE);\r\n\t\t//确认充值\r\n\t\tbutton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tString balance=text_balance.getText().trim();\r\n\t\t\t\ttry {\r\n\t\t\t\t\tint i=dao.add(balance);\r\n\t\t\t\t\tif(i>0){\r\n\t\t\t\t\t\tswtUtil.showMessage(shell, \"成功提示\", \"充值成功\");\r\n\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tswtUtil.showMessage(shell, \"错误提示\", \"所充值不能为零\");\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (SQLException e1) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tbutton.setBounds(140, 131, 114, 34);\r\n\t\tbutton.setText(\"确认充值\");\r\n\r\n\t}", "private void createContents() {\r\n\t\tshlAjouterNouvelleEquation = new Shell(getParent(), SWT.DIALOG_TRIM | SWT.RESIZE | SWT.APPLICATION_MODAL);\r\n\t\tshlAjouterNouvelleEquation.setSize(363, 334);\r\n\t\tif(modification)\r\n\t\t\tshlAjouterNouvelleEquation.setText(\"Modifier Equation\");\r\n\t\telse\r\n\t\t\tshlAjouterNouvelleEquation.setText(\"Ajouter Nouvelle Equation\");\r\n\t\tshlAjouterNouvelleEquation.setLayout(new FormLayout());\r\n\r\n\r\n\t\tLabel lblContenuEquation = new Label(shlAjouterNouvelleEquation, SWT.NONE);\r\n\t\tFormData fd_lblContenuEquation = new FormData();\r\n\t\tfd_lblContenuEquation.top = new FormAttachment(0, 5);\r\n\t\tfd_lblContenuEquation.left = new FormAttachment(0, 5);\r\n\t\tlblContenuEquation.setLayoutData(fd_lblContenuEquation);\r\n\t\tlblContenuEquation.setText(\"Contenu Equation\");\r\n\r\n\r\n\t\tcontrainteButton = new Button(shlAjouterNouvelleEquation, SWT.CHECK);\r\n\t\tFormData fd_btnContrainte = new FormData();\r\n\t\tfd_btnContrainte.top = new FormAttachment(0, 27);\r\n\t\tfd_btnContrainte.right = new FormAttachment(100, -10);\r\n\t\tcontrainteButton.setLayoutData(fd_btnContrainte);\r\n\t\tcontrainteButton.setText(\"Contrainte\");\r\n\r\n\t\torientationButton = new Button(shlAjouterNouvelleEquation, SWT.CHECK);\r\n\t\tFormData fd_btnOrinet = new FormData();\r\n\t\tfd_btnOrinet.top = new FormAttachment(0, 27);\r\n\t\tfd_btnOrinet.right = new FormAttachment(contrainteButton, -10);\r\n\r\n\t\torientationButton.setLayoutData(fd_btnOrinet);\r\n\t\t\r\n\t\torientationButton.setText(\"Orient\\u00E9\");\r\n\r\n\t\tcontenuEquation = new Text(shlAjouterNouvelleEquation, SWT.BORDER|SWT.SINGLE);\r\n\t\tFormData fd_text = new FormData();\r\n\t\tfd_text.right = new FormAttachment(orientationButton, -10, SWT.LEFT);\r\n\t\tfd_text.top = new FormAttachment(0, 25);\r\n\t\tfd_text.left = new FormAttachment(0, 5);\r\n\t\tcontenuEquation.setLayoutData(fd_text);\r\n\r\n\t\tcontenuEquation.addListener(SWT.FocusOut, out->{\r\n\t\t\tSystem.out.println(\"Making list...\");\r\n\t\t\ttry {\r\n\t\t\t\tequation.getListeDeParametresEqn_DYNAMIC();\r\n\t\t\t\tif(!btnTerminer.isDisposed()){\r\n\t\t\t\t\tif(!btnTerminer.getEnabled())\r\n\t\t\t\t\t\t btnTerminer.setEnabled(true);\r\n\t\t\t\t}\r\n\t\t\t} catch (Exception e1) {\r\n\t\t\t\tthis.showError(shlAjouterNouvelleEquation, e1.toString());\r\n\t\t\t\t btnTerminer.setEnabled(false);\r\n\t\t\t\te1.printStackTrace();\r\n\t\t\t}\t\r\n\t\t});\r\n\r\n\t\tLabel lblNewLabel = new Label(shlAjouterNouvelleEquation, SWT.NONE);\r\n\t\tFormData fd_lblNewLabel = new FormData();\r\n\t\tfd_lblNewLabel.top = new FormAttachment(0, 51);\r\n\t\tfd_lblNewLabel.left = new FormAttachment(0, 5);\r\n\t\tlblNewLabel.setLayoutData(fd_lblNewLabel);\r\n\t\tlblNewLabel.setText(\"Param\\u00E8tre de Sortie\");\r\n\r\n\t\tparametreDeSortieCombo = new Combo(shlAjouterNouvelleEquation, SWT.DROP_DOWN |SWT.READ_ONLY);\r\n\t\tparametreDeSortieCombo.setEnabled(false);\r\n\r\n\t\tFormData fd_combo = new FormData();\r\n\t\tfd_combo.top = new FormAttachment(0, 71);\r\n\t\tfd_combo.left = new FormAttachment(0, 5);\r\n\t\tparametreDeSortieCombo.setLayoutData(fd_combo);\r\n\t\tparametreDeSortieCombo.addListener(SWT.FocusIn, in->{\r\n\t\t\tparametreDeSortieCombo.setItems(makeItems.apply(equation.getListeDeParametresEqn()));\r\n\t\t\tparametreDeSortieCombo.pack();\r\n\t\t\tparametreDeSortieCombo.update();\r\n\t\t});\r\n\r\n\t\tSashForm sashForm = new SashForm(shlAjouterNouvelleEquation, SWT.NONE);\r\n\t\tFormData fd_sashForm = new FormData();\r\n\t\tfd_sashForm.top = new FormAttachment(parametreDeSortieCombo, 6);\r\n\t\tfd_sashForm.bottom = new FormAttachment(100, -50);\r\n\t\tfd_sashForm.right = new FormAttachment(100);\r\n\t\tfd_sashForm.left = new FormAttachment(0, 5);\r\n\t\tsashForm.setLayoutData(fd_sashForm);\r\n\r\n\r\n\r\n\r\n\t\tGroup propertiesGroup = new Group(sashForm, SWT.NONE);\r\n\t\tpropertiesGroup.setLayout(new FormLayout());\r\n\r\n\t\tpropertiesGroup.setText(\"Propri\\u00E9t\\u00E9s\");\r\n\t\tFormData fd_propertiesGroup = new FormData();\r\n\t\tfd_propertiesGroup.top = new FormAttachment(0);\r\n\t\tfd_propertiesGroup.left = new FormAttachment(0);\r\n\t\tfd_propertiesGroup.bottom = new FormAttachment(100, 0);\r\n\t\tfd_propertiesGroup.right = new FormAttachment(100, 0);\r\n\t\tpropertiesGroup.setLayoutData(fd_propertiesGroup);\r\n\r\n\r\n\r\n\r\n\r\n\t\tproperties = new Text(propertiesGroup, SWT.BORDER | SWT.WRAP | SWT.V_SCROLL);\r\n\t\tFormData fd_grouptext = new FormData();\r\n\t\tfd_grouptext.top = new FormAttachment(0,0);\r\n\t\tfd_grouptext.left = new FormAttachment(0, 0);\r\n\t\tfd_grouptext.bottom = new FormAttachment(100, 0);\r\n\t\tfd_grouptext.right = new FormAttachment(100, 0);\r\n\t\tproperties.setLayoutData(fd_grouptext);\r\n\r\n\r\n\r\n\t\tGroup grpDescription = new Group(sashForm, SWT.NONE);\r\n\t\tgrpDescription.setText(\"Description\");\r\n\t\tgrpDescription.setLayout(new FormLayout());\r\n\t\tFormData fd_grpDescription = new FormData();\r\n\t\tfd_grpDescription.bottom = new FormAttachment(100, 0);\r\n\t\tfd_grpDescription.right = new FormAttachment(100,0);\r\n\t\tfd_grpDescription.top = new FormAttachment(0);\r\n\t\tfd_grpDescription.left = new FormAttachment(0);\r\n\t\tgrpDescription.setLayoutData(fd_grpDescription);\r\n\r\n\t\tdescription = new Text(grpDescription, SWT.BORDER | SWT.WRAP | SWT.V_SCROLL | SWT.MULTI);\r\n\t\tdescription.setParent(grpDescription);\r\n\r\n\t\tFormData fd_description = new FormData();\r\n\t\tfd_description.top = new FormAttachment(0,0);\r\n\t\tfd_description.left = new FormAttachment(0, 0);\r\n\t\tfd_description.bottom = new FormAttachment(100, 0);\r\n\t\tfd_description.right = new FormAttachment(100, 0);\r\n\r\n\t\tdescription.setLayoutData(fd_description);\r\n\r\n\r\n\t\tsashForm.setWeights(new int[] {50,50});\r\n\r\n\t\tbtnTerminer = new Button(shlAjouterNouvelleEquation, SWT.NONE);\r\n\t\tbtnTerminer.setEnabled(false);\r\n\t\tFormData fd_btnTerminer = new FormData();\r\n\t\tfd_btnTerminer.top = new FormAttachment(sashForm, 6);\r\n\t\tfd_btnTerminer.left = new FormAttachment(sashForm,0, SWT.CENTER);\r\n\t\tbtnTerminer.setLayoutData(fd_btnTerminer);\r\n\t\tbtnTerminer.setText(\"Terminer\");\r\n\t\tbtnTerminer.addListener(SWT.Selection, e->{\r\n\t\t\t\r\n\t\t\tboolean go = true;\r\n\t\t\tresult = null;\r\n\t\t\tif (status.equals(ValidationStatus.ok())) {\r\n\t\t\t\t//perform all the neccessary tests before validating the equation\t\t\t\t\t\r\n\t\t\t\tif(equation.isOriented()){\r\n\t\t\t\t\tif(!equation.getListeDeParametresEqn().contains(equation.getParametreDeSortie()) || equation.getParametreDeSortie() == null){\t\t\t\t\t\t\r\n\t\t\t\t\t\tString error = \"Erreur sur l'équation \"+equation.getContenuEqn();\r\n\t\t\t\t\t\tgo = false;\r\n\t\t\t\t\t\tshowError(shlAjouterNouvelleEquation, error);\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (go) {\r\n\t\t\t\t\t\tresult = Boolean.TRUE;\r\n\t\t\t\t\t\tshlAjouterNouvelleEquation.dispose();\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tequation.setParametreDeSortie(null);\r\n\t\t\t\t\tresult = Boolean.TRUE;\r\n\t\t\t\t\t//Just some cleanup\r\n\t\t\t\t\tfor (Parametre par : equation.getListeDeParametresEqn()) {\r\n\t\t\t\t\t\tif (par.getTypeP().equals(TypeParametre.OUTPUT)) {\t\t\t\t\t\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\tpar.setTypeP(TypeParametre.UNDETERMINED);\r\n\t\t\t\t\t\t\t\tpar.setSousTypeP(SousTypeParametre.FREE);\r\n\t\t\t\t\t\t\t} catch (Exception e1) {\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tshlAjouterNouvelleEquation.dispose();\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t//\tSystem.out.println(equation.getContenuEqn() +\"\\n\"+equation.isConstraint()+\"\\n\"+equation.isOriented()+\"\\n\"+equation.getParametreDeSortie());\r\n\t\t});\r\n\r\n\t\t//In this sub routine I bind the values to the respective controls in order to observe changes \r\n\t\t//and verify the data insertion\r\n\t\tbindValues();\r\n\t}", "private void createContents() {\r\n\t\tshell = new Shell(getParent(), getStyle());\r\n\t\tshell.setSize(450, 300);\r\n\t\tshell.setText(getText());\r\n\t\tshell.setLayout(new FillLayout(SWT.HORIZONTAL));\r\n\t\t\r\n\t\tComposite composite = new Composite(shell, SWT.NONE);\r\n\t\tcomposite.setLayout(new FillLayout(SWT.HORIZONTAL));\r\n\t\t\r\n\t\tComposite composite_1 = new Composite(composite, SWT.NONE);\r\n\t\tRowLayout rl_composite_1 = new RowLayout(SWT.VERTICAL);\r\n\t\trl_composite_1.center = true;\r\n\t\trl_composite_1.fill = true;\r\n\t\tcomposite_1.setLayout(rl_composite_1);\r\n\t\t\r\n\t\tComposite composite_2 = new Composite(composite_1, SWT.NONE);\r\n\t\tcomposite_2.setLayout(new FillLayout(SWT.VERTICAL));\r\n\t\t\r\n\t\tButton btnNewButton = new Button(composite_2, SWT.NONE);\r\n\t\tbtnNewButton.setText(\"New Button\");\r\n\t\t\r\n\t\tButton btnRadioButton = new Button(composite_2, SWT.RADIO);\r\n\t\tbtnRadioButton.setText(\"Radio Button\");\r\n\t\t\r\n\t\tButton btnCheckButton = new Button(composite_2, SWT.CHECK);\r\n\t\tbtnCheckButton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnCheckButton.setText(\"Check Button\");\r\n\r\n\t}", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(538, 450);\n\t\tshell.setText(\"SWT Application\");\n\n\t\tfinal DateTime dateTime = new DateTime(shell, SWT.BORDER | SWT.CALENDAR);\n\t\tdateTime.setBounds(10, 10, 514, 290);\n\n\t\tfinal DateTime dateTime_1 = new DateTime(shell, SWT.BORDER | SWT.TIME);\n\t\tdateTime_1.setBounds(10, 306, 135, 29);\n\t\tvideoPath = new Text(shell, SWT.BORDER);\n\t\tvideoPath.setBounds(220, 306, 207, 27);\n\n\t\tButton btnBrowseVideo = new Button(shell, SWT.NONE);\n\t\tbtnBrowseVideo.addListener(SWT.Selection, new Listener() {\n\t\t\t@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\tFileDialog fileDialog = new FileDialog(shell, SWT.MULTI);\n\t\t\t\tString fileFilterPath = \"\";\n\t\t\t\tfileDialog.setFilterPath(fileFilterPath);\n\t\t\t\tfileDialog.setFilterExtensions(new String[] { \"*.*\" });\n\t\t\t\tfileDialog.setFilterNames(new String[] { \"Any\" });\n\t\t\t\tString firstFile = fileDialog.open();\n\t\t\t\tif (firstFile != null) {\n\t\t\t\t\tvideoPath.setText(firstFile);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnBrowseVideo.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\n\t\t\t}\n\t\t});\n\t\tbtnBrowseVideo.setBounds(433, 306, 91, 29);\n\t\tbtnBrowseVideo.setText(\"browse\");\n\t\ttorrentPath = new Text(shell, SWT.BORDER);\n\t\ttorrentPath.setBounds(220, 341, 207, 27);\n\t\tButton btnBrowseTorrent = new Button(shell, SWT.NONE);\n\t\tbtnBrowseTorrent.setText(\"browse\");\n\t\tbtnBrowseTorrent.setBounds(433, 339, 91, 29);\n\t\tbtnBrowseTorrent.addListener(SWT.Selection, new Listener() {\n\t\t\t@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\tFileDialog fileDialog = new FileDialog(shell, SWT.MULTI);\n\t\t\t\tString fileFilterPath = \"\";\n\t\t\t\tfileDialog.setFilterPath(fileFilterPath);\n\t\t\t\tfileDialog.setFilterExtensions(new String[] { \"*.*\" });\n\t\t\t\tfileDialog.setFilterNames(new String[] { \"Any\" });\n\t\t\t\tString firstFile = fileDialog.open();\n\t\t\t\tif (firstFile != null) {\n\t\t\t\t\ttorrentPath.setText(firstFile);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tButton btnGenerateTorrent = new Button(shell, SWT.NONE);\n\t\tbtnGenerateTorrent.setBounds(10, 374, 516, 29);\n\t\tbtnGenerateTorrent.setText(\"Generate Torrent\");\n\n\t\tvideoLength = new Text(shell, SWT.BORDER);\n\t\tvideoLength.setBounds(10, 341, 135, 27);\n\t\t\n\t\tLabel lblNewLabel = new Label(shell, SWT.RIGHT);\n\t\tlblNewLabel.setAlignment(SWT.LEFT);\n\t\tlblNewLabel.setBounds(157, 315, 48, 18);\n\t\tlblNewLabel.setText(\"Video\");\n\t\t\n\t\tLabel lblTorrent = new Label(shell, SWT.RIGHT);\n\t\tlblTorrent.setText(\"Torrent\");\n\t\tlblTorrent.setBounds(157, 341, 48, 18);\n\t\tbtnGenerateTorrent.addListener(SWT.Selection, new Listener() {\n\t\t\t@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\tFile video = new File(videoPath.getText());\n\t\t\t\ttry {\n\t\t\t\t\tif (video.exists() && torrentPath.getText() != \"\") {\n\t\t\t\t\t\tMap parameters = new HashMap();\n\t\t\t\t\t\tparameters.put(\"start\", dateTime.getYear() + \"/\" + (dateTime.getMonth()+1) + \"/\" + dateTime.getDay() + \"-\" + dateTime_1.getHours() + \":\" + dateTime_1.getMinutes() + \":\" + dateTime_1.getSeconds());\n\t\t\t\t\t\tparameters.put(\"target\", torrentPath.getText());\n\t\t\t\t\t\tparameters.put(\"length\", videoLength.getText());\n\t\t\t\t\t\tSystem.out.println(\"start generating \"+parameters.get(\"length\"));\n\t\t\t\t\t\tnew MakeTorrent(videoPath.getText(), new URL(\"https://jomican.csie.org/~jimmy/tracker/announce.php\"), parameters);\n\t\t\t\t\t\tSystem.out.println(\"end generating\");\n\t\t\t\t\t\tFile var = new File(\"var.js\");\n\t\t\t\t\t\tPrintStream stream=new PrintStream(new FileOutputStream(var,false));\n\t\t\t\t\t\tstream.println(\"start_time = \"+(new SimpleDateFormat(\"yyyy/MM/dd-HH:mm:ss\").parse(dateTime.getYear() + \"/\" + (dateTime.getMonth()+1) + \"/\" + dateTime.getDay() + \"-\" + dateTime_1.getHours() + \":\" + dateTime_1.getMinutes() + \":\" + dateTime_1.getSeconds()).getTime() / 1000)+\";\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\"jizz\");\n\t\t\t\t\t}\n\t\t\t\t} catch (MalformedURLException e) {\n\t\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (ParseException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t}", "private void createContents() {\n shell = new Shell(getParent(), SWT.BORDER | SWT.TITLE | SWT.APPLICATION_MODAL);\n shell.setSize(FORM_WIDTH, 700);\n shell.setText(getText());\n shell.setLayout(new GridLayout(1, false));\n\n TabFolder tabFolder = new TabFolder(shell, SWT.NONE);\n tabFolder.setLayoutData(TAB_GROUP_LAYOUT_DATA);\n\n // STRUCTURE PARAMETERS\n\n TabItem tbtmStructure = new TabItem(tabFolder, SWT.NONE);\n tbtmStructure.setText(\"Structure\");\n\n Composite grpStructure = new Composite(tabFolder, SWT.NONE);\n tbtmStructure.setControl(grpStructure);\n grpStructure.setLayout(TAB_GROUP_LAYOUT);\n grpStructure.setLayoutData(TAB_GROUP_LAYOUT_DATA);\n\n ParmDialogText.load(grpStructure, parms, \"meta\");\n ParmDialogText.load(grpStructure, parms, \"col\");\n ParmDialogText.load(grpStructure, parms, \"id\");\n ParmDialogChoices.load(grpStructure, parms, \"init\", Activation.values());\n ParmDialogChoices.load(grpStructure, parms, \"activation\", Activation.values());\n ParmDialogFlag.load(grpStructure, parms, \"raw\");\n ParmDialogFlag.load(grpStructure, parms, \"batch\");\n ParmDialogGroup cnn = ParmDialogText.load(grpStructure, parms, \"cnn\");\n ParmDialogGroup filters = ParmDialogText.load(grpStructure, parms, \"filters\");\n ParmDialogGroup strides = ParmDialogText.load(grpStructure, parms, \"strides\");\n ParmDialogGroup subs = ParmDialogText.load(grpStructure, parms, \"sub\");\n if (cnn != null) {\n if (filters != null) cnn.setGrouped(filters);\n if (strides != null) cnn.setGrouped(strides);\n if (subs != null) cnn.setGrouped(subs);\n }\n ParmDialogText.load(grpStructure, parms, \"lstm\");\n ParmDialogGroup wGroup = ParmDialogText.load(grpStructure, parms, \"widths\");\n ParmDialogGroup bGroup = ParmDialogText.load(grpStructure, parms, \"balanced\");\n if (bGroup != null && wGroup != null) {\n wGroup.setExclusive(bGroup);\n bGroup.setExclusive(wGroup);\n }\n\n // SEARCH CONTROL PARAMETERS\n\n TabItem tbtmSearch = new TabItem(tabFolder, SWT.NONE);\n tbtmSearch.setText(\"Training\");\n\n ScrolledComposite grpSearch0 = new ScrolledComposite(tabFolder, SWT.V_SCROLL);\n grpSearch0.setLayout(new FillLayout());\n grpSearch0.setLayoutData(TAB_GROUP_LAYOUT_DATA);\n tbtmSearch.setControl(grpSearch0);\n Composite grpSearch = new Composite(grpSearch0, SWT.NONE);\n grpSearch0.setContent(grpSearch);\n grpSearch.setLayout(TAB_GROUP_LAYOUT);\n grpSearch.setLayoutData(TAB_GROUP_LAYOUT_DATA);\n\n Enum<?>[] preferTypes = (this.modelType == TrainingProcessor.Type.CLASS ? RunStats.OptimizationType.values()\n : RunStats.RegressionType.values());\n ParmDialogChoices.load(grpSearch, parms, \"prefer\", preferTypes);\n ParmDialogChoices.load(grpSearch, parms, \"method\", Trainer.Type.values());\n ParmDialogText.load(grpSearch, parms, \"bound\");\n ParmDialogChoices.load(grpSearch, parms, \"lossFun\", LossFunctionType.values());\n ParmDialogText.load(grpSearch, parms, \"weights\");\n ParmDialogText.load(grpSearch, parms, \"iter\");\n ParmDialogText.load(grpSearch, parms, \"batchSize\");\n ParmDialogText.load(grpSearch, parms, \"testSize\");\n ParmDialogText.load(grpSearch, parms, \"maxBatches\");\n ParmDialogText.load(grpSearch, parms, \"earlyStop\");\n ParmDialogChoices.load(grpSearch, parms, \"regMode\", Regularization.Mode.values());\n ParmDialogText.load(grpSearch, parms, \"regFactor\");\n ParmDialogText.load(grpSearch, parms, \"seed\");\n ParmDialogChoices.load(grpSearch, parms, \"start\", WeightInit.values());\n ParmDialogChoices.load(grpSearch, parms, \"gradNorm\", GradientNormalization.values());\n ParmDialogChoices.load(grpSearch, parms, \"updater\", GradientUpdater.Type.values());\n ParmDialogText.load(grpSearch, parms, \"learnRate\");\n ParmDialogChoices.load(grpSearch, parms, \"bUpdater\", GradientUpdater.Type.values());\n ParmDialogText.load(grpSearch, parms, \"updateRate\");\n\n grpSearch.setSize(grpSearch.computeSize(FORM_WIDTH - 50, SWT.DEFAULT));\n\n // BOTTOM BUTTON BAR\n\n Composite grpButtonBar = new Composite(shell, SWT.NONE);\n grpButtonBar.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, true, false, 1, 1));\n grpButtonBar.setLayout(new FillLayout(SWT.HORIZONTAL));\n\n Button btnSave = new Button(grpButtonBar, SWT.NONE);\n btnSave.setText(\"Save\");\n btnSave.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent evt) {\n try {\n parms.save(parmFile);\n } catch (IOException e) {\n ShellUtils.showErrorBox(getParent(), \"Error Saving Parm File\", e.getMessage());\n }\n }\n });\n\n Button btnClose = new Button(grpButtonBar, SWT.NONE);\n btnClose.setText(\"Cancel\");\n btnClose.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent evt) {\n shell.close();\n }\n });\n\n Button btnOK = new Button(grpButtonBar, SWT.NONE);\n btnOK.setText(\"Save and Close\");\n btnOK.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent evt) {\n try {\n parms.save(parmFile);\n shell.close();\n } catch (IOException e) {\n ShellUtils.showErrorBox(getParent(), \"Error Saving Parm File\", e.getMessage());\n }\n }\n });\n\n }", "private void createContents() {\n\t\tshlEditionRussie = new Shell(getParent(), getStyle());\n\t\tshlEditionRussie.setSize(470, 262);\n\t\tshlEditionRussie.setText(\"Edition r\\u00E9ussie\");\n\t\t\n\t\tLabel lblLeFilm = new Label(shlEditionRussie, SWT.NONE);\n\t\tlblLeFilm.setBounds(153, 68, 36, 15);\n\t\tlblLeFilm.setText(\"Le film\");\n\t\t\n\t\tLabel lblXx = new Label(shlEditionRussie, SWT.NONE);\n\t\tlblXx.setBounds(195, 68, 21, 15);\n\t\tlblXx.setText(\"\" + getViewModel());\n\t\t\n\t\tLabel lblABient = new Label(shlEditionRussie, SWT.NONE);\n\t\tlblABient.setText(\"a bien \\u00E9t\\u00E9 modifi\\u00E9\");\n\t\tlblABient.setBounds(222, 68, 100, 15);\n\t\t\n\t\tButton btnRevenirLa = new Button(shlEditionRussie, SWT.NONE);\n\t\tbtnRevenirLa.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tm_Infrastructure.runController(shlEditionRussie, ListMoviesController.class);\n\t\t\t}\n\t\t});\n\t\tbtnRevenirLa.setBounds(153, 105, 149, 25);\n\t\tbtnRevenirLa.setText(\"Revenir \\u00E0 la liste des films\");\n\n\t}", "private void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\r\n\t\tshell.setSize(500, 400);\r\n\t\tshell.setText(\"SWT Application\");\r\n\t\tshell.setLayout(new FormLayout());\r\n\t\t\r\n\t\tSERVER_COUNTRY locale = SERVER_COUNTRY.DE;\r\n\t\tString username = JOptionPane.showInputDialog(\"Username\");\r\n\t\tString password = JOptionPane.showInputDialog(\"Password\");\r\n\t\tBot bot = new Bot(username, password, locale);\r\n\t\t\r\n\t\tGroup grpActions = new Group(shell, SWT.NONE);\r\n\t\tgrpActions.setText(\"Actions\");\r\n\t\tgrpActions.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\r\n\t\tgrpActions.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.NORMAL));\r\n\t\tgrpActions.setForeground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\r\n\t\tgrpActions.setLayout(new GridLayout(5, false));\r\n\t\tFormData fd_grpActions = new FormData();\r\n\t\tfd_grpActions.left = new FormAttachment(0, 203);\r\n\t\tfd_grpActions.right = new FormAttachment(100, -10);\r\n\t\tfd_grpActions.top = new FormAttachment(0, 10);\r\n\t\tfd_grpActions.bottom = new FormAttachment(0, 152);\r\n\t\tgrpActions.setLayoutData(fd_grpActions);\r\n\t\t\r\n\t\tConsole = new Text(shell, SWT.BORDER | SWT.READ_ONLY | SWT.V_SCROLL | SWT.MULTI);\r\n\t\tFormData fd_Console = new FormData();\r\n\t\tfd_Console.left = new FormAttachment(grpActions, 0, SWT.LEFT);\r\n\t\tfd_Console.right = new FormAttachment(100, -10);\r\n\t\tConsole.setLayoutData(fd_Console);\r\n\r\n\t\t\r\n\t\tButton Feed = new Button(grpActions, SWT.CHECK);\r\n\t\tFeed.setSelection(true);\r\n\t\tFeed.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tfeed = !feed;\r\n\t\t\t\tConsole.append(\"\\nTest\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tFeed.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tFeed.setText(\"Feed\");\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\t\r\n\t\tButton Drink = new Button(grpActions, SWT.CHECK);\r\n\t\tDrink.setSelection(true);\r\n\t\tDrink.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tdrink = !drink;\r\n\t\t\t}\r\n\t\t});\r\n\t\tDrink.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tDrink.setText(\"Drink\");\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\t\r\n\t\tButton Stroke = new Button(grpActions, SWT.CHECK);\r\n\t\tStroke.setSelection(true);\r\n\t\tStroke.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tstroke = !stroke;\r\n\t\t\t}\r\n\t\t});\r\n\t\tStroke.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tStroke.setText(\"Stroke\");\r\n\t\t\r\n\t\t\r\n\t\t//STATIC\r\n\t\tLabel lblNewLabel_0 = new Label(grpActions, SWT.NONE);\r\n\t\tlblNewLabel_0.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tlblNewLabel_0.setImage(SWTResourceManager.getImage(MainWindow.class, \"/PNGs/feed.png\"));\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\t\r\n\t\tLabel lblNewLabel_1 = new Label(grpActions, SWT.NONE);\r\n\t\tlblNewLabel_1.setImage(SWTResourceManager.getImage(MainWindow.class, \"/PNGs/drink.png\"));\r\n\t\tlblNewLabel_1.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\t\r\n\t\t\r\n\t\tGroup grpBreeds = new Group(shell, SWT.NONE);\r\n\t\tgrpBreeds.setText(\"Breeds\");\r\n\t\tgrpBreeds.setLayout(new GridLayout(1, false));\r\n\t\t\r\n\t\tFormData fd_grpBreeds = new FormData();\r\n\t\tfd_grpBreeds.top = new FormAttachment(0, 10);\r\n\t\tfd_grpBreeds.bottom = new FormAttachment(100, -10);\r\n\t\tfd_grpBreeds.right = new FormAttachment(0, 180);\r\n\t\tfd_grpBreeds.left = new FormAttachment(0, 10);\r\n\t\tgrpBreeds.setLayoutData(fd_grpBreeds);\r\n\t\t\r\n\t\tButton Defaults = new Button(grpBreeds, SWT.RADIO);\r\n\t\tDefaults.setText(\"Defaults\");\r\n\t\t//END STATIC\r\n\t\t\r\n\t\tbot.account.api.requests.setTimeout(200);\r\n\t\tbot.logger.printlevel = 1;\t\r\n\t\t\r\n\t\tReturn<HashMap<Integer,Breed>> b = bot.getBreeds();\t\t\r\n\t\tif(!b.sucess) {\r\n\t\t\tConsole.append(\"\\nERROR!\");\r\n\t\t\tSystem.exit(-1);\r\n\t\t}\t\t\r\n\t\t\r\n\t\t\r\n\r\n\t\tIterator<Breed> iterator = b.data.values().iterator();\r\n\t\tHashMap<String, java.awt.Button> buttons = new HashMap<String, Button>();\r\n\t\t\r\n\t\twhile(iterator.hasNext()) {\r\n\t\t\tBreed breed = iterator.next();\r\n\t\t\t\r\n\t\t\tString name = breed.name;\r\n\t\t\t\r\n\t\t\tButton btn = new Button(grpBreeds, SWT.RADIO);\r\n\t\t\tbtn.setText(name);\r\n\t\t\t\r\n\t\t\tbuttons.put(name, btn);\r\n\t\t\t\r\n\t\t\t//\tTODO - Für jeden Breed wird ein Button erstellt:\r\n\t\t\t//\tButton [HIER DER BREED NAME] = new Button(grpBreeds, SWT.RADIO); <-- Dass geht nicht so wirklich so\r\n\t\t\t//\tDefaults.setText(\"[BREED NAME]\");\r\n\t\t}\r\n\t\t\r\n\t\t// um ein button mit name <name> zu bekommen: Button whatever = buttons.get(<name>);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tButton btnStartBot = new Button(shell, SWT.NONE);\r\n\t\tfd_Console.top = new FormAttachment(0, 221);\r\n\t\tbtnStartBot.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tConsole.setText(\"Starting bot... \");\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t/*TODO\r\n\t\t\t\tBreed[] breeds = new Breed[b.data.size()];\r\n\t\t\t\t\r\n\t\t\t\tIterator<Breed> br = b.data.values().iterator();\r\n\t\t\t\t\r\n\t\t\t\tfor(int i = 0; i < b.data.size(); i++) {\r\n\t\t\t\t\tbreeds[i] = br.next();\r\n\t\t\t\t};\r\n\t\t\t\tBreed s = (Breed) JOptionPane.showInputDialog(null, \"Choose breed\", \"breed selector\", JOptionPane.PLAIN_MESSAGE, null, breeds, \"default\");\r\n\t\t\t\tEND TODO*/\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t//Breed breed, boolean drink, boolean stroke, boolean groom, boolean carrot, boolean mash, boolean suckle, boolean feed, boolean sleep, boolean centreMission, long timeout, Bot bot, Runnable onEnd\r\n\t\t\t\tReturn<BasicBreedTasksAsync> ret = bot.basicBreedTasks(0, drink, stroke, groom, carrot, mash, suckle, feed, sleep, mission, 500, new Runnable() {\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"FINISHED!\", \"Bot\", JOptionPane.PLAIN_MESSAGE);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\tbot.logout();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t});\r\n\t\t\t\t\r\n\t\t\t\tif(!ret.sucess) {\r\n\t\t\t\t\tConsole.append(\"ERROR\");\r\n\t\t\t\t\tSystem.exit(-1);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tret.data.start();\r\n\t\t\t\t\r\n\t\t\t\t//TODO\r\n\t\t\t\twhile(ret.data.running()) {\r\n\t\t\t\t\tSleeper.sleep(5000);\r\n\t\t\t\t\tif(ret.data.getProgress() == 1)\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tConsole.append(\"progress: \" + (ret.data.getProgress() * 100) + \"%\");\r\n\t\t\t\t\tConsole.append(\"ETA: \" + (ret.data.getEta() / 1000) + \"sec.\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\tFormData fd_btnStartBot = new FormData();\r\n\t\tfd_btnStartBot.left = new FormAttachment(grpActions, 0, SWT.LEFT);\r\n\t\tbtnStartBot.setLayoutData(fd_btnStartBot);\r\n\t\tbtnStartBot.setText(\"Start Bot\");\r\n\t\t\r\n\t\tButton btnStopBot = new Button(shell, SWT.NONE);\r\n\t\tfd_btnStartBot.top = new FormAttachment(btnStopBot, 0, SWT.TOP);\r\n\t\tbtnStopBot.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tConsole.append(\"Stopping bot...\");\r\n\t\t\t\tbot.logout();\r\n\t\t\t}\r\n\t\t});\r\n\t\tFormData fd_btnStopBot = new FormData();\r\n\t\tfd_btnStopBot.right = new FormAttachment(grpActions, 0, SWT.RIGHT);\r\n\t\tbtnStopBot.setLayoutData(fd_btnStopBot);\r\n\t\tbtnStopBot.setText(\"Stop Bot\");\r\n\t\t\t\r\n\t\t\r\n\t\tProgressBar progressBar = new ProgressBar(shell, SWT.NONE);\r\n\t\tfd_Console.bottom = new FormAttachment(progressBar, -6);\r\n\t\tfd_btnStopBot.bottom = new FormAttachment(progressBar, -119);\r\n\t\t\r\n\t\tFormData fd_progressBar = new FormData();\r\n\t\tfd_progressBar.left = new FormAttachment(grpBreeds, 23);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t//STATIC\r\n\t\tLabel lblNewLabel_2 = new Label(grpActions, SWT.NONE);\r\n\t\tlblNewLabel_2.setImage(SWTResourceManager.getImage(MainWindow.class, \"/PNGs/stroke.png\"));\r\n\t\tlblNewLabel_2.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\t\r\n\t\tButton Groom = new Button(grpActions, SWT.CHECK);\r\n\t\tGroom.setSelection(true);\r\n\t\tGroom.setSelection(true);\r\n\t\tGroom.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tgroom = !groom;\r\n\t\t\t}\r\n\t\t});\r\n\t\tGroom.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tGroom.setText(\"Groom\");\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\t\r\n\t\tButton Treat = new Button(grpActions, SWT.CHECK);\r\n\t\tTreat.setSelection(true);\r\n\t\tTreat.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tcarrot = !carrot;\r\n\t\t\t}\r\n\t\t});\r\n\t\tTreat.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tTreat.setText(\"Treat\");\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\t\r\n\t\tButton Mash = new Button(grpActions, SWT.CHECK);\r\n\t\tMash.setSelection(true);\r\n\t\tMash.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tmash = !mash;\r\n\t\t\t}\r\n\t\t});\r\n\t\tMash.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tMash.setText(\"Mash\");\r\n\t\t\r\n\t\tLabel lblNewLabel_3 = new Label(grpActions, SWT.NONE);\r\n\t\tlblNewLabel_3.setImage(SWTResourceManager.getImage(MainWindow.class, \"/PNGs/groom.png\"));\r\n\t\tlblNewLabel_3.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\t\r\n\t\tLabel lblNewLabel_4 = new Label(grpActions, SWT.NONE);\r\n\t\tlblNewLabel_4.setImage(SWTResourceManager.getImage(MainWindow.class, \"/PNGs/carotte.png\"));\r\n\t\tlblNewLabel_4.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\t\r\n\t\tLabel lblNewLabel_5 = new Label(grpActions, SWT.NONE);\r\n\t\tlblNewLabel_5.setImage(SWTResourceManager.getImage(MainWindow.class, \"/PNGs/mash.png\"));\r\n\t\tlblNewLabel_5.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\t\r\n\t\tButton btnSleep = new Button(grpActions, SWT.CHECK);\r\n\t\tbtnSleep.setSelection(true);\r\n\t\tbtnSleep.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tsleep = !sleep;\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnSleep.setText(\"Sleep\");\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\t\r\n\t\tButton btnMission = new Button(grpActions, SWT.CHECK);\r\n\t\tbtnMission.setSelection(true);\r\n\t\tbtnMission.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tmission = !mission;\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnMission.setText(\"Mission\");\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\r\n\t}", "protected void createContents() {\n\t\tshlCarbAndRemainder = new Shell(Display.getDefault(), SWT.TITLE|SWT.CLOSE|SWT.BORDER);\n\t\tshlCarbAndRemainder.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\n\t\tshlCarbAndRemainder.setSize(323, 262);\n\t\tshlCarbAndRemainder.setText(\"CARB and Remainder\");\n\t\t\n\t\tGroup grpCarbSetting = new Group(shlCarbAndRemainder, SWT.NONE);\n\t\tgrpCarbSetting.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\n\t\tgrpCarbSetting.setFont(SWTResourceManager.getFont(\"Calibri\", 12, SWT.BOLD));\n\t\tgrpCarbSetting.setText(\"CARB Setting\");\n\t\t\n\t\tgrpCarbSetting.setBounds(10, 0, 295, 106);\n\t\t\n\t\tLabel lblCARBValue = new Label(grpCarbSetting, SWT.NONE);\n\t\tlblCARBValue.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\n\t\tlblCARBValue.setBounds(10, 32, 149, 22);\n\t\tlblCARBValue.setText(\"CARB Value\");\n\t\t\n\t\tLabel lblAuthenticationPIN = new Label(grpCarbSetting, SWT.NONE);\n\t\tlblAuthenticationPIN.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\n\t\tlblAuthenticationPIN.setBounds(10, 68, 149, 22);\n\t\tlblAuthenticationPIN.setText(\"Authentication PIN\");\n\t\t\n\t\tSpinner spinnerCARBValue = new Spinner(grpCarbSetting, SWT.BORDER);\n\t\tspinnerCARBValue.setBounds(206, 29, 72, 22);\n\t\t\n\t\ttextAuthenticationPIN = new Text(grpCarbSetting, SWT.BORDER|SWT.PASSWORD);\n\t\ttextAuthenticationPIN.setBounds(206, 65, 72, 21);\n\t\t\t\t\n\t\tGroup grpRemainder = new Group(shlCarbAndRemainder, SWT.NONE);\n\t\tgrpRemainder.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\n\t\tgrpRemainder.setFont(SWTResourceManager.getFont(\"Calibri\", 12, SWT.BOLD));\n\t\tgrpRemainder.setText(\"Remainder\");\n\t\tgrpRemainder.setBounds(10, 112, 296, 106);\n\t\t\n\t\tButton btnInjectBolus = new Button(grpRemainder, SWT.NONE);\n\t\tbtnInjectBolus.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\t\tbtnInjectBolus.setBounds(183, 38, 103, 41);\n\t\tbtnInjectBolus.setText(\"INJECT BOLUS\");\n\t\t\n\t\tButton btnCancel = new Button(grpRemainder, SWT.NONE);\n\t\tbtnCancel.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshlCarbAndRemainder.close();\n\t\t\t}\n\t\t});\n\t\tbtnCancel.setBounds(10, 38, 80, 41);\n\t\tbtnCancel.setText(\"Cancel\");\n\t\t\n\t\tButton btnSnooze = new Button(grpRemainder, SWT.NONE);\n\t\tbtnSnooze.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t}\n\t\t});\n\t\tbtnSnooze.setBounds(96, 38, 81, 41);\n\t\tbtnSnooze.setText(\"Snooze\");\n\n\t}", "protected void createContents() {\n\t\tshell = new Shell(SWT.TITLE | SWT.CLOSE | SWT.BORDER);\n\t\tshell.setSize(713, 226);\n\t\tshell.setText(\"ALT Planner\");\n\t\t\n\t\tCalendarPop calendarComp = new CalendarPop(shell, SWT.NONE);\n\t\tcalendarComp.setBounds(5, 5, 139, 148);\n\t\t\n\t\tComposite composite = new PlannerInterface(shell, SWT.NONE, calendarComp);\n\t\tcomposite.setBounds(0, 0, 713, 200);\n\t\t\n\t\tMenu menu = new Menu(shell, SWT.BAR);\n\t\tshell.setMenuBar(menu);\n\t\t\n\t\tMenuItem mntmFile = new MenuItem(menu, SWT.CASCADE);\n\t\tmntmFile.setText(\"File\");\n\t\t\n\t\tMenu menu_1 = new Menu(mntmFile);\n\t\tmntmFile.setMenu(menu_1);\n\t\t\n\t\tMenuItem mntmSettings = new MenuItem(menu_1, SWT.NONE);\n\t\tmntmSettings.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tSettings settings = new Settings(Display.getDefault());\n\t\t\t\tsettings.open();\n\t\t\t}\n\t\t});\n\t\tmntmSettings.setText(\"Settings\");\n\t}", "protected void createContents() {\n\t\tshell = new Shell(shell,SWT.SHELL_TRIM|SWT.APPLICATION_MODAL);\n\t\tshell.setImage(SWTResourceManager.getImage(\"C:\\\\Users\\\\Administrator\\\\Desktop\\\\GupiaoNo4\\\\Project\\\\GupiaoNo4\\\\data\\\\chaogushenqi.png\"));\n\t\tshell.setSize(467, 398);\n\t\tshell.setText(\"\\u5356\\u7A7A\");\n\t\t\n\t\ttext_code = new Text(shell, SWT.BORDER);\n\t\ttext_code.setBounds(225, 88, 73, 23);\n\t\t\n\t\ttext_uprice = new Text(shell, SWT.BORDER | SWT.READ_ONLY);\n\t\ttext_uprice.setBounds(225, 117, 73, 23);\n\t\t\n\t\ttext_downprice = new Text(shell, SWT.BORDER | SWT.READ_ONLY);\n\t\ttext_downprice.setBounds(225, 146, 73, 23);\n\t\t\n\t\ttext_price = new Text(shell, SWT.BORDER);\n\t\ttext_price.setBounds(225, 178, 73, 23);\n\t\t\n\t\ttext_num = new Text(shell, SWT.BORDER);\n\t\ttext_num.setBounds(225, 207, 73, 23);\n\t\t\n\t\t//下单,取消按钮\n\t\tButton btnNewButton = new Button(shell, SWT.NONE);\n\t\tbtnNewButton.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\tpaceoder();\n\t\t\t}\n\t\t});\n\t\tbtnNewButton.setBounds(116, 284, 58, 27);\n\t\tbtnNewButton.setText(\"\\u4E0B\\u5355\");\n\t\t\n\t\tButton btnNewButton_1 = new Button(shell, SWT.NONE);\n\t\tbtnNewButton_1.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\tshell.dispose();\n\t\t\t}\n\t\t});\n\t\tbtnNewButton_1.setBounds(225, 284, 58, 27);\n\t\tbtnNewButton_1.setText(\"\\u53D6\\u6D88\");\n\t\t\n\t\tLabel lbl_code = new Label(shell, SWT.NONE);\n\t\tlbl_code.setBounds(116, 91, 60, 17);\n\t\tlbl_code.setText(\"股票代码:\");\n\t\t\n\t\tLabel lbl_upprice = new Label(shell, SWT.NONE);\n\t\tlbl_upprice.setBounds(116, 120, 60, 17);\n\t\tlbl_upprice.setText(\"涨停价格:\");\n\t\t\n\t\tLabel lbl_downprice = new Label(shell, SWT.NONE);\n\t\tlbl_downprice.setBounds(116, 152, 60, 17);\n\t\tlbl_downprice.setText(\"跌停价格:\");\n\t\t\n\t\tLabel lbl_price = new Label(shell, SWT.NONE);\n\t\tlbl_price.setBounds(116, 181, 60, 17);\n\t\tlbl_price.setText(\"委托价格:\");\n\t\t\n\t\tLabel lbl_num = new Label(shell, SWT.NONE);\n\t\tlbl_num.setBounds(116, 210, 60, 17);\n\t\tlbl_num.setText(\"委托数量:\");\n\t\t\n\t\tLabel lbl_date = new Label(shell, SWT.NONE);\n\t\tlbl_date.setBounds(116, 243, 61, 17);\n\t\tlbl_date.setText(\"日 期:\");\n\t\t\n\t\ttext_dateTime = new DateTime(shell, SWT.BORDER);\n\t\ttext_dateTime.setBounds(225, 237, 88, 24);\n\t\t\n\t\tlbl_notice = new Label(shell, SWT.BORDER);\n\t\tlbl_notice.setBounds(316, 333, 125, 17);\n\t\t\n\t\tif (information == null) {\n\n\t\t\tfinal Label lbl_search = new Label(shell, SWT.NONE);\n\t\t\tlbl_search.addMouseListener(new MouseAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void mouseDown(MouseEvent e) {\n\n\t\t\t\t\tlbl_searchEvent();\n\t\t\t\t}\n\t\t\t});\n\t\t\tlbl_search.addMouseTrackListener(new MouseTrackAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void mouseEnter(MouseEvent e) {\n\t\t\t\t\tlbl_search.setBackground(Display.getCurrent()\n\t\t\t\t\t\t\t.getSystemColor(SWT.COLOR_GREEN));\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void mouseExit(MouseEvent e) {\n\t\t\t\t\tlbl_search\n\t\t\t\t\t\t\t.setBackground(Display\n\t\t\t\t\t\t\t\t\t.getCurrent()\n\t\t\t\t\t\t\t\t\t.getSystemColor(\n\t\t\t\t\t\t\t\t\t\t\tSWT.COLOR_TITLE_INACTIVE_BACKGROUND_GRADIENT));\n\t\t\t\t}\n\t\t\t});\n\t\t\tlbl_search\n\t\t\t\t\t.setImage(SWTResourceManager\n\t\t\t\t\t\t\t.getImage(\"C:\\\\Users\\\\Administrator\\\\Desktop\\\\GupiaoNo4\\\\Project\\\\GupiaoNo4\\\\data\\\\检查.png\"));\n\t\t\tlbl_search.setBounds(354, 91, 18, 18);\n\n\t\t\ttext_place = new Text(shell, SWT.BORDER);\n\t\t\ttext_place.setBounds(304, 88, 32, 23);\n\n\t\t} else {\n\t\t\ttrade_shortsell();// 显示文本框内容\n\t\t}\n\t\t\n\t}", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(450, 300);\n\t\tshell.setText(\"SWT Application\");\n\t\t\n\t\tnum1 = new Text(shell, SWT.BORDER);\n\t\tnum1.setBounds(32, 51, 112, 19);\n\t\t\n\t\tnum2 = new Text(shell, SWT.BORDER);\n\t\tnum2.setBounds(32, 120, 112, 19);\n\t\t\n\t\tLabel lblNewLabel = new Label(shell, SWT.NONE);\n\t\tlblNewLabel.setBounds(32, 31, 92, 14);\n\t\tlblNewLabel.setText(\"First Number:\");\n\t\t\n\t\tLabel lblNewLabel_1 = new Label(shell, SWT.NONE);\n\t\tlblNewLabel_1.setBounds(32, 100, 112, 14);\n\t\tlblNewLabel_1.setText(\"Second Number: \");\n\t\t\n\t\tfinal Label answer = new Label(shell, SWT.NONE);\n\t\tanswer.setBounds(35, 204, 60, 14);\n\t\tanswer.setText(\"Answer:\");\n\t\t\n\t\tButton plusButton = new Button(shell, SWT.NONE);\n\t\tplusButton.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tint number1, number2;\n\t\t\t\ttry {\n\t\t\t\t\tnumber1 = Integer.parseInt(num1.getText());\n\t\t\t\t}\n\t\t\t\tcatch (Exception exc) {\n\t\t\t\t\tMessageDialog.openError(shell, \"Error\", \"Bad number\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\tnumber2 = Integer.parseInt(num2.getText());\n\t\t\t\t}\n\t\t\t\tcatch (Exception exc) {\n\t\t\t\t\tMessageDialog.openError(shell, \"Error\", \"Bad number\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tint ans = number1 + number2;\n\t\t\t\tanswer.setText(\"Answer: \" + ans);\n\t\t\t}\n\t\t});\n\t\tplusButton.setBounds(29, 158, 56, 28);\n\t\tplusButton.setText(\"+\");\n\t\t\n\t\t\n\n\t}", "protected void createContents() {\r\n\t\tsetText(\"SWT Application\");\r\n\t\tsetSize(450, 300);\r\n\r\n\t}", "protected void createContents() {\n\t\tshell = new Shell(SWT.CLOSE | SWT.MIN);// 取消最大化与拖拽放大功能\n\t\tshell.setImage(SWTResourceManager.getImage(WelcomPart.class, \"/images/MC.ico\"));\n\t\tshell.setBackgroundImage(SWTResourceManager.getImage(WelcomPart.class, \"/images/back.jpg\"));\n\t\tshell.setBackgroundMode(SWT.INHERIT_DEFAULT);\n\t\tshell.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\tshell.setSize(1157, 720);\n\t\tshell.setText(\"\\u56FE\\u4E66\\u67E5\\u8BE2\");\n\t\tshell.setLocation(Display.getCurrent().getClientArea().width / 2 - shell.getShell().getSize().x / 2,\n\t\t\t\tDisplay.getCurrent().getClientArea().height / 2 - shell.getSize().y / 2);\n\n\t\tMenu menu = new Menu(shell, SWT.BAR);\n\t\tshell.setMenuBar(menu);\n\n\t\tMenuItem menuItem = new MenuItem(menu, SWT.CASCADE);\n\t\tmenuItem.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/base.png\"));\n\t\tmenuItem.setText(\"\\u7A0B\\u5E8F\");\n\n\t\tMenu menu_1 = new Menu(menuItem);\n\t\tmenuItem.setMenu(menu_1);\n\n\t\tMenuItem menuI_main = new MenuItem(menu_1, SWT.NONE);\n\t\tmenuI_main.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/about.png\"));\n\t\tmenuI_main.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tAdmin_BookShow window = new Admin_BookShow();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenuI_main.setText(\"\\u4E3B\\u9875\");\n\n\t\tMenuItem menu_exit = new MenuItem(menu_1, SWT.NONE);\n\t\tmenu_exit.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/reset.png\"));\n\t\tmenu_exit.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tWelcomPart window = new WelcomPart();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenu_exit.setText(\"\\u9000\\u51FA\");\n\n\t\tMenuItem menubook = new MenuItem(menu, SWT.CASCADE);\n\t\tmenubook.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/bookTypeManager.png\"));\n\t\tmenubook.setText(\"\\u56FE\\u4E66\\u7BA1\\u7406\");\n\n\t\tMenu menu_2 = new Menu(menubook);\n\t\tmenubook.setMenu(menu_2);\n\n\t\tMenuItem menu1_add = new MenuItem(menu_2, SWT.NONE);\n\t\tmenu1_add.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/add.png\"));\n\t\tmenu1_add.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tBook_add window = new Book_add();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenu1_add.setText(\"\\u6DFB\\u52A0\\u56FE\\u4E66\");\n\n\t\tMenuItem menu1_select = new MenuItem(menu_2, SWT.NONE);\n\t\tmenu1_select.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/search.png\"));\n\t\tmenu1_select.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t// 图书查询\n\t\t\t\tshell.close();\n\t\t\t\tBook_select window = new Book_select();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenu1_select.setText(\"\\u67E5\\u8BE2\\u56FE\\u4E66\");\n\n\t\tMenuItem menu1_alter = new MenuItem(menu_2, SWT.NONE);\n\t\tmenu1_alter.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/modify.png\"));\n\t\tmenu1_alter.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tBook_alter window = new Book_alter();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenu1_alter.setText(\"\\u4FEE\\u6539\\u56FE\\u4E66\");\n\n\t\tMenuItem menuI1_delete = new MenuItem(menu_2, SWT.NONE);\n\t\tmenuI1_delete.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/exit.png\"));\n\t\tmenuI1_delete.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tBook_del window = new Book_del();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenuI1_delete.setText(\"\\u5220\\u9664\\u56FE\\u4E66\");\n\n\t\tMenuItem menutype = new MenuItem(menu, SWT.CASCADE);\n\t\tmenutype.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/bookManager.png\"));\n\t\tmenutype.setText(\"\\u4E66\\u7C7B\\u7BA1\\u7406\");\n\n\t\tMenu menu_3 = new Menu(menutype);\n\t\tmenutype.setMenu(menu_3);\n\n\t\tMenuItem menu2_add = new MenuItem(menu_3, SWT.NONE);\n\t\tmenu2_add.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/add.png\"));\n\t\tmenu2_add.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tBooktype_add window = new Booktype_add();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenu2_add.setText(\"\\u6DFB\\u52A0\\u4E66\\u7C7B\");\n\n\t\tMenuItem menu2_alter = new MenuItem(menu_3, SWT.NONE);\n\t\tmenu2_alter.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/modify.png\"));\n\t\tmenu2_alter.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tBooktype_alter window = new Booktype_alter();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenu2_alter.setText(\"\\u4FEE\\u6539\\u4E66\\u7C7B\");\n\n\t\tMenuItem menu2_delete = new MenuItem(menu_3, SWT.NONE);\n\t\tmenu2_delete.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/exit.png\"));\n\t\tmenu2_delete.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tBooktype_delete window = new Booktype_delete();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenu2_delete.setText(\"\\u5220\\u9664\\u4E66\\u7C7B\");\n\n\t\tMenuItem menumark = new MenuItem(menu, SWT.CASCADE);\n\t\tmenumark.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/student.png\"));\n\t\tmenumark.setText(\"\\u501F\\u8FD8\\u8BB0\\u5F55\");\n\n\t\tMenu menu_4 = new Menu(menumark);\n\t\tmenumark.setMenu(menu_4);\n\n\t\tMenuItem menu3_borrow = new MenuItem(menu_4, SWT.NONE);\n\t\tmenu3_borrow.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/edit.png\"));\n\t\tmenu3_borrow.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tAdmin_borrowmark window = new Admin_borrowmark();\n\t\t\t\twindow.open();// 借书记录\n\t\t\t}\n\t\t});\n\t\tmenu3_borrow.setText(\"\\u501F\\u4E66\\u8BB0\\u5F55\");\n\n\t\tMenuItem menu3_return = new MenuItem(menu_4, SWT.NONE);\n\t\tmenu3_return.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/search.png\"));\n\t\tmenu3_return.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tAdmin_returnmark window = new Admin_returnmark();\n\t\t\t\twindow.open();// 还书记录\n\t\t\t}\n\t\t});\n\t\tmenu3_return.setText(\"\\u8FD8\\u4E66\\u8BB0\\u5F55\");\n\n\t\tMenuItem mntmhelp = new MenuItem(menu, SWT.CASCADE);\n\t\tmntmhelp.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/about.png\"));\n\t\tmntmhelp.setText(\"\\u5173\\u4E8E\");\n\n\t\tMenu menu_5 = new Menu(mntmhelp);\n\t\tmntmhelp.setMenu(menu_5);\n\n\t\tMenuItem menu4_Info = new MenuItem(menu_5, SWT.NONE);\n\t\tmenu4_Info.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/me.png\"));\n\t\tmenu4_Info.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tAdmin_Info window = new Admin_Info();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenu4_Info.setText(\"\\u8F6F\\u4EF6\\u4FE1\\u606F\");\n\n\t\ttable = new Table(shell, SWT.BORDER | SWT.FULL_SELECTION);\n\t\ttable.setFont(SWTResourceManager.getFont(\"黑体\", 10, SWT.NORMAL));\n\t\ttable.setLinesVisible(true);\n\t\ttable.setHeaderVisible(true);\n\t\ttable.setBounds(10, 191, 1119, 447);\n\n\t\tTableColumn tableColumn = new TableColumn(table, SWT.CENTER);\n\t\ttableColumn.setWidth(29);\n\n\t\tTableColumn tableColumn_id = new TableColumn(table, SWT.CENTER);\n\t\ttableColumn_id.setWidth(110);\n\t\ttableColumn_id.setText(\"\\u56FE\\u4E66\\u7F16\\u53F7\");\n\n\t\tTableColumn tableColumn_name = new TableColumn(table, SWT.CENTER);\n\t\ttableColumn_name.setWidth(216);\n\t\ttableColumn_name.setText(\"\\u56FE\\u4E66\\u540D\\u79F0\");\n\n\t\tTableColumn tableColumn_author = new TableColumn(table, SWT.CENTER);\n\t\ttableColumn_author.setWidth(117);\n\t\ttableColumn_author.setText(\"\\u56FE\\u4E66\\u79CD\\u7C7B\");\n\n\t\tTableColumn tableColumn_pub = new TableColumn(table, SWT.CENTER);\n\t\ttableColumn_pub.setWidth(148);\n\t\ttableColumn_pub.setText(\"\\u4F5C\\u8005\");\n\n\t\tTableColumn tableColumn_stock = new TableColumn(table, SWT.CENTER);\n\t\ttableColumn_stock.setWidth(167);\n\t\ttableColumn_stock.setText(\"\\u51FA\\u7248\\u793E\");\n\n\t\tTableColumn tableColumn_sortid = new TableColumn(table, SWT.CENTER);\n\t\ttableColumn_sortid.setWidth(79);\n\t\ttableColumn_sortid.setText(\"\\u5E93\\u5B58\");\n\n\t\tTableColumn tableColumn_record = new TableColumn(table, SWT.CENTER);\n\t\ttableColumn_record.setWidth(247);\n\t\ttableColumn_record.setText(\"\\u767B\\u8BB0\\u65F6\\u95F4\");\n\n\t\tCombo combo_way = new Combo(shell, SWT.NONE);\n\t\tcombo_way.add(\"图书编号\");\n\t\tcombo_way.add(\"图书名称\");\n\t\tcombo_way.add(\"图书作者\");\n\t\tcombo_way.setFont(SWTResourceManager.getFont(\"黑体\", 12, SWT.NORMAL));\n\t\tcombo_way.setBounds(314, 157, 131, 28);\n\n\t\t// 遍历查询book表\n\t\tButton btnButton_select = new Button(shell, SWT.NONE);\n\t\tbtnButton_select.setImage(SWTResourceManager.getImage(Book_select.class, \"/images/search.png\"));\n\t\tbtnButton_select.setFont(SWTResourceManager.getFont(\"黑体\", 12, SWT.NORMAL));\n\t\tbtnButton_select.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tBook book = new Book();\n\t\t\t\tSelectbook selectbook = new Selectbook();\n\t\t\t\ttable.removeAll();\n\t\t\t\tif (combo_way.getText().equals(\"图书编号\")) {\n\t\t\t\t\tbook.setBook_id(text_select.getText().trim());\n\t\t\t\t\tString str[][] = selectbook.ShowAidBook(book);\n\t\t\t\t\tfor (int i = 1; i < str.length; i++) {\n\t\t\t\t\t\tTableItem item = new TableItem(table, SWT.NONE);\n\t\t\t\t\t\titem.setText(i + \".\");\n\t\t\t\t\t\titem.setText(str[i]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (combo_way.getText().equals(\"图书名称\")) {\n\t\t\t\t\tbook.setBook_name(\"%\" + text_select.getText().trim() + \"%\");\n\t\t\t\t\tString str[][] = selectbook.ShowAnameBook(book);\n\t\t\t\t\tfor (int i = 1; i < str.length; i++) {\n\t\t\t\t\t\tTableItem item = new TableItem(table, SWT.NONE);\n\t\t\t\t\t\titem.setText(i + \".\");\n\t\t\t\t\t\titem.setText(str[i]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (combo_way.getText().equals(\"图书作者\")) {\n\t\t\t\t\tbook.setBook_author(\"%\" + text_select.getText().trim() + \"%\");\n\t\t\t\t\tString str[][] = selectbook.ShowAauthorBook(book);\n\t\t\t\t\tfor (int i = 1; i < str.length; i++) {\n\t\t\t\t\t\tTableItem item = new TableItem(table, SWT.NONE);\n\t\t\t\t\t\titem.setText(i + \".\");\n\t\t\t\t\t\titem.setText(str[i]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (combo_way.getText().length() == 0) {\n\t\t\t\t\tString str[][] = selectbook.ShowAllBook();\n\t\t\t\t\tfor (int i = 1; i < str.length; i++) {\n\t\t\t\t\t\tTableItem item = new TableItem(table, SWT.NONE);\n\t\t\t\t\t\titem.setText(i + \".\");\n\t\t\t\t\t\titem.setText(str[i]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnButton_select.setBounds(664, 155, 98, 30);\n\t\tbtnButton_select.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\tbtnButton_select.setText(\"查询\");\n\n\t\ttext_select = new Text(shell, SWT.BORDER);\n\t\ttext_select.setBounds(472, 155, 186, 30);\n\n\t\tLabel lblNewLabel_way = new Label(shell, SWT.NONE);\n\t\tlblNewLabel_way.setForeground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\tlblNewLabel_way.setFont(SWTResourceManager.getFont(\"黑体\", 12, SWT.NORMAL));\n\t\tlblNewLabel_way.setBounds(314, 128, 107, 30);\n\t\tlblNewLabel_way.setText(\"\\u67E5\\u8BE2\\u65B9\\u5F0F\\uFF1A\");\n\n\t\tLabel lblNewLabel_1 = new Label(shell, SWT.NONE);\n\t\tlblNewLabel_1.setText(\"\\u56FE\\u4E66\\u67E5\\u8BE2\");\n\t\tlblNewLabel_1.setForeground(SWTResourceManager.getColor(255, 255, 255));\n\t\tlblNewLabel_1.setFont(SWTResourceManager.getFont(\"黑体\", 25, SWT.BOLD));\n\t\tlblNewLabel_1.setAlignment(SWT.CENTER);\n\t\tlblNewLabel_1.setBounds(392, 54, 266, 48);\n\n\t\tLabel lblNewLabel = new Label(shell, SWT.NONE);\n\t\tlblNewLabel.setText(\"\\u8F93\\u5165\\uFF1A\");\n\t\tlblNewLabel.setForeground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\tlblNewLabel.setFont(SWTResourceManager.getFont(\"黑体\", 12, SWT.NORMAL));\n\t\tlblNewLabel.setBounds(472, 129, 76, 20);\n\n\t}", "protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setSize(450, 395);\r\n\t\tshell.setText(\"SWT Application\");\r\n\t\t\r\n\t\tnachname = new Text(shell, SWT.BORDER);\r\n\t\tnachname.setBounds(32, 27, 76, 21);\r\n\t\t\r\n\t\tvorname = new Text(shell, SWT.BORDER);\r\n\t\tvorname.setBounds(32, 66, 76, 21);\r\n\t\t\r\n\t\tLabel lblNachname = new Label(shell, SWT.NONE);\r\n\t\tlblNachname.setBounds(135, 33, 55, 15);\r\n\t\tlblNachname.setText(\"Nachname\");\r\n\t\t\r\n\t\tLabel lblVorname = new Label(shell, SWT.NONE);\r\n\t\tlblVorname.setBounds(135, 66, 55, 15);\r\n\t\tlblVorname.setText(\"Vorname\");\r\n\t\t\r\n\t\tButton btnFgeListeHinzu = new Button(shell, SWT.NONE);\r\n\t\tbtnFgeListeHinzu.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\t//\r\n\t\t\t\tPerson p = new Person();\r\n\t\t\t\tp.setNachname(getNachname().getText());\r\n\t\t\t\tp.setVorname(getVorname().getText());\r\n\t\t\t\t//\r\n\t\t\t\tPerson.getPersonenListe().add(p);\r\n\t\t\t\tgetGuiListe().add(p.toString());\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnFgeListeHinzu.setBounds(43, 127, 147, 25);\r\n\t\tbtnFgeListeHinzu.setText(\"f\\u00FCge liste hinzu\");\r\n\t\t\r\n\t\tButton btnWriteJson = new Button(shell, SWT.NONE);\r\n\t\tbtnWriteJson.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tPerson.write2JSON();\r\n\t\t\t\t\t//\r\n\t\t\t\t\tMessageBox mb = new MessageBox(shell, SWT.ICON_INFORMATION | SWT.OK);\r\n\t\t\t\t\tmb.setText(\"JSON geschrieben\");\r\n\t\t\t\t\tmb.setMessage(Person.getPersonenListe().size() + \" Einträge erfolgreich geschrieben\");\r\n\t\t\t\t\tmb.open();\r\n\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\tMessageBox mb = new MessageBox(shell, SWT.ICON_ERROR | SWT.OK);\r\n\t\t\t\t\tmb.setText(\"Fehler bei JSON\");\r\n\t\t\t\t\tmb.setMessage(e1.getMessage());\r\n\t\t\t\t\tmb.open();\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnWriteJson.setBounds(54, 171, 75, 25);\r\n\t\tbtnWriteJson.setText(\"write 2 json\");\r\n\t\t\r\n\t\tguiListe = new List(shell, SWT.BORDER);\r\n\t\tguiListe.setBounds(43, 221, 261, 125);\r\n\r\n\t}", "protected void createContents() {\n\t\tshlMenu = new Shell();\n\t\tshlMenu.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/File-delete-icon.png\"));\n\t\tshlMenu.setBackground(SWTResourceManager.getColor(255, 102, 0));\n\t\tshlMenu.setSize(899, 578);\n\t\tshlMenu.setText(\"MENU\");\n\t\t\n\t\tMenu menu = new Menu(shlMenu, SWT.BAR);\n\t\tshlMenu.setMenuBar(menu);\n\t\t\n\t\tMenuItem mnętmBookLists = new MenuItem(menu, SWT.NONE);\n\t\tmnętmBookLists.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call booklist frame \n\t\t\t\tBookListFrame window = new BookListFrame();\n\t\t\t\twindow.open();\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tmnętmBookLists.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Business-Todo-List-icon.png\"));\n\t\tmnętmBookLists.setText(\"Book Lists\");\n\t\t\n\t\tMenuItem mnętmMemberList = new MenuItem(menu, SWT.NONE);\n\t\tmnętmMemberList.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call memberlistframe\n\t\t\t\tMemberListFrame window = new MemberListFrame();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmnętmMemberList.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Misc-User-icon.png\"));\n\t\tmnętmMemberList.setText(\"Member List\");\n\t\t\n\t\tMenuItem mnętmNewItem = new MenuItem(menu, SWT.NONE);\n\t\tmnętmNewItem.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call rent list\n\t\t\t\tRentListFrame rlf=new RentListFrame();\n\t\t\t\trlf.open();\n\t\t\t}\n\t\t});\n\t\tmnętmNewItem.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Time-And-Date-Calendar-icon.png\"));\n\t\tmnętmNewItem.setText(\"Rent List\");\n\t\t\n\t\tButton btnNewButton = new Button(shlMenu, SWT.NONE);\n\t\tbtnNewButton.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call booksettingsframe\n\t\t\t\tBookSettingsFrame window = new BookSettingsFrame();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tbtnNewButton.setForeground(SWTResourceManager.getColor(SWT.COLOR_INFO_BACKGROUND));\n\t\tbtnNewButton.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Printing-Books-icon.png\"));\n\t\tbtnNewButton.setBounds(160, 176, 114, 112);\n\t\t\n\t\tButton btnNewButton_1 = new Button(shlMenu, SWT.NONE);\n\t\tbtnNewButton_1.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call membersettingsframe\n\t\t\t\tMemberSettingsFrame window = new MemberSettingsFrame();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tbtnNewButton_1.setForeground(SWTResourceManager.getColor(SWT.COLOR_INFO_BACKGROUND));\n\t\tbtnNewButton_1.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Add-User-icon.png\"));\n\t\tbtnNewButton_1.setBounds(367, 176, 114, 112);\n\t\t\n\t\tButton btnNewButton_2 = new Button(shlMenu, SWT.NONE);\n\t\tbtnNewButton_2.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tRentingFrame rf=new RentingFrame();\n\t\t\t\trf.open();\n\t\t\t}\n\t\t});\n\t\tbtnNewButton_2.setForeground(SWTResourceManager.getColor(SWT.COLOR_INFO_BACKGROUND));\n\t\tbtnNewButton_2.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Business-Statistics-icon.png\"));\n\t\tbtnNewButton_2.setBounds(567, 176, 114, 112);\n\n\t}", "private void createContents() throws SQLException {\n\t\tshell = new Shell(getParent(), SWT.SHELL_TRIM);\n\t\tshell.setImage(user.getIcondata().BaoduongIcon);\n\t\tshell.setLayout(new GridLayout(2, false));\n\t\tsetText(\"Tạo Công việc (Đợt Bảo dưỡng)\");\n\t\tshell.setSize(777, 480);\n\t\tnew FormTemplate().setCenterScreen(shell);\n\n\t\tFill_ItemData fi = new Fill_ItemData();\n\n\t\tSashForm sashForm = new SashForm(shell, SWT.NONE);\n\t\tsashForm.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 2, 1));\n\n\t\tSashForm sashForm_3 = new SashForm(sashForm, SWT.VERTICAL);\n\n\t\tSashForm sashForm_2 = new SashForm(sashForm_3, SWT.NONE);\n\t\tComposite composite = new Composite(sashForm_2, SWT.NONE);\n\t\tcomposite.setLayout(new GridLayout(2, false));\n\n\t\tLabel label_2 = new Label(composite, SWT.NONE);\n\t\tlabel_2.setText(\"Tên đợt Bảo dưỡng*:\");\n\n\t\ttext_Tendot_Baoduong = new Text(composite, SWT.BORDER);\n\t\ttext_Tendot_Baoduong.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\n\n\t\tLabel label_3 = new Label(composite, SWT.NONE);\n\t\tGridData gd_label_3 = new GridData(SWT.LEFT, SWT.TOP, false, false, 1, 1);\n\t\tgd_label_3.verticalIndent = 3;\n\t\tlabel_3.setLayoutData(gd_label_3);\n\t\tlabel_3.setText(\"Loại phương tiện:\");\n\n\t\tcombo_Loaiphuongtien = new Combo(composite, SWT.READ_ONLY);\n\t\tcombo_Loaiphuongtien.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tif (ViewAndEdit_MODE_dsb != null) {\n\t\t\t\t\tFill_ItemData f = new Fill_ItemData();\n\t\t\t\t\tif ((int) combo_Loaiphuongtien.getData(combo_Loaiphuongtien.getText()) == f.getInt_Xemay()) {\n\t\t\t\t\t\tViewAndEdit_MODE_dsb.setLOAI_PHUONG_TIEN(f.getInt_Xemay());\n\t\t\t\t\t\ttree_PTTS.removeAll();\n\t\t\t\t\t} else if ((int) combo_Loaiphuongtien.getData(combo_Loaiphuongtien.getText()) == f.getInt_Oto()) {\n\t\t\t\t\t\tViewAndEdit_MODE_dsb.setLOAI_PHUONG_TIEN(f.getInt_Oto());\n\t\t\t\t\t\ttree_PTTS.removeAll();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tcombo_Loaiphuongtien.setLayoutData(new GridData(SWT.FILL, SWT.TOP, true, false, 1, 1));\n\t\tfi.setComboBox_LOAIPHUONGTIEN_Phuongtien_Giaothong(combo_Loaiphuongtien, 0);\n\n\t\tLabel label_4 = new Label(composite, SWT.NONE);\n\t\tGridData gd_label_4 = new GridData(SWT.LEFT, SWT.TOP, false, false, 1, 1);\n\t\tgd_label_4.verticalIndent = 3;\n\t\tlabel_4.setLayoutData(gd_label_4);\n\t\tlabel_4.setText(\"Mô tả:\");\n\n\t\ttext_Mota = new Text(composite, SWT.BORDER | SWT.WRAP | SWT.V_SCROLL | SWT.MULTI);\n\t\ttext_Mota.setLayoutData(new GridData(SWT.FILL, SWT.FILL, false, true, 1, 1));\n\t\tnew Label(composite, SWT.NONE);\n\n\t\tbtnNgunSaCha = new Button(composite, SWT.NONE);\n\t\tGridData gd_btnNgunSaCha = new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1);\n\t\tgd_btnNgunSaCha.widthHint = 85;\n\t\tbtnNgunSaCha.setLayoutData(gd_btnNgunSaCha);\n\t\tbtnNgunSaCha.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tChonNguonSuachua_Baoduong cnsb = new ChonNguonSuachua_Baoduong(shell, SWT.DIALOG_TRIM, user);\n\t\t\t\t\tcnsb.open();\n\t\t\t\t\tnsb = cnsb.getResult();\n\t\t\t\t\tif (ViewAndEdit_MODE_dsb == null) {\n\t\t\t\t\t\tfillNguonSuachuaBaoduong(nsb);\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tif (nsb == null) {\n\t\t\t\t\t\tMessageBox m = new MessageBox(shell, SWT.ICON_QUESTION | SWT.YES | SWT.NO | SWT.CLOSE);\n\t\t\t\t\t\tm.setText(\"Xóa dữ liệu cũ?\");\n\t\t\t\t\t\tm.setMessage(\"Bạn muốn xóa dữ liệu cũ?\");\n\t\t\t\t\t\tint rc = m.open();\n\t\t\t\t\t\tswitch (rc) {\n\t\t\t\t\t\tcase SWT.CANCEL:\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase SWT.YES:\n\t\t\t\t\t\t\tViewAndEdit_MODE_dsb.setMA_NGUONSUACHUA_BAODUONG(-1);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase SWT.NO:\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tViewAndEdit_MODE_dsb.setMA_NGUONSUACHUA_BAODUONG(nsb.getMA_NGUONSUACHUA_BAODUONG());\n\t\t\t\t\t}\n\t\t\t\t\tcontroler.getControl_DOT_THUCHIEN_SUACHUA_BAODUONG()\n\t\t\t\t\t\t\t.update_DOT_THUCHIEN_SUACHUA_BAODUONG(ViewAndEdit_MODE_dsb);\n\t\t\t\t\tfillNguonSuachuaBaoduong(ViewAndEdit_MODE_dsb);\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnNgunSaCha.setText(\"Liên hệ\");\n\t\tbtnNgunSaCha.setImage(user.getIcondata().PhoneIcon);\n\n\t\tComposite composite_1 = new Composite(sashForm_2, SWT.NONE);\n\t\tcomposite_1.setLayout(new GridLayout(2, false));\n\n\t\tLabel lblSXut = new Label(composite_1, SWT.NONE);\n\t\tlblSXut.setText(\"Số đề xuất: \");\n\n\t\ttext_Sodexuat = new Text(composite_1, SWT.NONE);\n\t\ttext_Sodexuat.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\ttext_Sodexuat.setEditable(false);\n\t\ttext_Sodexuat.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\n\t\tLabel lblNgyThng = new Label(composite_1, SWT.NONE);\n\t\tlblNgyThng.setText(\"Ngày tháng: \");\n\n\t\ttext_NgaythangVanban = new Text(composite_1, SWT.NONE);\n\t\ttext_NgaythangVanban.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\ttext_NgaythangVanban.setEditable(false);\n\t\ttext_NgaythangVanban.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\n\t\tLabel lblnV = new Label(composite_1, SWT.NONE);\n\t\tlblnV.setText(\"Đơn vị: \");\n\n\t\ttext_Donvi = new Text(composite_1, SWT.NONE);\n\t\ttext_Donvi.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\ttext_Donvi.setEditable(false);\n\t\ttext_Donvi.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\n\t\tLabel lblNgyXL = new Label(composite_1, SWT.NONE);\n\t\tlblNgyXL.setText(\"Ngày xử lý:\");\n\n\t\ttext_Ngaytiepnhan = new Text(composite_1, SWT.NONE);\n\t\ttext_Ngaytiepnhan.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\ttext_Ngaytiepnhan.setEditable(false);\n\t\ttext_Ngaytiepnhan.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\n\t\tLabel lblNgyGiao = new Label(composite_1, SWT.NONE);\n\t\tlblNgyGiao.setText(\"Ngày giao:\");\n\n\t\ttext_Ngaygiao = new Text(composite_1, SWT.NONE);\n\t\ttext_Ngaygiao.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\ttext_Ngaygiao.setEditable(false);\n\t\ttext_Ngaygiao.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\n\t\tLabel lblTrchYu = new Label(composite_1, SWT.NONE);\n\t\tGridData gd_lblTrchYu = new GridData(SWT.LEFT, SWT.TOP, false, false, 1, 1);\n\t\tgd_lblTrchYu.verticalIndent = 3;\n\t\tlblTrchYu.setLayoutData(gd_lblTrchYu);\n\t\tlblTrchYu.setText(\"Ghi chú: \");\n\n\t\ttext_Trichyeu = new Text(composite_1, SWT.NONE);\n\t\ttext_Trichyeu.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\ttext_Trichyeu.setEditable(false);\n\t\tGridData gd_text_Trichyeu = new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1);\n\t\tgd_text_Trichyeu.heightHint = 27;\n\t\ttext_Trichyeu.setLayoutData(gd_text_Trichyeu);\n\t\tnew Label(composite_1, SWT.NONE);\n\n\t\tbtnThemDexuat = new Button(composite_1, SWT.NONE);\n\t\tbtnThemDexuat.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tInsert_dx = null;\n\t\t\t\t\tif (ViewAndEdit_MODE_dsb != null\n\t\t\t\t\t\t\t&& ViewAndEdit_MODE_dsb.getMA_DOT_THUCHIEN_SUACHUA_BAODUONG() > 0) {\n\t\t\t\t\t\tInsert_dx = controler.getControl_DEXUAT().get_DEXUAT(ViewAndEdit_MODE_dsb);\n\t\t\t\t\t}\n\t\t\t\t\tif (Insert_dx != null) {\n\t\t\t\t\t\tTAPHOSO ths = controler.getControl_TAPHOSO().get_TAP_HO_SO(Insert_dx.getMA_TAPHOSO());\n\t\t\t\t\t\tTaphoso_View thsv = new Taphoso_View(shell, SWT.DIALOG_TRIM, user, ths, false);\n\t\t\t\t\t\tthsv.open();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tNhapDeXuat ndx = new NhapDeXuat(shell, SWT.DIALOG_TRIM, user);\n\t\t\t\t\t\tndx.open();\n\t\t\t\t\t\tInsert_dx = ndx.result;\n\t\t\t\t\t\tif (Insert_dx == null)\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tfillDexuat(Insert_dx);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (ViewAndEdit_MODE_dsb == null)\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\tif (ViewAndEdit_MODE_dsb.getMA_DOT_THUCHIEN_SUACHUA_BAODUONG() <= 0)\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\tint Ma_Quatrinh_Dexuat_thuchien = getMaQuantrinhDexuatThuchien(Insert_dx);\n\t\t\t\t\t\tif (Ma_Quatrinh_Dexuat_thuchien <= 0)\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\tboolean ict = controler.getControl_DOT_THUCHIEN_SUACHUA_BAODUONG()\n\t\t\t\t\t\t\t\t.update_DOT_THUCHIEN_SUACHUA_BAODUONG_Update_QUATRINH_DEXUAT_THUCHIEN(\n\t\t\t\t\t\t\t\t\t\tViewAndEdit_MODE_dsb, Ma_Quatrinh_Dexuat_thuchien);\n\t\t\t\t\t\tif (ict) {\n\t\t\t\t\t\t\tMessageBox m = new MessageBox(shell, SWT.ICON_WORKING);\n\t\t\t\t\t\t\tm.setText(\"Hoàn tất\");\n\t\t\t\t\t\t\tm.setMessage(\"Thêm Đề xuất Hoàn tất\");\n\t\t\t\t\t\t\tm.open();\n\t\t\t\t\t\t\tfillDexuat(Insert_dx);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} catch (NullPointerException | SQLException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnThemDexuat.setImage(user.getIcondata().DexuatIcon);\n\t\tbtnThemDexuat.setLayoutData(new GridData(SWT.FILL, SWT.BOTTOM, false, false, 1, 1));\n\t\tbtnThemDexuat.setText(\"Thêm Hồ sơ\");\n\t\tsashForm_2.setWeights(new int[] { 1000, 618 });\n\n\t\tSashForm sashForm_1 = new SashForm(sashForm_3, SWT.NONE);\n\t\ttree_PTTS = new Tree(sashForm_1, SWT.BORDER | SWT.FULL_SELECTION | SWT.MULTI);\n\t\ttree_PTTS.setLinesVisible(true);\n\t\ttree_PTTS.setHeaderVisible(true);\n\t\ttree_PTTS.addListener(SWT.Selection, new Listener() {\n\t\t\t@Override\n\t\t\tpublic void handleEvent(Event arg0) {\n\t\t\t\tTreeItem[] til = tree_PTTS.getSelection();\n\t\t\t\tif (til.length > 0) {\n\t\t\t\t\tRow_PTTSthamgia_Baoduong pttg = (Row_PTTSthamgia_Baoduong) til[0].getData();\n\t\t\t\t\tsetHinhthuc_Baoduong(pttg.getHtbd());\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\ttree_PTTS.addListener(SWT.SetData, new Listener() {\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\tif (tree_PTTS.getItems().length > 0) {\n\t\t\t\t\tcombo_Loaiphuongtien.setEnabled(false);\n\t\t\t\t} else {\n\t\t\t\t\tcombo_Loaiphuongtien.setEnabled(true);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tTreeColumn trclmnStt = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnStt.setWidth(50);\n\t\ttrclmnStt.setText(\"Stt\");\n\n\t\tTreeColumn trclmnTnMT = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnTnMT.setWidth(100);\n\t\ttrclmnTnMT.setText(\"Tên, mô tả\");\n\n\t\tTreeColumn trclmnHngSnXut = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnHngSnXut.setWidth(100);\n\t\ttrclmnHngSnXut.setText(\"Hãng sản xuất\");\n\n\t\tTreeColumn trclmnDngXe = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnDngXe.setWidth(100);\n\t\ttrclmnDngXe.setText(\"Dòng xe\");\n\n\t\tTreeColumn trclmnBinS = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnBinS.setWidth(100);\n\t\ttrclmnBinS.setText(\"Biển số\");\n\n\t\tTreeColumn trclmnNgySDng = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnNgySDng.setWidth(100);\n\t\ttrclmnNgySDng.setText(\"Ngày sử dụng\");\n\n\t\tTreeColumn trclmnMPhngTin = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnMPhngTin.setWidth(90);\n\t\ttrclmnMPhngTin.setText(\"Mã PTTS\");\n\n\t\tMenu menu = new Menu(tree_PTTS);\n\t\ttree_PTTS.setMenu(menu);\n\n\t\tMenuItem mntmThmPhngTin = new MenuItem(menu, SWT.NONE);\n\t\tmntmThmPhngTin.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tThem_PTGT();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tmntmThmPhngTin.setText(\"Thêm phương tiện tài sản\");\n\n\t\tMenuItem mntmXoa = new MenuItem(menu, SWT.NONE);\n\t\tmntmXoa.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tdelete();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\n\t\t});\n\t\tmntmXoa.setText(\"Xóa\");\n\n\t\tTreeColumn trclmnThayNht = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayNht.setWidth(70);\n\t\ttrclmnThayNht.setText(\"Thay nhớt\");\n\n\t\tTreeColumn trclmnThayLcNht = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayLcNht.setWidth(100);\n\t\ttrclmnThayLcNht.setText(\"Thay lọc nhớt\");\n\n\t\tTreeColumn trclmnThayLcGi = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayLcGi.setWidth(100);\n\t\ttrclmnThayLcGi.setText(\"Thay lọc gió\");\n\n\t\tTreeColumn trclmnThayLcNhin = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayLcNhin.setWidth(100);\n\t\ttrclmnThayLcNhin.setText(\"Thay lọc nhiên liệu\");\n\n\t\tTreeColumn trclmnThayDuPhanh = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayDuPhanh.setWidth(100);\n\t\ttrclmnThayDuPhanh.setText(\"Thay Dầu phanh - ly hợp\");\n\n\t\tTreeColumn trclmnThayDuHp = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayDuHp.setWidth(100);\n\t\ttrclmnThayDuHp.setText(\"Thay Dầu hộp số\");\n\n\t\tTreeColumn trclmnThayDuVi = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayDuVi.setWidth(100);\n\t\ttrclmnThayDuVi.setText(\"Thay Dầu vi sai\");\n\n\t\tTreeColumn trclmnLcGiGin = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnLcGiGin.setWidth(100);\n\t\ttrclmnLcGiGin.setText(\"Lọc gió giàn lạnh\");\n\n\t\tTreeColumn trclmnThayDuTr = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayDuTr.setWidth(100);\n\t\ttrclmnThayDuTr.setText(\"Thay dầu trợ lực lái\");\n\n\t\tTreeColumn trclmnBoDngKhcs = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnBoDngKhcs.setWidth(100);\n\t\ttrclmnBoDngKhcs.setText(\"Bảo dưỡng khác\");\n\n\t\tExpandBar expandBar = new ExpandBar(sashForm_1, SWT.V_SCROLL);\n\t\texpandBar.setForeground(SWTResourceManager.getColor(SWT.COLOR_LIST_FOREGROUND));\n\n\t\tExpandItem xpndtmLoiHnhBo = new ExpandItem(expandBar, SWT.NONE);\n\t\txpndtmLoiHnhBo.setText(\"Loại hình bảo dưỡng\");\n\n\t\tComposite grpHnhThcBo = new Composite(expandBar, SWT.NONE);\n\t\txpndtmLoiHnhBo.setControl(grpHnhThcBo);\n\t\tgrpHnhThcBo.setLayout(new GridLayout(1, false));\n\n\t\tbtnDaudongco = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnDaudongco.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnDaudongco.setText(\"Dầu động cơ\");\n\n\t\tbtnLocdaudongco = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnLocdaudongco.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnLocdaudongco.setText(\"Lọc dầu động cơ\");\n\n\t\tbtnLocgio = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnLocgio.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnLocgio.setText(\"Lọc gió\");\n\n\t\tbtnLocnhienlieu = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnLocnhienlieu.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnLocnhienlieu.setText(\"Lọc nhiên liệu\");\n\n\t\tbtnDauphanh_lyhop = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnDauphanh_lyhop.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnDauphanh_lyhop.setText(\"Dầu phanh và dầu ly hợp\");\n\n\t\tbtnDauhopso = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnDauhopso.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnDauhopso.setText(\"Dầu hộp số\");\n\n\t\tbtnDauvisai = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnDauvisai.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnDauvisai.setText(\"Dầu vi sai\");\n\n\t\tbtnLocgiogianlanh = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnLocgiogianlanh.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnLocgiogianlanh.setText(\"Lọc gió giàn lạnh\");\n\n\t\tbtnDautroluclai = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnDautroluclai.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnDautroluclai.setText(\"Dầu trợ lực lái\");\n\n\t\tbtnBaoduongkhac = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnBaoduongkhac.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnBaoduongkhac.setText(\"Bảo dưỡng khác\");\n\t\txpndtmLoiHnhBo.setHeight(xpndtmLoiHnhBo.getControl().computeSize(SWT.DEFAULT, SWT.DEFAULT).y);\n\n\t\tExpandItem xpndtmLinH = new ExpandItem(expandBar, SWT.NONE);\n\t\txpndtmLinH.setText(\"Liên hệ\");\n\n\t\tComposite composite_2 = new Composite(expandBar, SWT.NONE);\n\t\txpndtmLinH.setControl(composite_2);\n\t\tcomposite_2.setLayout(new GridLayout(2, false));\n\n\t\tLabel lblTnLinH = new Label(composite_2, SWT.NONE);\n\t\tlblTnLinH.setText(\"Tên liên hệ: \");\n\n\t\ttext_Tenlienhe = new Text(composite_2, SWT.BORDER);\n\t\ttext_Tenlienhe.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\n\t\tLabel lblGiiThiu = new Label(composite_2, SWT.NONE);\n\t\tGridData gd_lblGiiThiu = new GridData(SWT.LEFT, SWT.TOP, false, false, 1, 1);\n\t\tgd_lblGiiThiu.verticalIndent = 3;\n\t\tlblGiiThiu.setLayoutData(gd_lblGiiThiu);\n\t\tlblGiiThiu.setText(\"Giới thiệu: \");\n\n\t\ttext_Gioithieu = new Text(composite_2, SWT.BORDER);\n\t\ttext_Gioithieu.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));\n\n\t\tLabel lblLinH = new Label(composite_2, SWT.NONE);\n\t\tGridData gd_lblLinH = new GridData(SWT.LEFT, SWT.TOP, false, false, 1, 1);\n\t\tgd_lblLinH.verticalIndent = 3;\n\t\tlblLinH.setLayoutData(gd_lblLinH);\n\t\tlblLinH.setText(\"Liên hệ: \");\n\n\t\ttext_Lienhe = new Text(composite_2, SWT.BORDER);\n\t\ttext_Lienhe.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));\n\t\txpndtmLinH.setHeight(120);\n\t\tsashForm_1.setWeights(new int[] { 543, 205 });\n\t\tsashForm_3.setWeights(new int[] { 170, 228 });\n\t\tsashForm.setWeights(new int[] { 1000 });\n\n\t\tbtnLuu = new Button(shell, SWT.NONE);\n\t\tbtnLuu.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tif (dataCreate != null) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tTaoMoi_DotSuachua_Baoduong();\n\t\t\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tupdateField();\n\t\t\t\t\t}\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tprivate void TaoMoi_DotSuachua_Baoduong() throws SQLException {\n\t\t\t\tif (checkTextNotNULL()) {\n\t\t\t\t\tDOT_THUCHIEN_SUACHUA_BAODUONG dsb = getDOT_SUACHUA_BAODUONG();\n\t\t\t\t\tint key = controler.getControl_DOT_THUCHIEN_SUACHUA_BAODUONG()\n\t\t\t\t\t\t\t.InsertDOT_THUCHIEN_SUACHUA_BAODUONG(dsb, null, null);\n\t\t\t\t\tdsb.setMA_DOT_THUCHIEN_SUACHUA_BAODUONG(key);\n\t\t\t\t\tif (key >= 0) {\n\t\t\t\t\t\tif (nsb != null)\n\t\t\t\t\t\t\tdsb.setMA_NGUONSUACHUA_BAODUONG(nsb.getMA_NGUONSUACHUA_BAODUONG());\n\t\t\t\t\t\tcontroler.getControl_DOT_THUCHIEN_SUACHUA_BAODUONG().update_DOT_THUCHIEN_SUACHUA_BAODUONG(dsb);\n\t\t\t\t\t\tint Ma_Quatrinh_Dexuat_thuchien = getMaQuantrinhDexuatThuchien(Insert_dx);\n\t\t\t\t\t\tif (Ma_Quatrinh_Dexuat_thuchien > 0)\n\t\t\t\t\t\t\tcontroler.getControl_DOT_THUCHIEN_SUACHUA_BAODUONG()\n\t\t\t\t\t\t\t\t\t.update_DOT_THUCHIEN_SUACHUA_BAODUONG_Update_QUATRINH_DEXUAT_THUCHIEN(dsb,\n\t\t\t\t\t\t\t\t\t\t\tMa_Quatrinh_Dexuat_thuchien);\n\t\t\t\t\t\tTreeItem[] til = tree_PTTS.getItems();\n\t\t\t\t\t\tif (til.length > 0) {\n\t\t\t\t\t\t\tfor (TreeItem ti : til) {\n\t\t\t\t\t\t\t\tdsb.setMA_DOT_THUCHIEN_SUACHUA_BAODUONG(key);\n\t\t\t\t\t\t\t\tRow_PTTSthamgia_Baoduong rp = (Row_PTTSthamgia_Baoduong) ti.getData();\n\t\t\t\t\t\t\t\tcontroler.getControl_DOT_THUCHIEN_SUACHUA_BAODUONG_TAISAN()\n\t\t\t\t\t\t\t\t\t\t.set_DOT_THUCHIEN_SUACHUA_TAISAN(dsb, rp);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tshowMessage_Succes();\n\t\t\t\t\t\tshell.dispose();\n\t\t\t\t\t\tGiaoViec gv = new GiaoViec(user);\n\t\t\t\t\t\tgv.open();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tshowMessage_Fail();\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tshowMessage_FillText();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tprivate DOT_THUCHIEN_SUACHUA_BAODUONG getDOT_SUACHUA_BAODUONG() {\n\t\t\t\tDOT_THUCHIEN_SUACHUA_BAODUONG dsb = new DOT_THUCHIEN_SUACHUA_BAODUONG();\n\t\t\t\tdsb.setTEN_DOT_THUCHIEN_SUACHUA_BAODUONG(text_Tendot_Baoduong.getText());\n\t\t\t\tdsb.setLOAI_PHUONG_TIEN(\n\t\t\t\t\t\tInteger.valueOf((int) combo_Loaiphuongtien.getData(combo_Loaiphuongtien.getText())));\n\t\t\t\tdsb.setSUACHUA_BAODUONG(fi.getInt_Baoduong());\n\t\t\t\tdsb.setMO_TA(text_Mota.getText());\n\t\t\t\treturn dsb;\n\t\t\t}\n\n\t\t});\n\t\tGridData gd_btnLu = new GridData(SWT.RIGHT, SWT.CENTER, true, false, 1, 1);\n\t\tgd_btnLu.widthHint = 75;\n\t\tbtnLuu.setLayoutData(gd_btnLu);\n\t\tbtnLuu.setText(\"Xong\");\n\n\t\tbtnDong = new Button(shell, SWT.NONE);\n\t\tbtnDong.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tif (ViewAndEdit_MODE_dsb != null) {\n\t\t\t\t\t\tupdateField();\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// if (Insert_dx != null)\n\t\t\t\t\t\t// controler.getControl_DEXUAT().delete_DEXUAT(Insert_dx);\n\t\t\t\t\t}\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t\tshell.dispose();\n\t\t\t}\n\t\t});\n\t\tGridData gd_btnDong = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\n\t\tgd_btnDong.widthHint = 75;\n\t\tbtnDong.setLayoutData(gd_btnDong);\n\t\tbtnDong.setText(\"Đóng\");\n\t\tinit_loadMODE();\n\t\tinit_CreateMode();\n\t}", "private void createContents() {\n\t\tshell = new Shell(getParent(), SWT.SHELL_TRIM | SWT.BORDER | SWT.PRIMARY_MODAL);\n\t\tshell.setImage(SWTResourceManager.getImage(ThuocDlg.class, \"/png/list-2x.png\"));\n\t\tshell.setSize(610, 340);\n\t\tshell.setText(\"Thuoc List View\");\n\t\tshell.setLayout(new BorderLayout(0, 0));\n\t\tshell.addKeyListener(new KeyAdapter() {\n\t\t\t@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tif(e.keyCode==SWT.ESC){\n\t\t\t\t\tobjThuoc = null;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n \n Composite compositeInShellThuoc = new Composite(shell, SWT.NONE);\n\t\tcompositeInShellThuoc.setLayout(new BorderLayout(0, 0));\n\t\tcompositeInShellThuoc.setLayoutData(BorderLayout.CENTER);\n \n\t\tComposite compositeHeaderThuoc = new Composite(compositeInShellThuoc, SWT.NONE);\n\t\tcompositeHeaderThuoc.setLayoutData(BorderLayout.NORTH);\n\t\tcompositeHeaderThuoc.setLayout(new GridLayout(5, false));\n\n\t\ttextSearchThuoc = new Text(compositeHeaderThuoc, SWT.BORDER);\n\t\ttextSearchThuoc.setFont(SWTResourceManager.getFont(\"Tahoma\", 10, SWT.NORMAL));\n\t\ttextSearchThuoc.addKeyListener(new KeyAdapter() {\n\t\t\t@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tif(e.keyCode==13){\n\t\t\t\t\treloadTableThuoc();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tButton btnNewButtonSearchThuoc = new Button(compositeHeaderThuoc, SWT.NONE);\n\t\tbtnNewButtonSearchThuoc.setImage(SWTResourceManager.getImage(ThuocDlg.class, \"/png/media-play-2x.png\"));\n\t\tbtnNewButtonSearchThuoc.setFont(SWTResourceManager.getFont(\"Tahoma\", 10, SWT.NORMAL));\n\n\t\tbtnNewButtonSearchThuoc.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\treloadTableThuoc();\n\t\t\t}\n\t\t});\n\t\tButton btnNewButtonExportExcelThuoc = new Button(compositeHeaderThuoc, SWT.NONE);\n\t\tbtnNewButtonExportExcelThuoc.setText(\"Export Excel\");\n\t\tbtnNewButtonExportExcelThuoc.setImage(SWTResourceManager.getImage(KhamBenhListDlg.class, \"/png/spreadsheet-2x.png\"));\n\t\tbtnNewButtonExportExcelThuoc.setFont(SWTResourceManager.getFont(\"Tahoma\", 10, SWT.NORMAL));\n\t\tbtnNewButtonExportExcelThuoc.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\texportExcelTableThuoc();\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t\tGridData gd_btnNewButtonThuoc = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\n\t\tgd_btnNewButtonThuoc.widthHint = 87;\n\t\tbtnNewButtonSearchThuoc.setLayoutData(gd_btnNewButtonThuoc);\n\t\tbtnNewButtonSearchThuoc.setText(\"Search\");\n \n\t\ttableViewerThuoc = new TableViewer(compositeInShellThuoc, SWT.BORDER | SWT.FULL_SELECTION);\n\t\ttableThuoc = tableViewerThuoc.getTable();\n\t\ttableThuoc.setFont(SWTResourceManager.getFont(\"Tahoma\", 10, SWT.NORMAL));\n\t\ttableThuoc.addKeyListener(new KeyAdapter() {\n\t\t\t@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tif(e.keyCode==SWT.F5){\n\t\t\t\t\treloadTableThuoc();\n }\n if(e.keyCode==SWT.F4){\n\t\t\t\t\teditTableThuoc();\n }\n\t\t\t\telse if(e.keyCode==13){\n\t\t\t\t\tselectTableThuoc();\n\t\t\t\t}\n else if(e.keyCode==SWT.DEL){\n\t\t\t\t\tdeleteTableThuoc();\n\t\t\t\t}\n else if(e.keyCode==SWT.F7){\n\t\t\t\t\tnewItemThuoc();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n tableThuoc.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDoubleClick(MouseEvent e) {\n\t\t\t\tselectTableThuoc();\n\t\t\t}\n\t\t});\n \n\t\ttableThuoc.setLinesVisible(true);\n\t\ttableThuoc.setHeaderVisible(true);\n\t\ttableThuoc.setLayoutData(BorderLayout.CENTER);\n\n\t\tTableColumn tbTableColumnThuocMA_HOAT_CHAT = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocMA_HOAT_CHAT.setWidth(100);\n\t\ttbTableColumnThuocMA_HOAT_CHAT.setText(\"MA_HOAT_CHAT\");\n\n\t\tTableColumn tbTableColumnThuocMA_AX = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocMA_AX.setWidth(100);\n\t\ttbTableColumnThuocMA_AX.setText(\"MA_AX\");\n\n\t\tTableColumn tbTableColumnThuocHOAT_CHAT = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocHOAT_CHAT.setWidth(100);\n\t\ttbTableColumnThuocHOAT_CHAT.setText(\"HOAT_CHAT\");\n\n\t\tTableColumn tbTableColumnThuocHOATCHAT_AX = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocHOATCHAT_AX.setWidth(100);\n\t\ttbTableColumnThuocHOATCHAT_AX.setText(\"HOATCHAT_AX\");\n\n\t\tTableColumn tbTableColumnThuocMA_DUONG_DUNG = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocMA_DUONG_DUNG.setWidth(100);\n\t\ttbTableColumnThuocMA_DUONG_DUNG.setText(\"MA_DUONG_DUNG\");\n\n\t\tTableColumn tbTableColumnThuocMA_DUONGDUNG_AX = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocMA_DUONGDUNG_AX.setWidth(100);\n\t\ttbTableColumnThuocMA_DUONGDUNG_AX.setText(\"MA_DUONGDUNG_AX\");\n\n\t\tTableColumn tbTableColumnThuocDUONG_DUNG = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocDUONG_DUNG.setWidth(100);\n\t\ttbTableColumnThuocDUONG_DUNG.setText(\"DUONG_DUNG\");\n\n\t\tTableColumn tbTableColumnThuocDUONGDUNG_AX = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocDUONGDUNG_AX.setWidth(100);\n\t\ttbTableColumnThuocDUONGDUNG_AX.setText(\"DUONGDUNG_AX\");\n\n\t\tTableColumn tbTableColumnThuocHAM_LUONG = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocHAM_LUONG.setWidth(100);\n\t\ttbTableColumnThuocHAM_LUONG.setText(\"HAM_LUONG\");\n\n\t\tTableColumn tbTableColumnThuocHAMLUONG_AX = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocHAMLUONG_AX.setWidth(100);\n\t\ttbTableColumnThuocHAMLUONG_AX.setText(\"HAMLUONG_AX\");\n\n\t\tTableColumn tbTableColumnThuocTEN_THUOC = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocTEN_THUOC.setWidth(100);\n\t\ttbTableColumnThuocTEN_THUOC.setText(\"TEN_THUOC\");\n\n\t\tTableColumn tbTableColumnThuocTENTHUOC_AX = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocTENTHUOC_AX.setWidth(100);\n\t\ttbTableColumnThuocTENTHUOC_AX.setText(\"TENTHUOC_AX\");\n\n\t\tTableColumn tbTableColumnThuocSO_DANG_KY = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocSO_DANG_KY.setWidth(100);\n\t\ttbTableColumnThuocSO_DANG_KY.setText(\"SO_DANG_KY\");\n\n\t\tTableColumn tbTableColumnThuocSODANGKY_AX = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocSODANGKY_AX.setWidth(100);\n\t\ttbTableColumnThuocSODANGKY_AX.setText(\"SODANGKY_AX\");\n\n\t\tTableColumn tbTableColumnThuocDONG_GOI = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocDONG_GOI.setWidth(100);\n\t\ttbTableColumnThuocDONG_GOI.setText(\"DONG_GOI\");\n\n\t\tTableColumn tbTableColumnThuocDON_VI_TINH = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocDON_VI_TINH.setWidth(100);\n\t\ttbTableColumnThuocDON_VI_TINH.setText(\"DON_VI_TINH\");\n\n\n\t\tTableColumn tbTableColumnThuocDON_GIA = new TableColumn(tableThuoc, SWT.NONE);\n\t\ttbTableColumnThuocDON_GIA.setWidth(100);\n\t\ttbTableColumnThuocDON_GIA.setText(\"DON_GIA\");\n\n\n\t\tTableColumn tbTableColumnThuocDON_GIA_TT = new TableColumn(tableThuoc, SWT.NONE);\n\t\ttbTableColumnThuocDON_GIA_TT.setWidth(100);\n\t\ttbTableColumnThuocDON_GIA_TT.setText(\"DON_GIA_TT\");\n\n\t\tTableColumn tbTableColumnThuocSO_LUONG = new TableColumn(tableThuoc, SWT.RIGHT);\n\t\ttbTableColumnThuocSO_LUONG.setWidth(100);\n\t\ttbTableColumnThuocSO_LUONG.setText(\"SO_LUONG\");\n\n\t\tTableColumn tbTableColumnThuocMA_CSKCB = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocMA_CSKCB.setWidth(100);\n\t\ttbTableColumnThuocMA_CSKCB.setText(\"MA_CSKCB\");\n\n\t\tTableColumn tbTableColumnThuocHANG_SX = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocHANG_SX.setWidth(100);\n\t\ttbTableColumnThuocHANG_SX.setText(\"HANG_SX\");\n\n\t\tTableColumn tbTableColumnThuocNUOC_SX = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocNUOC_SX.setWidth(100);\n\t\ttbTableColumnThuocNUOC_SX.setText(\"NUOC_SX\");\n\n\t\tTableColumn tbTableColumnThuocNHA_THAU = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocNHA_THAU.setWidth(100);\n\t\ttbTableColumnThuocNHA_THAU.setText(\"NHA_THAU\");\n\n\t\tTableColumn tbTableColumnThuocQUYET_DINH = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocQUYET_DINH.setWidth(100);\n\t\ttbTableColumnThuocQUYET_DINH.setText(\"QUYET_DINH\");\n\n\t\tTableColumn tbTableColumnThuocCONG_BO = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocCONG_BO.setWidth(100);\n\t\ttbTableColumnThuocCONG_BO.setText(\"CONG_BO\");\n\n\t\tTableColumn tbTableColumnThuocMA_THUOC_BV = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocMA_THUOC_BV.setWidth(100);\n\t\ttbTableColumnThuocMA_THUOC_BV.setText(\"MA_THUOC_BV\");\n\n\t\tTableColumn tbTableColumnThuocLOAI_THUOC = new TableColumn(tableThuoc, SWT.RIGHT);\n\t\ttbTableColumnThuocLOAI_THUOC.setWidth(100);\n\t\ttbTableColumnThuocLOAI_THUOC.setText(\"LOAI_THUOC\");\n\n\t\tTableColumn tbTableColumnThuocLOAI_THAU = new TableColumn(tableThuoc, SWT.RIGHT);\n\t\ttbTableColumnThuocLOAI_THAU.setWidth(100);\n\t\ttbTableColumnThuocLOAI_THAU.setText(\"LOAI_THAU\");\n\n\t\tTableColumn tbTableColumnThuocNHOM_THAU = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocNHOM_THAU.setWidth(100);\n\t\ttbTableColumnThuocNHOM_THAU.setText(\"NHOM_THAU\");\n\n\t\tTableColumn tbTableColumnThuocMANHOM_9324 = new TableColumn(tableThuoc, SWT.RIGHT);\n\t\ttbTableColumnThuocMANHOM_9324.setWidth(100);\n\t\ttbTableColumnThuocMANHOM_9324.setText(\"MANHOM_9324\");\n\n\t\tTableColumn tbTableColumnThuocHIEULUC = new TableColumn(tableThuoc, SWT.RIGHT);\n\t\ttbTableColumnThuocHIEULUC.setWidth(100);\n\t\ttbTableColumnThuocHIEULUC.setText(\"HIEULUC\");\n\n\t\tTableColumn tbTableColumnThuocKETQUA = new TableColumn(tableThuoc, SWT.RIGHT);\n\t\ttbTableColumnThuocKETQUA.setWidth(100);\n\t\ttbTableColumnThuocKETQUA.setText(\"KETQUA\");\n\n\t\tTableColumn tbTableColumnThuocTYP = new TableColumn(tableThuoc, SWT.RIGHT);\n\t\ttbTableColumnThuocTYP.setWidth(100);\n\t\ttbTableColumnThuocTYP.setText(\"TYP\");\n\n\t\tTableColumn tbTableColumnThuocTHUOC_RANK = new TableColumn(tableThuoc, SWT.RIGHT);\n\t\ttbTableColumnThuocTHUOC_RANK.setWidth(100);\n\t\ttbTableColumnThuocTHUOC_RANK.setText(\"THUOC_RANK\");\n\n Menu menuThuoc = new Menu(tableThuoc);\n\t\ttableThuoc.setMenu(menuThuoc);\n\t\t\n\t\tMenuItem mntmNewItemThuoc = new MenuItem(menuThuoc, SWT.NONE);\n\t\tmntmNewItemThuoc.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tnewItemThuoc();\n\t\t\t}\n\t\t});\n\t\tmntmNewItemThuoc.setImage(SWTResourceManager.getImage(ThuocDlg.class, \"/png/arrow-circle-top-2x.png\"));\n\t\tmntmNewItemThuoc.setText(\"New\");\n\t\t\n\t\tMenuItem mntmEditItemThuoc = new MenuItem(menuThuoc, SWT.NONE);\n\t\tmntmEditItemThuoc.setImage(SWTResourceManager.getImage(ThuocDlg.class, \"/png/wrench-2x.png\"));\n\t\tmntmEditItemThuoc.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\teditTableThuoc();\n\t\t\t}\n\t\t});\n\t\tmntmEditItemThuoc.setText(\"Edit\");\n\t\t\n\t\tMenuItem mntmDeleteThuoc = new MenuItem(menuThuoc, SWT.NONE);\n\t\tmntmDeleteThuoc.setImage(SWTResourceManager.getImage(ThuocDlg.class, \"/png/circle-x-2x.png\"));\n\t\tmntmDeleteThuoc.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tdeleteTableThuoc();\n\t\t\t}\n\t\t});\n\t\tmntmDeleteThuoc.setText(\"Delete\");\n\t\t\n\t\tMenuItem mntmExportThuoc = new MenuItem(menuThuoc, SWT.NONE);\n\t\tmntmExportThuoc.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\texportExcelTableThuoc();\n\t\t\t}\n\t\t});\n\t\tmntmExportThuoc.setImage(SWTResourceManager.getImage(ThuocDlg.class, \"/png/spreadsheet-2x.png\"));\n\t\tmntmExportThuoc.setText(\"Export Excel\");\n\t\t\n\t\ttableViewerThuoc.setLabelProvider(new TableLabelProviderThuoc());\n\t\ttableViewerThuoc.setContentProvider(new ContentProviderThuoc());\n\t\ttableViewerThuoc.setInput(listDataThuoc);\n //\n //\n\t\tloadDataThuoc();\n\t\t//\n reloadTableThuoc();\n\t}", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(1200, 1100);\n\t\tshell.setText(\"Zagreb Montaža d.o.o\");\n\n\t\tfinal Composite cmpMenu = new Composite(shell, SWT.NONE);\n\t\tcmpMenu.setBackground(SWTResourceManager.getColor(119, 136, 153));\n\t\tcmpMenu.setBounds(0, 0, 359, 1061);\n\t\t\n\t\tFormToolkit formToolkit = new FormToolkit(Display.getDefault());\n\t\tfinal Section sctnCalculator = formToolkit.createSection(cmpMenu, Section.TWISTIE | Section.TITLE_BAR);\n\t\tsctnCalculator.setExpanded(false);\n\t\tsctnCalculator.setBounds(10, 160, 339, 23);\n\t\tformToolkit.paintBordersFor(sctnCalculator);\n\t\tsctnCalculator.setText(\"Kalkulator temperature preddgrijavanja\");\n\n\t\tfinal Section sctn10112ce = formToolkit.createSection(cmpMenu, Section.TREE_NODE | Section.TITLE_BAR);\n\t\tsctn10112ce.setBounds(45, 189, 304, 23);\n\t\tformToolkit.paintBordersFor(sctn10112ce);\n\t\tsctn10112ce.setText(\"1011-2 CE\");\n\t\tsctn10112ce.setVisible(false);\n\n\t\tfinal Section sctn10112cet = formToolkit.createSection(cmpMenu, Section.TREE_NODE | Section.TITLE_BAR);\n\t\tsctn10112cet.setBounds(45, 218, 304, 23);\n\t\tformToolkit.paintBordersFor(sctn10112cet);\n\t\tsctn10112cet.setText(\"1011-2 CET\");\n\t\tsctn10112cet.setVisible(false);\n\n\t\tfinal Section sctnAws = formToolkit.createSection(cmpMenu, Section.TREE_NODE | Section.TITLE_BAR);\n\t\tsctnAws.setBounds(45, 247, 304, 23);\n\t\tformToolkit.paintBordersFor(sctnAws);\n\t\tsctnAws.setText(\"AWS\");\n\t\tsctnAws.setVisible(false);\n\t\t\n\t\tfinal Composite composite10112ce = new Composite(shell, SWT.COLOR_DARK_GRAY);\n\t\t//composite10112ce.setBackground(SWTResourceManager.getColor(255, 255, 255));\n\t\tcomposite10112ce.setBounds(365, 0, 829, 1061);\n\t\tcomposite10112ce.setVisible(false);\n\t\t\n\t\tfinal Composite composite10112cet = new Composite(shell, SWT.COLOR_DARK_GRAY);\n\t\t//composite10112ce.setBackground(SWTResourceManager.getColor(255, 255, 255));\n\t\tcomposite10112cet.setBounds(365, 0, 829, 1061);\n\t\tcomposite10112cet.setVisible(false);\n\t\t\n\t\tfinal Composite compositeAws = new Composite(shell, SWT.COLOR_DARK_GRAY);\n\t\t//composite10112ce.setBackground(SWTResourceManager.getColor(255, 255, 255));\n\t\tcompositeAws.setBounds(365, 0, 829, 1061);\n\t\tcompositeAws.setVisible(false);\n\t\t\n\t\tsctnCalculator.addExpansionListener(new IExpansionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void expansionStateChanged(ExpansionEvent arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void expansionStateChanging(ExpansionEvent arg0) {\n\n\t\t\t\tif (sctnCalculator.isExpanded() == false) {\n\t\t\t\t\tsctn10112ce.setVisible(true);\n\t\t\t\t\tsctn10112cet.setVisible(true);\n\t\t\t\t\tsctnAws.setVisible(true);\n\n\t\t\t\t} else {\n\t\t\t\t\tsctn10112ce.setVisible(false);\n\t\t\t\t\tsctn10112cet.setVisible(false);\n\t\t\t\t\tsctnAws.setVisible(false);\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t});\n\n\t\tsctn10112ce.addExpansionListener(new IExpansionListener() {\n\t\t\t@Override\n\t\t\tpublic void expansionStateChanging(ExpansionEvent arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void expansionStateChanged(ExpansionEvent arg0) {\n\t\t\t\tif (sctn10112ce.isExpanded() == true) {\n\t\t\t\t\tsctn10112cet.setVisible(false);\n\t\t\t\t\tcompositeAws.setVisible(false);\n\t\t\t\t\tnew F10112ce(composite10112ce, cmpMenu.getStyle());\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tcomposite10112ce.setVisible(false);\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\tsctn10112cet.addExpansionListener(new IExpansionListener() {\n\t\t\t@Override\n\t\t\tpublic void expansionStateChanging(ExpansionEvent arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void expansionStateChanged(ExpansionEvent arg0) {\n\t\t\t\tif (sctn10112cet.isExpanded() == true) {\n\t\t\t\t\tsctn10112ce.setVisible(false);\n\t\t\t\t\tcompositeAws.setVisible(false);\n\t\t\t\t\tnew F10112cet(composite10112cet, cmpMenu.getStyle());\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tcomposite10112ce.setVisible(false);\n\t\t\t}\n\t\t});\n\t\t\n\t\tsctnAws.addExpansionListener(new IExpansionListener() {\n\t\t\t@Override\n\t\t\tpublic void expansionStateChanging(ExpansionEvent arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void expansionStateChanged(ExpansionEvent arg0) {\n\t\t\t\tif (sctnAws.isExpanded() == true) {\n\t\t\t\t\tsctn10112ce.setVisible(false);\n\t\t\t\t\tsctn10112cet.setVisible(false);\n\t\t\t\t\tnew FAws(compositeAws, cmpMenu.getStyle());\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tcompositeAws.setVisible(false);\n\t\t\t}\n\t\t});\n\t}", "public InfoDialog() {\r\n\t\tcreateContents();\r\n\t}", "private void createContents() {\r\n\t\tshlOProgramie = new Shell(getParent().getDisplay(), SWT.DIALOG_TRIM\r\n\t\t\t\t| SWT.RESIZE);\r\n\t\tshlOProgramie.setBackground(SWTResourceManager.getColor(255, 255, 255));\r\n\t\tshlOProgramie.setText(\"O programie\");\r\n\t\tshlOProgramie.setSize(386, 221);\r\n\t\tint x = 386;\r\n\t\tint y = 221;\r\n\t\t// Get the resolution\r\n\t\tRectangle pDisplayBounds = shlOProgramie.getDisplay().getBounds();\r\n\r\n\t\t// This formulae calculate the shell's Left ant Top\r\n\t\tint nLeft = (pDisplayBounds.width - x) / 2;\r\n\t\tint nTop = (pDisplayBounds.height - y) / 2;\r\n\r\n\t\t// Set shell bounds,\r\n\t\tshlOProgramie.setBounds(nLeft, nTop, x, y);\r\n\t\tsetText(\"O programie\");\r\n\r\n\t\tbtnZamknij = new Button(shlOProgramie, SWT.PUSH | SWT.BORDER_SOLID);\r\n\t\tbtnZamknij.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseUp(MouseEvent e) {\r\n\t\t\t\tshlOProgramie.dispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnZamknij.setBounds(298, 164, 68, 23);\r\n\t\tbtnZamknij.setText(\"Zamknij\");\r\n\r\n\t\tText link = new Text(shlOProgramie, SWT.READ_ONLY);\r\n\t\tlink.setBackground(SWTResourceManager.getColor(230, 230, 250));\r\n\t\tlink.setBounds(121, 127, 178, 13);\r\n\t\tlink.setText(\"Kontakt: [email protected]\");\r\n\r\n\t\tCLabel lblNewLabel = new CLabel(shlOProgramie, SWT.BORDER\r\n\t\t\t\t| SWT.SHADOW_IN | SWT.SHADOW_OUT | SWT.SHADOW_NONE);\r\n\t\tlblNewLabel.setBackground(SWTResourceManager.getColor(230, 230, 250));\r\n\t\tlblNewLabel.setBounds(118, 20, 248, 138);\r\n\t\tlblNewLabel\r\n\t\t\t\t.setText(\" Kalkulator walut ver 0.0.2 \\r\\n -------------------------------\\r\\n Program umo\\u017Cliwiaj\\u0105cy pobieranie\\r\\n aktualnych kurs\\u00F3w walut ze strony nbp.pl\\r\\n\\r\\n Copyright by Wojciech Trocki.\\r\\n\");\r\n\r\n\t\tLabel lblNewLabel_1 = new Label(shlOProgramie, SWT.NONE);\r\n\t\tlblNewLabel_1.setBackground(SWTResourceManager.getColor(255, 255, 255));\r\n\t\tlblNewLabel_1.setImage(SWTResourceManager.getImage(\"images/about.gif\"));\r\n\t\tlblNewLabel_1.setBounds(10, 20, 100, 138);\r\n\t}", "protected void createContents() {\n\t\tsetText(\"SWT Application\");\n\t\tsetSize(656, 296);\n\n\t}", "private void createContents() {\r\n\t\tshlEventBlocker = new Shell(getParent(), getStyle());\r\n\t\tshlEventBlocker.setSize(167, 135);\r\n\t\tshlEventBlocker.setText(\"Event Blocker\");\r\n\t\t\r\n\t\tLabel lblRunningEvent = new Label(shlEventBlocker, SWT.NONE);\r\n\t\tlblRunningEvent.setBounds(10, 10, 100, 15);\r\n\t\tlblRunningEvent.setText(\"Running Event:\");\r\n\t\t\r\n\t\tLabel lblevent = new Label(shlEventBlocker, SWT.NONE);\r\n\t\tlblevent.setFont(SWTResourceManager.getFont(\"Segoe UI\", 15, SWT.BOLD));\r\n\t\tlblevent.setBounds(20, 31, 129, 35);\r\n\t\tlblevent.setText(eventName);\r\n\t\t\r\n\t\tButton btnFinish = new Button(shlEventBlocker, SWT.NONE);\r\n\t\tbtnFinish.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseUp(MouseEvent e) {\r\n\t\t\t\tshlEventBlocker.dispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnFinish.setBounds(10, 72, 75, 25);\r\n\t\tbtnFinish.setText(\"Finish\");\r\n\r\n\t}", "protected void createContents() {\n\t\tsetText(\"Account Settings\");\n\t\tsetSize(450, 225);\n\n\t}", "protected void createContents() throws Exception {\n\t\tshlGecco = new Shell();\n\t\tshlGecco.setImage(SWTResourceManager.getImage(jdView.class, \"/images/yc.ico\"));\n\t\tshlGecco.setSize(1366, 736);\n\t\tshlGecco.setText(\"gecco爬取京东信息\");\n\t\tshlGecco.setLocation(0, 0);\n\t\tshlGecco.setLayout(new FillLayout(SWT.HORIZONTAL));\n\t\tSashForm sashForm = new SashForm(shlGecco, SWT.NONE);\n\t\tsashForm.setOrientation(SWT.VERTICAL);\n\n\t\tGroup group = new Group(sashForm, SWT.NONE);\n\t\tgroup.setFont(SWTResourceManager.getFont(\"Microsoft YaHei UI\", 10, SWT.BOLD));\n\t\tgroup.setText(\"爬取查询条件\");\n\t\tgroup.setLayout(new FillLayout(SWT.HORIZONTAL));\n\n\t\tSashForm sashForm_2 = new SashForm(group, SWT.NONE);\n\n\t\tGroup group_2 = new Group(sashForm_2, SWT.NONE);\n\t\tgroup_2.setText(\"爬取条件\");\n\n\t\tLabel lblip = new Label(group_2, SWT.NONE);\n\t\tlblip.setLocation(34, 27);\n\t\tlblip.setSize(113, 21);\n\t\tlblip.setText(\"输入开始爬取地址:\");\n\n\t\ttxtSearchUrl = new Text(group_2, SWT.BORDER);\n\t\ttxtSearchUrl.setLocation(153, 23);\n\t\ttxtSearchUrl.setSize(243, 23);\n\t\ttxtSearchUrl.setText(\"https://www.jd.com/allSort.aspx\");\n\n\t\tbtnSearch = new Button(group_2, SWT.NONE);\n\t\tbtnSearch.setLocation(408, 23);\n\t\tbtnSearch.setSize(82, 25);\n\n\t\tbtnSearch.setEnabled(false);\n\t\tbtnSearch.setText(\"开始爬取\");\n\n\t\tGroup group_3 = new Group(sashForm_2, SWT.NONE);\n\t\tgroup_3.setText(\"查询条件\");\n\n\t\tLabel label_2 = new Label(group_3, SWT.NONE);\n\t\tlabel_2.setLocation(77, 25);\n\t\tlabel_2.setSize(86, 25);\n\t\tlabel_2.setText(\"选择查询条件:\");\n\n\t\tcombo = new Combo(group_3, SWT.NONE);\n\t\tcombo.setLocation(169, 23);\n\t\tcombo.setSize(140, 23);\n\t\tcombo.setItems(new String[] { \"全部\", \"商品总类别\", \"子类别名\", \"类别链接\" });\n\t\t// combo.setText(\"全部\");\n\n\t\tbutton = new Button(group_3, SWT.NONE);\n\t\tbutton.setLocation(524, 23);\n\t\tbutton.setSize(80, 25);\n\t\tbutton.setText(\"点击查询\");\n\t\tbutton.setEnabled(false);\n\n\t\tcombo_1 = new Combo(group_3, SWT.NONE);\n\t\tcombo_1.setEnabled(false);\n\t\tcombo_1.setLocation(332, 23);\n\t\tcombo_1.setSize(170, 23);\n\t\t// combo_1.setItems(new String[] { \"全部\" });\n\t\t// combo_1.setText(\"全部\");\n\t\tsashForm_2.setWeights(new int[] { 562, 779 });\n\t\tGroup group_1 = new Group(sashForm, SWT.NONE);\n\t\tgroup_1.setFont(SWTResourceManager.getFont(\"Microsoft YaHei UI\", 10, SWT.BOLD));\n\t\tgroup_1.setText(\"爬取结果\");\n\t\tgroup_1.setLayout(new FillLayout(SWT.HORIZONTAL));\n\n\t\tSashForm sashForm_1 = new SashForm(group_1, SWT.NONE);\n\n\t\tGroup group_Categorys = new Group(sashForm_1, SWT.NONE);\n\t\tgroup_Categorys.setText(\"商品分组\");\n\t\tgroup_Categorys.setLayout(new FillLayout(SWT.HORIZONTAL));\n\n\t\tcategorys = new Table(group_Categorys, SWT.BORDER | SWT.FULL_SELECTION);\n\t\tcategorys.setHeaderVisible(true);\n\t\tcategorys.setLinesVisible(true);\n\n\t\tTableColumn ParentName = new TableColumn(categorys, SWT.NONE);\n\t\tParentName.setWidth(87);\n\t\tParentName.setText(\"商品总类别\");\n\n\t\tTableColumn Title = new TableColumn(categorys, SWT.NONE);\n\t\tTitle.setWidth(87);\n\t\tTitle.setText(\"子类别名\");\n\n\t\tTableColumn Ip = new TableColumn(categorys, SWT.NONE);\n\t\tIp.setWidth(152);\n\t\tIp.setText(\"类别链接\");\n\n\t\tGroup group_ProductBrief = new Group(sashForm_1, SWT.NONE);\n\t\tgroup_ProductBrief.setText(\"商品简要信息列表\");\n\t\tgroup_ProductBrief.setLayout(new FillLayout(SWT.HORIZONTAL));\n\n\t\tproductBrief = new Table(group_ProductBrief, SWT.BORDER | SWT.FULL_SELECTION);\n\t\tproductBrief.setLinesVisible(true);\n\t\tproductBrief.setHeaderVisible(true);\n\n\t\tTableColumn Code = new TableColumn(productBrief, SWT.NONE);\n\t\tCode.setWidth(80);\n\t\tCode.setText(\"商品编号\");\n\n\t\tTableColumn Detailurl = new TableColumn(productBrief, SWT.NONE);\n\t\tDetailurl.setWidth(162);\n\t\tDetailurl.setText(\"商品详情链接\");\n\n\t\tTableColumn Preview = new TableColumn(productBrief, SWT.NONE);\n\t\tPreview.setWidth(170);\n\t\tPreview.setText(\"商品图片链接\");\n\n\t\tTableColumn Dtitle = new TableColumn(productBrief, SWT.NONE);\n\t\tDtitle.setWidth(150);\n\t\tDtitle.setText(\"商品标题\");\n\n\t\tGroup group_ProductDetail = new Group(sashForm_1, SWT.NONE);\n\t\tgroup_ProductDetail.setText(\"商品详细信息\");\n\t\tgroup_ProductDetail.setLayout(new FillLayout(SWT.HORIZONTAL));\n\n\t\tComposite composite = new Composite(group_ProductDetail, SWT.NONE);\n\n\t\tPDetail = new Text(composite,\n\t\t\t\tSWT.BORDER | SWT.READ_ONLY | SWT.WRAP | SWT.H_SCROLL | SWT.V_SCROLL | SWT.CANCEL | SWT.MULTI);\n\t\tPDetail.setLocation(55, 339);\n\t\tPDetail.setSize(360, 220);\n\n\t\tLabel Id = new Label(composite, SWT.NONE);\n\t\tId.setBounds(31, 28, 61, 15);\n\t\tId.setText(\"商品编号:\");\n\n\t\tLabel detail = new Label(composite, SWT.NONE);\n\t\tdetail.setText(\"商品详情:\");\n\t\tdetail.setBounds(31, 311, 61, 15);\n\n\t\tLabel title = new Label(composite, SWT.NONE);\n\t\ttitle.setText(\"商品标题:\");\n\t\ttitle.setBounds(31, 64, 61, 15);\n\n\t\tLabel jdAd = new Label(composite, SWT.NONE);\n\t\tjdAd.setText(\"商品广告:\");\n\t\tjdAd.setBounds(31, 201, 61, 15);\n\n\t\tLabel price = new Label(composite, SWT.NONE);\n\t\tprice.setBounds(31, 108, 61, 15);\n\t\tprice.setText(\"价格:\");\n\n\t\tdcode = new Text(composite, SWT.BORDER);\n\t\tdcode.setEditable(false);\n\t\tdcode.setBounds(98, 25, 217, 21);\n\n\t\tLabel jdprice = new Label(composite, SWT.NONE);\n\t\tjdprice.setBounds(75, 127, 48, 15);\n\t\tjdprice.setText(\"京东价:\");\n\n\t\tLabel srcPrice = new Label(composite, SWT.NONE);\n\t\tsrcPrice.setBounds(75, 166, 48, 15);\n\t\tsrcPrice.setText(\"原售价:\");\n\n\t\tdprice = new Text(composite, SWT.BORDER);\n\t\tdprice.setEditable(false);\n\t\tdprice.setBounds(128, 127, 187, 21);\n\n\t\tdsrcPrice = new Text(composite, SWT.BORDER);\n\t\tdsrcPrice.setEditable(false);\n\t\tdsrcPrice.setBounds(128, 166, 187, 21);\n\n\t\tdtitle = new Text(composite,\n\t\t\t\tSWT.BORDER | SWT.READ_ONLY | SWT.WRAP | SWT.H_SCROLL | SWT.V_SCROLL | SWT.CANCEL | SWT.MULTI);\n\t\tdtitle.setBounds(98, 62, 217, 42);\n\n\t\tLabel label = new Label(composite, SWT.NONE);\n\t\tlabel.setText(\"广告标题:\");\n\t\tlabel.setBounds(62, 233, 61, 15);\n\n\t\tLabel label_1 = new Label(composite, SWT.NONE);\n\t\tlabel_1.setText(\"广告链接:\");\n\t\tlabel_1.setBounds(62, 272, 61, 15);\n\n\t\tadtitle = new Text(composite, SWT.BORDER);\n\t\tadtitle.setEditable(false);\n\t\tadtitle.setBounds(128, 231, 187, 21);\n\n\t\tadUrl = new Text(composite, SWT.BORDER);\n\t\tadUrl.setEditable(false);\n\t\tadUrl.setBounds(128, 270, 187, 21);\n\t\tsashForm_1.setWeights(new int[] { 335, 573, 430 });\n\t\tsashForm.setWeights(new int[] { 85, 586 });\n\n\t\tdoEvent();// 组件的事件操作\n\n\t}", "protected void createContents() {\n\t\tsetText(\"SWT Application\");\n\t\tsetSize(437, 529);\n\n\t}", "private void createContents() {\r\n this.shell = new Shell(this.getParent(), this.getStyle());\r\n this.shell.setText(\"自動プロキシ構成スクリプトファイル生成\");\r\n this.shell.setLayout(new GridLayout(1, false));\r\n\r\n Composite composite = new Composite(this.shell, SWT.NONE);\r\n composite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\r\n composite.setLayout(new GridLayout(1, false));\r\n\r\n Label labelTitle = new Label(composite, SWT.NONE);\r\n labelTitle.setText(\"自動プロキシ構成スクリプトファイルを生成します\");\r\n\r\n String server = Filter.getServerName();\r\n if (server == null) {\r\n Group manualgroup = new Group(composite, SWT.NONE);\r\n manualgroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\r\n manualgroup.setLayout(new GridLayout(2, false));\r\n manualgroup.setText(\"鎮守府サーバーが未検出です。IPアドレスを入力して下さい。\");\r\n\r\n Label iplabel = new Label(manualgroup, SWT.NONE);\r\n iplabel.setText(\"IPアドレス:\");\r\n\r\n final Text text = new Text(manualgroup, SWT.BORDER);\r\n GridData gdip = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\r\n gdip.widthHint = SwtUtils.DPIAwareWidth(150);\r\n text.setLayoutData(gdip);\r\n text.setText(\"0.0.0.0\");\r\n text.addModifyListener(new ModifyListener() {\r\n @Override\r\n public void modifyText(ModifyEvent e) {\r\n CreatePacFileDialog.this.server = text.getText();\r\n }\r\n });\r\n\r\n this.server = \"0.0.0.0\";\r\n } else {\r\n this.server = server;\r\n }\r\n\r\n Button storeButton = new Button(composite, SWT.NONE);\r\n storeButton.setText(\"保存先を選択...\");\r\n storeButton.addSelectionListener(new FileSelectionAdapter(this));\r\n\r\n Group addrgroup = new Group(composite, SWT.NONE);\r\n addrgroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\r\n addrgroup.setLayout(new GridLayout(2, false));\r\n addrgroup.setText(\"アドレス(保存先のアドレスより生成されます)\");\r\n\r\n Label ieAddrLabel = new Label(addrgroup, SWT.NONE);\r\n ieAddrLabel.setText(\"IE用:\");\r\n\r\n this.iePath = new Text(addrgroup, SWT.BORDER);\r\n GridData gdIePath = new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1);\r\n gdIePath.widthHint = SwtUtils.DPIAwareWidth(380);\r\n this.iePath.setLayoutData(gdIePath);\r\n\r\n Label fxAddrLabel = new Label(addrgroup, SWT.NONE);\r\n fxAddrLabel.setText(\"Firefox用:\");\r\n\r\n this.firefoxPath = new Text(addrgroup, SWT.BORDER);\r\n GridData gdFxPath = new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1);\r\n gdFxPath.widthHint = SwtUtils.DPIAwareWidth(380);\r\n this.firefoxPath.setLayoutData(gdFxPath);\r\n\r\n this.shell.pack();\r\n }", "protected void createContents() {\n\t\tsetText(\"SWT Application\");\n\t\tsetSize(838, 649);\n\n\t}", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(450, 300);\n\t\tshell.setText(\"SWT Application\");\n\t\t\n\t\tGroup group_1 = new Group(shell, SWT.NONE);\n\t\tgroup_1.setText(\"\\u65B0\\u4FE1\\u606F\\u586B\\u5199\");\n\t\tgroup_1.setBounds(0, 120, 434, 102);\n\t\t\n\t\tLabel label_4 = new Label(group_1, SWT.NONE);\n\t\tlabel_4.setBounds(10, 21, 61, 17);\n\t\tlabel_4.setText(\"\\u59D3\\u540D\");\n\t\t\n\t\tLabel label_5 = new Label(group_1, SWT.NONE);\n\t\tlabel_5.setText(\"\\u7528\\u6237\\u7535\\u8BDD\");\n\t\tlabel_5.setBounds(10, 46, 61, 17);\n\t\t\n\t\tLabel label_6 = new Label(group_1, SWT.NONE);\n\t\tlabel_6.setText(\"\\u5BC6\\u7801\");\n\t\tlabel_6.setBounds(10, 75, 61, 17);\n\t\t\n\t\ttext = new Text(group_1, SWT.BORDER);\n\t\ttext.setBounds(121, 21, 140, 17);\n\t\t\n\t\ttext_1 = new Text(group_1, SWT.BORDER);\n\t\ttext_1.setBounds(121, 46, 140, 17);\n\t\t\n\t\ttext_2 = new Text(group_1, SWT.BORDER);\n\t\ttext_2.setBounds(121, 75, 140, 17);\n\t\t\n\t\tButton btnNewButton = new Button(shell, SWT.NONE);\n\t\tbtnNewButton.setBounds(31, 228, 80, 27);\n\t\tbtnNewButton.setText(\"\\u63D0\\u4EA4\");\n\t\t\n\t\tButton btnNewButton_1 = new Button(shell, SWT.NONE);\n\t\tbtnNewButton_1.setBounds(288, 228, 80, 27);\n\t\tbtnNewButton_1.setText(\"\\u91CD\\u586B\");\n\t\t\n\t\tGroup group = new Group(shell, SWT.NONE);\n\t\tgroup.setText(\"\\u539F\\u5148\\u4FE1\\u606F\");\n\t\tgroup.setBounds(0, 10, 320, 102);\n\t\t\n\t\tLabel label = new Label(group, SWT.NONE);\n\t\tlabel.setBounds(10, 20, 61, 17);\n\t\tlabel.setText(\"\\u59D3\\u540D\");\n\t\t\n\t\tLabel lblNewLabel = new Label(group, SWT.NONE);\n\t\tlblNewLabel.setBounds(113, 20, 61, 17);\n\t\t\n\t\tLabel label_1 = new Label(group, SWT.NONE);\n\t\tlabel_1.setBounds(10, 43, 61, 17);\n\t\tlabel_1.setText(\"\\u6027\\u522B\");\n\t\t\n\t\tButton btnRadioButton = new Button(group, SWT.RADIO);\n\t\t\n\t\tbtnRadioButton.setBounds(90, 43, 97, 17);\n\t\tbtnRadioButton.setText(\"\\u7537\");\n\t\tButton btnRadioButton_1 = new Button(group, SWT.RADIO);\n\t\tbtnRadioButton_1.setBounds(208, 43, 97, 17);\n\t\tbtnRadioButton_1.setText(\"\\u5973\");\n\t\t\n\t\tLabel label_2 = new Label(group, SWT.NONE);\n\t\tlabel_2.setBounds(10, 66, 61, 17);\n\t\tlabel_2.setText(\"\\u7528\\u6237\\u7535\\u8BDD\");\n\t\t\n\t\tLabel lblNewLabel_1 = new Label(group, SWT.NONE);\n\t\tlblNewLabel_1.setBounds(113, 66, 61, 17);\n\t\t\n\t\tLabel label_3 = new Label(group, SWT.NONE);\n\t\tlabel_3.setBounds(10, 89, 61, 17);\n\t\tlabel_3.setText(\"\\u5BC6\\u7801\");\n\t\tLabel lblNewLabel_2 = new Label(group, SWT.NONE);\n\t\tlblNewLabel_2.setBounds(113, 89, 61, 17);\n\t\t\n\t\ttry {\n\t\t\tUserDao userDao=new UserDao();\n\t\t\tlblNewLabel_2.setText(User.getPassword());\n\t\t\tlblNewLabel.setText(User.getUserName());\n\t\t\n\t\t\t\n\n\t\t\n\t\t\ttry {\n\t\t\t\tList<User> userList=userDao.query();\n\t\t\t\tString results[][]=new String[userList.size()][5];\n\t\t\t\tlblNewLabel.setText(User.getUserName());\n\t\t\t\tlblNewLabel_1.setText(User.getSex());\n\t\t\t\tlblNewLabel_2.setText(User.getUserPhone());\n\t\t\t\tButton button = new Button(shell, SWT.NONE);\n\t\t\t\tbutton.setBounds(354, 0, 80, 27);\n\t\t\t\tbutton.setText(\"\\u8FD4\\u56DE\");\n\t\t\t\tbutton.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t\tpublic void widgetSelected(final SelectionEvent e){\n\t\t\t\t\t\tshell.dispose();\n\t\t\t\t\t\tbook book=new book();\n\t\t\t\t\t\tbook.open();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tfor(int i = 0; i < userList.size(); i++) {\n\t\t\t\t\t\tUser user1 = (User)userList.get(i);\t\n\t\t\t\t\tresults[i][0] = user1.getUserName();\n\t\t\t\t\tresults[i][1] = user1.getSex();\t\n\t\t\t\t\tresults[i][2] = user1.getPassword();\t\n\t\n\t\t\t\t\tif(user1.getSex().equals(\"男\"))\n\t\t\t\t\t\tbtnRadioButton.setSelection(true);\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tbtnRadioButton_1.setSelection(true);\n\t\t\t\t\tlblNewLabel_1.setText(user1.getUserPhone());\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\tif(!text_1.getText().equals(\"\")&&!text.getText().equals(\"\")&&!text_2.getText().equals(\"\"))\n\t\t\tuserDao.updateUser(text_1.getText(), text.getText(), text_2.getText());\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\t\n\t\tbtnNewButton.addSelectionListener(new SelectionAdapter() {\n\t\t\tpublic void widgetSelected(final SelectionEvent e){\n\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tuserDao.updateUser(text_1.getText(), text.getText(), text_2.getText());\n\t\t\t\t\tif(!text_1.getText().equals(\"\")&&!text_2.getText().equals(\"\")&&!text.getText().equals(\"\"))\n\t\t\t\t\t{shell.dispose();\n\t\t\t\t\tbook book=new book();\n\t\t\t\t\tbook.open();\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{JOptionPane.showMessageDialog(null,\"用户名或密码不能为空\",\"错误\",JOptionPane.PLAIN_MESSAGE);}\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\t});\n\t\tbtnNewButton_1.addSelectionListener(new SelectionAdapter() {\n\t\t\tpublic void widgetSelected(final SelectionEvent e){\n\t\t\t\t\ttext.setText(\"\");\n\t\t\t\t\ttext_1.setText(\"\");\n\t\t\t\t\ttext_2.setText(\"\");\n\t\t\t\n\t\t\t}\n\t\t});\n\t}", "protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setSize(450, 300);\r\n\t\tshell.setText(\"SWT Application\");\r\n\t\tshell.setLayout(new FillLayout(SWT.HORIZONTAL));\r\n\t\t\r\n\t\tfinal TabFolder tabFolder = new TabFolder(shell, SWT.NONE);\r\n\t\ttabFolder.setToolTipText(\"\");\r\n\t\t\r\n\t\tTabItem tabItem = new TabItem(tabFolder, SWT.NONE);\r\n\t\ttabItem.setText(\"欢迎使用\");\r\n\t\t\r\n\t\tTabItem tabItem_1 = new TabItem(tabFolder, SWT.NONE);\r\n\t\ttabItem_1.setText(\"员工查询\");\r\n\t\t\r\n\t\tMenu menu = new Menu(shell, SWT.BAR);\r\n\t\tshell.setMenuBar(menu);\r\n\t\t\r\n\t\tMenuItem menuItem = new MenuItem(menu, SWT.NONE);\r\n\t\tmenuItem.setText(\"系统管理\");\r\n\t\t\r\n\t\tMenuItem menuItem_1 = new MenuItem(menu, SWT.CASCADE);\r\n\t\tmenuItem_1.setText(\"员工管理\");\r\n\t\t\r\n\t\tMenu menu_1 = new Menu(menuItem_1);\r\n\t\tmenuItem_1.setMenu(menu_1);\r\n\t\t\r\n\t\tMenuItem menuItem_2 = new MenuItem(menu_1, SWT.NONE);\r\n\t\tmenuItem_2.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tTabItem tbtmNewItem = new TabItem(tabFolder,SWT.NONE);\r\n\t\t\t\ttbtmNewItem.setText(\"员工查询\");\r\n\t\t\t\t//创建自定义组件\r\n\t\t\t\tEmpQueryCmp eqc = new EmpQueryCmp(tabFolder, SWT.NONE);\r\n\t\t\t\t//设置标签显示的自定义组件\r\n\t\t\t\ttbtmNewItem.setControl(eqc);\r\n\t\t\t\t\r\n\t\t\t\t//选中当前标签页\r\n\t\t\t\ttabFolder.setSelection(tbtmNewItem);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t});\r\n\t\tmenuItem_2.setText(\"员工查询\");\r\n\r\n\t}", "protected void createContents() {\n\t\tregister Register = new register();\n\t\tRegisterDAOImpl RDI = new RegisterDAOImpl();\t\n\t\t\n\t\tload = new Shell();\n\t\tload.setSize(519, 370);\n\t\tload.setText(\"XX\\u533B\\u9662\\u6302\\u53F7\\u7CFB\\u7EDF\");\n\t\tload.setLayout(new FormLayout());\n\t\t\n\t\tLabel name = new Label(load, SWT.NONE);\n\t\tFormData fd_name = new FormData();\n\t\tfd_name.top = new FormAttachment(20);\n\t\tfd_name.left = new FormAttachment(45, -10);\n\t\tname.setLayoutData(fd_name);\n\t\tname.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tname.setText(\"\\u59D3\\u540D\");\n\t\t\n\t\tLabel subjet = new Label(load, SWT.NONE);\n\t\tFormData fd_subjet = new FormData();\n\t\tfd_subjet.left = new FormAttachment(44);\n\t\tfd_subjet.top = new FormAttachment(50);\n\t\tsubjet.setLayoutData(fd_subjet);\n\t\tsubjet.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tsubjet.setText(\"\\u79D1\\u5BA4\");\n\t\t\n\t\tLabel doctor = new Label(load, SWT.NONE);\n\t\tFormData fd_doctor = new FormData();\n\t\tfd_doctor.top = new FormAttachment(60);\n\t\tfd_doctor.left = new FormAttachment(45, -10);\n\t\tdoctor.setLayoutData(fd_doctor);\n\t\tdoctor.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tdoctor.setText(\"\\u533B\\u751F\");\n\t\t\n\t\tnametext = new Text(load, SWT.BORDER);\n\t\tnametext.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\n\t\tnametext.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tFormData fd_nametext = new FormData();\n\t\tfd_nametext.right = new FormAttachment(50, 94);\n\t\tfd_nametext.top = new FormAttachment(20);\n\t\tfd_nametext.left = new FormAttachment(50);\n\t\tnametext.setLayoutData(fd_nametext);\n\t\t\n\t\tLabel titlelabel = new Label(load, SWT.NONE);\n\t\tFormData fd_titlelabel = new FormData();\n\t\tfd_titlelabel.right = new FormAttachment(43, 176);\n\t\tfd_titlelabel.top = new FormAttachment(10);\n\t\tfd_titlelabel.left = new FormAttachment(43);\n\t\ttitlelabel.setLayoutData(fd_titlelabel);\n\t\ttitlelabel.setFont(SWTResourceManager.getFont(\"楷体\", 18, SWT.BOLD));\n\t\ttitlelabel.setText(\"XX\\u533B\\u9662\\u95E8\\u8BCA\\u6302\\u53F7\");\n\t\t\n\t\tLabel label = new Label(load, SWT.NONE);\n\t\tFormData fd_label = new FormData();\n\t\tfd_label.top = new FormAttachment(40);\n\t\tfd_label.left = new FormAttachment(44, -10);\n\t\tlabel.setLayoutData(fd_label);\n\t\tlabel.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tlabel.setText(\"\\u6302\\u53F7\\u8D39\");\n\t\t\n\t\tcosttext = new Text(load, SWT.BORDER);\n\t\tcosttext.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\n\t\tcosttext.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tFormData fd_costtext = new FormData();\n\t\tfd_costtext.right = new FormAttachment(nametext, 0, SWT.RIGHT);\n\t\tfd_costtext.top = new FormAttachment(40);\n\t\tfd_costtext.left = new FormAttachment(50);\n\t\tcosttext.setLayoutData(fd_costtext);\n\t\t\n\t\tLabel type = new Label(load, SWT.NONE);\n\t\tFormData fd_type = new FormData();\n\t\tfd_type.top = new FormAttachment(30);\n\t\tfd_type.left = new FormAttachment(45, -10);\n\t\ttype.setLayoutData(fd_type);\n\t\ttype.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\ttype.setText(\"\\u7C7B\\u578B\");\n\t\t\n\t\tCombo typecombo = new Combo(load, SWT.NONE);\n\t\ttypecombo.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\n\t\ttypecombo.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tFormData fd_typecombo = new FormData();\n\t\tfd_typecombo.right = new FormAttachment(nametext, 0, SWT.RIGHT);\n\t\tfd_typecombo.top = new FormAttachment(30);\n\t\tfd_typecombo.left = new FormAttachment(50);\n\t\ttypecombo.setLayoutData(fd_typecombo);\n\t\ttypecombo.setText(\"\\u95E8\\u8BCA\\u7C7B\\u578B\");\n\t\ttypecombo.add(\"普通门诊\",0);\n\t\ttypecombo.add(\"专家门诊\",1);\n\t\tMySelectionListener3 ms3 = new MySelectionListener3(typecombo,costtext);\n\t\ttypecombo.addSelectionListener(ms3);\n\t\t\n\t\tCombo doctorcombo = new Combo(load, SWT.NONE);\n\t\tdoctorcombo.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\n\t\tdoctorcombo.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tFormData fd_doctorcombo = new FormData();\n\t\tfd_doctorcombo.right = new FormAttachment(nametext, 0, SWT.RIGHT);\n\t\tfd_doctorcombo.top = new FormAttachment(60);\n\t\tfd_doctorcombo.left = new FormAttachment(50);\n\t\tdoctorcombo.setLayoutData(fd_doctorcombo);\n\t\tdoctorcombo.setText(\"\\u9009\\u62E9\\u533B\\u751F\");\n\t\t\n\t\tCombo subject = new Combo(load, SWT.NONE);\n\t\tsubject.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\n\t\tsubject.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tfd_subjet.right = new FormAttachment(subject, -6);\n\t\tfd_subjet.top = new FormAttachment(subject, -1, SWT.TOP);\n\t\tFormData fd_subject = new FormData();\n\t\tfd_subject.right = new FormAttachment(nametext, 0, SWT.RIGHT);\n\t\tfd_subject.top = new FormAttachment(50);\n\t\tfd_subject.left = new FormAttachment(50);\n\t\tsubject.setLayoutData(fd_subject);\n\t\tsubject.setText(\"\\u79D1\\u5BA4\\uFF1F\");\n\t\tsubject.add(\"神经内科\", 0);\n\t\tsubject.add(\"呼吸科\", 1);\n\t\tsubject.add(\"泌尿科\", 2);\n\t\tsubject.add(\"放射科\", 3);\n\t\tsubject.add(\"五官\", 4);\n\t\tMySelectionListener myselection = new MySelectionListener(i,subject,doctorcombo,pdtabledaoimpl);\n\t\tsubject.addSelectionListener(myselection);\n\t\t\n\t\tMySelectionListener2 ms2 = new MySelectionListener2(subject,doctorcombo,Register,nametext,RDI);\n\t\tdoctorcombo.addSelectionListener(ms2);\n\t\t\n\t\tButton surebutton = new Button(load, SWT.NONE);\n\t\tFormData fd_surebutton = new FormData();\n\t\tfd_surebutton.top = new FormAttachment(70);\n\t\tfd_surebutton.left = new FormAttachment(44);\n\t\tsurebutton.setLayoutData(fd_surebutton);\n\t\tsurebutton.setFont(SWTResourceManager.getFont(\"楷体\", 12, SWT.BOLD));\n\t\tsurebutton.setText(\"\\u786E\\u5B9A\");\n\t\tsurebutton.addSelectionListener(new SelectionAdapter() {\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n \t Register register = new Register();\n\t\t\t\tPatientDAOImpl patientdaoimpl = new PatientDAOImpl();\n\n/*\t\t\t\tregisterdaoimpl.Save(Register);*/\n\t\t\t\tPatientInfo patientinfo = null;\n\t\t\t\tpatientinfo = patientdaoimpl.findByname(nametext.getText());\n\t\t\t\tif(patientinfo.getId() > 0 ){\n\t\t\t\t\tMessageBox messagebox = new MessageBox(load);\n\t\t\t\t\tmessagebox.setMessage(\"挂号成功!\");\n\t\t\t\t\tmessagebox.open();\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tMessageBox messagebox = new MessageBox(load);\n\t\t\t\t\tmessagebox.setMessage(\"此用户不存在,请先注册\");\n\t\t\t\t\tmessagebox.open();\n\t\t\t\t\tload.dispose();\n\t\t\t\t\tregister.open();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tButton registerbutton = new Button(load, SWT.NONE);\n\t\tFormData fd_registerbutton = new FormData();\n\t\tfd_registerbutton.top = new FormAttachment(70);\n\t\tfd_registerbutton.left = new FormAttachment(53);\n\t\tregisterbutton.setLayoutData(fd_registerbutton);\n\t\tregisterbutton.setFont(SWTResourceManager.getFont(\"楷体\", 12, SWT.BOLD));\n\t\tregisterbutton.setText(\"\\u6CE8\\u518C\");\n\t\tregisterbutton.addSelectionListener(new SelectionAdapter() {\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\t\n\t\t\t\tRegister register = new Register();\n\t\t\t\tload.close();\n\t\t\t\tregister.open();\n\t\t\t}\n\t\t});\n\t}", "protected void createContents() {\n setText(BUNDLE.getString(\"TranslationManagerShell.Application.Name\"));\n setSize(599, 505);\n\n final Composite cmpMain = new Composite(this, SWT.NONE);\n cmpMain.setLayout(new FormLayout());\n\n final Composite cmpControls = new Composite(cmpMain, SWT.NONE);\n final FormData fd_cmpControls = new FormData();\n fd_cmpControls.right = new FormAttachment(100, -5);\n fd_cmpControls.top = new FormAttachment(0, 5);\n fd_cmpControls.left = new FormAttachment(0, 5);\n cmpControls.setLayoutData(fd_cmpControls);\n cmpControls.setLayout(new FormLayout());\n\n final ToolBar modifyToolBar = new ToolBar(cmpControls, SWT.FLAT);\n\n tiSave = new ToolItem(modifyToolBar, SWT.PUSH);\n tiSave.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Save\"));\n tiSave.setEnabled(false);\n tiSave.setDisabledImage(SWTResourceManager.getImage(TranslationManagerShell.class,\n \"/images/tools16x16/d_save.gif\"));\n tiSave.setImage(SWTResourceManager.getImage(TranslationManagerShell.class, \"/images/tools16x16/e_save.gif\"));\n\n tiUndo = new ToolItem(modifyToolBar, SWT.PUSH);\n tiUndo.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Undo\"));\n tiUndo.setEnabled(false);\n tiUndo.setDisabledImage(SWTResourceManager.getImage(TranslationManagerShell.class,\n \"/images/tools16x16/d_reset.gif\"));\n tiUndo.setImage(SWTResourceManager.getImage(TranslationManagerShell.class, \"/images/tools16x16/e_reset.gif\"));\n\n tiDeleteSelected = new ToolItem(modifyToolBar, SWT.PUSH);\n tiDeleteSelected.setDisabledImage(SWTResourceManager.getImage(TranslationManagerShell.class,\n \"/images/tools16x16/d_remove.gif\"));\n tiDeleteSelected.setEnabled(false);\n tiDeleteSelected.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Delete\"));\n tiDeleteSelected.setImage(SWTResourceManager.getImage(TranslationManagerShell.class,\n \"/images/tools16x16/e_remove.gif\"));\n\n txtFilter = new LVSText(cmpControls, SWT.BORDER);\n final FormData fd_txtFilter = new FormData();\n fd_txtFilter.right = new FormAttachment(25, 0);\n fd_txtFilter.top = new FormAttachment(modifyToolBar, 0, SWT.CENTER);\n fd_txtFilter.left = new FormAttachment(modifyToolBar, 25, SWT.RIGHT);\n txtFilter.setLayoutData(fd_txtFilter);\n\n final ToolBar filterToolBar = new ToolBar(cmpControls, SWT.FLAT);\n final FormData fd_filterToolBar = new FormData();\n fd_filterToolBar.top = new FormAttachment(modifyToolBar, 0, SWT.TOP);\n fd_filterToolBar.left = new FormAttachment(txtFilter, 5, SWT.RIGHT);\n filterToolBar.setLayoutData(fd_filterToolBar);\n\n tiFilter = new ToolItem(filterToolBar, SWT.NONE);\n tiFilter.setImage(SWTResourceManager.getImage(TranslationManagerShell.class, \"/images/tools16x16/e_find.gif\"));\n tiFilter.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Filter\"));\n\n tiLocale = new ToolItem(filterToolBar, SWT.DROP_DOWN);\n tiLocale.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Locale\"));\n tiLocale.setImage(SWTResourceManager.getImage(TranslationManagerShell.class, \"/images/tools16x16/e_globe.png\"));\n\n menuLocale = new Menu(filterToolBar);\n addDropDown(tiLocale, menuLocale);\n\n lblSearchResults = new Label(cmpControls, SWT.NONE);\n lblSearchResults.setVisible(false);\n final FormData fd_lblSearchResults = new FormData();\n fd_lblSearchResults.top = new FormAttachment(filterToolBar, 0, SWT.CENTER);\n fd_lblSearchResults.left = new FormAttachment(filterToolBar, 5, SWT.RIGHT);\n lblSearchResults.setLayoutData(fd_lblSearchResults);\n lblSearchResults.setText(BUNDLE.getString(\"TranslationManagerShell.Label.Results\"));\n\n final ToolBar translateToolBar = new ToolBar(cmpControls, SWT.NONE);\n final FormData fd_translateToolBar = new FormData();\n fd_translateToolBar.top = new FormAttachment(filterToolBar, 0, SWT.TOP);\n fd_translateToolBar.right = new FormAttachment(100, 0);\n translateToolBar.setLayoutData(fd_translateToolBar);\n\n tiDebug = new ToolItem(translateToolBar, SWT.PUSH);\n tiDebug.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Debug\"));\n tiDebug.setImage(SWTResourceManager.getImage(TranslationManagerShell.class, \"/images/tools16x16/debug.png\"));\n\n new ToolItem(translateToolBar, SWT.SEPARATOR);\n\n tiAddBase = new ToolItem(translateToolBar, SWT.PUSH);\n tiAddBase.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.AddBase\"));\n tiAddBase.setImage(SWTResourceManager.getImage(TranslationManagerShell.class, \"/images/tools16x16/e_add.gif\"));\n\n tiTranslate = new ToolItem(translateToolBar, SWT.CHECK);\n tiTranslate.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Translate\"));\n tiTranslate.setImage(SWTResourceManager\n .getImage(TranslationManagerShell.class, \"/images/tools16x16/target.png\"));\n\n cmpTable = new Composite(cmpMain, SWT.NONE);\n cmpTable.setLayout(new FillLayout());\n final FormData fd_cmpTable = new FormData();\n fd_cmpTable.bottom = new FormAttachment(100, -5);\n fd_cmpTable.right = new FormAttachment(cmpControls, 0, SWT.RIGHT);\n fd_cmpTable.left = new FormAttachment(cmpControls, 0, SWT.LEFT);\n fd_cmpTable.top = new FormAttachment(cmpControls, 5, SWT.BOTTOM);\n cmpTable.setLayoutData(fd_cmpTable);\n\n final Menu menu = new Menu(this, SWT.BAR);\n setMenuBar(menu);\n\n final MenuItem menuItemFile = new MenuItem(menu, SWT.CASCADE);\n menuItemFile.setText(BUNDLE.getString(\"TranslationManagerShell.Menu.File\"));\n\n final Menu menuFile = new Menu(menuItemFile);\n menuItemFile.setMenu(menuFile);\n\n menuItemExit = new MenuItem(menuFile, SWT.NONE);\n menuItemExit.setAccelerator(SWT.ALT | SWT.F4);\n menuItemExit.setText(BUNDLE.getString(\"TranslationManagerShell.Menu.File.Exit\"));\n\n final MenuItem menuItemHelp = new MenuItem(menu, SWT.CASCADE);\n menuItemHelp.setText(BUNDLE.getString(\"TranslationManagerShell.Menu.Help\"));\n\n final Menu menuHelp = new Menu(menuItemHelp);\n menuItemHelp.setMenu(menuHelp);\n\n menuItemDebug = new MenuItem(menuHelp, SWT.NONE);\n menuItemDebug.setText(BUNDLE.getString(\"TranslationManagerShell.Menu.Help.Debug\"));\n\n new MenuItem(menuHelp, SWT.SEPARATOR);\n\n menuItemAbout = new MenuItem(menuHelp, SWT.NONE);\n menuItemAbout.setText(BUNDLE.getString(\"TranslationManagerShell.Menu.Help.About\"));\n //\n }", "protected void createContents() throws Exception\n\t{\n\t\tshell = new Shell();\n\t\tshell.setSize(755, 592);\n\t\tshell.setText(\"Impresor - Documentos v1.2\");\n\t\t\n\t\tthis.commClass.centrarVentana(shell);\n\t\t\n\t\tlistComandos = new List(shell, SWT.BORDER | SWT.H_SCROLL | SWT.COLOR_WHITE);\n\t\tlistComandos.setBounds(72, 22, 628, 498);\n\t\tlistComandos.setVisible(false);\n\n//Boton que carga los documentos\t\t\n\t\tButton btnLoaddocs = new Button(shell, SWT.NONE);\n\t\tbtnLoaddocs.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t}\n\t\t});\n\t\tbtnLoaddocs.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseUp(MouseEvent arg0) {\n\t\t\t\tloadDocs(false, false);\n\t\t\t}\n\t\t});\n\t\tbtnLoaddocs.setBounds(10, 20, 200, 26);\n\t\tbtnLoaddocs.setText(\"Cargar documentos a imprimir\");\n\t\t\n//Browser donde se muestra el documento descargado\n\t\tbrowser = new Browser(shell, SWT.BORDER);\n\t\tbrowser.setBounds(10, 289, 726, 231);\n\t\tbrowser.addProgressListener(new ProgressListener() \n\t\t{\n\t\t\tpublic void changed(ProgressEvent event) {\n\t\t\t\t// Cuando cambia.\t\n\t\t\t}\n\t\t\tpublic void completed(ProgressEvent event) {\n\t\t\t\t/* Cuando se completo \n\t\t\t\t Se usa para parsear el documento una vez cargado, el documento\n\t\t\t\t puede ser un doc xml que contiene un mensaje de error\n\t\t\t\t o un doc html que dara error de parseo Xml,es decir,\n\t\t\t\t ante este error entendemos que se cargo bien el doc HTML.\n\t\t\t\t Paradojico verdad? */\n\t\t\t\tleerDocumentoCargado();\n\t\t\t}\n\t\t });\n\n///Boton para iniciar impresion\t\t\n\t\tButton btnIniPrintW = new Button(shell, SWT.NONE);\n\t\tbtnIniPrintW.addKeyListener(new KeyAdapter() {\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tiniciarImpresion(null);\n\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnIniPrintW.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tiniciarImpresion(null);\n\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnIniPrintW.setBounds(337, 532, 144, 26);\n\t\tbtnIniPrintW.setText(\"Iniciar impresion\");\n\t\t\n\t\tLabel label = new Label(shell, SWT.SEPARATOR | SWT.HORIZONTAL);\n\t\tlabel.setBounds(10, 52, 885, 2);\n\t\t\n\t\tButton btnSalir = new Button(shell, SWT.NONE);\n\t\tbtnSalir.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\tshell.dispose();\n\t\t\t}\n\t\t});\n\t\tbtnSalir.addKeyListener(new KeyAdapter() {\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tshell.dispose();\n\t\t\t}\n\t\t});\n\t\tbtnSalir.setBounds(659, 532, 77, 26);\n\t\tbtnSalir.setText(\"Salir\");\n\t\t\n\t\tthreadLabel = new Label(shell, SWT.BORDER);\n\t\tthreadLabel.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseDoubleClick(MouseEvent e) {\n\t\t\t\t//mostrar / ocultar el historial de mensajes\n\t\t\t\tMOCmsgHist();\n\t\t\t}\n\t\t});\n\t\tthreadLabel.setAlignment(SWT.CENTER);\n\t\tthreadLabel.setBackground(new Color(display, 255,255,255));\n\t\tthreadLabel.setBounds(10, 0, 891, 18);\n\t\tthreadLabel.setText(\"\");\n\t\t\n\t\tLabel label_1 = new Label(shell, SWT.SEPARATOR | SWT.HORIZONTAL);\n\t\tlabel_1.setBounds(10, 281, 726, 2);\n\n\t\ttablaDocs = new Table(shell, SWT.BORDER | SWT.FULL_SELECTION);\n\t\ttablaDocs.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t//PabloGo, 12 de julio de 2013\n\t\t\t\t//verifUltDocSelected(e);\n\t\t\t\tseleccionarItemMouse(e);\n\t\t\t}\n\t\t});\n\t\ttablaDocs.addKeyListener(new KeyAdapter() {\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tseleccionarItem(e);\n\t\t\t}\n\t\t});\n\t\ttablaDocs.setBounds(10, 52, 726, 215);\n\t\ttablaDocs.setHeaderVisible(true);\n\t\ttablaDocs.setLinesVisible(true);\n\t\tcrearColumnas(tablaDocs);\n\t\t\n//Label que muestra los mensajes\n\t\tmensajeTxt = new Label(shell, SWT.NONE);\n\t\tmensajeTxt.setAlignment(SWT.CENTER);\n\t\tmensajeTxt.setBounds(251, 146, 200, 26);\n\t\tmensajeTxt.setText(\"Espere...\");\n\t\t\n//Listado donde se muestran los documentos cargados\n\t\tlistaDocumentos = new List(shell, SWT.BORDER);\n\t\tlistaDocumentos.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t//PabloGo, 12 de julio de 2013\n\t\t\t\t//verifUltDocSelected(e);\n\t\t\t\tseleccionarItemMouse(e);\n\t\t\t}\n\t\t});\n\t\tlistaDocumentos.addKeyListener(new KeyAdapter() {\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tseleccionarItem(e);\n\t\t\t}\n\t\t});\n\t\tlistaDocumentos.setBounds(10, 82, 726, 77);\n\t\t\n\t\tButton btnShowPreview = new Button(shell, SWT.CHECK);\n\t\tbtnShowPreview.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseUp(MouseEvent e) {\n\t\t\t\tif (((Button)e.getSource()).getSelection()){\n\t\t\t\t\tmostrarPreview = true;\n\t\t\t\t}else{\n\t\t\t\t\tmostrarPreview = false;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnShowPreview.setBounds(215, 28, 118, 18);\n\t\tbtnShowPreview.setText(\"Mostrar preview\");\n\t\t\n\t\tButton btnAutoRefresh = new Button(shell, SWT.CHECK);\n\t\tbtnAutoRefresh.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseUp(MouseEvent e) {\n\t\t\t\tif (((Button)e.getSource()).getSelection()){\n\t\t\t\t\tautoRefresh = true;\n\t\t\t\t\tbeginTarea();\n\t\t\t\t}else{\n\t\t\t\t\tautoRefresh = false;\n\t\t\t\t\tponerMsg(\"Carga automática desactivada\");\n\t\t\t\t\tfinishTarea();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnAutoRefresh.setBounds(353, 28, 128, 18);\n\t\tbtnAutoRefresh.setText(\"Recarga Automática\");\n\t\t\n\t\ttareaBack(this, autoRefresh).start();\n\t\tloadDocs(false, false);\n\t}", "public void createContents()\n\t{\n\t\tshell = new Shell();\n\t\tshell.setSize(450, 300);\n\t\tshell.setText(\"TTS - Task Tracker System\");\n\t\t\n\t\tbtnLogIn = new Button(shell, SWT.NONE);\n\t\tbtnLogIn.setBounds(349, 84, 75, 25);\n\t\tbtnLogIn.setText(\"Log In\");\n\t\tbtnLogIn.addSelectionListener(new SelectionAdapter()\n\t\t{\n\t\t\tpublic void widgetSelected(SelectionEvent arg0)\n\t\t\t{\n\t\t\t\tif (cboxUserDropDown.getText() != \"\"\n\t\t\t\t\t\t&& cboxUserDropDown.getSelectionIndex() >= 0)\n\t\t\t\t{\n\t\t\t\t\tString selectedUserName = cboxUserDropDown.getText();\n\t\t\t\t\tusers.setLoggedInUser(selectedUserName);\n\t\t\t\t\tshell.setVisible(false);\n\t\t\t\t\tdisplay.sleep();\n\t\t\t\t\tnew TaskMainViewWindow(AccessUsers.getLoggedInUser());\n\t\t\t\t\tdisplay.wake();\n\t\t\t\t\tshell.setVisible(true);\n\t\t\t\t\tshell.forceFocus();\n\t\t\t\t\tshell.setActive();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tbtnQuit = new Button(shell, SWT.CENTER);\n\t\tbtnQuit.setBounds(349, 227, 75, 25);\n\t\tbtnQuit.setText(\"Quit\");\n\t\tbtnQuit.addSelectionListener(new SelectionAdapter()\n\t\t{\n\t\t\tpublic void widgetSelected(SelectionEvent arg0)\n\t\t\t{\n\t\t\t\tshell.close();\n\t\t\t}\n\t\t});\n\t\t\n\t\tcboxUserDropDown = new Combo(shell, SWT.READ_ONLY);\n\t\tcboxUserDropDown.setBounds(146, 86, 195, 23);\n\t\t\n\t\tinitUserDropDown();\n\t\t\n\t\tlblNewLabel = new Label(shell, SWT.CENTER);\n\t\tlblNewLabel.setBounds(197, 21, 183, 25);\n\t\tlblNewLabel.setFont(new Font(display, \"Times\", 14, SWT.BOLD));\n\t\tlblNewLabel.setForeground(new Color(display, 200, 0, 0));\n\t\tlblNewLabel.setText(\"Task Tracker System\");\n\t\t\n\t\ticon = new Label(shell, SWT.BORDER);\n\t\ticon.setLocation(0, 0);\n\t\ticon.setSize(140, 111);\n\t\ticon.setImage(new Image(null, \"images/task.png\"));\n\t\t\n\t\tbtnCreateUser = new Button(shell, SWT.NONE);\n\t\tbtnCreateUser.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\n\t\t\t\tshell.setEnabled(false);\n\t\t\t\tnew CreateUserWindow(users);\n\t\t\t\tshell.setEnabled(true);\n\t\t\t\tinitUserDropDown();\n\t\t\t\tshell.forceFocus();\n\t\t\t\tshell.setActive();\n\t\t\t}\n\t\t});\n\t\tbtnCreateUser.setBounds(349, 115, 75, 25);\n\t\tbtnCreateUser.setText(\"Create User\");\n\t\t\n\t}", "protected void createContents() {\n\t\t\n\t\tshlMailview = new Shell();\n\t\tshlMailview.addShellListener(new ShellAdapter() {\n\t\t\t@Override\n\t\t\tpublic void shellClosed(ShellEvent e) {\n\t\t\t\tdispose();\n\t\t\t}\n\t\t});\n\t\tshlMailview.setBackground(SWTResourceManager.getColor(SWT.COLOR_GRAY));\n\t\tshlMailview.setSize(1124, 800);\n\t\tshlMailview.setText(\"MailView\");\n\t\tshlMailview.setLayout(new BorderLayout(0, 0));\t\t\n\t\t\n\t\tMenu menu = new Menu(shlMailview, SWT.BAR);\n\t\tshlMailview.setMenuBar(menu);\n\t\t\n\t\tMenuItem mntmNewSubmenu = new MenuItem(menu, SWT.CASCADE);\n\t\tmntmNewSubmenu.setText(\"\\u0413\\u043B\\u0430\\u0432\\u043D\\u0430\\u044F\");\n\t\t\n\t\tMenu mainMenu = new Menu(mntmNewSubmenu);\n\t\tmntmNewSubmenu.setMenu(mainMenu);\n\t\t\n\t\tMenuItem menuItem = new MenuItem(mainMenu, SWT.NONE);\n\t\tmenuItem.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tmyThready.stop();// interrupt();\n\t\t\t\tmyThready = new Thread(timer);\n\t\t\t\tmyThready.setDaemon(true);\n\t\t\t\tmyThready.start();\n\t\t\t}\n\t\t});\n\t\tmenuItem.setText(\"\\u041E\\u0431\\u043D\\u043E\\u0432\\u0438\\u0442\\u044C\");\n\t\t\n\t\tMenuItem exitMenu = new MenuItem(mainMenu, SWT.NONE);\n\t\texitMenu.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\t\t\t\t\n\t\t\t\tshlMailview.close();\n\t\t\t}\n\t\t});\n\t\texitMenu.setText(\"\\u0412\\u044B\\u0445\\u043E\\u0434\");\n\t\t\n\t\tMenuItem filtrMenu = new MenuItem(menu, SWT.NONE);\n\t\tfiltrMenu.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tfilterDialog fd = new filterDialog(shlMailview, 0);\n\t\t\t\tfd.open();\n\t\t\t}\n\t\t});\n\t\tfiltrMenu.setText(\"\\u0424\\u0438\\u043B\\u044C\\u0442\\u0440\");\n\t\t\n\t\tMenuItem settingsMenu = new MenuItem(menu, SWT.NONE);\n\t\tsettingsMenu.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tsettingDialog sd = new settingDialog(shlMailview, 0);\n\t\t\t\tsd.open();\n\t\t\t}\n\t\t});\n\t\tsettingsMenu.setText(\"\\u041D\\u0430\\u0441\\u0442\\u0440\\u043E\\u0439\\u043A\\u0438\");\n\t\t\n\t\tfinal TabFolder tabFolder = new TabFolder(shlMailview, SWT.NONE);\n\t\ttabFolder.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tif(tabFolder.getSelectionIndex() == 1)\n\t\t\t\t{\n\t\t\t\t\tservice.RepaintAccount(accountsTable);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\ttabFolder.setBackground(SWTResourceManager.getColor(SWT.COLOR_GRAY));\n\t\t\n\t\tTabItem lettersTab = new TabItem(tabFolder, SWT.NONE);\n\t\tlettersTab.setText(\"\\u041F\\u0438\\u0441\\u044C\\u043C\\u0430\");\n\t\t\n\t\tComposite composite_2 = new Composite(tabFolder, SWT.NONE);\n\t\tlettersTab.setControl(composite_2);\n\t\tcomposite_2.setLayout(new FormLayout());\n\t\t\n\t\tComposite composite_4 = new Composite(composite_2, SWT.NONE);\n\t\tFormData fd_composite_4 = new FormData();\n\t\tfd_composite_4.bottom = new FormAttachment(0, 81);\n\t\tfd_composite_4.top = new FormAttachment(0);\n\t\tfd_composite_4.left = new FormAttachment(0);\n\t\tfd_composite_4.right = new FormAttachment(0, 1100);\n\t\tcomposite_4.setLayoutData(fd_composite_4);\n\t\t\n\t\tComposite composite_5 = new Composite(composite_2, SWT.NONE);\n\t\tcomposite_5.setLayout(new BorderLayout(0, 0));\n\t\tFormData fd_composite_5 = new FormData();\n\t\tfd_composite_5.bottom = new FormAttachment(composite_4, 281, SWT.BOTTOM);\n\t\tfd_composite_5.left = new FormAttachment(composite_4, 0, SWT.LEFT);\n\t\tfd_composite_5.right = new FormAttachment(composite_4, 0, SWT.RIGHT);\n\t\tfd_composite_5.top = new FormAttachment(composite_4, 6);\n\t\tcomposite_5.setLayoutData(fd_composite_5);\n\t\t\n\t\tComposite composite_10 = new Composite(composite_2, SWT.NONE);\n\t\tFormData fd_composite_10 = new FormData();\n\t\tfd_composite_10.top = new FormAttachment(composite_5, 6);\n\t\tfd_composite_10.bottom = new FormAttachment(100, -10);\n\t\t\n\t\tlettersTable = new Table(composite_5, SWT.BORDER | SWT.FULL_SELECTION);\n\t\tlettersTable.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tif(lettersTable.getItems().length>0)\n\t\t\t\t{\t\t\t\t\t\n\t\t\t\t\tTableItem item = lettersTable.getSelection()[0];\n\t\t\t\t\titem.setFont(SWTResourceManager.getFont(\"Segoe UI\", 9, SWT.NONE));\n\t\t\t\t\tbox.Preview(Integer.parseInt(item.getText(0)));\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tlettersTable.setLinesVisible(true);\n\t\tlettersTable.setHeaderVisible(true);\n\t\tTableColumn msgId = new TableColumn(lettersTable, SWT.NONE);\n\t\tmsgId.setResizable(false);\n\t\tmsgId.setText(\"ID\");\n\t\t\n\t\tTableColumn from = new TableColumn(lettersTable, SWT.NONE);\n\t\tfrom.setWidth(105);\n\t\tfrom.setText(\"\\u041E\\u0442\");\n\t\tfrom.addListener(SWT.Selection, SortListenerFactory.getListener(SortListenerFactory.STRING_COMPARATOR));\n\t\t\n\t\tTableColumn to = new TableColumn(lettersTable, SWT.NONE);\n\t\tto.setWidth(111);\n\t\tto.setText(\"\\u041A\\u043E\\u043C\\u0443\");\n\t\tto.addListener(SWT.Selection, SortListenerFactory.getListener(SortListenerFactory.STRING_COMPARATOR));\n\t\t\n\t\tTableColumn subject = new TableColumn(lettersTable, SWT.NONE);\n\t\tsubject.setWidth(406);\n\t\tsubject.setText(\"\\u0422\\u0435\\u043C\\u0430\");\n\t\tsubject.addListener(SWT.Selection, SortListenerFactory.getListener(SortListenerFactory.STRING_COMPARATOR));\n\t\t\n\t\tTableColumn created = new TableColumn(lettersTable, SWT.NONE);\n\t\tcreated.setWidth(176);\n\t\tcreated.setText(\"\\u0421\\u043E\\u0437\\u0434\\u0430\\u043D\\u043E\");\n\t\tcreated.addListener(SWT.Selection, SortListenerFactory.getListener(SortListenerFactory.DATE_COMPARATOR));\n\t\t\n\t\tTableColumn received = new TableColumn(lettersTable, SWT.NONE);\n\t\treceived.setWidth(194);\n\t\treceived.setText(\"\\u041F\\u043E\\u043B\\u0443\\u0447\\u0435\\u043D\\u043E\");\n\t\treceived.addListener(SWT.Selection, SortListenerFactory.getListener(SortListenerFactory.DATE_COMPARATOR));\t\t\n\t\t\n\t\tMenu popupMenuLetter = new Menu(lettersTable);\n\t\tlettersTable.setMenu(popupMenuLetter);\n\t\t\n\t\tMenuItem miUpdate = new MenuItem(popupMenuLetter, SWT.NONE);\n\t\tmiUpdate.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tmyThready.stop();// interrupt();\n\t\t\t\tmyThready = new Thread(timer);\n\t\t\t\tmyThready.setDaemon(true);\n\t\t\t\tmyThready.start();\n\t\t\t}\n\t\t});\n\t\tmiUpdate.setText(\"\\u041E\\u0431\\u043D\\u043E\\u0432\\u0438\\u0442\\u044C\");\n\t\t\n\t\tfinal MenuItem miDelete = new MenuItem(popupMenuLetter, SWT.NONE);\n\t\tmiDelete.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tif(lettersTable.getItems().length>0)\n\t\t\t\t{\t\t\t\t\n\t\t\t\t\tTableItem item = lettersTable.getSelection()[0];\n\t\t\t\t\tbox.deleteMessage(Integer.parseInt(item.getText(0)), lettersTable.getSelectionIndex());\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tmiDelete.setText(\"\\u0412 \\u043A\\u043E\\u0440\\u0437\\u0438\\u043D\\u0443\");\n\t\tfd_composite_10.right = new FormAttachment(composite_4, 0, SWT.RIGHT);\n\t\t\n\t\tfinal Button btnInbox = new Button(composite_4, SWT.NONE);\n\t\tfinal Button btnTrash = new Button(composite_4, SWT.NONE);\n\t\t\n\t\tbtnInbox.setBounds(10, 10, 146, 39);\n\t\tbtnInbox.setEnabled(false);\n\t\tbtnInbox.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tSetting.Instance().SetTab(false);\t\t\t\t\n\t\t\t\tbtnInbox.setEnabled(false);\n\t\t\t\tmiDelete.setText(\"\\u0412 \\u043A\\u043E\\u0440\\u0437\\u0438\\u043D\\u0443\");\n\t\t\t\tbtnTrash.setEnabled(true);\n\t\t\t\tbox.rePaint();\n\t\t\t}\n\t\t});\n\t\tbtnInbox.setText(\"\\u0412\\u0445\\u043E\\u0434\\u044F\\u0449\\u0438\\u0435\");\n\t\tbtnTrash.setLocation(170, 10);\n\t\tbtnTrash.setSize(146, 39);\n\t\tbtnTrash.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tSetting.Instance().SetTab(true);\n\t\t\t\tbtnInbox.setEnabled(true);\n\t\t\t\tmiDelete.setText(\"\\u0423\\u0434\\u0430\\u043B\\u0438\\u0442\\u044C\");\n\t\t\t\tbtnTrash.setEnabled(false);\n\t\t\t\tbox.rePaint();\n\t\t\t}\n\t\t});\n\t\tbtnTrash.setText(\"\\u041A\\u043E\\u0440\\u0437\\u0438\\u043D\\u0430\");\n\t\t\n\t\tButton deleteLetter = new Button(composite_4, SWT.NONE);\n\t\tdeleteLetter.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tif(lettersTable.getItems().length>0)\n\t\t\t\t{\t\t\t\t\n\t\t\t\t\tTableItem item = lettersTable.getSelection()[0];\n\t\t\t\t\tbox.deleteMessage(Integer.parseInt(item.getText(0)), lettersTable.getSelectionIndex());\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tdeleteLetter.setLocation(327, 11);\n\t\tdeleteLetter.setSize(146, 37);\n\t\tdeleteLetter.setFont(SWTResourceManager.getFont(\"Segoe UI\", 9, SWT.BOLD));\n\t\tdeleteLetter.setText(\"\\u0423\\u0434\\u0430\\u043B\\u0438\\u0442\\u044C\");\n\t\t\n\t\tLabel label = new Label(composite_4, SWT.NONE);\n\t\tlabel.setLocation(501, 17);\n\t\tlabel.setSize(74, 27);\n\t\tlabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\n\t\tlabel.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.BOLD));\n\t\tlabel.setText(\"\\u0410\\u043A\\u043A\\u0430\\u0443\\u043D\\u0442\");\n\t\t\n\t\tCombo listAccounts = new Combo(composite_4, SWT.NONE);\n\t\tlistAccounts.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.NORMAL));\n\t\tlistAccounts.setLocation(583, 19);\n\t\tlistAccounts.setSize(180, 23);\n\t\tlistAccounts.setItems(new String[] {\"\\u0412\\u0441\\u0435\"});\n\t\tlistAccounts.select(0);\n\t\t\n\t\tprogressBar = new ProgressBar(composite_4, SWT.NONE);\n\t\tprogressBar.setBounds(10, 64, 263, 17);\n\t\tfd_composite_10.left = new FormAttachment(0);\n\t\tcomposite_10.setLayoutData(fd_composite_10);\n\t\t\n\t\theaderMessage = new Text(composite_10, SWT.BORDER);\n\t\theaderMessage.setFont(SWTResourceManager.getFont(\"Segoe UI\", 14, SWT.NORMAL));\n\t\theaderMessage.setBounds(0, 0, 1100, 79);\n\t\t\n\t\tsc = new ScrolledComposite(composite_10, SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL);\n\t\tsc.setBounds(0, 85, 1100, 230);\n\t\tsc.setExpandHorizontal(true);\n\t\tsc.setExpandVertical(true);\t\t\n\t\t\n\t\tTabItem accountsTab = new TabItem(tabFolder, SWT.NONE);\n\t\taccountsTab.setText(\"\\u0410\\u043A\\u043A\\u0430\\u0443\\u043D\\u0442\\u044B\");\n\t\t\n\t\tComposite accountComposite = new Composite(tabFolder, SWT.NONE);\n\t\taccountsTab.setControl(accountComposite);\n\t\taccountComposite.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_LIGHT_SHADOW));\n\t\t\n\t\t\tLabel labelListAccounts = new Label(accountComposite, SWT.NONE);\n\t\t\tlabelListAccounts.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_LIGHT_SHADOW));\n\t\t\tlabelListAccounts.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.BOLD));\n\t\t\tlabelListAccounts.setBounds(10, 37, 148, 31);\n\t\t\tlabelListAccounts.setText(\"\\u0421\\u043F\\u0438\\u0441\\u043E\\u043A \\u0430\\u043A\\u043A\\u0430\\u0443\\u043D\\u0442\\u043E\\u0432\");\n\t\t\t\n\t\t\tComposite Actions = new Composite(accountComposite, SWT.NONE);\n\t\t\tActions.setBounds(412, 71, 163, 234);\n\t\t\t\n\t\t\tButton addAccount = new Button(Actions, SWT.NONE);\n\t\t\taddAccount.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\tAccountDialog ad = new AccountDialog(shlMailview, accountsTable, true);\n\t\t\t\t\tad.open();\n\t\t\t\t}\n\t\t\t});\n\t\t\taddAccount.setForeground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\t\taddAccount.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\t\t\taddAccount.setBounds(10, 68, 141, 47);\n\t\t\taddAccount.setText(\"\\u0414\\u043E\\u0431\\u0430\\u0432\\u0438\\u0442\\u044C\");\n\t\t\t\n\t\t\tButton editAccount = new Button(Actions, SWT.NONE);\n\t\t\teditAccount.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\tif(accountsTable.getItems().length>0)\n\t\t\t\t\t{\n\t\t\t\t\tAccountDialog ad = new AccountDialog(shlMailview, accountsTable, false);\n\t\t\t\t\tad.open();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t\teditAccount.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\t\t\teditAccount.setBounds(10, 121, 141, 47);\n\t\t\teditAccount.setText(\"\\u0418\\u0437\\u043C\\u0435\\u043D\\u0438\\u0442\\u044C\");\n\t\t\t\n\t\t\tButton deleteAccount = new Button(Actions, SWT.NONE);\n\t\t\tdeleteAccount.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\tif(accountsTable.getItems().length>0)\n\t\t\t\t\t{\n\t\t\t\t\t\tTableItem item = accountsTable.getSelection()[0];\n\t\t\t\t\t\tif(MessageDialog.openConfirm(shlMailview, \"Удаление\", \"Вы хотите удалить учетную запись \" + item.getText(1)+\"?\"))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tservice.DeleteAccount(item.getText(0));\n\t\t\t\t\t\t\tservice.RepaintAccount(accountsTable);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t\tdeleteAccount.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\t\t\t\n\t\t\tdeleteAccount.setBounds(10, 174, 141, 47);\n\t\t\tdeleteAccount.setText(\"\\u0423\\u0434\\u0430\\u043B\\u0438\\u0442\\u044C\");\n\t\t\t\n\t\t\tfinal Button Include = new Button(Actions, SWT.NONE);\n\t\t\tInclude.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\tif(accountsTable.getItems().length>0)\n\t\t\t\t\t{\n\t\t\t\t\t\tTableItem item = accountsTable.getSelection()[0];\n\t\t\t\t\t\tservice.toogleIncludeAccount(item.getText(0));\n\t\t\t\t\t\tservice.RepaintAccount(accountsTable);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t\tInclude.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\t\t\tInclude.setBounds(10, 10, 141, 47);\n\t\t\tInclude.setText(\"\\u0412\\u043A\\u043B\\u044E\\u0447\\u0438\\u0442\\u044C\");\n\n\t\t\taccountsTable = new Table(accountComposite, SWT.SINGLE | SWT.BORDER | SWT.FULL_SELECTION);\n\t\t\taccountsTable.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\tif(accountsTable.getSelection()[0].getText(2)==\"Включен\")\n\t\t\t\t\t{\n\t\t\t\t\t\tInclude.setText(\"\\u0412\\u044B\\u043A\\u043B\\u044E\\u0447\\u0438\\u0442\\u044C\");\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tInclude.setText(\"\\u0412\\u043A\\u043B\\u044E\\u0447\\u0438\\u0442\\u044C\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\n\t\t\taccountsTable.setBounds(10, 74, 396, 296);\n\t\t\taccountsTable.setHeaderVisible(true);\n\t\t\taccountsTable.setLinesVisible(true);\n\t\t\t\n\t\t\tTableColumn tblclmnId = new TableColumn(accountsTable, SWT.NONE);\n\t\t\ttblclmnId.setWidth(35);\n\t\t\ttblclmnId.setText(\"ID\");\n\t\t\t//accountsTable.setRedraw(false);\n\t\t\t\n\t\t\tTableColumn columnLogin = new TableColumn(accountsTable, SWT.LEFT);\n\t\t\tcolumnLogin.setWidth(244);\n\t\t\tcolumnLogin.setText(\"\\u0410\\u043A\\u043A\\u0430\\u0443\\u043D\\u0442\");\n\t\t\t\n\t\t\tTableColumn columnState = new TableColumn(accountsTable, SWT.LEFT);\n\t\t\tcolumnState.setWidth(100);\n\t\t\tcolumnState.setText(\"\\u0421\\u043E\\u0441\\u0442\\u043E\\u044F\\u043D\\u0438\\u0435\");\n\t}", "protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tshell.setSize(599, 779);\r\n\t\tshell.setText(\"إضافة كتاب جديد\");\r\n\r\n\t\tButton logoBtn = new Button(shell, SWT.NONE);\r\n\t\tlogoBtn.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tMainMenuKaff mm = new MainMenuKaff();\r\n\t\t\t\tshell.close();\r\n\t\t\t\tmm.open();\r\n\t\t\t}\r\n\t\t});\r\n\t\tlogoBtn.setImage(SWTResourceManager\r\n\t\t\t\t.getImage(\"C:\\\\Users\\\\al5an\\\\git\\\\KaffPlatform\\\\KaffPlatformProject\\\\img\\\\logo for header button.png\"));\r\n\t\tlogoBtn.setBounds(497, 0, 64, 50);\r\n\r\n\t\tLabel headerLabel = new Label(shell, SWT.NONE);\r\n\t\theaderLabel.setImage(SWTResourceManager\r\n\t\t\t\t.getImage(\"C:\\\\Users\\\\al5an\\\\git\\\\KaffPlatform\\\\KaffPlatformProject\\\\img\\\\KaffPlatformheader.jpg\"));\r\n\t\theaderLabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\theaderLabel.setBounds(0, 0, 607, 50);\r\n\r\n\t\tLabel bookInfoLabel = new Label(shell, SWT.NONE);\r\n\t\tbookInfoLabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tbookInfoLabel.setForeground(SWTResourceManager.getColor(210, 105, 30));\r\n\t\tbookInfoLabel.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.BOLD));\r\n\t\tbookInfoLabel.setAlignment(SWT.CENTER);\r\n\t\tbookInfoLabel.setBounds(177, 130, 192, 28);\r\n\t\tbookInfoLabel.setText(\"معلومات الكتاب\");\r\n\r\n\t\tLabel bookTitleLabel = new Label(shell, SWT.NONE);\r\n\t\tbookTitleLabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tbookTitleLabel.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\tbookTitleLabel.setBounds(415, 203, 119, 28);\r\n\t\tbookTitleLabel.setText(\"عنوان الكتاب\");\r\n\r\n\t\tBookTitleTxt = new Text(shell, SWT.BORDER);\r\n\t\tBookTitleTxt.setBounds(56, 206, 334, 24);\r\n\r\n\t\tLabel bookIDLabel = new Label(shell, SWT.NONE);\r\n\t\tbookIDLabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tbookIDLabel.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\tbookIDLabel.setBounds(415, 170, 119, 32);\r\n\t\tbookIDLabel.setText(\"رمز الكتاب\");\r\n\r\n\t\tLabel editionLabel = new Label(shell, SWT.NONE);\r\n\t\teditionLabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\teditionLabel.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\teditionLabel.setBounds(415, 235, 119, 28);\r\n\t\teditionLabel.setText(\"إصدار الكتاب\");\r\n\r\n\t\teditionTxt = new Text(shell, SWT.BORDER);\r\n\t\teditionTxt.setBounds(271, 240, 119, 24);\r\n\r\n\t\tLabel lvlLabel = new Label(shell, SWT.NONE);\r\n\t\tlvlLabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tlvlLabel.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\tlvlLabel.setText(\"المستوى\");\r\n\t\tlvlLabel.setBounds(415, 269, 119, 27);\r\n\r\n\t\tCombo lvlBookCombo = new Combo(shell, SWT.NONE);\r\n\t\tlvlBookCombo.setItems(new String[] { \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\", \"10\" });\r\n\t\tlvlBookCombo.setBounds(326, 272, 64, 25);\r\n\t\tlvlBookCombo.select(0);\r\n\r\n\t\tLabel priceLabel = new Label(shell, SWT.NONE);\r\n\t\tpriceLabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tpriceLabel.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\tpriceLabel.setText(\"السعر\");\r\n\t\tpriceLabel.setBounds(415, 351, 119, 28);\r\n\r\n\t\tGroup groupType = new Group(shell, SWT.NONE);\r\n\t\tgroupType.setBounds(56, 320, 334, 24);\r\n\r\n\t\tButton button = new Button(groupType, SWT.RADIO);\r\n\t\tbutton.setSelection(true);\r\n\t\tbutton.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\tbutton.setBounds(21, 0, 73, 21);\r\n\t\tbutton.setText(\"مجاناً\");\r\n\r\n\t\tButton button_1 = new Button(groupType, SWT.RADIO);\r\n\t\tbutton_1.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\tbutton_1.setBounds(130, 0, 73, 21);\r\n\t\tbutton_1.setText(\"إعارة\");\r\n\r\n\t\tButton button_2 = new Button(groupType, SWT.RADIO);\r\n\t\tbutton_2.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\tbutton_2.setBounds(233, 0, 80, 21);\r\n\t\tbutton_2.setText(\"للبيع\");\r\n\r\n\t\tpriceTxtValue = new Text(shell, SWT.BORDER);\r\n\t\tpriceTxtValue.setBounds(326, 355, 64, 24);\r\n\r\n\t\tLabel ownerInfoLabel = new Label(shell, SWT.NONE);\r\n\t\townerInfoLabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\townerInfoLabel.setForeground(SWTResourceManager.getColor(210, 105, 30));\r\n\t\townerInfoLabel.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.BOLD));\r\n\t\townerInfoLabel.setText(\"معلومات صاحبة الكتاب\");\r\n\t\townerInfoLabel.setAlignment(SWT.CENTER);\r\n\t\townerInfoLabel.setBounds(147, 400, 242, 28);\r\n\r\n\t\tLabel ownerIDLabel = new Label(shell, SWT.NONE);\r\n\t\townerIDLabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\townerIDLabel.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\townerIDLabel.setBounds(415, 441, 119, 34);\r\n\t\townerIDLabel.setText(\"الرقم الأكاديمي\");\r\n\r\n\t\townerIDValue = new Text(shell, SWT.BORDER);\r\n\t\townerIDValue.setBounds(204, 444, 186, 24);\r\n\t\t// need to check if the owner is already in the database...\r\n\r\n\t\tLabel nameLabel = new Label(shell, SWT.NONE);\r\n\t\tnameLabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tnameLabel.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\tnameLabel.setBounds(415, 481, 119, 28);\r\n\t\tnameLabel.setText(\"الاسم الثلاثي\");\r\n\r\n\t\tnameTxt = new Text(shell, SWT.BORDER);\r\n\t\tnameTxt.setBounds(56, 485, 334, 24);\r\n\r\n\t\tLabel phoneLabel = new Label(shell, SWT.NONE);\r\n\t\tphoneLabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tphoneLabel.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\tphoneLabel.setText(\"رقم الجوال\");\r\n\t\tphoneLabel.setBounds(415, 515, 119, 27);\r\n\r\n\t\tphoneTxt = new Text(shell, SWT.BORDER);\r\n\t\tphoneTxt.setBounds(204, 521, 186, 24);\r\n\r\n\t\tLabel ownerLvlLabel = new Label(shell, SWT.NONE);\r\n\t\townerLvlLabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\townerLvlLabel.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\townerLvlLabel.setBounds(415, 548, 119, 31);\r\n\t\townerLvlLabel.setText(\"المستوى\");\r\n\r\n\t\tCombo owneLvlCombo = new Combo(shell, SWT.NONE);\r\n\t\towneLvlCombo.setItems(new String[] { \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\", \"10\" });\r\n\t\towneLvlCombo.setBounds(326, 554, 64, 25);\r\n\t\towneLvlCombo.select(0);\r\n\r\n\t\tLabel emailLabel = new Label(shell, SWT.NONE);\r\n\t\temailLabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\temailLabel.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\temailLabel.setBounds(415, 583, 119, 38);\r\n\t\temailLabel.setText(\"البريد الإلكتروني\");\r\n\r\n\t\temailTxt = new Text(shell, SWT.BORDER);\r\n\t\temailTxt.setBounds(56, 586, 334, 24);\r\n\r\n\t\tButton addButton = new Button(shell, SWT.NONE);\r\n\t\taddButton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\r\n\t\t\t\ttry {\r\n\t\t\t\t\tString bookQuery = \"INSERT INTO kaff.BOOK(bookID, bookTitle, price, level,available, type) VALUES (?, ?, ?, ?, ?, ?, ?)\";\r\n\t\t\t\t\tString bookEdition = \"INSERT INTO kaff.bookEdition(bookID, edition, year) VALUES (?, ?, ?)\";\r\n\t\t\t\t\tString ownerQuery = \"INSERT INTO kaff.user(userID, fname, mname, lastname, phone, level, personalEmail, email) VALUES (?, ?, ?, ?, ?, ?, ?, ?)\";\r\n\r\n\t\t\t\t\tString bookID = bookIDTxt.getText();\r\n\t\t\t\t\tString bookTitle = BookTitleTxt.getText();\r\n\t\t\t\t\tint bookLevel = lvlBookCombo.getSelectionIndex();\r\n\t\t\t\t\tString type = groupType.getText();\r\n\t\t\t\t\tdouble price = Double.parseDouble(priceTxtValue.getText());\r\n\t\t\t\t\tboolean available = true;\r\n\r\n\t\t\t\t\t// must error handle\r\n\t\t\t\t\tString[] ed = editionTxt.getText().split(\" \");\r\n\t\t\t\t\tString edition = ed[0];\r\n\t\t\t\t\tString year = ed[1];\r\n\r\n\t\t\t\t\tString ownerID = ownerIDValue.getText();\r\n\r\n\t\t\t\t\t// error handle if the user enters two names or just first name\r\n\t\t\t\t\tString[] name = nameTxt.getText().split(\" \");\r\n\t\t\t\t\tString fname = \"\", mname = \"\", lname = \"\";\r\n\t\t\t\t\tSystem.out.println(\"name array\" + name);\r\n\t\t\t\t\tif (name.length > 2) {\r\n\t\t\t\t\t\tfname = name[0];\r\n\t\t\t\t\t\tmname = name[1];\r\n\t\t\t\t\t\tlname = name[2];\r\n\t\t\t\t\t}\r\n\t\t\t\t\tString phone = phoneTxt.getText();\r\n\t\t\t\t\tint userLevel = owneLvlCombo.getSelectionIndex();\r\n\t\t\t\t\tString email = emailTxt.getText();\r\n\r\n\t\t\t\t\tDatabase.openConnection();\r\n\t\t\t\t\tPreparedStatement bookStatement = Database.getConnection().prepareStatement(bookQuery);\r\n\r\n\t\t\t\t\tbookStatement.setString(1, bookID);\r\n\t\t\t\t\tbookStatement.setString(2, bookTitle);\r\n\t\t\t\t\tbookStatement.setInt(3, bookLevel);\r\n\t\t\t\t\tbookStatement.setString(4, type);\r\n\t\t\t\t\tbookStatement.setDouble(5, price);\r\n\t\t\t\t\tbookStatement.setBoolean(6, available);\r\n\r\n\t\t\t\t\tint bookre = bookStatement.executeUpdate();\r\n\r\n\t\t\t\t\tbookStatement = Database.getConnection().prepareStatement(bookEdition);\r\n\t\t\t\t\tbookStatement.setString(1, bookID);\r\n\t\t\t\t\tbookStatement.setString(2, edition);\r\n\t\t\t\t\tbookStatement.setString(3, year);\r\n\r\n\t\t\t\t\tint edResult = bookStatement.executeUpdate();\r\n\r\n\t\t\t\t\tPreparedStatement ownerStatement = Database.getConnection().prepareStatement(ownerQuery);\r\n\t\t\t\t\townerStatement.setString(1, ownerID);\r\n\t\t\t\t\townerStatement.setString(2, fname);\r\n\t\t\t\t\townerStatement.setString(3, mname);\r\n\t\t\t\t\townerStatement.setString(4, lname);\r\n\t\t\t\t\townerStatement.setString(5, phone);\r\n\t\t\t\t\townerStatement.setInt(6, userLevel);\r\n\t\t\t\t\townerStatement.setString(7, ownerID + \"iau.edu.sa\");\r\n\t\t\t\t\townerStatement.setString(8, email);\r\n\t\t\t\t\tint ownRes = ownerStatement.executeUpdate();\r\n\r\n\t\t\t\t\tSystem.out.println(\"results: \" + ownRes + \" \" + edResult + \" bookre\");\r\n\t\t\t\t\t// test result of excute Update\r\n\t\t\t\t\tif (ownRes != 0 && edResult != 0 && bookre != 0) {\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Data is updated\");\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Data is not updated\");\r\n\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tDatabase.closeConnection();\r\n\t\t\t\t} catch (SQLException sql) {\r\n\t\t\t\t\tSystem.out.println(sql);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\taddButton.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\taddButton.setBounds(54, 666, 85, 26);\r\n\t\taddButton.setText(\"إضافة\");\r\n\r\n\t\tButton backButton = new Button(shell, SWT.NONE);\r\n\t\tbackButton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tAdminMenu am = new AdminMenu();\r\n\t\t\t\tshell.close();\r\n\t\t\t\tam.open();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbackButton.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\tbackButton.setBounds(150, 666, 85, 26);\r\n\t\tbackButton.setText(\"رجوع\");\r\n\r\n\t\tLabel label = new Label(shell, SWT.NONE);\r\n\t\tlabel.setBounds(177, 72, 192, 21);\r\n\t\tlabel.setText(\"إضافة كتاب جديد\");\r\n\r\n\t\tLabel label_1 = new Label(shell, SWT.NONE);\r\n\t\tlabel_1.setBounds(22, 103, 167, 21);\r\n\t\t// get user name here to display\r\n\t\tString name = getUserName();\r\n\t\tlabel_1.setText(\"مرحباً ...\" + name);\r\n\r\n\t\tbookIDTxt = new Text(shell, SWT.BORDER);\r\n\t\tbookIDTxt.setBounds(271, 170, 119, 24);\r\n\r\n\t}", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setModified(true);\n\t\tshell.setSize(512, 300);\n\t\tshell.setText(\"SWT Application\");\n\t\tshell.setLayout(null);\n\n\t\tLabel label = new Label(shell, SWT.SEPARATOR | SWT.VERTICAL);\n\t\tlabel.setBounds(253, 26, 2, 225);\n\n\t\tcomboCarBrandBuy = new Combo(shell, SWT.READ_ONLY);\n\t\tcomboCarBrandBuy.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tlabel_1.setText(\"Selected\");\n\t\t\t}\n\t\t});\n\t\tcomboCarBrandBuy.setItems(new String[] {\"Maruti\", \"Fiat\", \"Tata\", \"Ford\", \"Honda\", \"Hyundai\"});\n\t\tcomboCarBrandBuy.setBounds(87, 33, 123, 23);\n\t\tcomboCarBrandBuy.setText(\"--select--\");\n\n\t\tLabel lblCarBrand = new Label(shell, SWT.NONE);\n\t\tlblCarBrand.setAlignment(SWT.RIGHT);\n\t\tlblCarBrand.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.NORMAL));\n\t\tlblCarBrand.setBounds(12, 38, 71, 15);\n\t\tlblCarBrand.setText(\"Car Brand :\");\n\n\t\ttextCarNameBuy = new Text(shell, SWT.BORDER);\n\t\ttextCarNameBuy.setBounds(87, 67, 123, 21);\n\n\t\tLabel lblCarName = new Label(shell, SWT.NONE);\n\t\tlblCarName.setAlignment(SWT.RIGHT);\n\t\tlblCarName.setText(\"Car Name :\");\n\t\tlblCarName.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.NORMAL));\n\t\tlblCarName.setBounds(12, 70, 71, 15);\n\n\t\tcomboCarModelBuy = new Combo(shell, SWT.READ_ONLY);\n\t\tcomboCarModelBuy.setItems(new String[] {\"2015\", \"2014\", \"2013\", \"2012\", \"2011\", \"2010\", \"2009\", \"2008\", \"2007\", \"2006\", \"2005\", \"2004\", \"2003\", \"2002\", \"2001\", \"2000\"});\n\t\tcomboCarModelBuy.setBounds(87, 99, 91, 23);\n\t\tcomboCarModelBuy.setText(\"--select--\");\n\n\t\tLabel lblModelYear = new Label(shell, SWT.NONE);\n\t\tlblModelYear.setAlignment(SWT.RIGHT);\n\t\tlblModelYear.setText(\"Model :\");\n\t\tlblModelYear.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.NORMAL));\n\t\tlblModelYear.setBounds(12, 105, 71, 15);\n\n\t\tButton buttonBuy = new Button(shell, SWT.NONE);\n\t\tbuttonBuy.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\n\t\t\t\tString carName = textCarNameBuy.getText();\n\t\t\t\tString carModel = comboCarModelBuy.getText();\n\n\t\t\t\tif(comboCarBrandBuy.getText().equalsIgnoreCase(\"maruti\")){\n\t\t\t\t\tmarutiMap.put(carName, carModel);\n\t\t\t\t}\n\n\t\t\t\tlabel_1.setText(\"Added to Inventory\");\n\t\t\t\tSystem.out.println(marutiMap);\n\t\t\t}\n\t\t});\n\t\tbuttonBuy.setBounds(87, 138, 63, 25);\n\t\tbuttonBuy.setText(\"BUY\");\n\n\t\tlabel_1 = new Label(shell, SWT.BORDER | SWT.HORIZONTAL | SWT.CENTER);\n\t\tlabel_1.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\n\t\tlabel_1.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_LIGHT_SHADOW));\n\t\tlabel_1.setBounds(73, 198, 137, 19);\n\n\t\tLabel lblStatus = new Label(shell, SWT.NONE);\n\t\tlblStatus.setBounds(22, 198, 45, 15);\n\t\tlblStatus.setText(\"Status :\");\n\n\t\tLabel label_2 = new Label(shell, SWT.NONE);\n\t\tlabel_2.setText(\"Car Brand :\");\n\t\tlabel_2.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.NORMAL));\n\t\tlabel_2.setAlignment(SWT.RIGHT);\n\t\tlabel_2.setBounds(280, 38, 71, 15);\n\n\t\tcomboCarBrandSell = new Combo(shell, SWT.READ_ONLY);\n\t\tcomboCarBrandSell.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\n\t\t\t\tString carBrand = comboCarBrandSell.getText();\n\t\t\t\tcomboCarNameSell.clearSelection();\n\t\t\t\t\n\t\t\t\tif(carBrand.equalsIgnoreCase(\"maruti\")){\n\t\t\t\t\tSet<String> keyList = marutiMap.keySet();\n\t\t\t\t\tint i=0;\n\t\t\t\t\tfor(String key : keyList){\n\t\t\t\t\t\tcarNames.add(key);\n\t\t\t\t\t\t//comboCarNameSell.setItem(i, key);\n\t\t\t\t\t\t//i++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tString[] strArray = (String[]) carNames.toArray(new String[0]);\n\t\t\t\tSystem.out.println();\n\t\t\t\tcomboCarNameSell.setItems(strArray);\n\n\t\t\t}\n\t\t});\n\t\tcomboCarBrandSell.setItems(new String[] {\"Maruti\", \"Fiat\", \"Tata\", \"Ford\", \"Honda\", \"Hyundai\"});\n\t\tcomboCarBrandSell.setBounds(355, 33, 123, 23);\n\t\tcomboCarBrandSell.setText(\"--select--\");\n\n\t\tLabel label_3 = new Label(shell, SWT.NONE);\n\t\tlabel_3.setText(\"Car Name :\");\n\t\tlabel_3.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.NORMAL));\n\t\tlabel_3.setAlignment(SWT.RIGHT);\n\t\tlabel_3.setBounds(280, 70, 71, 15);\n\n\t\tLabel label_4 = new Label(shell, SWT.NONE);\n\t\tlabel_4.setText(\"Model :\");\n\t\tlabel_4.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.NORMAL));\n\t\tlabel_4.setAlignment(SWT.RIGHT);\n\t\tlabel_4.setBounds(280, 105, 71, 15);\n\n\t\tCombo comboCarModelSell = new Combo(shell, SWT.READ_ONLY);\n\t\tcomboCarModelSell.setItems(new String[] {\"2015\", \"2014\", \"2013\", \"2012\", \"2011\", \"2010\", \"2009\", \"2008\", \"2007\", \"2006\", \"2005\", \"2004\", \"2003\", \"2002\", \"2001\", \"2000\"});\n\t\tcomboCarModelSell.setBounds(355, 99, 91, 23);\n\t\tcomboCarModelSell.setText(\"--select--\");\n\n\t\tButton buttonSell = new Button(shell, SWT.NONE);\n\t\tbuttonSell.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tlabel_5.setText(\"Sold Successfully\");\n\t\t\t}\n\t\t});\n\t\tbuttonSell.setText(\"SELL\");\n\t\tbuttonSell.setBounds(355, 138, 63, 25);\n\n\t\tlabel_5 = new Label(shell, SWT.BORDER | SWT.HORIZONTAL | SWT.CENTER);\n\t\tlabel_5.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\n\t\tlabel_5.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_LIGHT_SHADOW));\n\t\tlabel_5.setBounds(341, 198, 137, 19);\n\n\t\tLabel label_6 = new Label(shell, SWT.NONE);\n\t\tlabel_6.setText(\"Status :\");\n\t\tlabel_6.setBounds(290, 198, 45, 15);\n\n\t\tcomboCarNameSell = new Combo(shell, SWT.READ_ONLY);\n\t\tcomboCarNameSell.setItems(new String[] {});\n\t\tcomboCarNameSell.setBounds(355, 65, 123, 23);\n\t\tcomboCarNameSell.setText(\"--select--\");\n\n\t}", "@Override\n\tprotected Control createDialogArea(Composite parent) {\n\t\tComposite container = (Composite) super.createDialogArea(parent);\n\n\t\tcreateContent(container);\n\n\t\treturn container;\n\t}", "private void createContents() {\n\t\tshlAbout = new Shell(getParent(), SWT.DIALOG_TRIM | SWT.RESIZE);\n\t\tshlAbout.setMinimumSize(new Point(800, 600));\n\t\tshlAbout.setSize(800, 688);\n\t\tshlAbout.setText(\"About\");\n\t\t\n\t\tLabel lblKelimetrikAPsycholinguistic = new Label(shlAbout, SWT.CENTER);\n\t\tlblKelimetrikAPsycholinguistic.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.BOLD));\n\t\tlblKelimetrikAPsycholinguistic.setBounds(0, 10, 784, 21);\n\t\tlblKelimetrikAPsycholinguistic.setText(\"KelimetriK: A psycholinguistic tool of Turkish\");\n\t\t\n\t\tScrolledComposite scrolledComposite = new ScrolledComposite(shlAbout, SWT.BORDER | SWT.V_SCROLL);\n\t\tscrolledComposite.setBounds(0, 37, 774, 602);\n\t\tscrolledComposite.setExpandHorizontal(true);\n\t\tscrolledComposite.setExpandVertical(true);\n\t\t\n\t\tComposite composite = new Composite(scrolledComposite, SWT.NONE);\n\t\t\n\t\tLabel label = new Label(composite, SWT.NONE);\n\t\tlabel.setSize(107, 21);\n\t\tlabel.setText(\"Introduction\");\n\t\tlabel.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\n\t\tlabel.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.BOLD));\n\t\t\n\t\tLabel label_1 = new Label(composite, SWT.WRAP);\n\t\tlabel_1.setLocation(0, 27);\n\t\tlabel_1.setSize(753, 157);\n\t\tlabel_1.setText(\"Selection of appropriate words for a fully controlled word stimuli set is an essential component for conducting an effective psycholinguistic studies (Perea, & Polatsek, 1998; Bowers, Davis, & Hanley, 2004). For example, if the word stimuli set of a visual word recognition study is full of high frequency words, this may create a bias on the behavioral scores and would lead to incorrect inferences about the hypothesis. Thus, experimenters who are intended to work with any kind of verbal stimuli should consider such linguistic variables to obtain reliable results.\\r\\n\\r\\nKelimetriK is a query-based software program designed to demonstrate several lexical variables and orthographic statistics of words. As shown in Figure X, the user-friendly interface of KelimetriK is an easy-to-use software developed to be a helpful source experimenters who are preparing verbal stimuli sets for psycholinguistic studies. KelimetriK provides information about several lexical properties of word-frequency, neighborhood size, orthographic similarity and relatedness. KelimetriK\\u2019s counterparts in other language are N-watch in English (Davis, 2005) and BuscaPalabras in Spanish (Davis, & Perea, 2005).\");\n\t\t\n\t\tLabel label_2 = new Label(composite, SWT.NONE);\n\t\tlabel_2.setLocation(0, 190);\n\t\tlabel_2.setSize(753, 21);\n\t\tlabel_2.setText(\"The lexical variables in KelimetriK Software\");\n\t\tlabel_2.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\n\t\tlabel_2.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.BOLD));\n\t\t\n\t\tLabel label_3 = new Label(composite, SWT.WRAP);\n\t\tlabel_3.setBounds(0, 228, 753, 546);\n\t\tlabel_3.setText(\"Output lexical variables (and orthographic statistics) in KelimetriK are word-frequency, bigram and tri-gram frequency and average frequency values, orthographic neighborhood size (Coltheart\\u2019s N), orthographic Levensthein distance 20 (OLD20) and transposed letter and subset/superset similarity.\\r\\n\\r\\nWord frequency is a value that describes of how many times a word occurred in a given text. Research shows that there is a consistent logarithmic relationship between reaction time and word\\u2019s frequency score; the impact of effect is higher for smaller frequencies words that the effect gets smaller on higher frequency scores (Davis, 2005).\\r\\n\\r\\nBi-grams and tri-grams are are obtained by decomposing a word (string of tokens) into sequences of two and three number of neighboring elements (Manning, & Sch\\u00FCtze, 1999). For example, the Turkish word \\u201Ckule\\u201D (tower in English) can be decomposed into three different bigram sets (\\u201Cku\\u201D, \\u201Cul\\u201D, \\u201Cle\\u201D). Bigram/trigram frequency values are obtained by counting how many same letter (four in this case) words will start with first bigram set (e.g. \\u201Cku\\u201D), how many words have second bigram set in the middle (e.g. \\u201Cul\\u201D) in the middle, and how many words will end with last bigram set (\\u201Cle\\u201D) in a given lexical word database. The trigrams for the word \\u201Ckule\\u201D are \\u201Ckul\\u201D and \\u201Cule\\u201D. Average bi-gram/tri-gram frequency is obtained by adding a word\\u2019s entire bi-gram/ tri-gram frequencies and then dividing it by number of bigrams (\\u201Ckule\\u201D consist of three bigrams).\\r\\n\\r\\nOrthographic neighborhood size (Coltheart\\u2019s N) refers to number of words that can be obtained from a given lexical database word list by substituting a single letter of a word (Coltheart et al, 1977). For example, orthographic neighborhood size of the word \\u201Ckule\\u201D is 9 if searched on KelimetriK (\\u201C\\u015Fule\\u201D, \\u201Ckula\\u201D, \\u201Ckulp\\u201D, \\u201Cfule\\u201D, \\u201Ckale\\u201D, \\u201Ck\\u00F6le\\u201D, \\u201Ckele\\u201D, \\u201Ckile\\u201D, \\u201Cku\\u015Fe\\u201D). A word\\u2019s orthographic neighborhood size could influence behavioral performance in visual word recognition tasks of lexical decision, naming, perceptual identification, and semantic categorization (Perea, & Polatsek, 1998).\\r\\n\\r\\nOrthographic Levensthein distance 20 (OLD20) of a word is the average of 20 most close words in the unit of Levensthein distance (Yarkoni, Balota, & Yap, 2008). Levensthein distance between the two strings of letters is obtained by counting the minimum number of operations (substitution, deletion or insertion) required while passing from one letter string to the other (Levenshthein, 1966). Behavioral studies show that, OLD20 is negatively correlated with orthographic neighborhood size (r=-561) and positively correlated with word-length (r=868) for English words (Yarkoni, Balota, & Yap, 2008). Moreover, OLD20 explains more variance on visual word recognition scores than orthographic neighborhood size and word length (Yarkoni, Balota, & Yap, 2008).\\r\\n\\r\\nOrthographic similarity between two words means they are the neighbors of each other like the words \\u201Cal\\u0131n\\u201D (forehead in English) and \\u201Calan\\u201D (area in English). Transposed letter (TL) and subset/superset are the two most common similarities in the existing literature (Davis, 2005). TL similiarity is the case when the two letters differ from each other based on a single pair of adjacent letters as in the Turkish words of \\u201Cesen\\u201D (blustery) and \\u201Cesne\\u201D (yawn). Studies have shown that TL similarity may facilitate detection performance on naming and lexical decision task (Andrews, 1996). Subset/Superset similarity occurs when there is an embedded word in a given input word such as \\u201Cs\\u00FCt\\u201D (subset: milk in Turkish) \\u201Cs\\u00FCtun\\u201D (superset: pillar in Turkish). Presence of a subset in a word in a stimuli set may influence the subject\\u2019s reading performance, hence may create a confounding factor on the behavioral results (Bowers, Davis, & Hanley, 2005).\");\n\t\t\n\t\tLabel lblAndrewsLexical = new Label(composite, SWT.NONE);\n\t\tlblAndrewsLexical.setLocation(0, 798);\n\t\tlblAndrewsLexical.setSize(753, 296);\n\t\tlblAndrewsLexical.setText(\"Andrews (1996). Lexical retrieval and selection processes: Effects of transposed-letter confusability, Journal of Memory and Language 35, 775\\u2013800\\r\\n\\r\\nBowers, J. S., Davis, C. J., & Hanley, D. A. (2005). References automatic semantic activation of embedded words: Is there a \\u2018\\u2018hat\\u2019\\u2019 in \\u2018\\u2018that\\u2019\\u2019? Journal of Memory and Language, 52, 131-143.\\r\\n\\r\\nColtheart, M., Davelaar, E., Jonasson, J. T., & Besner, D. (1977). Access to the internal lexicon. Attention and Performance, 6, 535-555.\\r\\n\\r\\nDavis, C. J. (2005). N-Watch: A program for deriving neighborhood size and other psycholinguistic statistics. Behavior Research Methods, 37, 65-70.\\r\\n\\r\\nDavis, C. J., & Parea, M. (2005). BuscaPalabras: A program for deriving orthographic and phonological neighborhood statistics and other psycholinguistic indices in Spanish. Behavior Research Methods, 37, 665-671.\\r\\n\\r\\nLevenshtein, V. I. (1966, February). Binary codes capable of correcting deletions, insertions and reversals. In Soviet physics doklady (Vol. 10, p. 707).\\r\\n\\r\\nManning, C. D., & Sch\\u00FCtze, H. (1999). Foundations of statistical natural language processing. MIT press.\\r\\n\\r\\nPerea, M., & Pollatsek, A. (1998). The effects of neighborhood frequency in reading and lexical decision. Journal of Experimental Psychology, 24, 767-779.\\r\\n\\r\\nYarkoni, T., Balota, D., & Yap, M. (2008). Moving beyond Coltheart\\u2019s N: A new measure of orthographic similarity. Psychonomic Bulletin & Review, 15(5), 971-979.\\r\\n\");\n\t\t\n\t\tLabel label_4 = new Label(composite, SWT.NONE);\n\t\tlabel_4.setBounds(0, 771, 753, 21);\n\t\tlabel_4.setText(\"References\");\n\t\tlabel_4.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\n\t\tlabel_4.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.BOLD));\n\t\tscrolledComposite.setContent(composite);\n\t\tscrolledComposite.setMinSize(composite.computeSize(SWT.DEFAULT, SWT.DEFAULT));\n\n\t}", "private void createDialog() {\r\n final AlertDialog dialog = new AlertDialog.Builder(getActivity()).setView(R.layout.dialog_recorder_details)\r\n .setTitle(\"Recorder Info\").setPositiveButton(\"Start\", (dialog1, which) -> {\r\n EditText width = (EditText) ((AlertDialog) dialog1).findViewById(R.id.dialog_recorder_resolution_width);\r\n EditText height = (EditText) ((AlertDialog) dialog1).findViewById(R.id.dialog_recorder_resolution_height);\r\n CheckBox audio = (CheckBox) ((AlertDialog) dialog1).findViewById(R.id.dialog_recorder_audio_checkbox);\r\n EditText fileName = (EditText) ((AlertDialog) dialog1).findViewById(R.id.dialog_recorder_filename_name);\r\n mServiceHandle.start(new RecordingInfo(Integer.parseInt(width.getText().toString()), Integer.parseInt(height.getText().toString()),\r\n audio.isChecked(), fileName.getText().toString()));\r\n dialog1.dismiss();\r\n }).setNegativeButton(\"Cancel\", (dialog1, which) -> {\r\n dialog1.dismiss();\r\n }).show();\r\n Point size = new Point();\r\n getActivity().getWindowManager().getDefaultDisplay().getRealSize(size);\r\n ((EditText) dialog.findViewById(R.id.dialog_recorder_resolution_width)).setText(Integer.toString(size.x));\r\n ((EditText) dialog.findViewById(R.id.dialog_recorder_resolution_height)).setText(Integer.toString(size.y));\r\n }", "protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setImage(SWTResourceManager.getImage(mainFrame.class, \"/imgCompand/main/logo.png\"));\r\n\t\tshell.setSize(935, 650);\r\n\t\tshell.setMinimumSize(920, 650);\r\n\t\tcenter(shell);\r\n\t\tshell.setText(\"三合一\");\r\n\t\tshell.setLayout(new GridLayout(8, false));\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tLabel label = new Label(shell, SWT.NONE);\r\n\t\tlabel.setText(\"面单图片:\");\r\n\t\t\r\n\t\ttext_mdtp = new Text(shell, SWT.BORDER);\r\n\t\ttext_mdtp.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tButton btnNewButton = new Button(shell, SWT.NONE);\r\n\t\tbtnNewButton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tDirectoryDialog dd=new DirectoryDialog(shell); \r\n\t\t\t\tdd.setMessage(\"setMessage\"); \r\n\t\t\t\tdd.setText(\"选择保存面单图片的文件夹\"); \r\n\t\t\t\tdd.setFilterPath(\"C://\"); \r\n\t\t\t\tString mdtp=dd.open();\r\n\t\t\t\tif(mdtp!=null){\r\n\t\t\t\t\ttext_mdtp.setText(mdtp);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tGridData gd_btnNewButton = new GridData(SWT.LEFT, SWT.CENTER, false, false, 2, 1);\r\n\t\tgd_btnNewButton.widthHint = 95;\r\n\t\tbtnNewButton.setLayoutData(gd_btnNewButton);\r\n\t\tbtnNewButton.setText(\"浏览\");\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tlblNewLabel = new Label(shell, SWT.NONE);\r\n\t\tGridData gd_lblNewLabel = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_lblNewLabel.widthHint = 87;\r\n\t\tlblNewLabel.setLayoutData(gd_lblNewLabel);\r\n\t\tlblNewLabel.setText(\"身份证图片:\");\r\n\t\t\r\n\t\ttext_sfztp = new Text(shell, SWT.BORDER);\r\n\t\ttext_sfztp.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tbtnNewButton_1 = new Button(shell, SWT.NONE);\r\n\t\tbtnNewButton_1.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tDirectoryDialog dd=new DirectoryDialog(shell); \r\n\t\t\t\tdd.setMessage(\"setMessage\"); \r\n\t\t\t\tdd.setText(\"选择保存身份证图片的文件夹\"); \r\n\t\t\t\tdd.setFilterPath(\"C://\"); \r\n\t\t\t\tString sfztp=dd.open();\r\n\t\t\t\tif(sfztp!=null){\r\n\t\t\t\t\ttext_sfztp.setText(sfztp);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tGridData gd_btnNewButton_1 = new GridData(SWT.LEFT, SWT.CENTER, false, false, 2, 1);\r\n\t\tgd_btnNewButton_1.widthHint = 95;\r\n\t\tbtnNewButton_1.setLayoutData(gd_btnNewButton_1);\r\n\t\tbtnNewButton_1.setText(\"浏览\");\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tlabel_1 = new Label(shell, SWT.NONE);\r\n\t\tlabel_1.setText(\"小票图片:\");\r\n\t\t\r\n\t\ttext_xptp = new Text(shell, SWT.BORDER);\r\n\t\ttext_xptp.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tbutton = new Button(shell, SWT.NONE);\r\n\t\tbutton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tDirectoryDialog dd=new DirectoryDialog(shell); \r\n\t\t\t\tdd.setText(\"选择保存小票图片的文件夹\"); \r\n\t\t\t\tdd.setFilterPath(\"C://\"); \r\n\t\t\t\tString xptp=dd.open();\r\n\t\t\t\tif(xptp!=null){\r\n\t\t\t\t\ttext_xptp.setText(xptp);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tGridData gd_button = new GridData(SWT.LEFT, SWT.CENTER, false, false, 2, 1);\r\n\t\tgd_button.widthHint = 95;\r\n\t\tbutton.setLayoutData(gd_button);\r\n\t\tbutton.setText(\"浏览\");\r\n\t\t\r\n\t\tlabel_2 = new Label(shell, SWT.NONE);\r\n\t\tlabel_2.setText(\" \");\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tlblNewLabel_1 = new Label(shell, SWT.NONE);\r\n\t\tlblNewLabel_1.setText(\" \");\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tlabel_5 = new Label(shell, SWT.NONE);\r\n\t\tlabel_5.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));\r\n\t\tlabel_5.setText(\"三合一导入模板下载,请点击........\");\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tbutton_1 = new Button(shell, SWT.NONE);\r\n\t\tGridData gd_button_1 = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_button_1.widthHint = 95;\r\n\t\tbutton_1.setLayoutData(gd_button_1);\r\n\t\tbutton_1.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\ttry{\r\n\t\t\t\t\tDirectoryDialog dd=new DirectoryDialog(shell); \r\n\t\t\t\t\tdd.setText(\"请选择文件保存的位置\"); \r\n\t\t\t\t\tdd.setFilterPath(\"C://\"); \r\n\t\t\t\t\tString saveFile=dd.open(); \r\n\t\t\t\t\tif(saveFile!=null){\r\n\t\t\t\t\t\tboolean flg = FileUtil.downloadLocal(saveFile, \"/template.xls\", \"三合一导入模板.xls\");\r\n\t\t\t\t\t\tif(flg){\r\n\t\t\t\t\t\t\tMessageDialog.openInformation(shell, \"系统提示\", \"模板下载成功!保存路径为:\"+saveFile+\"/三合一导入模板.xls\");\r\n\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\tMessageDialog.openError(shell, \"系统提示\", \"模板下载失败!\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t }catch(Exception ex){\r\n\t\t\t\t\t System.out.print(\"创建失败\");\r\n\t\t\t\t } \r\n\t\t\t}\r\n\t\t});\r\n\t\tbutton_1.setText(\"导入模板\");\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tlabel_4 = new Label(shell, SWT.NONE);\r\n\t\tlabel_4.setText(\"合成信息:\");\r\n\t\t\r\n\t\ttext = new Text(shell, SWT.BORDER);\r\n\t\ttext.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tbtnexecl = new Button(shell, SWT.NONE);\r\n\t\tbtnexecl.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tFileDialog filedia = new FileDialog(shell, SWT.SINGLE);\r\n\t\t\t\tString filepath = filedia.open()+\"\";\r\n\t\t\t\ttext.setText(filepath.replace(\"null\",\"\"));\r\n\t\t\t}\r\n\t\t});\r\n\t\tGridData gd_btnexecl = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_btnexecl.widthHint = 95;\r\n\t\tbtnexecl.setLayoutData(gd_btnexecl);\r\n\t\tbtnexecl.setText(\"导入execl\");\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tlabel_3 = new Label(shell, SWT.NONE);\r\n\t\tlabel_3.setText(\"合成图片:\");\r\n\t\t\r\n\t\ttext_hctp = new Text(shell, SWT.BORDER);\r\n\t\ttext_hctp.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tbtnNewButton_2 = new Button(shell, SWT.NONE);\r\n\t\tbtnNewButton_2.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tDirectoryDialog dd=new DirectoryDialog(shell); \r\n\t\t\t\tdd.setText(\"选择合成图片将要保存的文件夹\"); \r\n\t\t\t\tdd.setFilterPath(\"C://\"); \r\n\t\t\t\tString hctp=dd.open();\r\n\t\t\t\tif(hctp!=null){\r\n\t\t\t\t\ttext_hctp.setText(hctp);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tGridData gd_btnNewButton_2 = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_btnNewButton_2.widthHint = 95;\r\n\t\tbtnNewButton_2.setLayoutData(gd_btnNewButton_2);\r\n\t\tbtnNewButton_2.setText(\"保存位置\");\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tlabel_6 = new Label(shell, SWT.NONE);\r\n\t\tlabel_6.setText(\"进度:\");\r\n\t\t\r\n\t\tprogressBar = new ProgressBar(shell, SWT.NONE);\r\n\t\tGridData gd_progressBar = new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_progressBar.widthHint = 524;\r\n\t\tprogressBar.setMinimum(0);\r\n\t\tprogressBar.setMaximum(100);\r\n\t\tprogressBar.setLayoutData(gd_progressBar);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tbtn_doCompImg = new Button(shell, SWT.NONE);\r\n\t\tbtn_doCompImg.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\t//导入信息\r\n\t\t\t\tdrxx = text.getText();\r\n\t\t\t\t//保存路径\r\n\t\t\t\thctp = text_hctp.getText();\r\n\t\t\t\t//面单图片路径\r\n\t\t\t\tmdtp = text_mdtp.getText();\r\n\t\t\t\t//身份证图片路径\r\n\t\t\t\tsfztp = text_sfztp.getText();\r\n\t\t\t\t//小票图片路径\r\n\t\t\t\txptp = text_xptp.getText();\r\n\t\t\t\t//清空信息框\r\n\t\t\t\ttext_info.setText(\"\");\r\n\t\t\t\tif(!drxx.equals(\"\")&&!hctp.equals(\"\")&&!mdtp.equals(\"\")&&!sfztp.equals(\"\")&&!xptp.equals(\"\")){\r\n\t\t\t\t\t(new IncresingOperator()).start();\r\n\t\t\t\t}else{\r\n\t\t\t\t\tMessageDialog.openWarning(shell, \"系统提示\",\"各路径选项不能为空!\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tGridData gd_btn_doCompImg = new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_btn_doCompImg.widthHint = 95;\r\n\t\tbtn_doCompImg.setLayoutData(gd_btn_doCompImg);\r\n\t\tbtn_doCompImg.setText(\"立即合成\");\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\ttext_info = new Text(shell, SWT.BORDER | SWT.V_SCROLL | SWT.MULTI);\r\n\t\tGridData gd_text_info = new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1);\r\n\t\tgd_text_info.heightHint = 217;\r\n\t\ttext_info.setLayoutData(gd_text_info);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\r\n\t}", "protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setLayout(new GridLayout(1, false));\r\n\t\tshell.setSize(450, 300);\r\n\t\tshell.setText(\"SWT Application\");\r\n\t\t{\r\n\t\t\tfinal Button btnShowTheFake = new Button(shell, SWT.TOGGLE);\r\n\t\t\tbtnShowTheFake.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\r\n\t\t\t\t\tif (btnShowTheFake.getSelection()) {\r\n\t\t\t\t\t\tRectangle bounds = btnShowTheFake.getBounds();\r\n\t\t\t\t\t\tPoint pos = shell.toDisplay(bounds.x + 5, bounds.y + bounds.height);\r\n\t\t\t\t\t\ttooltip = showTooltip(shell, pos.x, pos.y);\r\n\t\t\t\t\t\tbtnShowTheFake.setText(\"Hide it\");\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tif (tooltip != null && !tooltip.isDisposed())\r\n\t\t\t\t\t\t\ttooltip.dispose();\r\n\t\t\t\t\t\tbtnShowTheFake.setText(\"Show The Fake Tooltip\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\tbtnShowTheFake.setText(\"Show The Fake Tooltip\");\r\n\t\t}\r\n\t}", "protected void createContents() {\n\t\tsetText(\"Termination\");\n\t\tsetSize(340, 101);\n\n\t}", "private void createContents() {\r\n\t\tshlAboutGoko = new Shell(getParent(), getStyle());\r\n\t\tshlAboutGoko.setSize(376, 248);\r\n\t\tshlAboutGoko.setText(\"About Goko\");\r\n\t\tshlAboutGoko.setLayout(new GridLayout(1, false));\r\n\r\n\t\tComposite composite_1 = new Composite(shlAboutGoko, SWT.NONE);\r\n\t\tcomposite_1.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));\r\n\t\tcomposite_1.setLayout(new GridLayout(1, false));\r\n\r\n\t\tLabel lblGokoIsA = new Label(composite_1, SWT.WRAP);\r\n\t\tGridData gd_lblGokoIsA = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_lblGokoIsA.widthHint = 350;\r\n\t\tlblGokoIsA.setLayoutData(gd_lblGokoIsA);\r\n\t\tlblGokoIsA.setText(\"Goko is an open source desktop application for CNC control and operation\");\r\n\r\n\t\tComposite composite_2 = new Composite(composite_1, SWT.NONE);\r\n\t\tcomposite_2.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\r\n\t\tcomposite_2.setLayout(new GridLayout(2, false));\r\n\r\n\t\tLabel lblAlphaVersion = new Label(composite_2, SWT.NONE);\r\n\t\tlblAlphaVersion.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));\r\n\t\tlblAlphaVersion.setFont(SWTResourceManager.getFont(\"Segoe UI\", 9, SWT.ITALIC));\r\n\t\tlblAlphaVersion.setText(\"Version\");\r\n\r\n\t\tLabel lblVersion = new Label(composite_2, SWT.NONE);\r\n\t\tlblVersion.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tnew Label(composite_1, SWT.NONE);\r\n\r\n\t\tLabel lblDate = new Label(composite_2, SWT.NONE);\r\n\t\tlblDate.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));\r\n\t\tlblDate.setFont(SWTResourceManager.getFont(\"Segoe UI\", 9, SWT.ITALIC));\r\n\t\tlblDate.setText(\"Build\");\r\n\t\t\r\n\t\tLabel lblBuild = new Label(composite_2, SWT.NONE);\r\n\t\tlblBuild.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\r\n\t\t\t\t\r\n\t\tProperties prop = new Properties();\r\n\t\tClassLoader loader = Thread.currentThread().getContextClassLoader(); \r\n\t\tInputStream stream = loader.getResourceAsStream(\"/version.properties\");\r\n\t\ttry {\r\n\t\t\tprop.load(stream);\r\n\t\t\tString version = prop.getProperty(\"goko.version\");\r\n\t\t\tString build = prop.getProperty(\"goko.build.timestamp\");\r\n\t\t\tlblVersion.setText(version);\r\n\t\t\tlblBuild.setText(build);\t\r\n\t\t\t\r\n\t\t} catch (IOException e) {\r\n\t\t\tLOG.error(e);\r\n\t\t}\r\n\t\t\r\n\t\tComposite composite = new Composite(composite_1, SWT.NONE);\r\n\t\tcomposite.setLayout(new GridLayout(2, false));\r\n\r\n\t\tLabel lblMoreInformationOn = new Label(composite, SWT.NONE);\r\n\t\tGridData gd_lblMoreInformationOn = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_lblMoreInformationOn.widthHint = 60;\r\n\t\tlblMoreInformationOn.setLayoutData(gd_lblMoreInformationOn);\r\n\t\tlblMoreInformationOn.setText(\"Website :\");\r\n\r\n\t\tLink link = new Link(composite, SWT.NONE);\r\n\t\tlink.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseUp(MouseEvent event) {\r\n\t\t\t\tif (event.button == 1) { // Left button pressed & released\r\n\t\t Desktop desktop = Desktop.isDesktopSupported() ? Desktop.getDesktop() : null;\r\n\t\t if (desktop != null && desktop.isSupported(Desktop.Action.BROWSE)) {\r\n\t\t try {\r\n\t\t desktop.browse(URI.create(\"http://www.goko.fr\"));\r\n\t\t } catch (Exception e) {\r\n\t\t LOG.error(e);\r\n\t\t }\r\n\t\t }\r\n\t\t }\r\n\t\t\t}\r\n\t\t});\r\n\t\tlink.setText(\"<a>http://www.goko.fr</a>\");\r\n\t\t\r\n\t\tComposite composite_3 = new Composite(composite_1, SWT.NONE);\r\n\t\tcomposite_3.setLayout(new GridLayout(2, false));\r\n\t\t\r\n\t\tLabel lblForum = new Label(composite_3, SWT.NONE);\r\n\t\tGridData gd_lblForum = new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_lblForum.widthHint = 60;\r\n\t\tlblForum.setLayoutData(gd_lblForum);\r\n\t\tlblForum.setText(\"Forum :\");\r\n\t\t\r\n\t\tLink link_1 = new Link(composite_3, 0);\r\n\t\tlink_1.setText(\"<a>http://discuss.goko.fr</a>\");\r\n\t\tlink_1.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseUp(MouseEvent event) {\r\n\t\t\t\tif (event.button == 1) { // Left button pressed & released\r\n\t\t Desktop desktop = Desktop.isDesktopSupported() ? Desktop.getDesktop() : null;\r\n\t\t if (desktop != null && desktop.isSupported(Desktop.Action.BROWSE)) {\r\n\t\t try {\r\n\t\t desktop.browse(URI.create(\"http://discuss.goko.fr\"));\r\n\t\t } catch (Exception e) {\r\n\t\t LOG.error(e);\r\n\t\t }\r\n\t\t }\r\n\t\t }\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tComposite composite_4 = new Composite(composite_1, SWT.NONE);\r\n\t\tcomposite_4.setLayout(new GridLayout(2, false));\r\n\t\t\r\n\t\tLabel lblContact = new Label(composite_4, SWT.NONE);\r\n\t\tGridData gd_lblContact = new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_lblContact.widthHint = 60;\r\n\t\tlblContact.setLayoutData(gd_lblContact);\r\n\t\tlblContact.setText(\"Contact :\");\r\n\t\t\t \r\n\t\tLink link_2 = new Link(composite_4, 0);\r\n\t\tlink_2.setText(\"<a>\"+toAscii(\"636f6e7461637440676f6b6f2e6672\")+\"</a>\");\r\n\r\n\t}", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(550, 400);\n\t\tshell.setText(\"Source A Antenna 1 Data\");\n\t\t\n\t\tButton btnNewButton_1 = new Button(shell, SWT.NONE);\n\t\tbtnNewButton_1.setFont(SWTResourceManager.getFont(\"Ubuntu\", 11, SWT.BOLD));\n\t\tbtnNewButton_1.setBounds(116, 10, 98, 30);\n\t\tbtnNewButton_1.setText(\"pol 1\");\n\t\t\n\t\tButton btnPol = new Button(shell, SWT.NONE);\n\t\tbtnPol.setText(\"pol 2\");\n\t\tbtnPol.setFont(SWTResourceManager.getFont(\"Ubuntu\", 11, SWT.BOLD));\n\t\tbtnPol.setBounds(220, 10, 98, 30);\n\t\t\n\t\tButton btnPol_1 = new Button(shell, SWT.NONE);\n\t\tbtnPol_1.setText(\"pol 3\");\n\t\tbtnPol_1.setFont(SWTResourceManager.getFont(\"Ubuntu\", 11, SWT.BOLD));\n\t\tbtnPol_1.setBounds(324, 10, 98, 30);\n\t\t\n\t\tButton btnPol_2 = new Button(shell, SWT.NONE);\n\t\tbtnPol_2.setText(\"pol 4\");\n\t\tbtnPol_2.setFont(SWTResourceManager.getFont(\"Ubuntu\", 11, SWT.BOLD));\n\t\tbtnPol_2.setBounds(428, 10, 98, 30);\n\t\t\n\t\tButton button_3 = new Button(shell, SWT.NONE);\n\t\tbutton_3.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\n\t\t\t\tPlot_graph nw = new Plot_graph();\n\t\t\t\tnw.GraphScreen();\n\t\t\t}\n\t\t});\n\t\tbutton_3.setBounds(116, 46, 98, 30);\n\t\t\n\t\tButton button_4 = new Button(shell, SWT.NONE);\n\t\tbutton_4.setBounds(116, 83, 98, 30);\n\t\t\n\t\tButton button_5 = new Button(shell, SWT.NONE);\n\t\tbutton_5.setBounds(116, 119, 98, 30);\n\t\t\n\t\tButton button_6 = new Button(shell, SWT.NONE);\n\t\tbutton_6.setBounds(116, 155, 98, 30);\n\t\t\n\t\tButton button_7 = new Button(shell, SWT.NONE);\n\t\tbutton_7.setBounds(220, 155, 98, 30);\n\t\t\n\t\tButton button_8 = new Button(shell, SWT.NONE);\n\t\tbutton_8.setBounds(220, 119, 98, 30);\n\t\t\n\t\tButton button_9 = new Button(shell, SWT.NONE);\n\t\tbutton_9.setBounds(220, 83, 98, 30);\n\t\t\n\t\tButton button_10 = new Button(shell, SWT.NONE);\n\t\tbutton_10.setBounds(220, 46, 98, 30);\n\t\t\n\t\tButton button_11 = new Button(shell, SWT.NONE);\n\t\tbutton_11.setBounds(428, 155, 98, 30);\n\t\t\n\t\tButton button_12 = new Button(shell, SWT.NONE);\n\t\tbutton_12.setBounds(428, 119, 98, 30);\n\t\t\n\t\tButton button_13 = new Button(shell, SWT.NONE);\n\t\tbutton_13.setBounds(428, 83, 98, 30);\n\t\t\n\t\tButton button_14 = new Button(shell, SWT.NONE);\n\t\tbutton_14.setBounds(428, 46, 98, 30);\n\t\t\n\t\tButton button_15 = new Button(shell, SWT.NONE);\n\t\tbutton_15.setBounds(324, 46, 98, 30);\n\t\t\n\t\tButton button_16 = new Button(shell, SWT.NONE);\n\t\tbutton_16.setBounds(324, 83, 98, 30);\n\t\t\n\t\tButton button_17 = new Button(shell, SWT.NONE);\n\t\tbutton_17.setBounds(324, 119, 98, 30);\n\t\t\n\t\tButton button_18 = new Button(shell, SWT.NONE);\n\t\tbutton_18.setBounds(324, 155, 98, 30);\n\n\t}", "protected void createContents() {\n\t\tshlFaststone = new Shell();\n\t\tshlFaststone.setImage(SWTResourceManager.getImage(Edit.class, \"/image/all1.png\"));\n\t\tshlFaststone.setToolTipText(\"\");\n\t\tshlFaststone.setSize(944, 479);\n\t\tshlFaststone.setText(\"kaca\");\n\t\tshlFaststone.setLayout(new FillLayout(SWT.HORIZONTAL));\n\t\t\n\t\tComposite composite = new Composite(shlFaststone, SWT.NONE);\n\t\tcomposite.setLayout(new FillLayout(SWT.HORIZONTAL));\n\t\t\n\t\tSashForm sashForm = new SashForm(composite, SWT.VERTICAL);\n\t\t//\n\t\tMenu menu = new Menu(shlFaststone, SWT.BAR);\n\t\tshlFaststone.setMenuBar(menu);\n\t\tMenuItem menuItem = new MenuItem(menu, SWT.CASCADE);\n\t\tmenuItem.setSelection(true);\n\t\tmenuItem.setText(\"\\u6587\\u4EF6\");\n\t\t\n\t\tMenu menu_1 = new Menu(menuItem);\n\t\tmenuItem.setMenu(menu_1);\n\t\t\n\t\tfinal Canvas down=new Canvas(shlFaststone,SWT.NONE|SWT.BORDER|SWT.DOUBLE_BUFFERED);\n\t\t\n\t\tComposite composite_4 = new Composite(sashForm, SWT.BORDER);\n\t\tcomposite_4.setLayout(new FillLayout(SWT.HORIZONTAL));\n\t\t\n\t\tSashForm sashForm_3 = new SashForm(composite_4, SWT.NONE);\n\t\tformToolkit.adapt(sashForm_3);\n\t\tformToolkit.paintBordersFor(sashForm_3);\n\t\t\n\t\tToolBar toolBar = new ToolBar(sashForm_3, SWT.BORDER | SWT.FLAT | SWT.WRAP | SWT.RIGHT);\n\t\ttoolBar.setToolTipText(\"\");\n\t\t\n\t\tToolItem toolItem_6 = new ToolItem(toolBar, SWT.NONE);\n\t\ttoolItem_6.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tmntmNewItem_2.notifyListeners(SWT.Selection,event1);\n\n\t\t\t}\n\t\t});\n\t\ttoolItem_6.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6253\\u5F00.jpg\"));\n\t\ttoolItem_6.setText(\"\\u6253\\u5F00\");\n\t\t\n\t\tToolItem tltmNewItem = new ToolItem(toolBar, SWT.NONE);\n\t\t\n\t\t\n\t\ttltmNewItem.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\n\n\t\t\t}\n\t\t});\n\t\t//\n\t\t\n\t\ttltmNewItem.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u53E6\\u5B58\\u4E3A.jpg\"));\n\t\ttltmNewItem.setText(\"\\u53E6\\u5B58\\u4E3A\");\n\t\t//关闭\n\t\tToolItem tltmNewItem_4 = new ToolItem(toolBar, SWT.NONE);\n\t\ttltmNewItem_4.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tmntmNewItem_5.notifyListeners(SWT.Selection, event2);\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\ttltmNewItem_4.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7ED3\\u675F.jpg\"));\n\t\ttltmNewItem_4.setText(\"\\u5173\\u95ED\");\n\t\t\n\t\t\n\t\t\n\t\tToolItem tltmNewItem_1 = new ToolItem(toolBar, SWT.NONE);\n\t\ttltmNewItem_1.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t\t//缩放\n\t\t\n\t\t\n\t\ttltmNewItem_1.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u653E\\u5927.jpg\"));\n\t\t\n\t\t//工具栏:放大\n\t\t\n\t\ttltmNewItem_1.setText(\"\\u653E\\u5927\");\n\t\t\n\t\tToolItem tltmNewItem_2 = new ToolItem(toolBar, SWT.NONE);\n\t\t\n\t\t//工具栏:缩小\n\t\ttltmNewItem_2.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t}\n\t\t});\n\t\t\n\t\ttltmNewItem_2.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7F29\\u5C0F.jpg\"));\n\t\ttltmNewItem_2.setText(\"\\u7F29\\u5C0F\");\n\t\tToolItem toolItem_5 = new ToolItem(toolBar, SWT.NONE);\n\t\ttoolItem_5.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tmntmNewItem_5.notifyListeners(SWT.Selection, event2);\n\n\t\t\t}\n\t\t});\n\t\ttoolItem_5.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7ED3\\u675F.jpg\"));\n\t\ttoolItem_5.setText(\"\\u9000\\u51FA\");\n\t\t\n\t\tToolBar toolBar_1 = new ToolBar(sashForm_3, SWT.BORDER | SWT.FLAT | SWT.RIGHT);\n\t\tformToolkit.adapt(toolBar_1);\n\t\tformToolkit.paintBordersFor(toolBar_1);\n\t\t\n\t\tToolItem toolItem_7 = new ToolItem(toolBar_1, SWT.NONE);\n\t\t\n\t\t//工具栏:标题\n\t\ttoolItem_7.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t}\n\t\t});\n\t\t//\n\t\t\n\t\ttoolItem_7.setText(\"\\u6807\\u9898\");\n\t\ttoolItem_7.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6807\\u9898.jpg\"));\n\t\t\n\t\tToolItem toolItem_1 = new ToolItem(toolBar_1, SWT.NONE);\n\t\t\n\t\t//工具栏:调整大小\n\t\ttoolItem_1.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t}\n\t\t});\n\t\t//\n\t\t\n\t\ttoolItem_1.setText(\"\\u8C03\\u6574\\u5927\\u5C0F\");\n\t\ttoolItem_1.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u8C03\\u6574\\u5927\\u5C0F.jpg\"));\n\t\t\n\t\tToolBar toolBar_2 = new ToolBar(sashForm_3, SWT.BORDER | SWT.FLAT | SWT.RIGHT);\n\t\ttoolBar_2.setBackground(SWTResourceManager.getColor(SWT.COLOR_GRAY));\n\t\tformToolkit.adapt(toolBar_2);\n\t\tformToolkit.paintBordersFor(toolBar_2);\n\t\t\n\t\tToolItem toolItem_2 = new ToolItem(toolBar_2, SWT.NONE);\n\t\t\n\t\t//工具栏:裁剪\n\t\ttoolItem_2.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t}\n\t\t});\n\t\t//\n\t\t\n\t\ttoolItem_2.setText(\"\\u88C1\\u526A\");\n\t\ttoolItem_2.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u88C1\\u526A.jpg\"));\n\t\t\n\t\tToolItem toolItem_3 = new ToolItem(toolBar_2, SWT.NONE);\n\t\t\n\t\t//工具栏:剪切\n\t\ttoolItem_3.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t}\n\t\t});\n\t\t//\n\t\t\n\t\ttoolItem_3.setText(\"\\u526A\\u5207\");\n\t\ttoolItem_3.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u526A\\u5207.jpg\"));\n\t\t\n\t\tToolItem toolItem_4 = new ToolItem(toolBar_2, SWT.NONE);\n\t\t\n\n\t\t//工具栏:粘贴\n\t\ttoolItem_4.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\n\t\t\t\tcomposite_3.layout();\n\t\t\t\tFile f=new File(\"src/picture/beauty.jpg\");\n\t\t\t\tImageData imageData;\n\t\t\t\ttry {\n\t\t\t\t\timageData = new ImageData( new FileInputStream( f));\n\t\t\t\t\tImage image=new Image(shlFaststone.getDisplay(),imageData);\n\t\t\t\t\tButton lblNewLabel_3 = null;\n\t\t\t\t\tlblNewLabel_3.setImage(image);\n\t\t\t\t} catch (FileNotFoundException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t\tcomposite_3.layout();\n\t\t\t}\n\t\t});\n\t\t//omposite;\n\t\t//\n\t\t\n\t\ttoolItem_4.setText(\"\\u590D\\u5236\");\n\t\ttoolItem_4.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u590D\\u5236.jpg\"));\n\t\t\n\t\tToolItem tltmNewItem_3 = new ToolItem(toolBar_2, SWT.NONE);\n\t\ttltmNewItem_3.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7F16\\u8F91\\u5B50\\u56FE\\u6807/\\u7C98\\u8D34.jpg\"));\n\t\ttltmNewItem_3.setText(\"\\u7C98\\u8D34\");\n\t\tsashForm_3.setWeights(new int[] {486, 165, 267});\n\t\t\n\t\tComposite composite_1 = new Composite(sashForm, SWT.NONE);\n\t\tformToolkit.adapt(composite_1);\n\t\tformToolkit.paintBordersFor(composite_1);\n\t\tcomposite_1.setLayout(new FillLayout(SWT.HORIZONTAL));\n\t\t\n\t\tSashForm sashForm_1 = new SashForm(composite_1, SWT.VERTICAL);\n\t\tformToolkit.adapt(sashForm_1);\n\t\tformToolkit.paintBordersFor(sashForm_1);\n\t\t\n\t\tComposite composite_2 = new Composite(sashForm_1, SWT.NONE);\n\t\tformToolkit.adapt(composite_2);\n\t\tformToolkit.paintBordersFor(composite_2);\n\t\tcomposite_2.setLayout(new FillLayout(SWT.HORIZONTAL));\n\t\t\n\t\tTabFolder tabFolder = new TabFolder(composite_2, SWT.NONE);\n\t\ttabFolder.setTouchEnabled(true);\n\t\tformToolkit.adapt(tabFolder);\n\t\tformToolkit.paintBordersFor(tabFolder);\n\t\t\n\t\tTabItem tbtmNewItem = new TabItem(tabFolder, SWT.NONE);\n\t\ttbtmNewItem.setText(\"\\u65B0\\u5EFA\\u4E00\");\n\t\t\n\t\tTabItem tbtmNewItem_1 = new TabItem(tabFolder, SWT.NONE);\n\t\ttbtmNewItem_1.setText(\"\\u65B0\\u5EFA\\u4E8C\");\n\t\t\n\t\tTabItem tbtmNewItem_2 = new TabItem(tabFolder, SWT.NONE);\n\t\ttbtmNewItem_2.setText(\"\\u65B0\\u5EFA\\u4E09\");\n\t\t\n\t\tButton button = new Button(tabFolder, SWT.CHECK);\n\t\tbutton.setText(\"Check Button\");\n\t\t\n\t\tcomposite_3 = new Composite(sashForm_1, SWT.H_SCROLL | SWT.V_SCROLL);\n\t\t\n\t\tformToolkit.adapt(composite_3);\n\t\tformToolkit.paintBordersFor(composite_3);\n\t\tcomposite_3.setLayout(new FillLayout(SWT.HORIZONTAL));\n\t\t\n\t\tLabel lblNewLabel_3 = new Label(composite_3, SWT.NONE);\n\t\tformToolkit.adapt(lblNewLabel_3, true, true);\n\t\tlblNewLabel_3.setText(\"\");\n\t\tsashForm_1.setWeights(new int[] {19, 323});\n\t\t\n\t\tComposite composite_5 = new Composite(sashForm, SWT.NONE);\n\t\tcomposite_5.setToolTipText(\"\");\n\t\tcomposite_5.setLayout(new FillLayout(SWT.HORIZONTAL));\n\t\t\n\t\tSashForm sashForm_2 = new SashForm(composite_5, SWT.NONE);\n\t\tformToolkit.adapt(sashForm_2);\n\t\tformToolkit.paintBordersFor(sashForm_2);\n\t\t\n\t\tLabel lblNewLabel = new Label(sashForm_2, SWT.BORDER | SWT.CENTER);\n\t\tformToolkit.adapt(lblNewLabel, true, true);\n\t\tlblNewLabel.setText(\"1/1\");\n\t\t\n\t\tLabel lblNewLabel_2 = new Label(sashForm_2, SWT.BORDER | SWT.CENTER);\n\t\tformToolkit.adapt(lblNewLabel_2, true, true);\n\t\tlblNewLabel_2.setText(\"\\u5927\\u5C0F\\uFF1A1366*728\");\n\t\t\n\t\tLabel lblNewLabel_1 = new Label(sashForm_2, SWT.CENTER);\n\t\tformToolkit.adapt(lblNewLabel_1, true, true);\n\t\tlblNewLabel_1.setText(\"\\u7F29\\u653E\\uFF1A100%\");\n\t\t\n\t\tLabel label = new Label(sashForm_2, SWT.NONE);\n\t\tlabel.setAlignment(SWT.RIGHT);\n\t\tformToolkit.adapt(label, true, true);\n\t\tlabel.setText(\"\\u5494\\u5693\\u5DE5\\u4F5C\\u5BA4\\u7248\\u6743\\u6240\\u6709\");\n\t\tsashForm_2.setWeights(new int[] {127, 141, 161, 490});\n\t\tsashForm.setWeights(new int[] {50, 346, 22});\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\tMenuItem mntmNewItem = new MenuItem(menu_1, SWT.NONE);\n\t\tmntmNewItem.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6587\\u4EF6\\u5B50\\u56FE\\u6807/\\u6587\\u4EF6.\\u65B0\\u5EFA.jpg\"));\n\t\tmntmNewItem.setText(\"\\u65B0\\u5EFA\");\n\t\t\n\t\tmntmNewItem_2 = new MenuItem(menu_1, SWT.NONE);\n\t\tmntmNewItem_2.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\n\t\t\t\t//Label lblNewLabel_3 = new Label(composite_1, SWT.NONE);\n\t\t\t\t//Canvas c=new Canvas(shlFaststone,SWT.BALLOON);\n\t\t\t\t\n\t\t\t\tFileDialog dialog = new FileDialog(shlFaststone,SWT.OPEN); \n\t\t\t\tdialog.setFilterPath(System.getProperty(\"user_home\"));//设置初始路径\n\t\t\t\tdialog.setFilterNames(new String[] {\"文本文档(*txt)\",\"所有文档\"}); \n\t\t\t\tdialog.setFilterExtensions(new String[]{\"*.exe\",\"*.xls\",\"*.*\"});\n\t\t\t\tString path=dialog.open();\n\t\t\t\tString s=null;\n\t\t\t\tFile f=null;\n\t\t\t\tif(path==null||\"\".equals(path)) {\n\t\t\t\t\treturn ;\n\t\t\t\t}\n\t\t\t\ttry{\n\t\t\t f=new File(path);\n\t\t\t\tbyte[] bs=Fileutil.readFile(f);\n\t\t\t s=new String(bs,\"UTF-8\");\n\t\t\t\t}catch (Exception e1) {\n\t\t\t\t\t// TODO: handle exception\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\tMessageDialog.openError(shlFaststone, \"出错了\", \"打开\"+path+\"出错了\");\n\t\t\t\t\treturn ;\n\t\t\t\t}\n\t\t\t \n\t\t\t\ttext = new Text(composite_4, SWT.BORDER | SWT.WRAP\n\t\t\t\t\t\t| SWT.H_SCROLL | SWT.V_SCROLL | SWT.CANCEL\n\t\t\t\t\t\t| SWT.MULTI);\n\t\t\t\ttext.setText(s);\n\t\t\t\tcomposite_1.layout();\n\t\t\t\tshlFaststone.setText(shlFaststone.getText()+\"\\t\"+f.getName());\n\t\t\t\t\t\n\t\t\t\tFile f1=new File(path);\n\t\t\t\tImageData imageData;\n\t\t\t\ttry {\n\t\t\t\t\timageData = new ImageData( new FileInputStream( f1));\n\t\t\t\t\tImage image=new Image(shlFaststone.getDisplay(),imageData);\n\t\t\t\t\tlblNewLabel_3.setImage(image);\n\t\t\t\t} catch (FileNotFoundException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t\n\t\t\t}\n\t\t});\n\t\tmntmNewItem_2.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6587\\u4EF6\\u5B50\\u56FE\\u6807/\\u6587\\u4EF6.\\u6253\\u5F00.jpg\"));\n\t\tmntmNewItem_2.setText(\"\\u6253\\u5F00\");\n\t\t\n\t\tMenuItem mntmNewItem_1 = new MenuItem(menu_1, SWT.NONE);\n\t\tmntmNewItem_1.setText(\"\\u4ECE\\u526A\\u8D34\\u677F\\u5BFC\\u5165\");\n\t\t\n\t\tMenuItem mntmNewItem_3 = new MenuItem(menu_1, SWT.NONE);\n\t\tmntmNewItem_3.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6587\\u4EF6\\u5B50\\u56FE\\u6807/\\u6587\\u4EF6.\\u53E6\\u5B58\\u4E3A.jpg\"));\n\t\tmntmNewItem_3.setText(\"\\u53E6\\u5B58\\u4E3A\");\n\t\t\n\t\t mntmNewItem_5 = new MenuItem(menu_1, SWT.NONE);\n\t\tmntmNewItem_5.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t boolean result=MessageDialog.openConfirm(shlFaststone,\"退出\",\"是否确认退出\");\n\t\t\t\t if(result) {\n\t\t\t\t\t System.exit(0);\n\t\t\t\t }\n\n\t\t\t}\n\t\t});\n\t\tmntmNewItem_5.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6587\\u4EF6\\u5B50\\u56FE\\u6807/\\u6587\\u4EF6.\\u4FDD\\u5B58.jpg\"));\n\t\tmntmNewItem_5.setText(\"\\u5173\\u95ED\");\n\t\tevent2=new Event();\n\t\tevent2.widget=mntmNewItem_5;\n\n\t\t\n\t\tMenuItem mntmNewSubmenu = new MenuItem(menu, SWT.CASCADE);\n\t\tmntmNewSubmenu.setText(\"\\u6355\\u6349\");\n\t\t\n\t\tMenu menu_2 = new Menu(mntmNewSubmenu);\n\t\tmntmNewSubmenu.setMenu(menu_2);\n\t\t\n\t\tMenuItem mntmNewItem_6 = new MenuItem(menu_2, SWT.NONE);\n\t\tmntmNewItem_6.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6355\\u6349/\\u6355\\u6349\\u6D3B\\u52A8\\u7A97\\u53E3.jpg\"));\n\t\tmntmNewItem_6.setText(\"\\u6355\\u6349\\u6D3B\\u52A8\\u7A97\\u53E3\");\n\t\t\n\t\tMenuItem mntmNewItem_7 = new MenuItem(menu_2, SWT.NONE);\n\t\tmntmNewItem_7.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6355\\u6349/\\u6355\\u6349.\\u6355\\u6349\\u7A97\\u53E3\\u6216\\u5BF9\\u8C61.jpg\"));\n\t\tmntmNewItem_7.setText(\"\\u6355\\u6349\\u7A97\\u53E3\\u5BF9\\u8C61\");\n\t\t\n\t\tMenuItem mntmNewItem_8 = new MenuItem(menu_2, SWT.NONE);\n\t\tmntmNewItem_8.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6355\\u6349/\\u6355\\u6349.jpg\"));\n\t\tmntmNewItem_8.setText(\"\\u6355\\u6349\\u77E9\\u5F62\\u533A\\u57DF\");\n\t\t\n\t\tMenuItem mntmNewItem_9 = new MenuItem(menu_2, SWT.NONE);\n\t\tmntmNewItem_9.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6355\\u6349/\\u6355\\u6349.\\u624B\\u7ED8\\u533A\\u57DF.jpg\"));\n\t\tmntmNewItem_9.setText(\"\\u6355\\u6349\\u624B\\u7ED8\\u533A\\u57DF\");\n\t\t\n\t\tMenuItem mntmNewItem_10 = new MenuItem(menu_2, SWT.NONE);\n\t\tmntmNewItem_10.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6355\\u6349/\\u6355\\u6349.\\u6574\\u4E2A\\u5C4F\\u5E55.jpg\"));\n\t\tmntmNewItem_10.setText(\"\\u6355\\u6349\\u6574\\u4E2A\\u5C4F\\u5E55\");\n\t\t\n\t\tMenuItem mntmNewItem_11 = new MenuItem(menu_2, SWT.NONE);\n\t\tmntmNewItem_11.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6355\\u6349/\\u6355\\u6349\\u6EDA\\u52A8\\u7A97\\u53E3.jpg\"));\n\t\tmntmNewItem_11.setText(\"\\u6355\\u6349\\u6EDA\\u52A8\\u7A97\\u53E3\");\n\t\t\n\t\tMenuItem mntmNewItem_12 = new MenuItem(menu_2, SWT.NONE);\n\t\tmntmNewItem_12.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6355\\u6349/\\u6355\\u6349.\\u56FA\\u5B9A\\u5927\\u5C0F\\u533A\\u57DF.jpg\"));\n\t\tmntmNewItem_12.setText(\"\\u6355\\u6349\\u56FA\\u5B9A\\u5927\\u5C0F\\u533A\\u57DF\");\n\t\t\n\t\tMenuItem menuItem_1 = new MenuItem(menu_2, SWT.NONE);\n\t\tmenuItem_1.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6355\\u6349/\\u6355\\u6349.\\u91CD\\u590D\\u4E0A\\u6B21\\u6355\\u6349.jpg\"));\n\t\tmenuItem_1.setText(\"\\u91CD\\u590D\\u4E0A\\u6B21\\u6355\\u6349\");\n\t\t\n\t\tMenuItem menuItem_2 = new MenuItem(menu, SWT.CASCADE);\n\t\tmenuItem_2.setText(\"\\u7F16\\u8F91\");\n\t\t\n\t\tMenu menu_3 = new Menu(menuItem_2);\n\t\tmenuItem_2.setMenu(menu_3);\n\t\t\n\t\tMenuItem mntmNewItem_14 = new MenuItem(menu_3, SWT.NONE);\n\t\tmntmNewItem_14.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7F16\\u8F91\\u5B50\\u56FE\\u6807/\\u5DE6\\u64A4\\u9500.jpg\"));\n\t\tmntmNewItem_14.setText(\"\\u64A4\\u9500\");\n\t\t\n\t\tMenuItem mntmNewItem_13 = new MenuItem(menu_3, SWT.NONE);\n\t\tmntmNewItem_13.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7F16\\u8F91\\u5B50\\u56FE\\u6807/\\u53F3\\u64A4\\u9500.jpg\"));\n\t\tmntmNewItem_13.setText(\"\\u91CD\\u505A\");\n\t\t\n\t\tMenuItem mntmNewItem_15 = new MenuItem(menu_3, SWT.NONE);\n\t\tmntmNewItem_15.setText(\"\\u9009\\u62E9\\u5168\\u90E8\");\n\t\t\n\t\tMenuItem mntmNewItem_16 = new MenuItem(menu_3, SWT.NONE);\n\t\tmntmNewItem_16.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7F16\\u8F91\\u5B50\\u56FE\\u6807/\\u7F16\\u8F91.\\u88C1\\u526A.jpg\"));\n\t\tmntmNewItem_16.setText(\"\\u88C1\\u526A\");\n\t\t\n\t\tMenuItem mntmNewItem_17 = new MenuItem(menu_3, SWT.NONE);\n\t\tmntmNewItem_17.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7F16\\u8F91\\u5B50\\u56FE\\u6807/\\u526A\\u5207.jpg\"));\n\t\tmntmNewItem_17.setText(\"\\u526A\\u5207\");\n\t\t\n\t\tMenuItem mntmNewItem_18 = new MenuItem(menu_3, SWT.NONE);\n\t\tmntmNewItem_18.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7F16\\u8F91\\u5B50\\u56FE\\u6807/\\u590D\\u5236.jpg\"));\n\t\tmntmNewItem_18.setText(\"\\u590D\\u5236\");\n\t\t\n\t\tMenuItem menuItem_4 = new MenuItem(menu_3, SWT.NONE);\n\t\tmenuItem_4.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7F16\\u8F91\\u5B50\\u56FE\\u6807/\\u7C98\\u8D34.jpg\"));\n\t\tmenuItem_4.setText(\"\\u7C98\\u8D34\");\n\t\t\n\t\tMenuItem mntmNewItem_19 = new MenuItem(menu_3, SWT.NONE);\n\t\tmntmNewItem_19.setText(\"\\u5220\\u9664\");\n\t\t\n\t\tMenuItem menuItem_3 = new MenuItem(menu, SWT.CASCADE);\n\t\tmenuItem_3.setText(\"\\u7279\\u6548\");\n\t\t\n\t\tMenu menu_4 = new Menu(menuItem_3);\n\t\tmenuItem_3.setMenu(menu_4);\n\t\t\n\t\tMenuItem mntmNewItem_20 = new MenuItem(menu_4, SWT.NONE);\n\t\tmntmNewItem_20.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7279\\u6548.\\u6C34\\u5370.jpg\"));\n\t\tmntmNewItem_20.setText(\"\\u6C34\\u5370\");\n\t\t\n\t\tPanelPic ppn = new PanelPic();\n\t\tMenuItem mntmNewItem_21 = new MenuItem(menu_4, SWT.NONE);\n\t\tmntmNewItem_21.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tflag[0]=true;\n\t\t\t\tflag[1]=false;\n\n\t\t\t}\n\n\t\t});\n\t\t\n\t\tdown.addMouseListener(new MouseAdapter(){\n\t\t\tpublic void mouseDown(MouseEvent e)\n\t\t\t{\n\t\t\t\tmouseDown=true;\n\t\t\t\tpt=new Point(e.x,e.y);\n\t\t\t\tif(flag[1])\n\t\t\t\t{\n\t\t\t\t\trect=new Composite(down,SWT.BORDER);\n\t\t\t\t\trect.setLocation(e.x, e.y);\n\t\t\t\t\tn++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tpublic void mouseUp(MouseEvent e)\n\t\t\t{\n\t\t\t\tmouseDown=false;\n\t\t\t\tif(flag[1]&&dirty)\n\t\t\t\t{\n\t\t\t\t\trexx[n-1]=rect.getBounds();\n\t\t\t\t\trect.dispose();\n\t\t\t\t\tdown.redraw();\n\t\t\t\t\tdirty=false;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tdown.addMouseMoveListener(new MouseMoveListener(){\n\t\t\t@Override\n\t\t\tpublic void mouseMove(MouseEvent e) {\n if(mouseDown)\n {\n \t dirty=true;\n\t\t\t\tif(flag[0])\n\t\t\t {\n \t GC gc=new GC(down);\n gc.drawLine(pt.x, pt.y, e.x, e.y);\n list.add(new int[]{pt.x,pt.y,e.x,e.y});\n pt.x=e.x;pt.y=e.y;\n\t\t\t }\n else if(flag[1])\n {\n \t if(rect!=null)\n \t rect.setSize(rect.getSize().x+e.x-pt.x, rect.getSize().y+e.y-pt.y);\n// \t down.redraw();\n \t pt.x=e.x;pt.y=e.y;\n }\n }\n\t\t\t}\n\t\t\t\n\t\t});\n\t\tdown.addPaintListener(new PaintListener(){\n\t\t\t@Override\n\t\t\tpublic void paintControl(PaintEvent e) {\n\t\t\t\tfor(int i=0;i<list.size();i++)\n\t\t\t\t{\n\t\t\t\t\tint a[]=list.get(i);\n\t\t\t\t\te.gc.drawLine(a[0], a[1], a[2], a[3]);\n\t\t\t\t}\n\t\t\t\tfor(int i=0;i<n;i++)\n\t\t\t\t{\n\t\t\t\t\tif(rexx[i]!=null)\n\t\t\t\t\t\te.gc.drawRectangle(rexx[i]);\n\t\t\t\t}\n\t\t\t}});\n\n\t\t\n\t\tmntmNewItem_21.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7279\\u6548.\\u6587\\u5B57.jpg\"));\n\t\tmntmNewItem_21.setText(\"\\u753B\\u7B14\");\n\t\t\n\t\tMenuItem mntmNewSubmenu_1 = new MenuItem(menu, SWT.CASCADE);\n\t\tmntmNewSubmenu_1.setText(\"\\u67E5\\u770B\");\n\t\t\n\t\tMenu menu_5 = new Menu(mntmNewSubmenu_1);\n\t\tmntmNewSubmenu_1.setMenu(menu_5);\n\t\t\n\t\tMenuItem mntmNewItem_24 = new MenuItem(menu_5, SWT.NONE);\n\t\tmntmNewItem_24.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u67E5\\u770B.\\u653E\\u5927.jpg\"));\n\t\tmntmNewItem_24.setText(\"\\u653E\\u5927\");\n\t\t\n\t\tMenuItem mntmNewItem_25 = new MenuItem(menu_5, SWT.NONE);\n\t\tmntmNewItem_25.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u67E5\\u770B.\\u7F29\\u5C0F.jpg\"));\n\t\tmntmNewItem_25.setText(\"\\u7F29\\u5C0F\");\n\t\t\n\t\tMenuItem mntmNewItem_26 = new MenuItem(menu_5, SWT.NONE);\n\t\tmntmNewItem_26.setText(\"\\u5B9E\\u9645\\u5C3A\\u5BF8\\uFF08100%\\uFF09\");\n\t\t\n\t\tMenuItem mntmNewItem_27 = new MenuItem(menu_5, SWT.NONE);\n\t\tmntmNewItem_27.setText(\"\\u9002\\u5408\\u7A97\\u53E3\");\n\t\t\n\t\tMenuItem mntmNewItem_28 = new MenuItem(menu_5, SWT.NONE);\n\t\tmntmNewItem_28.setText(\"100%\");\n\t\t\n\t\tMenuItem mntmNewItem_29 = new MenuItem(menu_5, SWT.NONE);\n\t\tmntmNewItem_29.setText(\"200%\");\n\t\t\n\t\tMenuItem mntmNewSubmenu_2 = new MenuItem(menu, SWT.CASCADE);\n\t\tmntmNewSubmenu_2.setText(\"\\u8BBE\\u7F6E\");\n\t\t\n\t\tMenu menu_6 = new Menu(mntmNewSubmenu_2);\n\t\tmntmNewSubmenu_2.setMenu(menu_6);\n\t\t\n\t\tMenuItem menuItem_5 = new MenuItem(menu, SWT.CASCADE);\n\t\tmenuItem_5.setText(\"\\u5E2E\\u52A9\");\n\t\t\n\t\tMenu menu_7 = new Menu(menuItem_5);\n\t\tmenuItem_5.setMenu(menu_7);\n\t\t\n\t\tMenuItem menuItem_6 = new MenuItem(menu_7, SWT.NONE);\n\t\tmenuItem_6.setText(\"\\u7248\\u672C\");\n\t\t\n\t\tMenuItem mntmNewItem_23 = new MenuItem(menu, SWT.NONE);\n\t\tmntmNewItem_23.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7F16\\u8F91\\u5B50\\u56FE\\u6807/\\u5DE6\\u64A4\\u9500.jpg\"));\n\t\t\n\t\tMenuItem mntmNewItem_30 = new MenuItem(menu, SWT.NONE);\n\t\tmntmNewItem_30.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7F16\\u8F91\\u5B50\\u56FE\\u6807/\\u53F3\\u64A4\\u9500.jpg\"));\n\n\t}", "protected void createContents() {\n\t\tMonitor primary = this.getDisplay().getPrimaryMonitor();\n\t\tRectangle bounds = primary.getBounds();\n\t\tRectangle rect = getBounds();\n\t\tint x = bounds.x + (bounds.width - rect.width) / 2;\n\t\tint y = bounds.y + (bounds.height - rect.height) / 2;\n\t\tsetLocation(x, y);\n\t}", "protected void createContents() {\n\t\tDelAllShell = new Shell(SWT.CLOSE | SWT.MIN);\n\t\tfinal int WIDTH=java.awt.Toolkit.getDefaultToolkit().getScreenSize().width;\n\t\tfinal int HEIGHT=java.awt.Toolkit.getDefaultToolkit().getScreenSize().height;\n\t\t\n\t\tDelAllShell.setBounds((WIDTH-441)/2,(HEIGHT-300)/2,441, 177);\n\t\tDelAllShell.setText(\"清空\");\n\t\t\n\t\tLabel messgLabel_1 = new Label(DelAllShell, SWT.CENTER);\n\t\tmessgLabel_1.setFont(SWTResourceManager.getFont(\"微软雅黑\", 13, SWT.NORMAL));\n\t\tmessgLabel_1.setBounds(10, 10, 405, 23);\n\t\tmessgLabel_1.setText(\"您所选择的分组为通讯录列表,确认删除时\");\n\t\t\n\t\tLabel messgLabel_2 = new Label(DelAllShell, SWT.CENTER);\n\t\tmessgLabel_2.setFont(SWTResourceManager.getFont(\"微软雅黑\", 13, SWT.NORMAL));\n\t\tmessgLabel_2.setBounds(62, 39, 272, 23);\n\t\tmessgLabel_2.setText(\"清空所有内容!\");\n\t\t\n\t\tButton yesButton = new Button(DelAllShell, SWT.NONE);\n\t\tyesButton.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry{\n\t\t\t\t\tTreeItem[] treeItem=mainTreeItem.getItems();\n\t\t\t\t\tfor(int i=0;i<treeItem.length;i++)\n\t\t\t\t\t{\n\t\t\t\t\t\ttreeItem[i].dispose();\n\t\t\t\t\t}\n\t\t\t\tGroups.getGroupList().clear();\n\t\t\t\tUsers.getUserList().clear();\n\t\t\t\tGroups.updateToFile();\n\t\t\t\tUsers.updateToFile();\n\t\t\t\t}catch(Exception ex){\n\t\t\t\t\tSystem.out.println(\"清空文件失败\");\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\tDelAllShell.close();\n\t\t\t\t//final Group mainTreeItem = new Group(tree, SWT.NONE);\n\t\t\t\t//mainTreeItem.setText(\"通讯录列表\");\n\t\t\t\t//mainShell.setVisible(true);\n\t\t\t}\n\t\t});\n\t\tyesButton.setBounds(86, 102, 80, 27);\n\t\tyesButton.setText(\"确定\");\n\t\t\n\t\tButton noButton = new Button(DelAllShell, SWT.NONE);\n\t\tnoButton.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e)\n\t\t\t{\n\t\t\t\tDelAllShell.close();\n\t\t\t}\n\t\t});\n\t\tnoButton.setText(\"取消\");\n\t\tnoButton.setBounds(254, 102, 80, 27);\n\n\t}", "void makeDialog()\n\t{\n\t\tfDialog = new ViewOptionsDialog(this.getTopLevelAncestor());\n\t}", "private void createContents() {\n\t\tshell = new Shell(getParent(), getStyle());\n\t\tshell.setSize(250, 150);\n\t\tshell.setText(getText());\n\t\tshell.setLayout(new BorderLayout(0, 0));\n\t\t\n\t\tComposite composite = new Composite(shell, SWT.NONE);\n\t\tcomposite.setLayoutData(BorderLayout.SOUTH);\n\t\tcomposite.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));\n\t\t\n\t\tComposite composite_1 = new Composite(shell, SWT.NONE);\n\t\tcomposite_1.setLayoutData(BorderLayout.CENTER);\n\t\tcomposite_1.setLayout(new GridLayout(4, false));\n\t\tnew Label(composite_1, SWT.NONE);\n\t\t\n\t\tLabel lblHour = new Label(composite_1, SWT.NONE);\n\t\tlblHour.setSize(0, 0);\n\t\tlblHour.setText(\"Hour\");\n\t\t\n\t\tLabel lblMin = new Label(composite_1, SWT.NONE);\n\t\tlblMin.setSize(0, 0);\n\t\tlblMin.setText(\"Min\");\n\t\t\n\t\tButton btnAm = new Button(composite_1, SWT.RADIO);\n\t\tbtnAm.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tampm=0;\n\t\t\t}\n\t\t});\n\t\tbtnAm.setSize(0, 0);\n\t\tbtnAm.setText(\"AM\");\n\t\t\n\t\tLabel lblStartTime = new Label(composite_1, SWT.NONE);\n\t\tlblStartTime.setSize(0, 0);\n\t\tlblStartTime.setText(\"Start Time:\");\n\t\t\n\t\tfinal Spinner hourSpinner = new Spinner(composite_1, SWT.BORDER);\n\t\thourSpinner.setSize(0, 0);\n\t\thourSpinner.setMaximum(12);\n\t\thourSpinner.setMinimum(1);\n\t\t\n\t\tfinal Spinner minSpinner = new Spinner(composite_1, SWT.BORDER);\n\t\tminSpinner.setSize(0, 0);\n\t\tminSpinner.setMaximum(59);\n\t\tminSpinner.setMinimum(0);\n\t\t\n\t\t\n\t\tButton btnPm = new Button(composite_1, SWT.RADIO);\n\t\tbtnPm.setSize(0, 0);\n\t\tbtnPm.setText(\"PM\");\n\t\t\n\t\tButton btnCancel = new Button(composite, SWT.NONE);\n\t\tbtnCancel.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t}\n\t\t});\n\t\tbtnCancel.setText(\"Cancel\");\n\t\t\n\t\tButton btnOk = new Button(composite, SWT.NONE);\n\t\tbtnOk.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\thour = Integer.valueOf(hourSpinner.getText());\n\t\t\t\tminute = Integer.valueOf(minSpinner.getText());\n\t\t\t\tparent.setHour(hour);\n\t\t\t\tSystem.out.println(\"print hour-->\"+hour+\". print parent.hour-->\"+parent.hour);\n\t\t\t\tSystem.out.println(parent.hour);\n\t\t\t\tparent.setMinute(minute);\n\t\t\t\tparent.setAmpm(ampm);\n\t\t\t\tshell.close();\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tbtnOk.setText(\"OK\");\n\t\t\n\t\t\n\n\t}", "protected void createContents() {\n shell = new Shell();\n shell.setSize(1024, 650);\n shell.setText(\"GMToolsTD\");\n shell.setLayout(new GridLayout());\n\n\n /* Création du menu principal */\n Menu menuPrincipal = new Menu(shell, SWT.BAR);\n shell.setMenuBar(menuPrincipal);\n\n MenuItem mntmModule = new MenuItem(menuPrincipal, SWT.CASCADE);\n mntmModule.setText(\"Module\");\n\n Menu menuModule = new Menu(mntmModule);\n mntmModule.setMenu(menuModule);\n\n mntmSpoolUsage = new MenuItem(menuModule, SWT.NONE);\n mntmSpoolUsage.setText(\"Spool Usage\");\n\n mntmUser = new MenuItem(menuModule, SWT.NONE);\n mntmUser.setText(\"User Information\");\n\n new MenuItem(menuModule, SWT.SEPARATOR);\n\n mntmConfig = new MenuItem(menuModule, SWT.NONE);\n mntmConfig.setText(\"Configuration\");\n\n new MenuItem(menuModule, SWT.SEPARATOR);\n\n mntmExit = new MenuItem(menuModule, SWT.NONE);\n mntmExit.setText(\"Exit\");\n\n MenuItem mntmHelp = new MenuItem(menuPrincipal, SWT.CASCADE);\n mntmHelp.setText(\"Help\");\n\n Menu menuAbout = new Menu(mntmHelp);\n mntmHelp.setMenu(menuAbout);\n\n mntmAbout = new MenuItem(menuAbout, SWT.NONE);\n mntmAbout.setText(\"About\");\n\n\n /* Creation main screen elements */\n pageComposite = new Composite(shell, SWT.NONE);\n pageComposite.setLayout(new GridLayout(2,false));\n gridData = new GridData();\n gridData.horizontalAlignment = SWT.FILL;\n gridData.grabExcessHorizontalSpace = true;\n gridData.verticalAlignment = SWT.FILL;\n gridData.grabExcessVerticalSpace = true;\n pageComposite.setLayoutData(gridData);\n\n\n grpConnexion = new Group(pageComposite, SWT.NONE );\n grpConnexion.setText(\"Connection\");\n grpConnexion.setLayout(new GridLayout(2,false));\n gridData = new GridData();\n gridData.heightHint = 110;\n grpConnexion.setLayoutData(gridData);\n\n\n Label lblServer = new Label(grpConnexion, SWT.NONE);\n lblServer.setText(\"Server :\");\n\n textServer = new Text(grpConnexion, SWT.NONE);\n textServer.setLayoutData(new GridData(110,20));\n\n Label lblUsername = new Label(grpConnexion, SWT.NONE);\n lblUsername.setSize(65, 20);\n lblUsername.setText(\"Username :\");\n\n textUsername = new Text(grpConnexion,SWT.NONE);\n textUsername.setLayoutData(new GridData(110,20));\n\n Label lblPassword = new Label(grpConnexion, SWT.NONE);\n lblPassword.setSize(65, 20);\n lblPassword.setText(\"Password :\");\n\n textPassword = new Text(grpConnexion, SWT.PASSWORD);\n textPassword.setLayoutData(new GridData(110,20));\n\n btnConnect = new Button(grpConnexion, SWT.NONE);\n btnConnect.setLayoutData(new GridData(SWT.RIGHT,SWT.CENTER, false, false));\n btnConnect.setText(\"Connect\");\n\n btnDisconnect = new Button(grpConnexion, SWT.NONE);\n btnDisconnect.setEnabled(false);\n btnDisconnect.setText(\"Disconnect\");\n\n\n\n groupInfo = new Group(pageComposite, SWT.NONE);\n groupInfo.setText(\"Information\");\n groupInfo.setLayout(new GridLayout(1, false));\n gridData = new GridData();\n gridData.horizontalAlignment = SWT.FILL;\n gridData.grabExcessHorizontalSpace = true;\n gridData.heightHint = 110;\n groupInfo.setLayoutData(gridData);\n\n textInformation = new Text(groupInfo, SWT.READ_ONLY | SWT.H_SCROLL | SWT.V_SCROLL | SWT.MULTI);\n gridData = new GridData();\n gridData.horizontalAlignment = SWT.FILL;\n gridData.grabExcessHorizontalSpace = true;\n gridData.verticalAlignment = SWT.FILL;\n gridData.grabExcessVerticalSpace = true;\n textInformation.setLayoutData(gridData);\n\n\n // renseignement des informations provenant de config\n textServer.setText(conf.getValueConf(conf.SERVER_TD));\n textUsername.setText(conf.getValueConf(conf.USERNAME_TD));\n textPassword.setText(\"\");\n\n\n mntmSpoolUsage.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent e) {\n majAffichage(AFFICHE_SPOOL);\n }\n });\n\n\n mntmUser.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent selectionEvent) {\n majAffichage(AFFICHE_USER);\n }\n });\n\n mntmConfig.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent selectionEvent) {\n majAffichage(AFFICHE_CONFIG);\n }\n });\n\n mntmAbout.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent selectionEvent) {\n MessageBox messageBox = new MessageBox(shell, SWT.ICON_INFORMATION);\n messageBox.setText(\"About...\");\n messageBox.setMessage(\"Not implemented yet ...\");\n messageBox.open();\n }\n });\n\n mntmExit.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent selectionEvent) {\n // afficher un message box avec du blabla\n shell.close();\n\n }\n });\n\n btnConnect.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent e) {\n // connexion Teradata\n btnConnect.setEnabled(false);\n entryServer = textServer.getText();\n entryUsername = textUsername.getText();\n entryPassword = textPassword.getText();\n\n new Thread(new Runnable() {\n public void run() {\n try {\n\n tdConnect = new TDConnexion(entryServer, entryUsername, entryPassword, conf);\n majInformation(MESSAGE_INFORMATION,nomModuleConnexion,\"Connexion OK\");\n connexionStatut = true;\n } catch ( SQLException err) {\n majInformation(MESSAGE_ERROR,nomModuleConnexion,\"Connexion KO : \"+err.getMessage());\n connexionStatut = false;\n } catch (ClassNotFoundException err) {\n majInformation(MESSAGE_ERROR,nomModuleConnexion,\"Error ClassNotFoundException : \"+err.getMessage());\n connexionStatut = false;\n }\n if (connexionStatut) {\n try {\n nbrAMP = tdConnect.requestNumberAMP();\n } catch (Exception err) {\n majInformation(MESSAGE_ERROR,nomModuleConnexion,\"Calculation of AMPs KO : \"+err.getMessage());\n connexionStatut = false;\n tdConnect.deconnexion();\n }\n }\n\n Display.getDefault().asyncExec(new Runnable() {\n public void run() {\n\n if (connexionStatut) {\n activationON();\n\n textServer.setEnabled(false);\n textUsername.setEnabled(false);\n textPassword.setEnabled(false);\n\n btnConnect.setEnabled(false);\n btnDisconnect.setEnabled(true);\n } else {\n btnConnect.setEnabled(true);\n }\n }\n });\n }\n }).start();\n\n\n\n\n }\n });\n\n\n btnDisconnect.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent e) {\n manageDisconnection();\n }\n });\n\n\n //creating secondary screen\n ecranUser = new EcranUser(this);\n ecranSpool = new EcranSpool(this);\n ecranConfig = new EcranConfig(this);\n\n\n // update of the information message (log)\n new Thread(new Runnable() {\n public void run() {\n try {\n while (true) {\n if (!listMessageInfo.isEmpty()) {\n Display.getDefault().asyncExec(new Runnable() {\n public void run() {\n refreshInformation();\n }\n });\n }\n try {\n Thread.sleep(500);\n } catch (Exception e) {\n //nothing to do\n }\n }\n } catch (Exception e) {\n //What to do when the while send an error ?\n }\n }\n }).start();\n\n }", "private void createContents() {\n shell = new Shell(getParent(), getStyle());\n shell.setSize(540, 297);\n shell.setLayout(new GridLayout(1, false));\n\n Composite cmpTop = new Composite(shell, SWT.NONE);\n cmpTop.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n GridLayout gl_cmpTop = new GridLayout(4, false);\n gl_cmpTop.verticalSpacing = 0;\n cmpTop.setLayout(gl_cmpTop);\n\n Label lblBankAccountNumber = new Label(cmpTop, SWT.CENTER);\n lblBankAccountNumber.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n lblBankAccountNumber.setBounds(0, 0, 59, 14);\n lblBankAccountNumber.setText(\"Bank Account\");\n Label lblBranch = new Label(cmpTop, SWT.CENTER);\n lblBranch.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n lblBranch.setBounds(0, 0, 59, 14);\n lblBranch.setText(\"Branch\");\n\n Label lblBank = new Label(cmpTop, SWT.CENTER);\n lblBank.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n lblBank.setText(\"Bank\");\n new Label(cmpTop, SWT.NONE);\n\n txtBankAccountNumber = new Text(cmpTop, SWT.BORDER);\n txtBankAccountNumber.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\n txtBankAccountNumber.setBounds(0, 0, 64, 19);\n\n txtBranch = new Text(cmpTop, SWT.BORDER);\n GridData gd_txtBranch = new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1);\n gd_txtBranch.widthHint = 50;\n txtBranch.setLayoutData(gd_txtBranch);\n txtBranch.setBounds(0, 0, 64, 19);\n\n txtBank = new Text(cmpTop, SWT.BORDER);\n GridData gd_txtBank = new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1);\n gd_txtBank.widthHint = 50;\n txtBank.setLayoutData(gd_txtBank);\n btnSearch = new Button(cmpTop, SWT.NONE);\n btnSearch.setAlignment(SWT.RIGHT);\n btnSearch.setText(\"Search\");\n btnSearch.setEnabled(false);\n\n Composite cmpResults = new Composite(shell, SWT.NONE);\n cmpResults.setLayout(new GridLayout(1, false));\n GridData gd_cmpResults = new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1);\n gd_cmpResults.heightHint = 129;\n cmpResults.setLayoutData(gd_cmpResults);\n\n tblAccounts = new Table(cmpResults, SWT.BORDER);\n GridData gd_tblAccounts = new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1);\n gd_tblAccounts.heightHint = 71;\n tblAccounts.setLayoutData(gd_tblAccounts);\n tblAccounts.setHeaderVisible(true);\n tblAccounts.setLinesVisible(true);\n\n TableColumn tblclmnAccountNumber = new TableColumn(tblAccounts, SWT.NONE);\n tblclmnAccountNumber.setWidth(120);\n tblclmnAccountNumber.setText(\"Player Account\");\n\n TableColumn tblclmsFirstName = new TableColumn(tblAccounts, SWT.NONE);\n tblclmsFirstName.setWidth(100);\n tblclmsFirstName.setText(\"First Name\");\n\n TableColumn tblclmnLastName = new TableColumn(tblAccounts, SWT.NONE);\n tblclmnLastName.setWidth(100);\n tblclmnLastName.setText(\"Last Name\");\n\n TableColumn tblclmnActivated = new TableColumn(tblAccounts, SWT.NONE);\n tblclmnActivated.setWidth(95);\n tblclmnActivated.setText(\"From\");\n\n TableColumn tblclmnDeactivated = new TableColumn(tblAccounts, SWT.NONE);\n tblclmnDeactivated.setWidth(100);\n tblclmnDeactivated.setText(\"To\");\n\n Composite cmpFooter = new Composite(shell, SWT.NONE);\n cmpFooter.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n cmpFooter.setLayout(new GridLayout(2, false));\n\n lblResultsMessage = new Label(cmpFooter, SWT.NONE);\n lblResultsMessage.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\n\n Composite cmpButtons = new Composite(cmpFooter, SWT.NONE);\n cmpButtons.setLayout(new GridLayout(3, false));\n cmpButtons.setLayoutData(new GridData(SWT.RIGHT, SWT.BOTTOM, true, false, 1, 1));\n\n btnLoad = new Button(cmpButtons, SWT.NONE);\n btnLoad.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, true, false, 1, 1));\n btnLoad.setText(\"Load Account\");\n btnLoad.setEnabled(false);\n\n btnCancel = new Button(cmpButtons, SWT.NONE);\n btnCancel.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, true, false, 1, 1));\n btnCancel.setText(\"Cancel\");\n new Label(cmpButtons, SWT.NONE);\n }", "public Dialog<String> createDialog() {\n\t\t// Creating a dialog\n\t\tDialog<String> dialog = new Dialog<String>();\n\n\t\tButtonType type = new ButtonType(\"Ok\", ButtonData.OK_DONE);\n\t\tdialog.getDialogPane().getButtonTypes().add(type);\n\t\treturn dialog;\n\t}", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(450, 300);\n\t\tshell.setText(\"SWT Application\");\n\t\t\n\t\tLabel lblUsername = new Label(shell, SWT.NONE);\n\t\tlblUsername.setBounds(73, 30, 55, 15);\n\t\tlblUsername.setText(\"Username\");\n\t\t\n\t\tLabel lblPassword = new Label(shell, SWT.NONE);\n\t\tlblPassword.setText(\"Password\");\n\t\tlblPassword.setBounds(73, 78, 55, 15);\n\t\t\n\t\ttxtUsername = new Text(shell, SWT.BORDER);\n\t\ttxtUsername.setText(\"lisa\");\n\t\ttxtUsername.setBounds(139, 24, 209, 21);\n\t\t\n\t\ttxtPassword = new Text(shell, SWT.BORDER);\n\t\ttxtPassword.setText(\"password1\");\n\t\ttxtPassword.setBounds(139, 72, 209, 21);\n\t\t\n\t\tButton btnLogin = new Button(shell, SWT.NONE);\n\t\tbtnLogin.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t}\n\t\t});\n\t\tbtnLogin.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseUp(MouseEvent e) {\n\t\t\t\tString usrname = txtUsername.getText();\n\t\t\t\tString usrpass = txtPassword.getText();\n\t\t\t\t\n\t\t\t\t// Call authenticate user credentials through authentication RMI server\n\t\t\t\tLoginInterface login;\n\t\t\t\ttry{\n\t\t\t\t\tlogin = (LoginInterface)Naming.lookup(\"rmi://localhost/login\");\n\t\t\t\t\t\n\t\t\t\t\tboolean authenticated = login.authenticate(usrname, usrpass);\n\t\t\t\t\tif(authenticated){\n\t\t\t\t\t\tSystem.out.println(\"User authenticated.\");\n\t\t\t\t\t\tclose();\n\n\t\t\t\t\t\tevaluator.EvaluatorClient.main(null);\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tSystem.out.println(\"Username or password was incorrect. Please try again.\");\n\t\t\t\t\t\tlblMsgOut.setText(\"Username or password was incorrect. Please try again.\");\n\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t}catch(Exception e2){\n\t\t\t\t\tSystem.out.println(\"LoginClient authentication exception: \" + e2);\n\t\t\t\t\tlblMsgOut.setText(\"LoginClient authentication exception: \" + e2);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnLogin.setBounds(272, 118, 75, 25);\n\t\tbtnLogin.setText(\"Login\");\n\t\t\n\t\tlblMsgOut = new Label(shell, SWT.BORDER | SWT.WRAP);\n\t\tlblMsgOut.setBounds(10, 174, 414, 77);\n\t\tlblMsgOut.setText(\"Output:\");\n\n\t}", "protected void createContents() throws UnknownHostException, IOException, InterruptedException {\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tshlUser = new Shell();\r\n\t\tshlUser.setSize(450, 464);\r\n\t\tshlUser.setText(\"QQ聊天室\\r\\n\");\r\n\t\t\r\n\t\ttext = new Text(shlUser, SWT.BORDER);\r\n\t\ttext.setEnabled(false);\r\n\t\ttext.setBounds(0, 52, 424, 187);\r\n\t\t\r\n\t\t\r\n\t\ttext_1 = new Text(shlUser, SWT.BORDER);\t\t\r\n\t\ttext_1.setBounds(23, 263, 274, 23);\r\n\t\t\r\n\t\tButton button = new Button(shlUser, SWT.CENTER);\r\n\t\tbutton.setText(\"发送\");\r\n\t\tbutton.setBounds(321, 257, 80, 27);\r\n\t\t\r\n\t\ttext_2 = new Text(shlUser, SWT.BORDER);\r\n\t\ttext_2.setText(\"abc\");\r\n\t\ttext_2.setBounds(61, 7, 91, 23);\r\n\t\t\r\n\t\tLabel lblNewLabel = new Label(shlUser, SWT.NONE);\r\n\t\tlblNewLabel.setBounds(0, 10, 51, 17);\r\n\t\tlblNewLabel.setText(\"昵称:\");\r\n\t\t\r\n\t\tButton btnNewButton = new Button(shlUser, SWT.NONE);\r\n\t\tbtnNewButton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tnew Thread() {\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\t// 连接服务器\r\n\t\t\t\t\t\t\t\tsocket = new Socket(\"127.0.0.1\", 8888);\r\n\t\t\t\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t\t\t\t// 如果连不上服务器,说明服务器未启动,则启动服务器\r\n\t\t\t\t\t\t\t\tserver = new ServerSocket(8888);\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"服务器启动完成,监听端口:8888\");\r\n\t\t\t\t\t\t\t\tsocket = server.accept();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t/**\r\n\t\t\t\t\t\t\t * 注意:所有在自定义线程中修改图形控件属性,\r\n\t\t\t\t\t\t\t * 都必须使用 shell.getDisplay().asyncExec() 方法\r\n\t\t\t\t\t\t\t */\r\n\t\t\t\t\t\t\tshlUser.getDisplay().asyncExec(new Runnable() {\r\n\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\t\tMessageBox mb = new MessageBox(shlUser,SWT.OK);\r\n\t\t\t\t\t\t\t\t\tmb.setText(\"系统提示\");\r\n\t\t\t\t\t\t\t\t\tmb.setMessage(\"连接成功!现在你可以开始聊天了!\");\r\n\t\t\t\t\t\t\t\t\tmb.open();\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\t\ttalker = new Talker(socket, new MsgListener() {\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\tpublic void onMessage(String msg) {\r\n\t\t\t\t\t\t\t\t\t// 收到消息时,将消息更新到多行文本框\r\n\t\t\t\t\t\t\t\t\tshlUser.getDisplay().asyncExec(new Runnable() {\r\n\t\t\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\t\t\t\ttext.setText(text.getText() + msg + \"\\r\\n\");\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\tpublic void onConnect(InetAddress addr) {\r\n\t\t\t\t\t\t\t\t\t// 连接成功时,显示对方IP\r\n\t\t\t\t\t\t\t\t\tshlUser.getDisplay().asyncExec(new Runnable() {\r\n\t\t\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\t\t\t\tlblNewLabel.setText(\"好友IP:\" + addr.getHostAddress());\r\n\t\t\t\t\t\t\t\t\t\t\ttext.setEnabled(true);\r\n\t\t\t\t\t\t\t\t\t\t\tbutton.setEnabled(true);\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t\t\tthrow new RuntimeException(e);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}.start();\r\n\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\ttMsg = new Text(shlUser, SWT.BORDER);\r\n\t\ttMsg.setEnabled(false);\r\n\t\ttMsg.setBounds(10, 364, 414, 26);\r\n\r\n\t\t\r\n\t\tbtnNewButton.setBounds(324, 7, 80, 27);\r\n\t\tbtnNewButton.setText(\"连接服务器\");\r\n\t\tbutton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\t\ttry {\r\n\t\t\t\t\tif (tMsg.getText().trim().isEmpty() == false) {\r\n\t\t\t\t\t\tString msg = talker.send(text_2.getText(), tMsg.getText());\r\n\t\t\t\t\t\ttext.setText(text.getText() + msg + \"\\r\\n\");\r\n\t\t\t\t\t\ttMsg.setText(\"\");\r\n\t\t\t\t\t\t// 设置焦点\r\n\t\t\t\t\t\ttMsg.setFocus();\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\r\n\t\t});\r\n\t\t\r\n\t}", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(new Point(500, 360));\n\t\tshell.setMinimumSize(new Point(500, 360));\n\t\tshell.setText(\"SWT Application\");\n\t\tshell.setLayout(new GridLayout(2, false));\n\t\t\n\t\tLabel label = new Label(shell, SWT.NONE);\n\t\tlabel.setText(\"欢迎 \"+user.getName()+\" 同学使用学生成绩管理系统\");\n\t\tnew Label(shell, SWT.NONE);\n\t\t\n\t\tComposite compositeStdData = new Composite(shell, SWT.NONE);\n\t\tcompositeStdData.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));\n\t\tGridLayout gl_compositeStdData = new GridLayout(2, false);\n\t\tgl_compositeStdData.verticalSpacing = 15;\n\t\tcompositeStdData.setLayout(gl_compositeStdData);\n\t\t\n\t\tLabel labelStdData = new Label(compositeStdData, SWT.NONE);\n\t\tlabelStdData.setAlignment(SWT.CENTER);\n\t\tlabelStdData.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, true, 2, 1));\n\t\tlabelStdData.setText(\"成绩数据\");\n\t\t\n\t\tLabel labelStdDataNum = new Label(compositeStdData, SWT.NONE);\n\t\tlabelStdDataNum.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tlabelStdDataNum.setText(\"学号:\");\n\t\t\n\t\ttextStdDataNum = new Text(compositeStdData, SWT.BORDER);\n\t\ttextStdDataNum.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\n\t\t\n\t\tLabel labelStdDataName = new Label(compositeStdData, SWT.NONE);\n\t\tlabelStdDataName.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tlabelStdDataName.setText(\"姓名:\");\n\t\t\n\t\ttextStdDataName = new Text(compositeStdData, SWT.BORDER);\n\t\ttextStdDataName.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\n\t\t\n\t\tLabel labelStdDataLine = new Label(compositeStdData, SWT.SEPARATOR | SWT.HORIZONTAL);\n\t\tlabelStdDataLine.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, true, 2, 1));\n\t\tlabelStdDataLine.setText(\"New Label\");\n\t\t\n\t\tLabel labelCourseName = new Label(compositeStdData, SWT.NONE);\n\t\tlabelCourseName.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tlabelCourseName.setText(\"课程名\");\n\t\t\n\t\tLabel labelScore = new Label(compositeStdData, SWT.NONE);\n\t\tlabelScore.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tlabelScore.setText(\"成绩\");\n\t\t\n\t\ttextCourseName = new Text(compositeStdData, SWT.BORDER);\n\t\ttextCourseName.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\t\n\t\ttextScore = new Text(compositeStdData, SWT.BORDER);\n\t\ttextScore.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\t\n\t\tLabel labelStdDataFill = new Label(compositeStdData, SWT.NONE);\n\t\tlabelStdDataFill.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, true, 1, 1));\n\t\tnew Label(compositeStdData, SWT.NONE);\n\t\t\n\t\tComposite compositeStdOp = new Composite(shell, SWT.NONE);\n\t\tcompositeStdOp.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, true, 1, 1));\n\t\tGridLayout gl_compositeStdOp = new GridLayout(1, false);\n\t\tgl_compositeStdOp.verticalSpacing = 15;\n\t\tcompositeStdOp.setLayout(gl_compositeStdOp);\n\t\t\n\t\tLabel labelStdOP = new Label(compositeStdOp, SWT.NONE);\n\t\tlabelStdOP.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, true, 1, 1));\n\t\tlabelStdOP.setAlignment(SWT.CENTER);\n\t\tlabelStdOP.setText(\"操作菜单\");\n\t\t\n\t\tButton buttonStdOPFirst = new Button(compositeStdOp, SWT.NONE);\n\t\tbuttonStdOPFirst.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tbuttonStdOPFirst.setText(\"第一门课程\");\n\t\t\n\t\tButton buttonStdOPNext = new Button(compositeStdOp, SWT.NONE);\n\t\tbuttonStdOPNext.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tbuttonStdOPNext.setText(\"下一门课程\");\n\t\t\n\t\tButton buttonStdOPPrev = new Button(compositeStdOp, SWT.NONE);\n\t\tbuttonStdOPPrev.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tbuttonStdOPPrev.setText(\"上一门课程\");\n\t\t\n\t\tButton buttonStdOPLast = new Button(compositeStdOp, SWT.NONE);\n\t\tbuttonStdOPLast.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tbuttonStdOPLast.setText(\"最后一门课程\");\n\t\t\n\t\tCombo comboStdOPSele = new Combo(compositeStdOp, SWT.NONE);\n\t\tcomboStdOPSele.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, true, false, 1, 1));\n\t\tcomboStdOPSele.setText(\"课程名?\");\n\t\t\n\t\tLabel labelStdOPFill = new Label(compositeStdOp, SWT.NONE);\n\t\tlabelStdOPFill.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));\n\n\t}", "protected Control createContents(Composite parent) {\n\t\tgetOverlayStore().load();\r\n\t\tgetOverlayStore().start();\r\n Composite composite = createContainer(parent);\r\n \r\n // The layout info for the preference page\r\n GridLayout gridLayout = new GridLayout();\r\n gridLayout.marginHeight = 0;\r\n gridLayout.marginWidth = 0;\r\n composite.setLayout(gridLayout);\r\n \r\n // A panel for the preference page\r\n Composite defPanel = new Composite(composite, SWT.NONE);\r\n GridLayout layout = new GridLayout();\r\n int numColumns = 2;\r\n layout.numColumns = numColumns;\r\n defPanel.setLayout(layout);\r\n GridData gridData =\r\n new GridData(GridData.FILL_BOTH | GridData.GRAB_HORIZONTAL | GridData.GRAB_VERTICAL);\r\n defPanel.setLayoutData(gridData);\r\n \r\n\r\n // Browser options\r\n\t\tGroup wrappingGroup= createGroup(numColumns, defPanel, \"Web Browser\");\r\n\t\tString labelText= \"Use tabbed browsing\";\r\n\t\tlabelText= \"Used tabbed browsing\";\r\n\t\taddCheckBox(wrappingGroup, labelText, CFMLPreferenceConstants.P_TABBED_BROWSER, 1);\r\n \r\n // File paths\r\n createFilePathGroup(defPanel);\r\n \r\n // Images tooltips\r\n\t\tGroup imageGroup= createGroup(numColumns, defPanel, \"Images\");\r\n\t\tlabelText= \"Show Image Tooltips (restart required)\";\r\n\t\taddCheckBox(imageGroup, labelText, CFMLPreferenceConstants.P_IMAGE_TOOLTIPS, 1);\r\n \t\t\r\n\t\t// default help url\r\n\t\tGroup helpGroup= createGroup(numColumns, defPanel, \"External Help Documentation\");\r\n\t\tlabelText= \"Default URL:\";\r\n\t\taddTextField(helpGroup, labelText, CFMLPreferenceConstants.P_DEFAULT_HELP_URL, 50, 0, null);\r\n\t\tlabelText= \"Use external broswer\";\r\n\t\taddCheckBox(helpGroup, labelText, CFMLPreferenceConstants.P_HELP_URL_USE_EXTERNAL_BROWSER, 1);\r\n \r\n // Template Sites\r\n \r\n // createTemplateSitesPathGroup(defPanel);\r\n\r\n\t\tinitializeFields();\r\n\t\tapplyDialogFont(defPanel);\r\n\r\n\t\treturn composite;\r\n }", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(447, 310);\n\t\tshell.setText(\"Verisure ASCII Node\");\n\t\tshell.setLayout(new BorderLayout(0, 0));\n\t\t\n\t\tTabFolder tabFolder = new TabFolder(shell, SWT.NONE);\n\t\t\n\t\tTabItem basicItem = new TabItem(tabFolder, SWT.NONE);\n\t\tbasicItem.setText(\"Basic\");\n\t\t\n\t\tComposite basicComposite = new Composite(tabFolder, SWT.NONE);\n\t\tbasicItem.setControl(basicComposite);\n\t\tbasicComposite.setLayout(null);\n\t\t\n\t\tButton btnDelMeasurments = new Button(basicComposite, SWT.NONE);\n\t\t\n\t\tbtnDelMeasurments.setToolTipText(\"Delete the measurements from the device.\");\n\t\tbtnDelMeasurments.setBounds(269, 192, 159, 33);\n\t\tbtnDelMeasurments.setText(\"Delete measurements\");\n\t\t\n\t\tButton btnGetMeasurement = new Button(basicComposite, SWT.NONE);\n\t\tbtnGetMeasurement.setToolTipText(\"Get the latest measurement from the device.\");\n\t\t\n\t\tbtnGetMeasurement.setBounds(0, 36, 159, 33);\n\t\tbtnGetMeasurement.setText(\"Get new bloodvalue\");\n\t\t\n\t\tfinal StyledText receiveArea = new StyledText(basicComposite, SWT.BORDER | SWT.WRAP);\n\t\treceiveArea.setLocation(167, 30);\n\t\treceiveArea.setSize(259, 92);\n\t\treceiveArea.setToolTipText(\"This is where the measurement will be displayd.\");\n\t\t\n\t\tButton btnBase64 = new Button(basicComposite, SWT.RADIO);\n\t\tbtnBase64.setToolTipText(\"Show the latest blood value (base64 encoded).\");\n\t\tbtnBase64.setFont(SWTResourceManager.getFont(\"Cantarell\", 9, SWT.NORMAL));\n\t\t\n\t\tbtnDelMeasurments.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent arg0){\n\t\t\t\treceiveArea.setText(\"Deleting measurements, please wait...\");\n\n\t\t\t}\n\t\t\tpublic void mouseUp(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t\tRest rest = new Rest();\n\t\t\t\tXBNConnection db = new XBNConnection();\n\t\t\t\tString theText = \"DEL\";\n\t\t\t\tdo {\n\t\t\t\t\t// System.out.println(\"Längded på theText i restCallImpl \"+theText.length()\n\t\t\t\t\t// +\" och det står \" +theText);\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\t//System.out.println(\"Hej\");\n\n\t\t\t\t\t\t//rest.doPut(\"lol\");\n\t\t\t\t\t\trest.doPut(theText);\n\t\t\t\t\t\tSystem.out.println(\"Sov i tre sekunder.\");\n\t\t\t\t\t\tThread.sleep(3000);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\twhile (!db.getAck(theText, rest));\n\t\t\t\treceiveArea.setText(\"Deleted measurements from device.\");\n\t\t\t}\n\t\t});\n\t\tbtnBase64.setSelection(true);\n\t\tbtnBase64.setBounds(137, 130, 74, 25);\n\t\tbtnBase64.setText(\"base64\");\n\t\t\n\t\tButton btnHex = new Button(basicComposite, SWT.RADIO);\n\t\tbtnHex.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\n\n\t\t\t\ttype = 2;\n\t\t\t\tSystem.out.println(\"Bytte type till: \"+type);\n\n\t\t\t}\n\t\t});\n\t\tbtnHex.setToolTipText(\"Show the measurement in hex.\");\n\t\tbtnHex.setFont(SWTResourceManager.getFont(\"Cantarell\", 9, SWT.NORMAL));\n\t\tbtnHex.setBounds(217, 130, 50, 25);\n\t\tbtnHex.setText(\"hex\");\n\t\t\n\t\tButton btnAscii = new Button(basicComposite, SWT.RADIO);\n\t\t\n\t\tbtnAscii.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\n\t\t\t\ttype = 1;\n\t\t\t\tSystem.out.println(\"Bytte type till: \"+type);\n\n\t\t\t}\n\t\t});\n\t\t\n\t\t/*\n\t\t * Return that the value should be represented as base64.\n\t\t * \n\t\t */\n\t\t\n\t\tbtnBase64.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\n\t\t\t\ttype = 0;\n\t\t\t}\n\t\t});\n\t\t\n\t\tbtnAscii.setToolTipText(\"Show the measurement in ascii.\");\n\t\tbtnAscii.setFont(SWTResourceManager.getFont(\"Cantarell\", 9, SWT.NORMAL));\n\t\tbtnAscii.setBounds(269, 130, 53, 25);\n\t\tbtnAscii.setText(\"ascii\");\n\t\t\n\t\tLabel label = new Label(basicComposite, SWT.NONE);\n\t\tlabel.setText(\"A master thesis project by Pétur and David\");\n\t\tlabel.setFont(SWTResourceManager.getFont(\"Cantarell\", 7, SWT.NORMAL));\n\t\tlabel.setBounds(10, 204, 192, 21);\n\t\t\n\t\tButton btnGetDbValue = new Button(basicComposite, SWT.NONE);\n\t\tbtnGetDbValue.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseUp(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t\tXBNConnection db = new XBNConnection();\n\t\t\t\treceiveArea.setText(db.getNodeFaults(type));\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\t\t\t\treceiveArea.setText(\"Getting latest measurements from db, please wait...\");\n\t\t\t}\n\t\t});\n\t\tbtnGetDbValue.setBounds(0, 71, 159, 33);\n\t\tbtnGetDbValue.setText(\"Get latest bloodvalue\");\n\t\t\n\t\t/*\n\t\t *Get measurement from device event handler \n\t\t *\n\t\t *@param The Mouse Adapter\n\t\t * \n\t\t */\n\t\t\n\t\t\n\t\tbtnGetMeasurement.addMouseListener(new MouseAdapter() {\n\t\t\t\n\t\t\tpublic void MouseDown(MouseEvent arg0){\n\t\t\t\treceiveArea.setText(\"Getting measurement from device, please wait...\");\n\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic void mouseUp(MouseEvent arg0) {\n\t\t\t\tRest rest = new Rest();\n\t\t\t\tXBNConnection db = new XBNConnection();\n\t\t\t\tString theText = \"LOG\";\n\t\t\t\t\n\t\t\t\tdo {\n\t\t\t\t\t// System.out.println(\"Längded på theText i restCallImpl \"+theText.length()\n\t\t\t\t\t// +\" och det står \" +theText);\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\t//System.out.println(\"Hej\");\n\n\t\t\t\t\t\t//rest.doPut(\"lol\");\n\t\t\t\t\t\trest.doPut(theText);\n\t\t\t\t\t\t\n\t\t\t\t\t\tThread.sleep(3000);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\twhile (!db.getAck(theText, rest));\n\t\t\t\ttry{\n\t\t\t\t\tThread.sleep(2000);\n\n\t\t\t\t}\n\t\t\t\tcatch(Exception e){\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} \n\t\t\t\treceiveArea.setText(db.getNodeFaults(type));\n\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\t\t\t\treceiveArea.setText(\"Getting measurements from device, please wait...\");\n\t\t\t}\n\t\t});\n\n\t\t\n\t\t/*\n\t\t * The advanced tab section\n\t\t */\n\t\t\n\t\tTabItem advancedItem = new TabItem(tabFolder, SWT.NONE);\n\t\tadvancedItem.setText(\"Advanced\");\n\t\t\n\t\tComposite advComposite = new Composite(tabFolder, SWT.NONE);\n\t\tadvancedItem.setControl(advComposite);\n\t\tadvComposite.setLayout(null);\n\t\t\n\t\tButton advSendButton = new Button(advComposite, SWT.NONE);\n\t\t\n\t\n\t\tadvSendButton.setToolTipText(\"Send arbitary data to the device.\");\n\t\n\t\tadvSendButton.setBounds(307, 31, 121, 33);\n\t\tadvSendButton.setText(\"Send Data\");\n\t\t\n\t\tLabel lblNewLabel = new Label(advComposite, SWT.NONE);\n\t\tlblNewLabel.setFont(SWTResourceManager.getFont(\"Cantarell\", 7, SWT.NORMAL));\n\t\tlblNewLabel.setBounds(10, 204, 192, 21);\n\t\tlblNewLabel.setText(\"A master thesis project by Pétur and David\");\n\t\t\n\t\tfinal StyledText advSendArea = new StyledText(advComposite, SWT.BORDER | SWT.WRAP);\n\t\tadvSendArea.setToolTipText(\"This is where you type your arbitary data to send to the device.\");\n\t\tadvSendArea.setBounds(10, 31, 291, 33);\n\t\t\n\t\tButton advReceiveButton = new Button(advComposite, SWT.NONE);\n\t\t\n\n\t\t\n\t\tadvReceiveButton.setToolTipText(\"Receive data from the database.\");\n\t\tadvReceiveButton.setBounds(10, 70, 99, 33);\n\t\tadvReceiveButton.setText(\"Receive Data\");\n\t\t\n\t\tfinal StyledText advReceiveArea = new StyledText(advComposite, SWT.BORDER | SWT.WRAP);\n\t\tadvReceiveArea.setToolTipText(\"This is where the receive data will be presented.\");\n\t\tadvReceiveArea.setBounds(115, 67, 313, 70);\n\t\t\n\t\tButton advAscii = new Button(advComposite, SWT.RADIO);\n\t\tadvAscii.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\t\t\t\tadvType = 1;\n\t\t\t}\n\t\t});\n\t\t\n\t\tadvReceiveButton.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseUp(MouseEvent arg0) {\n\t\t\t\tadvReceiveArea.setText(\"Receiving the data, please wait...\");\n\t\t\t\tXBNConnection xbn = new XBNConnection();\n\t\t\t\tString text = xbn.getNodeFaults(advType);\n\t\t\t\tadvReceiveArea.setText(text);\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\t\t\t\tadvReceiveArea.setText(\"Receivng data from device, please wait\");\n\t\t\t}\n\t\t});\n\t\tadvAscii.setSelection(true);\n\t\tadvAscii.setToolTipText(\"Show the database results as ascii.\");\n\t\tadvAscii.setFont(SWTResourceManager.getFont(\"Cantarell\", 9, SWT.NORMAL));\n\t\tadvAscii.setBounds(10, 109, 54, 25);\n\t\tadvAscii.setText(\"ascii\");\n\t\t\n\t\tButton advHex = new Button(advComposite, SWT.RADIO);\n\t\tadvHex.setToolTipText(\"Show the database results as hex.\");\n\t\tadvHex.setFont(SWTResourceManager.getFont(\"Cantarell\", 9, SWT.NORMAL));\n\t\tadvHex.setBounds(66, 109, 43, 25);\n\t\tadvHex.setText(\"hex\");\n\t\tadvHex.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\t\t\t\tadvType = 2;\n\t\t\t}\n\t\t});\n\t\t\n\t\tButton btnDeleteDatabase = new Button(advComposite, SWT.NONE);\n\t\tbtnDeleteDatabase.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseUp(MouseEvent arg0) {\n\t\t\t\tXBNConnection db = new XBNConnection();\n\t\t\t\tdb.deleteMessages();\n\t\t\t\tadvReceiveArea.setText(\"Deleted data from database\");\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tbtnDeleteDatabase.setToolTipText(\"Delete entries in the database.\");\n\t\tbtnDeleteDatabase.setText(\"Delete database\");\n\t\tbtnDeleteDatabase.setBounds(269, 192, 159, 33);\n\t\t\n\t\n\t\t\n\n\t\t/*\n\t\t * This is the advanced send button. Can send arbitary text to the device.\n\t\t */\n\t\t\n\t\tadvSendButton.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseUp(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t\t//advSendArea.setText(\"Sending: '\"+advSendArea.getText()+\"' to the device, please wait...\");\n\t\t\t\tString theText = advSendArea.getText();\n\t\t\t\tSystem.out.println(\"Texten som ska skickas är: \" + theText);\n\t\t\t\t\n\t\t\t\tRest rest = new Rest();\n\t\t\t\tString chunkText = \"\";\n\t\t\t\tXBNConnection db = new XBNConnection();\n\t\t\t\tStringBuilder sb = new StringBuilder(theText);\n\t\t\t\t// Add and @ to be sure that there will never be two strings that are\n\t\t\t\t// the same in a row.\n\t\t\t\t// for (int i = 3; i < sb.toString().length(); i += 6) {\n\t\t\t\t// sb.insert(i, \"@\");\n\t\t\t\t// }\n\t\t\t\t// theText = sb.toString();\n\t\t\t\tSystem.out.println(theText);\n\n\t\t\t\tdo {\n\t\t\t\t\t// System.out.println(\"Längded på theText i restCallImpl \"+theText.length()\n\t\t\t\t\t// +\" och det står \" +theText);\n\n\t\t\t\t\tif (theText.length() < 3) {\n\t\t\t\t\t\tchunkText = theText.substring(0, theText.length());\n\t\t\t\t\t\tint pad = theText.length() % 3;\n\t\t\t\t\t\tif (pad == 1) {\n\t\t\t\t\t\t\tchunkText = chunkText + \" \";\n\t\t\t\t\t\t\ttheText = theText + \" \";\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tchunkText = chunkText + \" \";\n\t\t\t\t\t\t\ttheText = theText + \" \";\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tchunkText = theText.substring(0, 3);\n\t\t\t\t\t}\n\n\t\t\t\t\ttheText = theText.substring(3);\n\t\t\t\t\ttry {\n\n\t\t\t\t\t\trest.doPut(chunkText);\n\t\t\t\t\t\tThread.sleep(3000);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\twhile (theText.length() > 0 && db.getAck(chunkText, rest));\n\t\t\t\tadvSendArea.setText(\"Data sent to the device.\");\n\t\t\t\t\n\t\t\t}\n\t\t\n\t\t\t\n\t\t});\n\n\t}", "protected void createContents() {\n\n\t\tfinal FileServeApplicationWindow appWindow = this;\n\n\t\tthis.shlFileServe = new Shell();\n\t\tthis.shlFileServe.setSize(450, 300);\n\t\tthis.shlFileServe.setText(\"File Serve - Server\");\n\t\tthis.shlFileServe.setLayout(new BorderLayout(0, 0));\n\n\t\tthis.composite = new Composite(this.shlFileServe, SWT.NONE);\n\t\tthis.composite.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\n\t\tthis.composite.setLayoutData(BorderLayout.CENTER);\n\t\tthis.composite.setLayout(new FormLayout());\n\n\t\tthis.lblServerTcpPort = new Label(this.composite, SWT.NONE);\n\t\tFormData fd_lblServerTcpPort = new FormData();\n\t\tfd_lblServerTcpPort.top = new FormAttachment(0, 10);\n\t\tfd_lblServerTcpPort.left = new FormAttachment(0, 10);\n\t\tthis.lblServerTcpPort.setLayoutData(fd_lblServerTcpPort);\n\t\tthis.lblServerTcpPort.setText(\"Server TCP Port:\");\n\n\t\tthis.serverTCPPortField = new Text(this.composite, SWT.BORDER);\n\t\tthis.serverTCPPortField.setTextLimit(5);\n\t\tthis.serverTCPPortField.addVerifyListener(new VerifyListener() {\n\t\t\t@Override\n\t\t\tpublic void verifyText(VerifyEvent e) {\n\t\t\t\te.doit = true;\n\t\t\t\tfor(int i = 0; i < e.text.length(); i++) {\n\n\t\t\t\t\tchar c = e.text.charAt(i);\n\n\t\t\t\t\tboolean b = false;\n\n\t\t\t\t\tif(c >= '0' && c <= '9') {b = true;}\n\t\t\t\t\telse if(c == SWT.BS) {b = true;}\n\t\t\t\t\telse if(c == SWT.DEL) {b = true;}\n\n\t\t\t\t\tif(b == false) {\n\t\t\t\t\t\te.doit = false;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tFormData fd_serverTCPPortField = new FormData();\n\t\tfd_serverTCPPortField.top = new FormAttachment(0, 7);\n\t\tfd_serverTCPPortField.right = new FormAttachment(100, -54);\n\t\tfd_serverTCPPortField.left = new FormAttachment(this.lblServerTcpPort, 12);\n\t\tthis.serverTCPPortField.setLayoutData(fd_serverTCPPortField);\n\n\t\tthis.btnStartServer = new Button(this.composite, SWT.NONE);\n\t\tFormData fd_btnStartServer = new FormData();\n\t\tfd_btnStartServer.bottom = new FormAttachment(100, -10);\n\t\tfd_btnStartServer.right = new FormAttachment(100, -10);\n\t\tthis.btnStartServer.setLayoutData(fd_btnStartServer);\n\t\tthis.btnStartServer.setText(\"Start Server\");\n\n\t\tthis.lblServerStatus = new Label(this.composite, SWT.NONE);\n\t\tFormData fd_lblServerStatus = new FormData();\n\t\tfd_lblServerStatus.right = new FormAttachment(this.btnStartServer, -6);\n\t\tfd_lblServerStatus.top = new FormAttachment(this.btnStartServer, 5, SWT.TOP);\n\t\tfd_lblServerStatus.left = new FormAttachment(this.lblServerTcpPort, 0, SWT.LEFT);\n\t\tthis.lblServerStatus.setLayoutData(fd_lblServerStatus);\n\t\tthis.lblServerStatus.setText(\"Server Status: Stopped\");\n\n\t\tthis.text = new Text(this.composite, SWT.BORDER);\n\t\tFormData fd_text = new FormData();\n\t\tfd_text.top = new FormAttachment(this.serverTCPPortField, 6);\n\t\tthis.text.setLayoutData(fd_text);\n\n\t\tthis.lblHighestDirectory = new Label(this.composite, SWT.NONE);\n\t\tfd_text.left = new FormAttachment(this.lblHighestDirectory, 6);\n\t\tFormData fd_lblHighestDirectory = new FormData();\n\t\tfd_lblHighestDirectory.top = new FormAttachment(this.lblServerTcpPort, 12);\n\t\tfd_lblHighestDirectory.left = new FormAttachment(this.lblServerTcpPort, 0, SWT.LEFT);\n\t\tthis.lblHighestDirectory.setLayoutData(fd_lblHighestDirectory);\n\t\tthis.lblHighestDirectory.setText(\"Highest Directory:\");\n\n\t\tthis.button = new Button(this.composite, SWT.NONE);\n\n\t\tfd_text.right = new FormAttachment(100, -54);\n\t\tFormData fd_button = new FormData();\n\t\tfd_button.left = new FormAttachment(this.text, 6);\n\t\tthis.button.setLayoutData(fd_button);\n\t\tthis.button.setText(\"...\");\n\n\t\tthis.grpConnectionInformation = new Group(this.composite, SWT.NONE);\n\t\tfd_button.bottom = new FormAttachment(this.grpConnectionInformation, -1);\n\t\tthis.grpConnectionInformation.setText(\"Connection Information:\");\n\t\tthis.grpConnectionInformation.setLayout(new BorderLayout(0, 0));\n\t\tFormData fd_grpConnectionInformation = new FormData();\n\t\tfd_grpConnectionInformation.bottom = new FormAttachment(this.btnStartServer, -6);\n\t\tfd_grpConnectionInformation.right = new FormAttachment(this.btnStartServer, 0, SWT.RIGHT);\n\t\tfd_grpConnectionInformation.top = new FormAttachment(this.lblHighestDirectory, 6);\n\t\tfd_grpConnectionInformation.left = new FormAttachment(this.lblServerTcpPort, 0, SWT.LEFT);\n\t\tthis.grpConnectionInformation.setLayoutData(fd_grpConnectionInformation);\n\n\t\tthis.scrolledComposite = new ScrolledComposite(this.grpConnectionInformation, SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL);\n\t\tthis.scrolledComposite.setLayoutData(BorderLayout.CENTER);\n\t\tthis.scrolledComposite.setExpandHorizontal(true);\n\t\tthis.scrolledComposite.setExpandVertical(true);\n\n\t\tthis.table = new Table(this.scrolledComposite, SWT.BORDER | SWT.FULL_SELECTION);\n\t\tthis.table.setLinesVisible(true);\n\t\tthis.table.setHeaderVisible(true);\n\t\tthis.scrolledComposite.setContent(this.table);\n\t\tthis.scrolledComposite.setMinSize(this.table.computeSize(SWT.DEFAULT, SWT.DEFAULT));\n\n\t}", "protected void createContents() {\n cmd.setBean(nodeProperties);\n cmd.setNode(node);\n shell = new Shell(getParent(), SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL);\n shell.setLayout(new FormLayout());\n shell.setSize(800, 500);\n shell.setText(\"详细信息属性\");\n\n final Composite composite_3 = new Composite(shell, SWT.NONE);\n final FormData fd_composite_3 = new FormData();\n fd_composite_3.top = new FormAttachment(0, 1);\n fd_composite_3.left = new FormAttachment(0, 5);\n fd_composite_3.height = 100;\n fd_composite_3.right = new FormAttachment(100, -5);\n composite_3.setLayoutData(fd_composite_3);\n composite_3.setLayout(new FormLayout());\n\n final Group basicGroup = new Group(composite_3, SWT.NONE);\n basicGroup.setLayout(new FormLayout());\n final FormData fd_basicGroup = new FormData();\n fd_basicGroup.bottom = new FormAttachment(100, -1);\n fd_basicGroup.top = new FormAttachment(0, -6);\n fd_basicGroup.right = new FormAttachment(100, 0);\n fd_basicGroup.left = new FormAttachment(0, 0);\n basicGroup.setLayoutData(fd_basicGroup);\n\n final Label label = new Label(basicGroup, SWT.RIGHT);\n final FormData fd_label = new FormData();\n fd_label.top = new FormAttachment(0, 0);\n fd_label.right = new FormAttachment(15, 0);\n fd_label.left = new FormAttachment(0, 0);\n label.setLayoutData(fd_label);\n label.setText(\"节点名称:\");\n\n txtName = new Text(basicGroup, SWT.BORDER);\n final FormData fd_txtName = new FormData();\n fd_txtName.top = new FormAttachment(0, 0);\n fd_txtName.right = new FormAttachment(40, 0);\n fd_txtName.left = new FormAttachment(label, 0);\n txtName.setLayoutData(fd_txtName);\n txtName.setEditable(true);\n\n final Label label_1 = new Label(basicGroup, SWT.RIGHT);\n final FormData fd_label_1 = new FormData();\n fd_label_1.top = new FormAttachment(0, 0);\n fd_label_1.right = new FormAttachment(55, 0);\n fd_label_1.left = new FormAttachment(txtName, 0);\n label_1.setLayoutData(fd_label_1);\n label_1.setText(\"数据表名:\");\n\n txtTableName = new Text(basicGroup, SWT.BORDER);\n txtTableName.setEditable(false);\n final FormData fd_txtTableName = new FormData();\n fd_txtTableName.top = new FormAttachment(0, 0);\n fd_txtTableName.right = new FormAttachment(90, 0);\n fd_txtTableName.left = new FormAttachment(label_1, 0);\n txtTableName.setLayoutData(fd_txtTableName);\n\n final Button btnSelectTable = new Button(basicGroup, SWT.NONE);\n final FormData fd_btnSelectTable = new FormData();\n fd_btnSelectTable.top = new FormAttachment(0, 0);\n fd_btnSelectTable.right = new FormAttachment(100, -1);\n fd_btnSelectTable.left = new FormAttachment(txtTableName, 0);\n fd_btnSelectTable.height = 23;\n btnSelectTable.setLayoutData(fd_btnSelectTable);\n btnSelectTable.addSelectionListener(new SelectionAdapter() {\n public void widgetSelected(final SelectionEvent e) {\n DataTableDialog dataSoruceDlg = new DataTableDialog(shell);\n DataTable dt = dataSoruceDlg.open();\n if (dt != null) {\n txtTableName.setText(dt.getCnName());\n nodeProperties.setTableName(dt.getCnName());\n nodeProperties.setName(dt.getName());\n loadFieldsInfo(dt);\n nodeProperties.setDataTable(dt);\n int res = MessageUtil.comfirm(shell, \"导入\", \"是否导入字段信息?\\r\\n注意:已有字段信息将被覆盖!\");\n if (res == SWT.YES) {\n dataFieldList.clear();\n for (DataField df : dt.getFields()) {\n dataFieldList.add(df);\n }\n tvDataField.refresh();\n }\n }\n }\n });\n btnSelectTable.setText(\"选择表\");\n\n final Label lblDescription = new Label(basicGroup, SWT.RIGHT);\n final FormData fd_lblDescription = new FormData();\n fd_lblDescription.top = new FormAttachment(label, 10);\n fd_lblDescription.bottom = new FormAttachment(100, -2);\n fd_lblDescription.left = new FormAttachment(0, 0);\n fd_lblDescription.right = new FormAttachment(15, 0);\n lblDescription.setLayoutData(fd_lblDescription);\n lblDescription.setText(\"说明:\");\n\n txtDes = new StyledText(basicGroup, SWT.BORDER);\n final FormData fd_txtDes = new FormData();\n fd_txtDes.top = new FormAttachment(txtName, 5);\n fd_txtDes.left = new FormAttachment(15, 0);\n fd_txtDes.right = new FormAttachment(100, -2);\n fd_txtDes.bottom = new FormAttachment(100, -2);\n txtDes.setLayoutData(fd_txtDes);\n\n final Button btnOk = new Button(shell, SWT.NONE);\n btnOk.setImage(ResourceManager.getPluginImage(Activator.getDefault(), \"icons/tick.png\"));\n final FormData fd_btnOk = new FormData();\n fd_btnOk.height = 28;\n fd_btnOk.width = 80;\n fd_btnOk.bottom = new FormAttachment(100, -5);\n fd_btnOk.right = new FormAttachment(50, -10);\n btnOk.setLayoutData(fd_btnOk);\n btnOk.setText(\"确定(&O)\");\n btnOk.addListener(SWT.Selection, new Listener() {\n public void handleEvent(Event e) {\n save();\n result = 1;\n close();\n }\n });\n\n final Button btnCancel = new Button(shell, SWT.NONE);\n btnCancel.setImage(ResourceManager.getPluginImage(Activator.getDefault(), \"icons/cross.png\"));\n final FormData fd_btnCancel = new FormData();\n fd_btnCancel.height = 28;\n fd_btnCancel.width = 80;\n fd_btnCancel.bottom = new FormAttachment(100, -5);\n fd_btnCancel.left = new FormAttachment(50, 10);\n btnCancel.setLayoutData(fd_btnCancel);\n btnCancel.setText(\"取消(&C)\");\n btnCancel.addListener(SWT.Selection, new Listener() {\n public void handleEvent(Event e) {\n close();\n }\n });\n\n final TabFolder tabFolder = new TabFolder(shell, SWT.NONE);\n tabFolder.addSelectionListener(new SelectionAdapter() {\n public void widgetSelected(final SelectionEvent e) {\n TabItem ti = (TabItem) e.item;\n if (ti.getText().startsWith(\"SQL\")) {\n DataNodeProperties d = new DataNodeProperties();\n d.setAdditionSql(txtOtherCondition.getText());\n // d.setTableName(nodeProperties.getTableName());\n d.setName(nodeProperties.getName());\n d.setFields(dataFieldList);\n d.setFilters(filterList);\n txtSQL.setText(d.getSQL(null));\n }\n else if (ti.getText().startsWith(\"过滤\")) {\n String[] fNames = null;\n if (dataFieldList != null && dataFieldList.size() > 0) {\n fNames = new String[dataFieldList.size()];\n for (int i = 0; i < dataFieldList.size(); i++) {\n fNames[i] = dataFieldList.get(i).getAliasName();\n }\n }\n else fNames = new String[] { \"\" };\n // filtersCellModifier.setAliasNames(fNames);\n tvFilter.setCellModifier(new FiltersCellModifier(tvFilter, fNames));\n tvFilter.getCellEditors()[0] = new ComboBoxCellEditor(tblFilter, fNames, SWT.READ_ONLY);\n }\n else if (ti.getText().startsWith(\"列表配置\")) {\n \tif (dataFieldList.size() > configList.size()) {\n \t\tint configLength = configList.size();\n \t\t//添加\n \tfor (int i = 0 ;i<dataFieldList.size();i++ ) {\n \t\tDataField dataField = dataFieldList.get(i);\n \t\tString cnName = dataField.getCnName();\n String aliasName = dataField.getAliasName();\n if (!\"\".equals(cnName) && !\"\".equals(aliasName)) {\n \tboolean haveFlg = false;\n \tfor (int j = 0 ;j< configLength;j++) {\n \t\tFieldConfig filedCfig = configList.get(j);\n \t\tif (!(filedCfig.getCnName().equals(cnName) &&filedCfig.getName().equals(aliasName))) {\n \t\t\tcontinue;\n \t\t} else {\n \t\t\thaveFlg = true;\n \t\t\tbreak;\n \t\t}\n \t}\n \tif (!haveFlg) {//原列表不存在此记录\n FieldConfig newFieldCfig = new FieldConfig();\n \t\t\tnewFieldCfig.setCnName(cnName);\n \t\t\tnewFieldCfig.setName(aliasName);\n \t\t\tconfigList.add(newFieldCfig);\n \t}\n }\n \t}\n \t//\n// \tfor (int k = 0;k< configLength;k++) {\n// \t\tFieldConfig filedCfig = configList.get(k);\n// \t\tString cnName = filedCfig.getCnName();\n// String aliasName = filedCfig.getName();\n// boolean haveFiledFlg = false;\n// for (int i = 0 ;i<dataFieldList.size();i++ ) {\n// \tDataField dataField = dataFieldList.get(i);\n// \tif (!(dataField.getAliasName().equals(aliasName) && dataField.getCnName().equals(cnName))) {\n// \t\tcontinue;\n// \t} else {\n// \t\thaveFiledFlg = true;\n// \t\tbreak;\n// \t}\n// }\n// if (!haveFiledFlg) {\n// \tconfigList.remove(k);\n// }\n// \n// \t}\n \t//刷新列表\n \ttvShowConfig.refresh();\n \t}\n }\n }\n });\n final FormData fd_tabFolder = new FormData();\n fd_tabFolder.bottom = new FormAttachment(100, -40);\n fd_tabFolder.top = new FormAttachment(composite_3, 3, SWT.BOTTOM);\n fd_tabFolder.right = new FormAttachment(100, -5);\n fd_tabFolder.left = new FormAttachment(0, 5);\n tabFolder.setLayoutData(fd_tabFolder);\n\n final TabItem tabFields = new TabItem(tabFolder, SWT.NONE);\n tabFields.setText(\"查询字段\");\n\n final Composite composite_1 = new Composite(tabFolder, SWT.NONE);\n composite_1.setLayout(new FormLayout());\n tabFields.setControl(composite_1);\n\n final Group group_1 = new Group(composite_1, SWT.NONE);\n final FormData fd_group_1 = new FormData();\n fd_group_1.left = new FormAttachment(0, 0);\n fd_group_1.bottom = new FormAttachment(100, 0);\n fd_group_1.right = new FormAttachment(100, 0);\n fd_group_1.top = new FormAttachment(0, -6);\n group_1.setLayoutData(fd_group_1);\n group_1.setLayout(new FormLayout());\n // tabFields.setControl(group_1);\n\n tvDataField = new TableViewer(group_1, SWT.MULTI | SWT.FULL_SELECTION | SWT.BORDER);\n tvDataField.setContentProvider(new ViewContentProvider());\n tvDataField.setLabelProvider(new DataFieldsLabelProvider0());\n tvDataField.setColumnProperties(DATAFIELDS0);\n tblDataField = tvDataField.getTable();\n\n CellEditor[] cellEditor = new CellEditor[7];\n cellEditor[0] = new TextCellEditor(tblDataField);\n cellEditor[1] = new TextCellEditor(tblDataField);\n cellEditor[2] = new TextCellEditor(tblDataField);\n cellEditor[3] = new ComboBoxCellEditor(tblDataField, Consts.DATATYPE_LABEL, SWT.READ_ONLY);\n cellEditor[4] = new TextCellEditor(tblDataField);\n cellEditor[5] = new ComboBoxCellEditor(tblDataField, Consts.SORTDIRECT_LABEL, SWT.READ_ONLY);\n// cellEditor[6] = new ComboBoxCellEditor(tblDataField, Consts.AGGREGATE_LABEL, SWT.READ_ONLY);\n// cellEditor[7] = new TextCellEditor(tblDataField);\n cellEditor[6] = new ComboBoxCellEditor(tblDataField, Consts.YESNO_LABEL, SWT.READ_ONLY);\n Text text1 = (Text) cellEditor[4].getControl();\n text1.addVerifyListener(new VerifyListener() {\n public void verifyText(VerifyEvent e) {\n String str = e.text;\n if (str != null && str.length() > 0) e.doit = StringUtil.isInteger(str);\n }\n });\n// Text text2 = (Text) cellEditor[7].getControl();\n// text2.addVerifyListener(new VerifyListener() {\n// public void verifyText(VerifyEvent e) {\n// String str = e.text;\n// if (str != null && str.length() > 0) e.doit = StringUtil.isInteger(str);\n// }\n// });\n\n tvDataField.setCellEditors(cellEditor);\n tvDataField.setCellModifier(new DataFieldsCellModifier2(tvDataField));\n\n final FormData fd_table_1 = new FormData();\n fd_table_1.bottom = new FormAttachment(100, -22);\n fd_table_1.top = new FormAttachment(0, -6);\n fd_table_1.right = new FormAttachment(100, 0);\n fd_table_1.left = new FormAttachment(0, 0);\n tblDataField.setLayoutData(fd_table_1);\n tblDataField.setLinesVisible(true);\n tblDataField.setHeaderVisible(true);\n\n final TableColumn colCnName = new TableColumn(tblDataField, SWT.NONE);\n colCnName.setWidth(100);\n colCnName.setText(\"中文名\");\n\n final TableColumn colFieldName = new TableColumn(tblDataField, SWT.NONE);\n colFieldName.setWidth(100);\n colFieldName.setText(\"字段名\");\n\n final TableColumn colAliasName = new TableColumn(tblDataField, SWT.NONE);\n colAliasName.setWidth(100);\n colAliasName.setText(\"别名\");\n\n final TableColumn colDataType = new TableColumn(tblDataField, SWT.NONE);\n colDataType.setWidth(80);\n colDataType.setText(\"数据类型\");\n\n final TableColumn colSortNo = new TableColumn(tblDataField, SWT.NONE);\n colSortNo.setWidth(60);\n colSortNo.setText(\"排序顺序\");\n\n final TableColumn colSortDirect = new TableColumn(tblDataField, SWT.NONE);\n colSortDirect.setWidth(80);\n colSortDirect.setText(\"排序方向\");\n\n final TableColumn colOutput = new TableColumn(tblDataField, SWT.NONE);\n colOutput.setWidth(80);\n colOutput.setText(\"是否输出\");\n\n final TabItem tabFilter = new TabItem(tabFolder, SWT.NONE);\n tabFilter.setText(\"过滤条件\");\n\n final Composite composite = new Composite(tabFolder, SWT.NONE);\n composite.setLayout(new FormLayout());\n tabFilter.setControl(composite);\n\n final Group group_2 = new Group(composite, SWT.NO_RADIO_GROUP);\n final FormData fd_group_2 = new FormData();\n fd_group_2.left = new FormAttachment(0, 0);\n fd_group_2.right = new FormAttachment(100, 0);\n fd_group_2.top = new FormAttachment(0, -6);\n fd_group_2.bottom = new FormAttachment(100, -80);\n group_2.setLayoutData(fd_group_2);\n group_2.setLayout(new FormLayout());\n\n tvFilter = new TableViewer(group_2, SWT.FULL_SELECTION | SWT.BORDER);\n tvFilter.setLabelProvider(new FiltersLabelProvider());\n tvFilter.setContentProvider(new ViewContentProvider());\n tvFilter.setColumnProperties(FiltersLabelProvider.DATAFIELDS);\n tblFilter = tvFilter.getTable();\n CellEditor[] cellEditor1 = new CellEditor[3];\n cellEditor1[0] = new TextCellEditor(tblFilter);\n String[] aliasNames = new String[] { \"\" };\n cellEditor1[0] = new ComboBoxCellEditor(tblFilter, aliasNames, SWT.READ_ONLY);\n cellEditor1[1] = new ComboBoxCellEditor(tblFilter, Consts.OPERATOR_LABEL, SWT.READ_ONLY);\n cellEditor1[2] = new TextCellEditor(tblFilter);\n tvFilter.setCellEditors(cellEditor1);\n // filtersCellModifier = new FiltersCellModifier(tvFilter, aliasNames);\n tvFilter.setCellModifier(new FiltersCellModifier(tvFilter, aliasNames));\n\n final FormData fd_table_2 = new FormData();\n fd_table_2.bottom = new FormAttachment(100, -21);\n fd_table_2.top = new FormAttachment(0, -5);\n fd_table_2.right = new FormAttachment(100, -1);\n fd_table_2.left = new FormAttachment(0, 1);\n tblFilter.setLayoutData(fd_table_2);\n tblFilter.setLinesVisible(true);\n tblFilter.setHeaderVisible(true);\n\n final TableColumn colFilterFieldName = new TableColumn(tblFilter, SWT.NONE);\n colFilterFieldName.setWidth(120);\n colFilterFieldName.setText(\"字段名称\");\n\n final TableColumn colOper = new TableColumn(tblFilter, SWT.NONE);\n colOper.setWidth(120);\n colOper.setText(\"操作符\");\n\n final TableColumn colFilterData = new TableColumn(tblFilter, SWT.NONE);\n colFilterData.setWidth(500);\n colFilterData.setText(\"操作数据\");\n\n final Button btnFilterAdd = new Button(group_2, SWT.NONE);\n btnFilterAdd.addSelectionListener(new SelectionAdapter() {\n public void widgetSelected(final SelectionEvent e) {\n Filter df = new Filter();\n df.setField(\"\");\n df.setOperator(\"=\");\n df.setExpression(\"\");\n filterList.add(df);\n tvFilter.refresh();\n }\n });\n btnFilterAdd.setImage(ResourceManager.getPluginImage(Activator.getDefault(), \"icons/plus.png\"));\n final FormData fd_btnFilterAdd = new FormData();\n fd_btnFilterAdd.bottom = new FormAttachment(100, -1);\n fd_btnFilterAdd.left = new FormAttachment(0, 1);\n fd_btnFilterAdd.height = 20;\n fd_btnFilterAdd.width = 20;\n btnFilterAdd.setLayoutData(fd_btnFilterAdd);\n\n final Button btnFilterDel = new Button(group_2, SWT.NONE);\n btnFilterDel.addSelectionListener(new SelectionAdapter() {\n public void widgetSelected(final SelectionEvent e) {\n TableItem[] selectItems = tblFilter.getSelection();\n if (selectItems != null && selectItems.length > 0) {\n for (TableItem ti : selectItems) {\n Filter o = (Filter) ti.getData();\n filterList.remove(o);\n }\n tvFilter.refresh();\n }\n }\n });\n btnFilterDel.setImage(ResourceManager.getPluginImage(Activator.getDefault(), \"icons/minus.png\"));\n final FormData fd_btnFilterDel = new FormData();\n fd_btnFilterDel.bottom = new FormAttachment(100, -1);\n fd_btnFilterDel.left = new FormAttachment(btnFilterAdd, 1, SWT.DEFAULT);\n fd_btnFilterDel.height = 20;\n fd_btnFilterDel.width = 20;\n btnFilterDel.setLayoutData(fd_btnFilterDel);\n\n final Button btnFilterUp = new Button(group_2, SWT.NONE);\n btnFilterUp.setImage(ResourceManager.getPluginImage(Activator.getDefault(), \"icons/arrow-090.png\"));\n final FormData fd_btnFilterUp = new FormData();\n fd_btnFilterUp.bottom = new FormAttachment(100, -1);\n fd_btnFilterUp.left = new FormAttachment(btnFilterDel, 1, SWT.DEFAULT);\n fd_btnFilterUp.height = 20;\n fd_btnFilterUp.width = 20;\n btnFilterUp.setLayoutData(fd_btnFilterUp);\n btnFilterUp.setVisible(false);\n\n final Button btnFilterDown = new Button(group_2, SWT.NONE);\n btnFilterDown.setImage(ResourceManager.getPluginImage(Activator.getDefault(), \"icons/arrow-270.png\"));\n final FormData fd_btnFilterDown = new FormData();\n fd_btnFilterDown.bottom = new FormAttachment(100, -1);\n fd_btnFilterDown.left = new FormAttachment(btnFilterUp, 1, SWT.DEFAULT);\n fd_btnFilterDown.height = 20;\n fd_btnFilterDown.width = 20;\n btnFilterDown.setLayoutData(fd_btnFilterDown);\n btnFilterDown.setVisible(false);\n\n final Label label_2 = new Label(composite, SWT.NONE);\n final FormData fd_label_2 = new FormData();\n fd_label_2.bottom = new FormAttachment(100, -60);\n fd_label_2.top = new FormAttachment(group_2, 1);\n fd_label_2.width = 70;\n fd_label_2.left = new FormAttachment(0, 0);\n label_2.setLayoutData(fd_label_2);\n label_2.setText(\"其他条件:\");\n\n txtOtherCondition = new StyledText(composite, SWT.BORDER);\n final FormData fd_txtOtherCondition = new FormData();\n fd_txtOtherCondition.bottom = new FormAttachment(100, -1);\n fd_txtOtherCondition.top = new FormAttachment(label_2, 1);\n fd_txtOtherCondition.right = new FormAttachment(100, -1);\n fd_txtOtherCondition.left = new FormAttachment(0, 1);\n txtOtherCondition.setLayoutData(fd_txtOtherCondition);\n\n final Button btnFieldAdd = new Button(group_1, SWT.NONE);\n btnFieldAdd.addSelectionListener(new SelectionAdapter() {\n public void widgetSelected(final SelectionEvent e) {\n DataField df = new DataField();\n df.setOutput(Consts.YES);\n df.setSortDirect(\"\");\n df.setSortNo(\"\");\n df.setAggregate(\"\");\n dataFieldList.add(df);\n tvDataField.refresh();\n }\n });\n btnFieldAdd.setImage(ResourceManager.getPluginImage(Activator.getDefault(), \"icons/plus.png\"));\n final FormData fd_btnFieldAdd = new FormData();\n fd_btnFieldAdd.bottom = new FormAttachment(100, 0);\n fd_btnFieldAdd.left = new FormAttachment(0, 0);\n fd_btnFieldAdd.height = 20;\n fd_btnFieldAdd.width = 20;\n btnFieldAdd.setLayoutData(fd_btnFieldAdd);\n\n final Button btnFieldDel = new Button(group_1, SWT.NONE);\n btnFieldDel.addSelectionListener(new SelectionAdapter() {\n public void widgetSelected(final SelectionEvent e) {\n TableItem[] selectItems = tblDataField.getSelection();\n if (selectItems != null && selectItems.length > 0) {\n for (TableItem ti : selectItems) {\n DataField o = (DataField) ti.getData();\n //\n String cnName = o.getCnName();\n String aliasName = o.getAliasName();\n for (int i = 0;i< configList.size();i++) {\n \tFieldConfig cfig = configList.get(i);\n \tif (cnName.equals(cfig.getCnName()) && aliasName.equals(cfig.getName())) {\n \t\tconfigList.remove(i);\n \t\tbreak;\n \t}\n }\n \n dataFieldList.remove(o);\n }\n tvDataField.refresh();\n tvShowConfig.refresh();\n }\n }\n });\n btnFieldDel.setImage(ResourceManager.getPluginImage(Activator.getDefault(), \"icons/minus.png\"));\n final FormData fd_btnFieldDel = new FormData();\n fd_btnFieldDel.bottom = new FormAttachment(100, 0);\n fd_btnFieldDel.left = new FormAttachment(0, 21);\n fd_btnFieldDel.height = 20;\n fd_btnFieldDel.width = 20;\n btnFieldDel.setLayoutData(fd_btnFieldDel);\n\n final TabItem tabSQL = new TabItem(tabFolder, SWT.NONE);\n tabSQL.setText(\"SQL语句\");\n\n final Composite composite_2 = new Composite(tabFolder, SWT.NONE);\n composite_2.setLayout(new FormLayout());\n tabSQL.setControl(composite_2);\n\n final Group group = new Group(composite_2, SWT.NONE);\n final FormData fd_group = new FormData();\n fd_group.top = new FormAttachment(0, -6);\n fd_group.right = new FormAttachment(100, 0);\n fd_group.left = new FormAttachment(0, 0);\n fd_group.bottom = new FormAttachment(100, 0);\n group.setLayoutData(fd_group);\n group.setLayout(new FormLayout());\n\n txtSQL = new StyledText(group, SWT.BORDER|SWT.WRAP|SWT.MULTI|SWT.V_SCROLL|SWT.H_SCROLL);\n final FormData fd_txtSQL = new FormData();\n fd_txtSQL.bottom = new FormAttachment(100, 0);\n fd_txtSQL.top = new FormAttachment(0, -6);\n fd_txtSQL.right = new FormAttachment(100, 0);\n fd_txtSQL.left = new FormAttachment(0, 0);\n txtSQL.setLayoutData(fd_txtSQL);\n txtSQL.setWordWrap(true);\n txtSQL.setFont(SWTResourceManager.getFont(\"Fixedsys\", 10, SWT.NONE));\n txtSQL.setEditable(false);\n\n final TabItem tabItem = new TabItem(tabFolder, SWT.NONE);\n tabItem.setText(\"列表配置\");\n\n final Composite composite_1_1 = new Composite(tabFolder, SWT.NONE);\n composite_1_1.setLayout(new FormLayout());\n tabItem.setControl(composite_1_1);\n\n final Group group_3 = new Group(composite_1_1, SWT.NONE);\n group_3.setLayout(new FormLayout());\n final FormData fd_group_3 = new FormData();\n fd_group_3.left = new FormAttachment(0, 0);\n fd_group_3.bottom = new FormAttachment(100, 0);\n fd_group_3.right = new FormAttachment(100, 0);\n fd_group_3.top = new FormAttachment(0, -6);\n group_3.setLayoutData(fd_group_3);\n\n tvShowConfig = new TableViewer(group_3, SWT.MULTI | SWT.FULL_SELECTION | SWT.BORDER);\n tvShowConfig.setContentProvider(new ViewContentProvider());\n tvShowConfig.setLabelProvider(new ShowConfigLabelProvider());\n tvShowConfig.setColumnProperties(DATAFIELDS);\n tblShowConfig = tvShowConfig.getTable();\n\n CellEditor[] cfigCellEditor = new CellEditor[8];\n cfigCellEditor[0] = new TextCellEditor(tblShowConfig);\n cfigCellEditor[1] = new TextCellEditor(tblShowConfig);\n cfigCellEditor[2] = new TextCellEditor(tblShowConfig);\n cfigCellEditor[3] = new ComboBoxCellEditor(tblShowConfig, Consts.ALIGN_LABEL, SWT.READ_ONLY);\n cfigCellEditor[4] = new TextCellEditor(tblShowConfig);\n cfigCellEditor[5] = new ComboBoxCellEditor(tblShowConfig, Consts.YESNO_LABEL, SWT.READ_ONLY);\n cfigCellEditor[6] = new ComboBoxCellEditor(tblShowConfig, codeSetNames, SWT.READ_ONLY);\n// cellEditor[7] = new DetailLinkCellEditor(tblShowConfig, configList, diagram.getNodes());\n Text text10 = (Text) cfigCellEditor[4].getControl();\n text10.addVerifyListener(new NumberVerifier());\n\n tvShowConfig.setCellEditors(cfigCellEditor);\n tvShowConfig.setCellModifier(new ShowConfigCellModifier(tvShowConfig));\n \n final FormData fd_table_1_1 = new FormData();\n fd_table_1_1.bottom = new FormAttachment(100, -21);\n fd_table_1_1.top = new FormAttachment(0, 1);\n fd_table_1_1.right = new FormAttachment(100, -1);\n fd_table_1_1.left = new FormAttachment(0, 0);\n tblShowConfig.setLayoutData(fd_table_1_1);\n tblShowConfig.setLinesVisible(true);\n tblShowConfig.setHeaderVisible(true);\n\n final TableColumn colCnName_1 = new TableColumn(tblShowConfig, SWT.NONE);\n colCnName_1.setWidth(120);\n colCnName_1.setText(\"中文名\");\n\n final TableColumn colFieldName_1 = new TableColumn(tblShowConfig, SWT.NONE);\n colFieldName_1.setWidth(120);\n colFieldName_1.setText(\"列名\");\n\n final TableColumn colDataType_1 = new TableColumn(tblShowConfig, SWT.NONE);\n colDataType_1.setWidth(60);\n colDataType_1.setText(\"数据格式\");\n\n final TableColumn colAlign = new TableColumn(tblShowConfig, SWT.NONE);\n colAlign.setWidth(70);\n colAlign.setText(\"对齐方式\");\n\n final TableColumn colWidth = new TableColumn(tblShowConfig, SWT.NONE);\n colWidth.setWidth(40);\n colWidth.setText(\"宽度\");\n\n final TableColumn colVisible = new TableColumn(tblShowConfig, SWT.NONE);\n colVisible.setWidth(70);\n colVisible.setText(\"是否显示\");\n\n final TableColumn colCodeSet = new TableColumn(tblShowConfig, SWT.NONE);\n colCodeSet.setWidth(100);\n colCodeSet.setText(\"代码集\");\n\n final Button btnUp = new Button(group_3, SWT.NONE);\n btnUp.addSelectionListener(new SelectionAdapter() {\n public void widgetSelected(final SelectionEvent e) {\n if (tblShowConfig.getSelectionCount() == 1) {\n int idx = tblShowConfig.getSelectionIndex();\n if (idx > 0) {\n FieldConfig o = (FieldConfig) tblShowConfig.getSelection()[0].getData();\n configList.remove(o);\n configList.add(idx - 1, o);\n tvShowConfig.refresh();\n }\n }\n }\n });\n btnUp.setImage(ResourceManager.getPluginImage(Activator.getDefault(), \"icons/arrow-090.png\"));\n final FormData fd_btnUp = new FormData();\n fd_btnUp.left = new FormAttachment(0,1);\n fd_btnUp.top = new FormAttachment(tblShowConfig, 1);\n fd_btnUp.width = 20;\n fd_btnUp.height = 20;\n btnUp.setLayoutData(fd_btnUp);\n btnUp.setText(\"button\");\n\n final Button btnDown = new Button(group_3, SWT.NONE);\n btnDown.addSelectionListener(new SelectionAdapter() {\n public void widgetSelected(final SelectionEvent e) {\n if (tblShowConfig.getSelectionCount() == 1) {\n int idx = tblShowConfig.getSelectionIndex();\n if (idx < tblShowConfig.getItemCount()) {\n FieldConfig o = (FieldConfig) tblShowConfig.getSelection()[0].getData();\n configList.remove(o);\n configList.add(idx + 1, o);\n tvShowConfig.refresh();\n }\n }\n }\n });\n btnDown.setImage(ResourceManager.getPluginImage(Activator.getDefault(), \"icons/arrow-270.png\"));\n final FormData fd_btnDown = new FormData();\n fd_btnDown.top = new FormAttachment(tblShowConfig, 1);\n fd_btnDown.width = 20;\n fd_btnDown.height = 20;\n fd_btnDown.left = new FormAttachment(btnUp, 1);\n btnDown.setLayoutData(fd_btnDown);\n btnDown.setText(\"button\");\n\n //\n init();\n }", "protected Control createContents(Composite parent) {\r\n noDefaultAndApplyButton();\r\n\r\n // The main composite\r\n Composite composite = new Composite(parent, SWT.NONE);\r\n GridLayout layout = new GridLayout(1, false);\r\n layout.marginWidth = 0;\r\n layout.marginHeight = 0;\r\n composite.setLayout(layout);\r\n\r\n // TODO change these labels later\r\n new Label(composite, SWT.NONE)\r\n .setText(\"Provided by Duke University Computer Science Department\");\r\n new Label(composite, SWT.NONE).setText(\"http://www.cs.duke.edu\");\r\n new Label(composite, SWT.NONE)\r\n .setText(\"Questions? Go to our website at http://www.cs.duke.edu/csed/ambient\");\r\n return composite;\r\n }", "private void createContents() {\n\t\tshell = new Shell(getParent(), SWT.DIALOG_TRIM | SWT.RESIZE);\n\t\tshell.setSize(750, 450);\n\t\tshell.setText(\"Sensitivity Analysis for: \" + parentNode.getName());\n\t\tshell.setLayout(new FillLayout(SWT.HORIZONTAL));\n\n\t\tsashForm = new SashForm(shell, SWT.NONE);\n\n\t\tscrolledComposite = new ScrolledComposite(sashForm, SWT.BORDER\n\t\t\t\t| SWT.H_SCROLL | SWT.V_SCROLL);\n\t\tscrolledComposite.setExpandHorizontal(true);\n\t\tscrolledComposite.setExpandVertical(true);\n\n\t\tSaCriterionListComp = new Composite(scrolledComposite, SWT.NONE);\n\t\tSaCriterionListComp.setLayout(new RowLayout(SWT.VERTICAL));\n\n\t\t// Create a criterion weighting SaCriterionListComp for every criterion\n\t\tweightingSelectComponents = new SaCriterionWeightingSelectComp[c.length];\n\n\t\tArrayList<Criterion> criteria = parentNode.getCriteria();\n\t\tfor (int i = 0; i < c.length; i++) {\n\n\t\t\tSaCriterionWeightingSelectComp scwsc = new SaCriterionWeightingSelectComp(\n\t\t\t\t\tSaCriterionListComp, SWT.None, criteria.get(i), c[i], i);\n\n\t\t\tscwsc.addWeightingChangedListener(new SaCriterionWeightingChangedListener() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void doCriterionWeightingChanged(\n\t\t\t\t\t\tSaCriterionWeightingChangedEvent e) {\n\t\t\t\t\tupdateCriteriaWeightings(e.getCriterionIndex(),\n\t\t\t\t\t\t\te.getNewValue());\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tweightingSelectComponents[i] = scwsc;\n\t\t}\n\n\t\tscrolledComposite.setContent(SaCriterionListComp);\n\t\tscrolledComposite.setMinSize(SaCriterionListComp.computeSize(\n\t\t\t\tSWT.DEFAULT, SWT.DEFAULT));\n\n\t\tscrolledComposite_1 = new ScrolledComposite(sashForm, SWT.BORDER\n\t\t\t\t| SWT.H_SCROLL | SWT.V_SCROLL);\n\t\tscrolledComposite_1.setExpandHorizontal(true);\n\t\tscrolledComposite_1.setExpandVertical(true);\n\n\t\tSaAlternativeWeighingComp = new Composite(scrolledComposite_1, SWT.NONE);\n\t\tSaAlternativeWeighingComp.setLayout(new RowLayout(SWT.VERTICAL));\n\n\t\t// Create a bar component for every alternative\n\t\talternativeBarComponents = new SaAlternativeWeightingBarComp[a.length];\n\n\t\tfor (int i = 0; i < alternatives.size(); i++) {\n\t\t\tSaAlternativeWeightingBarComp sawc = new SaAlternativeWeightingBarComp(\n\t\t\t\t\tSaAlternativeWeighingComp, SWT.NONE, alternatives.get(i)\n\t\t\t\t\t\t\t.getName(), a[i]);\n\n\t\t\talternativeBarComponents[i] = sawc;\n\t\t}\n\n\t\tscrolledComposite_1.setContent(SaAlternativeWeighingComp);\n\t\tscrolledComposite_1.setMinSize(SaAlternativeWeighingComp.computeSize(\n\t\t\t\tSWT.DEFAULT, SWT.DEFAULT));\n\n\t\tsashForm.setWeights(new int[] { 1, 1 });\n\n\t\tsetBarValues();\n\t}", "@Override\n public Control createDialogArea(Composite parent) {\n Composite top = (Composite) super.createDialogArea(parent);\n\n /*\n * Create the main layout for the shell.\n */\n GridLayout mainLayout = new GridLayout(1, false);\n mainLayout.verticalSpacing = 15;\n top.setLayout(mainLayout);\n GridData mainLayoutData = new GridData(SWT.FILL, SWT.FILL, true, true);\n top.setLayoutData(mainLayoutData);\n\n createStormTypeArea(top);\n createViewerArea(top);\n createTransmitArea(top);\n\n /*\n * Sets dialog title\n */\n getShell().setText(\"View/Send PSH\");\n\n // Update GUI from PshData.\n updateGui(pshData);\n\n return top;\n }", "private void initDialog() {\n Window subWindow = new Window(\"Sub-window\");\n \n FormLayout nameLayout = new FormLayout();\n TextField code = new TextField(\"Code\");\n code.setPlaceholder(\"Code\");\n \n TextField description = new TextField(\"Description\");\n description.setPlaceholder(\"Description\");\n \n Button confirm = new Button(\"Save\");\n confirm.addClickListener(listener -> insertRole(code.getValue(), description.getValue()));\n\n nameLayout.addComponent(code);\n nameLayout.addComponent(description);\n nameLayout.addComponent(confirm);\n \n subWindow.setContent(nameLayout);\n \n // Center it in the browser window\n subWindow.center();\n\n // Open it in the UI\n UI.getCurrent().addWindow(subWindow);\n\t}", "private void setup(){\n\t\t\n\t\t//set the dialog title\n\t\tsetText(LocaleText.get(\"createSPSSFileDialog\"));\n\t\t//create the status text\n\t\tstatusLabel = new Label();\n\t\t\n\t\t//create the buttons\n\t\tButton btnCancel = new Button(LocaleText.get(\"close\"), new ClickHandler(){\n\t\t\tpublic void onClick(ClickEvent event){\n\t\t\t\tcancel();\n\t\t\t}\n\t\t});\n\t\t\n\t\tButton btnCreate = new Button(LocaleText.get(\"createSPSSFileDialog\"), new ClickHandler(){\n\t\t\tpublic void onClick(ClickEvent event){\n\t\t\t\tcreateSPSSFile();\n\t\t\t}\n\t\t});\n\t\t\n\t\tButton btnSave = new Button(LocaleText.get(\"save\"), new ClickHandler(){\n\t\t\tpublic void onClick(ClickEvent event){\n\t\t\t\tsave();\n\t\t\t}\n\t\t});\n\t\t\n\t\t\t\t\n\t\t\n\t\t//update the languages in the form.\n\t\tFormHandler.updateLanguage(Context.getLocale(), Context.getLocale(), form);\n\t\t//add the languages to the language drop down\n\t\tfor(Locale l : form.getLocales())\n\t\t{\n\t\t\tlistBoxLanguages.addItem(l.getName());\n\t\t}\n\t\t\n\t\t//setup the text area\n\t\tspssText.setCharacterWidth(30);\n\t\tspssText.setPixelSize(300, 300);\n\t\t\n\t\t\n\t\tFlexCellFormatter formatter = table.getFlexCellFormatter();\n\t\t\n\t\t//now add stuff to the UI\n\t\tint row = 0;\n\t\ttable.setWidget(row, 0, new Label(LocaleText.get(\"language\")));\n\t\ttable.setWidget(row, 1, listBoxLanguages);\n\t\trow++;\n\t\ttable.setWidget(row, 0, spssText);\n\t\tformatter.setColSpan(row, 0, 2);\n\t\tformatter.setHeight(row, 0, \"300px\");\n\t\tformatter.setWidth(row, 0, \"300px\");\n\t\trow++;\n\t\ttable.setWidget(row, 0, statusLabel);\n\t\trow++;\n\t\ttable.setWidget(row, 0, btnCreate);\n\t\trow++;\n\t\ttable.setWidget(row, 0, btnSave);\n\t\ttable.setWidget(row, 1, btnCancel);\n\t\trow++;\n\t\ttable.setWidget(row, 0, appletHtml);\n\t\t\n\t\t\t\t\t\t\n\t\t//some random UI stuff to make everything nice and neat\n\t\tVerticalPanel panel = new VerticalPanel();\n\t\tFormUtil.maximizeWidget(panel);\n\t\tpanel.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE);\n\t\tpanel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);\n\t\tpanel.add(table);\n\t\t\n\t\tsetWidget(panel);\n\t\t\n\t\tsetWidth(\"200px\");\t\t\n\t}", "protected Control createDialogArea(Composite parent) {\n\t\t\ttext = new Text(parent, SWT.READ_ONLY | SWT.NO_FOCUS);\n\n\t\t\t// Use the compact margins employed by PopupDialog.\n\t\t\tGridData gd = new GridData(GridData.BEGINNING | GridData.FILL_BOTH);\n\t\t\tgd.horizontalIndent = 5;\n\t\t\tgd.verticalAlignment = SWT.CENTER;\n\t\t\ttext.setLayoutData(gd);\n\t\t\ttext.setText(contents);\n\n\t\t\t// since SWT.NO_FOCUS is only a hint...\n\t\t\ttext.addFocusListener(new FocusAdapter() {\n\t\t\t\tpublic void focusGained(FocusEvent event) {\n\t\t\t\t\tContentProposalPopup.this.close();\n\t\t\t\t}\n\t\t\t});\n\t\t\treturn text;\n\t\t}", "public abstract Dialog createDialog(DialogDescriptor descriptor);", "protected void createContents(Display display) {\n\t\tshell = new Shell(display, SWT.CLOSE | SWT.TITLE | SWT.MIN);\n\t\tshell.setSize(539, 648);\n\t\tshell.setText(\"SiSi - Security-aware Event Log Generator\");\n\t\tshell.setImage(new Image(shell.getDisplay(), \"imgs/shell.png\"));\n\t\tshell.setLayout(new FillLayout(SWT.HORIZONTAL));\n\t\t\n\t\tMenu menu = new Menu(shell, SWT.BAR);\n\t\tshell.setMenuBar(menu);\n\t\t\n\t\tMenuItem mntmNewSubmenu = new MenuItem(menu, SWT.CASCADE);\n\t\tmntmNewSubmenu.setText(\"File\");\n\t\t\n\t\tMenu menu_1 = new Menu(mntmNewSubmenu);\n\t\tmntmNewSubmenu.setMenu(menu_1);\n\t\t\n\t\tMenuItem mntmOpenFile = new MenuItem(menu_1, SWT.NONE);\n\t\tmntmOpenFile.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tFileDialog dialog = new FileDialog(shell, SWT.OPEN);\n\n\t\t\t\tString[] filterNames = new String[] { \"PNML\", \"All Files (*)\" };\n\t\t\t\tString[] filterExtensions = new String[] { \"*.pnml\", \"*\" };\n\t\t\t\tdialog.setFilterPath(System.getProperty(\"user.dir\"));\n\n\t\t\t\tdialog.setFilterNames(filterNames);\n\t\t\t\tdialog.setFilterExtensions(filterExtensions);\n\n\t\t\t\tString path = dialog.open();\n\t\t\t\tif( path != null ) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tgenerateConfigCompositeFor(path);\n\t\t\t\t\t} catch (ParserConfigurationException | SAXException | IOException exception) {\n\t\t\t\t\t\terrorMessageBox(\"Could not load File.\", exception);\n\t\t\t\t\t}\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tmntmOpenFile.setImage(new Image(shell.getDisplay(), \"imgs/open.png\"));\n\t\tmntmOpenFile.setText(\"Open File...\");\n\t\t\n\t\tMenuItem mntmOpenExample = new MenuItem(menu_1, SWT.NONE);\n\t\tmntmOpenExample.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tgenerateConfigCompositeFor(\"examples/kbv.pnml\");\n\t\t\t\t\t} catch (ParserConfigurationException | SAXException | IOException exception) {\n\t\t\t\t\t\terrorMessageBox(\"Could not load Example.\", exception);\n\t\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tmntmOpenExample.setImage(new Image(shell.getDisplay(), \"imgs/example.png\"));\n\t\tmntmOpenExample.setText(\"Open Example\");\n\t\t\n\t\tMenuItem mntmNewItem = new MenuItem(menu_1, SWT.SEPARATOR);\n\t\tmntmNewItem.setText(\"Separator1\");\n\t\t\n\t\tMenuItem mntmExit = new MenuItem(menu_1, SWT.NONE);\n\t\tmntmExit.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.getDisplay().dispose();\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t});\n\t\tmntmExit.setImage(new Image(shell.getDisplay(), \"imgs/exit.png\"));\n\t\tmntmExit.setText(\"Exit\");\n\t\t\n\t\tmainComposite = new ScrolledComposite(shell, SWT.H_SCROLL | SWT.V_SCROLL);\n\t\tmainComposite.setExpandHorizontal(true);\n\t\tmainComposite.setExpandVertical(true);\n\t\t\n\t\tactiveComposite = new Composite(mainComposite, SWT.NONE);\n\t\tGridLayout gl_activeComposite = new GridLayout(1, true);\n\t\tgl_activeComposite.marginWidth = 10;\n\t\tgl_activeComposite.marginHeight = 10;\n\t\tactiveComposite.setLayout(gl_activeComposite);\n\t\t\n\t\tLabel lblWelcomeToSisi = new Label(activeComposite, SWT.NONE);\n\t\tlblWelcomeToSisi.setFont(SWTResourceManager.getFont(\"Segoe UI\", 30, SWT.BOLD));\n\t\tGridData gd_lblWelcomeToSisi = new GridData(SWT.CENTER, SWT.CENTER, true, false, 1, 1);\n\t\tgd_lblWelcomeToSisi.verticalIndent = 50;\n\t\tlblWelcomeToSisi.setLayoutData(gd_lblWelcomeToSisi);\n\t\tlblWelcomeToSisi.setText(\"Welcome to SiSi!\");\n\t\t\n\t\tLabel lblSecurityawareEvent = new Label(activeComposite, SWT.NONE);\n\t\tlblSecurityawareEvent.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, true, false, 1, 1));\n\t\tlblSecurityawareEvent.setText(\"- A security-aware Event Log Generator -\");\n\t\t\n\t\tLabel lblToGetStarted = new Label(activeComposite, SWT.NONE);\n\t\tlblToGetStarted.setFont(SWTResourceManager.getFont(\"Segoe UI\", 11, SWT.ITALIC));\n\t\tGridData gd_lblToGetStarted = new GridData(SWT.CENTER, SWT.CENTER, true, false, 1, 1);\n\t\tgd_lblToGetStarted.verticalIndent = 150;\n\t\tlblToGetStarted.setLayoutData(gd_lblToGetStarted);\n\t\tlblToGetStarted.setText(\"To get started load a file or an example\");\n\t\t\n\t\tmainComposite.setContent(activeComposite);\n\t\tmainComposite.setMinSize(activeComposite.computeSize(SWT.DEFAULT, SWT.DEFAULT));\n\t}", "private void buildView() {\n this.setHeaderInfo(model.getHeaderInfo());\n\n CWButtonPanel buttonPanel = this.getButtonPanel();\n \n buttonPanel.add(saveButton);\n buttonPanel.add(saveAndCloseButton);\n buttonPanel.add(cancelButton);\n \n FormLayout layout = new FormLayout(\"pref, 4dlu, 200dlu, 4dlu, min\",\n \"pref, 2dlu, pref, 2dlu, pref, 2dlu, pref\"); // rows\n\n layout.setRowGroups(new int[][]{{1, 3, 5}});\n \n CellConstraints cc = new CellConstraints();\n this.getContentPanel().setLayout(layout);\n \n this.getContentPanel().add(nameLabel, cc.xy (1, 1));\n this.getContentPanel().add(nameTextField, cc.xy(3, 1));\n this.getContentPanel().add(descLabel, cc.xy(1, 3));\n this.getContentPanel().add(descTextField, cc.xy(3, 3));\n this.getContentPanel().add(amountLabel, cc.xy(1, 5));\n this.getContentPanel().add(amountTextField, cc.xy(3, 5));\n }", "private HorizontalPanel createContent() {\n\t\tfinal HorizontalPanel panel = new HorizontalPanel();\n\t\tfinal VerticalPanel form = new VerticalPanel();\n\t\tpanel.add(form);\n\t\t\n\t\tfinal Label titleLabel = new Label(CONSTANTS.actorLabel());\n\t\ttitleLabel.addStyleName(AbstractField.CSS.cbtAbstractPopupLabel());\n\t\tform.add(titleLabel);\n\t\t\n\t\tfinal Label closeButton = new Label();\n\t\tcloseButton.addClickHandler(new ClickHandler() {\n\t\t\t@Override\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\tActorPopup.this.hide();\n\t\t\t}\n\t\t});\n\t\tcloseButton.addStyleName(AbstractField.CSS.cbtAbstractPopupClose());\n\t\tform.add(closeButton);\n\t\t\n\t\t//-----------------------------------------------\n\t\t// Party field\n\t\t//-----------------------------------------------\n\t\tpartyField = new SuggestField(this, null,\n\t\t\t\tnew NameIdAction(Service.PARTY),\n\t\t\t\tCONSTANTS.partynameLabel(),\n\t\t\t\t20,\n\t\t\t\ttab++);\n\t\tpartyField.setReadOption(Party.CREATED, true);\n\t\tpartyField.setDoubleclickable(true);\n\t\tpartyField.setHelpText(CONSTANTS.partynameHelp());\n\t\tform.add(partyField);\n\n\t\t//-----------------------------------------------\n\t\t// Email Address field\n\t\t//-----------------------------------------------\n\t\temailaddressField = new TextField(this, null,\n\t\t\t\tCONSTANTS.emailaddressLabel(),\n\t\t\t\ttab++);\n\t\temailaddressField.setMaxLength(100);\n\t\temailaddressField.setHelpText(CONSTANTS.emailaddressHelp());\n\t\tform.add(emailaddressField);\n\n\t\t//-----------------------------------------------\n\t\t// Password field\n\t\t//-----------------------------------------------\n\t\tpasswordField = new PasswordField(this, null,\n\t\t\t\tCONSTANTS.passwordLabel(),\n\t\t\t\ttab++);\n\t\tpasswordField.setSecure(true);\n\t\tpasswordField.setHelpText(CONSTANTS.passwordHelp());\n\t\tform.add(passwordField);\n\n\t\t//-----------------------------------------------\n\t\t// Check Password field\n\t\t//-----------------------------------------------\n\t\tcheckpasswordField = new PasswordField(this, null,\n\t\t\t\tCONSTANTS.checkpasswordLabel(),\n\t\t\t\ttab++);\n\t\tcheckpasswordField.setSecure(true);\n\t\tcheckpasswordField.setHelpText(CONSTANTS.checkpasswordHelp());\n\t\tform.add(checkpasswordField);\n\n\t\t//-----------------------------------------------\n\t\t// Date Format field\n\t\t//-----------------------------------------------\n\t\tformatdateField = new ListField(this, null,\n\t\t\t\tNameId.getList(Party.DATE_FORMATS, Party.DATE_FORMATS),\n\t\t\t\tCONSTANTS.formatdateLabel(),\n\t\t\t\tfalse,\n\t\t\t\ttab++);\n\t\tformatdateField.setDefaultValue(Party.MM_DD_YYYY);\n\t\tformatdateField.setFieldHalf();\n\t\tformatdateField.setHelpText(CONSTANTS.formatdateHelp());\n\t\t\n\t\t//-----------------------------------------------\n\t\t// Phone Format field\n\t\t//-----------------------------------------------\n\t\tformatphoneField = new TextField(this, null,\n\t\t\t\tCONSTANTS.formatphoneLabel(),\n\t\t\t\ttab++);\n\t\tformatphoneField.setMaxLength(25);\n\t\tformatphoneField.setFieldHalf();\n\t\tformatphoneField.setHelpText(CONSTANTS.formatphoneHelp());\n\n\t\tHorizontalPanel ff = new HorizontalPanel();\n\t\tff.add(formatdateField);\n\t\tff.add(formatphoneField);\n\t\tform.add(ff);\n\t\t\n\t\t//-----------------------------------------------\n\t\t// Roles option selector\n\t\t//-----------------------------------------------\n\t\trolesField = new OptionField(this, null,\n\t\t\t\tAbstractRoot.hasPermission(AccessControl.AGENCY) ? getAgentroles() : getOrganizationroles(),\n\t\t\t\tCONSTANTS.roleLabel(),\n\t\t\t\ttab++);\n\t\trolesField.setHelpText(CONSTANTS.roleHelp());\n\t\tform.add(rolesField);\n\n\t\tform.add(createCommands());\n\t\t\n\t\tonRefresh();\n\t\tonReset(Party.CREATED);\n\t\treturn panel;\n\t}", "protected abstract JDialog createDialog();", "private final void createContents() {\n\t\tthis.shell = new Shell(this.getParent(), getStyle());\n\t\tthis.shell.setSize(450, 140);\n\t\tthis.shell.addTraverseListener(new TraverseListener() {\n\t\t\t@Override\n\t\t\tpublic void keyTraversed(TraverseEvent e) {\n\t\t\t\tif(e.character == SWT.ESC) {\n\t\t\t\t\te.doit = false;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tthis.shell.setText(\"Rename file - \" + this.getParent().getText());\n\t\tthis.shell.addShellListener(new ShellAdapter() {\n\t\t\t@Override\n\t\t\tpublic void shellClosed(ShellEvent e) {\n\t\t\t\te.doit = false;\n\t\t\t\tRenameFileDialog.this.result = Response.CLOSE;\n\t\t\t}\n\t\t});\n\t\tFunctions.centerShell2OnShell1(getParent(), this.shell);\n\t\tthis.shell.setImages(Main.getShellImages());\n\t\t\n\t\tLabel lblPleaseChooseA = new Label(this.shell, SWT.BORDER | SWT.WRAP);\n\t\tlblPleaseChooseA.setBounds(10, 10, 424, 40);\n\t\tlblPleaseChooseA.setText(\"Please choose a new name for the file \\\"\" + this.originalName + \"\\\":\");\n\t\t\n\t\tButton btnDone = new Button(this.shell, SWT.NONE);\n\t\tbtnDone.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tRenameFileDialog.this.renameTo = RenameFileDialog.this.text.getText();\n\t\t\t\tRenameFileDialog.this.result = Response.DONE;\n\t\t\t}\n\t\t});\n\t\tbtnDone.setBounds(10, 81, 209, 23);\n\t\tbtnDone.setText(\"Done\");\n\t\t\n\t\tButton btnCancel = new Button(this.shell, SWT.NONE);\n\t\tbtnCancel.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tRenameFileDialog.this.renameTo = RenameFileDialog.this.originalName;\n\t\t\t\tRenameFileDialog.this.result = Response.CANCEL;\n\t\t\t}\n\t\t});\n\t\tbtnCancel.setBounds(225, 81, 209, 23);\n\t\tbtnCancel.setText(\"Cancel\");\n\t\t\n\t\tthis.text = new Text(this.shell, SWT.BORDER);\n\t\tthis.text.setBounds(10, 56, 424, 19);\n\t\tthis.text.setText(this.originalName);\n\t\tthis.text.selectAll();\n\t}", "public void createContents(Composite parent) {\n\t\tparent.setLayout(new FillLayout());\n\t\tfMainSection = fToolkit.createSection(parent, Section.TITLE_BAR);\n\n\t\tComposite mainComposite = fToolkit.createComposite(fMainSection, SWT.NONE);\n\t\tfToolkit.paintBordersFor(mainComposite);\n\t\tfMainSection.setClient(mainComposite);\n\t\tmainComposite.setLayout(new GridLayout(1, true));\n\t\t\n\t\tcreateClassListViewer(mainComposite);\n\t\tcreateBottomButtons(mainComposite);\n\t\tcreateTextClientComposite(fMainSection);\n\t}", "public void openDialogCreateVisual(){\n DataHeader[] tabHeader = dataset.getListDataHeaderDouble(true);\n TypeVisualization[] tabVis = getListTypeVisualization(tabHeader.length);\n DataHeader[] tabHeaderLabel = dataset.getListDataHeaderDouble(false);\n CreateDataVisualDialog dialog = new CreateDataVisualDialog(this, tabVis, tabHeader, tabHeaderLabel);\n dialog.setVisible(true);\n }", "protected void createContents() {\n\t\tmainShell = new Shell();\n\t\tmainShell.addDisposeListener(new DisposeListener() {\n\t\t\tpublic void widgetDisposed(DisposeEvent arg0) {\n\t\t\t\tLastValueManager manager = LastValueManager.getInstance();\n\t\t\t\tmanager.setLastAppEngineDirectory(mGAELocation.getText());\n\t\t\t\tmanager.setLastProjectDirectory(mAppRootDir.getText());\n\t\t\t\tmanager.setLastPythonBinDirectory(txtPythonLocation.getText());\n\t\t\t\tmanager.save();\n\t\t\t}\n\t\t});\n\t\tmainShell.setSize(460, 397);\n\t\tmainShell.setText(\"Google App Engine Launcher\");\n\t\tmainShell.setLayout(new BorderLayout(0, 0));\n\t\t\n\t\tComposite mainComposite = new Composite(mainShell, SWT.NONE);\n\t\tmainComposite.setLayout(new GridLayout(1, false));\n\t\t\n\t\tComposite northComposite = new Composite(mainComposite, SWT.NONE);\n\t\tnorthComposite.setLayoutData(new GridData(SWT.FILL, SWT.TOP, false, false, 1, 1));\n\t\tGridLayout gl_northComposite = new GridLayout(1, false);\n\t\tgl_northComposite.verticalSpacing = 1;\n\t\tnorthComposite.setLayout(gl_northComposite);\n\t\t\n\t\tComposite pythonComposite = new Composite(northComposite, SWT.NONE);\n\t\tpythonComposite.setLayout(new GridLayout(2, false));\n\t\t\n\t\tLabel lblPython = new Label(pythonComposite, SWT.NONE);\n\t\tlblPython.setText(\"Python : \");\n\t\t\n\t\ttxtPythonLocation = new Text(pythonComposite, SWT.BORDER);\n\t\ttxtPythonLocation.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\n\t\ttxtPythonLocation.setText(\"/usr/bin/python2.7\");\n\t\t\n\t\tLabel lblGaeLocation = new Label(pythonComposite, SWT.NONE);\n\t\tlblGaeLocation.setText(\"GAE Location :\");\n\t\t\n\t\tmGAELocation = new Text(pythonComposite, SWT.BORDER);\n\t\tmGAELocation.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\n\t\tmGAELocation.setText(\"/home/zelon/Programs/google_appengine\");\n\t\t\n\t\tLabel lblProject = new Label(pythonComposite, SWT.NONE);\n\t\tlblProject.setText(\"Project : \");\n\t\t\n\t\tmAppRootDir = new Text(pythonComposite, SWT.BORDER);\n\t\tmAppRootDir.setSize(322, 27);\n\t\tmAppRootDir.setText(\"/home/zelon/workspaceIndigo/box.wimy.com\");\n\t\t\n\t\tComposite ActionComposite = new Composite(northComposite, SWT.NONE);\n\t\tActionComposite.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));\n\t\tActionComposite.setLayout(new GridLayout(2, true));\n\t\t\n\t\tButton btnTestServer = new Button(ActionComposite, SWT.NONE);\n\t\tGridData gd_btnTestServer = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\n\t\tgd_btnTestServer.widthHint = 100;\n\t\tbtnTestServer.setLayoutData(gd_btnTestServer);\n\t\tbtnTestServer.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tmExecuter.startTestServer(getPythonLocation(), mGAELocation.getText(), mAppRootDir.getText(), 8080);\n\t\t\t}\n\t\t});\n\t\tbtnTestServer.setText(\"Test Server\");\n\t\t\n\t\tButton btnDeploy = new Button(ActionComposite, SWT.NONE);\n\t\tGridData gd_btnDeploy = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\n\t\tgd_btnDeploy.widthHint = 100;\n\t\tbtnDeploy.setLayoutData(gd_btnDeploy);\n\t\tbtnDeploy.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tmExecuter.deploy(getPythonLocation(), mGAELocation.getText(), mAppRootDir.getText());\n\t\t\t}\n\t\t});\n\t\tbtnDeploy.setText(\"Deploy\");\n\t\tActionComposite.setTabList(new Control[]{btnTestServer, btnDeploy});\n\t\tnorthComposite.setTabList(new Control[]{ActionComposite, pythonComposite});\n\t\t\n\t\tComposite centerComposite = new Composite(mainComposite, SWT.NONE);\n\t\tGridData gd_centerComposite = new GridData(SWT.FILL, SWT.FILL, false, false, 1, 1);\n\t\tgd_centerComposite.heightHint = 200;\n\t\tcenterComposite.setLayoutData(gd_centerComposite);\n\t\tcenterComposite.setLayout(new BorderLayout(0, 0));\n\t\t\n\t\tlog = new StyledText(centerComposite, SWT.BORDER | SWT.V_SCROLL);\n\t\tlog.setAlignment(SWT.CENTER);\n\t}", "public abstract void createContents(Panel mainPanel);", "protected void createContents(String value) {\n\t\tshlResult = new Shell(SWT.CLOSE | SWT.MIN | SWT.TITLE);\n\t\tshlResult.setSize(762, 532);\n\t\tshlResult.setText(title);\n\t\t\n\t\tComposite composite = new Composite(shlResult, SWT.NONE);\n\t\tcomposite.setBounds(0, 0, 746, 494);\n\t\t\n\t\ttext = new StyledText(composite, SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL | SWT.MULTI);\n\t\ttext.setBounds(0, 0, 750, 500);\n\t\ttext.setText(value);\n\t\ttext.setKeyBinding('A'| SWT.CONTROL, ST.SELECT_ALL);\n\t\ttext.setKeyBinding('C' | SWT.CONTROL, ST.COPY);\n\t\ttext.setKeyBinding('V' | SWT.CONTROL, ST.PASTE);\n\t\ttext.setKeyBinding('X' | SWT.CONTROL, ST.CUT);\n\n\t}", "protected void createContents() {\r\n\t\tshell = new Shell(SWT.APPLICATION_MODAL|SWT.CLOSE);\r\n\t\tshell.setSize(800, 600);\r\n\t\tshell.setText(\"租借/归还车辆\");\r\n\t\tshell.setBackgroundMode(SWT.INHERIT_DEFAULT);\r\n\r\n\t\t/**换肤功能已经实现*/\r\n\t\tString bgpath = ChangeSkin.getCurrSkin();\r\n\t\tInputStream bg = this.getClass().getResourceAsStream(bgpath);\r\n\t\t\r\n\t\tInputStream reimg = this.getClass().getResourceAsStream(\"/Img/icon1.png\");\r\n\t\tshell.setBackgroundImage(new Image(display,bg));\r\n\t\tshell.setImage(new Image(display, reimg));\r\n\t\t\r\n\t\t\r\n\t\tLabel label = new Label(shell, SWT.NONE);\r\n\t\tlabel.setBounds(52, 48, 168, 20);\r\n\t\tlabel.setText(\"\\u8BF7\\u60A8\\u8BA4\\u771F\\u586B\\u5199\\u79DF\\u8D41\\u4FE1\\u606F:\");\r\n\t\t\r\n\t\tLabel lblid = new Label(shell, SWT.NONE);\r\n\t\tlblid.setBounds(158, 180, 61, 20);\r\n\t\tlblid.setText(\"\\u8F66\\u8F86ID\");\r\n\t\t\r\n\t\tui_car_id = new Text(shell, SWT.BORDER);\r\n\t\tui_car_id.setBounds(225, 177, 129, 26);\r\n\t\t\r\n\t\tui_renter = new Text(shell, SWT.BORDER);\r\n\t\tui_renter.setBounds(225, 228, 129, 26);\r\n\t\t\r\n\t\tLabel label_1 = new Label(shell, SWT.NONE);\r\n\t\tlabel_1.setBounds(159, 231, 61, 20);\r\n\t\tlabel_1.setText(\"\\u79DF\\u8D41\\u4EBA\");\r\n\t\t\r\n\t\tDateTime ui_start = new DateTime(shell, SWT.BORDER);\r\n\t\tui_start.setBounds(225, 271, 129, 28);\r\n\t\t\r\n\t\tLabel label_2 = new Label(shell, SWT.NONE);\r\n\t\tlabel_2.setBounds(144, 271, 76, 20);\r\n\t\tlabel_2.setText(\"\\u5F00\\u59CB\\u65F6\\u95F4\");\r\n\t\t\r\n\t\tLabel label_3 = new Label(shell, SWT.NONE);\r\n\t\tlabel_3.setBounds(144, 326, 76, 20);\r\n\t\tlabel_3.setText(\"\\u7ED3\\u675F\\u65F6\\u95F4\");\r\n\t\t\r\n\t\tLabel label_4 = new Label(shell, SWT.NONE);\r\n\t\tlabel_4.setBounds(559, 97, 76, 20);\r\n\t\tlabel_4.setText(\"\\u5F53\\u524D\\u8D39\\u7528:\");\r\n\t\t\r\n\t\tLabel ui_count_price = new Label(shell, SWT.BORDER | SWT.CENTER);\r\n\t\tui_count_price.setFont(SWTResourceManager.getFont(\"Microsoft YaHei UI\", 16, SWT.NORMAL));\r\n\t\tui_count_price.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\r\n\t\tui_count_price.setBounds(539, 205, 156, 77);\r\n\t\tui_count_price.setText(\"0.00\");\r\n\t\t\r\n\t\tDateTime ui_end = new DateTime(shell, SWT.BORDER);\r\n\t\tui_end.setBounds(225, 318, 129, 28);\r\n\t\t\r\n\t\tButton button = new Button(shell, SWT.NONE);\r\n\t\tbutton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tRentService rentser = new RentService();\r\n\t\t\t\tdouble day_pri = rentser.rentPrice(ui_car_id.getText());\r\n\t\t\t\t/*当前仅能计算一个月以内的租用情况\r\n\t\t\t\t * @Time 10/09/15.03\r\n\t\t\t\t * \r\n\t\t\t\t * **/\r\n\t\t\t\t//不管当月几天,都按照30天计算\r\n\t\t\t\tint month = ui_end.getMonth()-ui_start.getMonth();\r\n\t\t\t\tint day = (ui_end.getDay() - ui_start.getDay()) +\r\n\t\t\t\t\t\tmonth * 30\r\n\t\t\t\t\t\t;\r\n\t\t\t\tif(day_pri > 0) {\r\n\t\t\t\t\tui_count_price.setText(String.valueOf(day*day_pri));\r\n\t\t\t\t}else {\r\n\t\t\t\t\tui_count_price.setText(\"数据非法\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tbutton.setBounds(122, 393, 141, 30);\r\n\t\tbutton.setText(\"\\u4F30\\u7B97\\u5F53\\u524D\\u79DF\\u8D41\\u4EF7\\u683C\");\r\n\t\t\r\n\t\tButton button_1 = new Button(shell, SWT.NONE);\r\n\t\tbutton_1.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tRentService rentService = new RentService();\r\n\t\t\t\tString sdate = ui_start.getDay()+\"-\"+ui_start.getMonth()+\"月-\"+ui_start.getYear();\r\n\t\t\t\tString edate = ui_end.getDay()+\"-\"+ui_end.getMonth()+\"月-\"+ui_end.getYear();\r\n\t\t\t\t/**这个地方可能有问题*/\r\n\t\t\t\tboolean rentCar = rentService.rentCar(ui_car_id.getText(),sdate , edate, ui_count_price.getText());\r\n\t\t\t\tif(rentCar) {\r\n\t\t\t\t\tui_count_price.setText(\"租借成功!\");\r\n\t\t\t\t\t/**租借成功,就该让信息表中的数据减1**/\r\n\t\t\t\t\tCarService cars = new CarService();\r\n\t\t\t\t\tcars.minusCar(ui_car_id.getText());\r\n\t\t\t\t}else {\r\n\t\t\t\t\tui_count_price.setText(\"租借失败!\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\tbutton_1.setBounds(292, 393, 98, 30);\r\n\t\tbutton_1.setText(\"\\u79DF\\u501F\");\r\n\t\t\r\n\t\r\n\r\n\t}", "private void createAndShowDialog(final String message, final String title) {\n final AlertDialog.Builder builder = new AlertDialog.Builder(getActivity ());\n\n builder.setMessage(message);\n builder.setTitle(title);\n builder.create().show();\n }", "public JComponent createContentPanel() {\n\t\tFormLayout layout = new FormLayout(\"p,3dlu,p,3dlu\", // cols //$NON-NLS-1$\n\t\t\t\t\"p,10dlu,p,10dlu\"); // rows //$NON-NLS-1$\n\n\t\t// Create a builder that assists in adding components to the container.\n\t\t// Wrap the panel with a standardized border.\n\t\tDefaultFormBuilder builder = new DefaultFormBuilder(layout);\n\t\tbuilder.setDefaultDialogBorder();\n\n\t\tCellConstraints cc = new CellConstraints();\n\t\tJEditorPane l=new JEditorPane(\"text/html\",Messages.getString(\"LicenseDialog.Email\"));\n\t\tl.setEditable(false);\n\t\tl.setOpaque(false);\n\t\tl.setFont(l.getFont().deriveFont(Font.PLAIN));\n\t\tJLabel emailLabel=new JLabel(Messages.getString(\"LicenseDialog.EmailLabel\")+\":\");\n\t\t//emailLabel.setFont(emailLabel.getFont().deriveFont(Font.PLAIN));\n\t\tbuilder.add(l,cc.xyw(1,1, 4));\n\t\tbuilder.nextLine(2);\n\t\tbuilder.append(emailLabel,email);\n\t\tbuilder.nextLine(2);\n\n\t\tJComponent result = builder.getPanel();\n\t\treturn result;\n\t}", "public JComponent createContentPanel() {\n\t\t// Separating the component initialization and configuration\n\t\t// from the layout code makes both parts easier to read.\n\t\tinitControls();\n\t\t//TODO set minimum size\n\t\tFormLayout layout = new FormLayout(\"default, 3dlu, default\", // cols\n\t\t\t\t\"p, 3dlu,p, 3dlu, p, 3dlu, p, 3dlu, p, 3dlu\"); // rows\n\t\tDefaultFormBuilder builder = new DefaultFormBuilder(layout);\n\t\tbuilder.setDefaultDialogBorder();\n\t\tCellConstraints cc = new CellConstraints();\n\t\t\n\t\tIterator l=labels.iterator();\n\t\tIterator c=valueComponents.iterator();\n\t\twhile (l.hasNext()){\n\t\t String name=(String)l.next();\n\t\t JComponent comp=(JComponent)c.next();\n\t\t builder.append(name,comp);\n\t\t builder.nextLine(2);\n\t\t}\n\t\treturn builder.getPanel();\n\t}", "protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setSize(450, 300);\r\n\t\tshell.setText(\"带进度条的表\");\r\n\t\tshell.setLayout(new FillLayout());\r\n\r\n\t\tTable table = new Table(shell, SWT.BORDER);\r\n\t\ttable.setHeaderVisible(true);\r\n\t\ttable.setLinesVisible(true);\r\n\r\n//\t\t两列\r\n\t\tfor (int i = 0; i < 2; i++) {\r\n\t\t\tnew TableColumn(table, SWT.NONE);\r\n\t\t}\r\n\t\ttable.getColumn(0).setText(\"Task\");\r\n\t\ttable.getColumn(1).setText(\"Progress\");\r\n\r\n//\t\t四十行\r\n\t\tfor (int i = 0; i < 40; i++) {\r\n\t\t\tTableItem item = new TableItem(table, SWT.NONE);\r\n\t\t\titem.setText(\"Task \" + i);\r\n//\t\t\t行数为5的倍数时添加进度条\r\n\t\t\tif (i % 5 == 0) {\r\n\t\t\t\tProgressBar bar = new ProgressBar(table, SWT.NONE);\r\n\t\t\t\tbar.setSelection(i); // 进度条显示的百分比\r\n\t\t\t\tTableEditor editor = new TableEditor(table);\r\n\t\t\t\teditor.grabHorizontal = editor.grabVertical = true; // 宽度高度同表格\r\n\t\t\t\teditor.setEditor(bar, item, 1); // 在表格上方显示进度条\r\n\t\t\t}\r\n\t\t}\r\n\t\ttable.getColumn(0).pack();\r\n\t\ttable.getColumn(1).setWidth(128);\r\n\r\n\t\tshell.pack();\r\n\t}", "protected Control createDialogArea(Composite parent) {\n\t\t//Composite composite = (Composite) super.createDialogArea(parent);\n\t\tComposite composite = new Composite(parent, SWT.NULL);\n\t\t\n\t\tGridLayout layout = new GridLayout(5, false);\n\t\tlayout.marginWidth = 15;\n\t\tlayout.marginHeight = 10;\n\t\tlayout.verticalSpacing = 8;\n\t\tcomposite.setLayout(layout);\n\t\t\n\t\tLabel l;\n\t\tGridData gridData;\n\t\t\n\t\tl = new Label(composite, SWT.NONE);\n\t\tl.setText(\"Fecha:\");\n\t\ttxtFecha = new Text(composite, SWT.BORDER);\n\t\tgridData = new GridData(60,15);\n\t\ttxtFecha.setLayoutData(gridData);\n\t\t//txtFecha.addKeyListener(this.crearKeyAdapter(txtFecha)); // calendar ya incluye esto\n\t\t\n\t\tbFecha = new Button(composite, SWT.NONE);\n\t\tgridData = new GridData(16,16);\n\t\t//gridData.horizontalSpan = 2;\n\t\tbFecha.setLayoutData(gridData);\n\t\timage = AbstractUIPlugin.imageDescriptorFromPlugin(pluginId, IImageKeys.CALENDARIO);\n\t\tbFecha.setImage(image.createImage());\n\t\tbFecha.addSelectionListener(this.crearCalendario(shell, txtFecha));\n\n\t\tfinal Label labelNoches = new Label(composite, SWT.NONE);\n\t\tlabelNoches.setText(\"Cantidad:\");\n\t\t\n\t\tComposite compQty = new Composite(composite, SWT.NONE);\n\t\tlayout = new GridLayout(3, false);\n\t\tlayout.marginWidth = 0;\n\t\tcompQty.setLayout(layout);\n\t\t\n\t\ttxtCantidad = new Text(compQty, SWT.BORDER);\n\t\tgridData = new GridData(25,15);\n\t\ttxtCantidad.setLayoutData(gridData);\n\t\t\n\t\tfinal Label labelEspacios = new Label(compQty, SWT.NONE);\n\t\tlabelEspacios.setText(\"PAX(s):\");\n\t\tlabelEspacios.setAlignment(SWT.RIGHT);\n\t\tgridData = new GridData(45, 15);\n\t\tgridData.horizontalIndent = 10;\n\t\tlabelEspacios.setLayoutData(gridData);\n\t\ttxtEspacios = new Text(compQty, SWT.BORDER);\n\t\ttxtEspacios.setLayoutData(new GridData(25,15));\n\t\t\n\t\tl = new Label(composite, SWT.NONE);\n\t\tl.setText(\"Tipo:\");\n\t\tcomboTipo = new Combo(composite, SWT.READ_ONLY);\n\t\tgridData = new GridData();\n\t\tgridData.widthHint = 120;\n\t\tgridData.horizontalSpan = 2;\n\t\tcomboTipo.setLayoutData(gridData);\n\t\tcdTipoProductos = cdController.getComboDataTipoProductos();\n\t\tcomboTipo.setItems(cdTipoProductos.getTexto());\n\t\tcomboTipo.addSelectionListener(new SelectionAdapter() {\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tint indice = comboTipo.getSelectionIndex();\n\t\t\t\tif (indice != -1) {\n\t\t\t\t\tLong seleccionado = cdTipoProductos.getKeyAsLongByIndex(indice);\n\t\t\t\t\tproductos.filtrarByTipo(seleccionado, true); // eliminamos cualquier filtro previo\n\t\t\t\t}\n\t\t\t\tcomboProducto.setItems(productos.getTexto());\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t\tl = new Label(composite, SWT.NONE);\n\t\tl.setText(\"Actividad:\");\n\t\tcomboProducto = new Combo(composite, SWT.READ_ONLY);\n\t\tgridData = new GridData();\n\t\tgridData.widthHint = 150;\n\t\tcomboProducto.setLayoutData(gridData);\n\t\t/*\n\t\tcomboProducto.addSelectionListener(new SelectionListener() {\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent e) {\n\t\t\t\tSystem.out.println(\"widgetDefSel: \" + comboProducto.getText());\n\t\t\t}\n\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tSystem.out.println(\"widgetSelected: \" + comboProducto.getText());\t\n\t\t\t}\n\t\t});\n\t\tcomboProducto.addModifyListener(new ModifyListener() {\n\t\t\tpublic void modifyText(ModifyEvent e) {\n\t\t\t\tSystem.out.println(\"modifyText: \" + comboProducto.getText());\t\n\t\t\t}\n\t\t});\n\t\t*/\n\t\t\n\t\tcomboProducto.addModifyListener(new ModifyListener() {\n\t\t\tpublic void modifyText(ModifyEvent e) {\n\t\t\t\tif (!comboProducto.getText().equals(\"\")) {\n\t\t\t\t\tLong idProducto = productos.getIdProductoByName(comboProducto.getText());\n\t\t\t\t\tProducto p = productos.getProductoByIdProducto(idProducto);\n\t\t\t\t\tString tipoReserva = p.getTipoReserva();\n\t\t\t\t\tisRecursoAEP = p.isHotelAEP();\n\t\t\t\t\tisModificable = p.isModificable();\n\t\t\t\t\tprecioMinimo = p.getPrecioMinimo();\n\t\t\t\t\tSystem.out.println(\"Minimo: \" + precioMinimo);\n\t\t\t\t\tif (tipoReserva.equals(\"Hotel\") || tipoReserva.equals(\"Hospedaje\")) {\n\t\t\t\t\t\tlabelNoches.setText(\"Noche(s):\");\n\t\t\t\t\t\tlabelNoches.pack();\n\t\t\t\t\t\tlabelNoches.redraw();\n\t\t\t\t\t\tlabelEspacios.setText(\"Room(s):\");\n\t\t\t\t\t\tlabelEspacios.pack();\n\t\t\t\t\t\tlabelEspacios.redraw();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tlabelNoches.setText(\"Cantidad:\");\n\t\t\t\t\t\tlabelNoches.pack();\n\t\t\t\t\t\tlabelNoches.redraw();\n\t\t\t\t\t\tlabelEspacios.setText(\"PAX(s):\");\n\t\t\t\t\t\tlabelEspacios.setAlignment(SWT.RIGHT);\n\t\t\t\t\t\tlabelEspacios.pack();\n\t\t\t\t\t\tlabelEspacios.redraw();\n\t\t\t\t\t}\n\t\t\t\t\tlistaTipoPrecio.setEnabled(true);\n\t\t\t\t\tlistaTipoPrecio.deselectAll();\n\t\t\t\t\ttxtPrecio.setText(\"\");\n\t\t\t\t\ttxtPrecio.setEditable(isModificable == null ? false : isModificable.booleanValue());\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\t/*\n\t\tcomboProducto.addSelectionListener(new SelectionAdapter() {\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tint idProducto = productos.getIdProductoByName(comboProducto.getText());\n\t\t\t\tProducto p = productos.getProductoByIdProducto(idProducto);\n\t\t\t\tString tipoReserva = p.getTipoReserva();\n\t\t\t\tif (tipoReserva.equals(\"Hotel\") || tipoReserva.equals(\"Hospedaje\")) {\n\t\t\t\t\tlabelNoches.setText(\"Noche(s):\");\n\t\t\t\t\tlabelNoches.pack();\n\t\t\t\t\tlabelNoches.redraw();\n\t\t\t\t\tlabelEspacios.setText(\"Room(s):\");\n\t\t\t\t\tlabelEspacios.pack();\n\t\t\t\t\tlabelEspacios.redraw();\n\t\t\t\t} else {\n\t\t\t\t\tlabelNoches.setText(\"Cantidad:\");\n\t\t\t\t\tlabelNoches.pack();\n\t\t\t\t\tlabelNoches.redraw();\n\t\t\t\t\tlabelEspacios.setText(\"PAXs:\");\n\t\t\t\t\tlabelEspacios.setAlignment(SWT.RIGHT);\n\t\t\t\t\tlabelEspacios.pack();\n\t\t\t\t\tlabelEspacios.redraw();\n\t\t\t\t}\n\t\t\t\tlistaTipoPrecio.setEnabled(true);\n\t\t\t\tlistaTipoPrecio.deselectAll();\n\t\t\t\ttxtPrecio.setText(\"\");\n\t\t\t}\n\t\t});\n\t\t*/\n\t\t\n\t\tl = new Label(composite, SWT.NONE);\n\t\tl.setText(\"Tipo de precio:\");\n\t\tgridData = new GridData();\n\t\tgridData.verticalAlignment = SWT.TOP;\n\t\tgridData.verticalIndent = 3;\n\t\tl.setLayoutData(gridData);\n\t\tgridData = new GridData();\n\t\tgridData.widthHint = 75;\n\t\tgridData.horizontalSpan = 2;\n\n\t\tlistaTipoPrecio = new List(composite, SWT.SINGLE | SWT.BORDER);\n\t\tlistaTipoPrecio.setLayoutData(gridData);\n\t\tlistaTipoPrecio.setItems(new String[] {\"Comisionable\", \"Operador\", \"Público\"});\n\t\tlistaTipoPrecio.addSelectionListener(new SelectionAdapter() {\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tobtenerPrecio(listaTipoPrecio.getSelection()[0]);\n\t\t\t}\n\t\t});\n\t\t\n\t\tl = new Label(composite, SWT.NONE);\n\t\tl.setText(\"Precio:\");\n\t\tgridData = new GridData();\n\t\tgridData.verticalAlignment = SWT.TOP;\n\t\tgridData.verticalIndent = 3;\n\t\tl.setLayoutData(gridData);\n\t\t\n\t\tComposite compPrecio = new Composite(composite, SWT.NONE);\n\t\tlayout = new GridLayout(3, false);\n\t\tlayout.marginWidth = 0;\n\t\tlayout.marginHeight = 0;\n\t\tcompPrecio.setLayout(layout);\n\t\tgridData = new GridData();\n\t\tgridData.verticalAlignment = SWT.TOP;\n\t\tcompPrecio.setLayoutData(gridData);\n\t\t\n\t\ttxtPrecio = new Text(compPrecio, SWT.BORDER);\n\t\ttxtPrecio.setEditable(false);\n\t\tgridData = new GridData(50,15);\n\t\tgridData.verticalAlignment = SWT.TOP;\n\t\ttxtPrecio.setLayoutData(gridData);\n\n\t\tButton bCuadrar = new Button(compPrecio, SWT.PUSH);\n\t\tgridData = new GridData(12,16);\n\t\tbCuadrar.setLayoutData(gridData);\n\t\timage = AbstractUIPlugin.imageDescriptorFromPlugin(pluginId, \"icons/cuadrar.gif\");\n\t\tbCuadrar.setImage(image.createImage());\n\t\tbCuadrar.addSelectionListener(new SelectionAdapter() {\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tSystem.out.println(\"Botón de cuadrar...\");\n\t\t\t\tcuadrarCotizacion();\n\t\t\t}\n\t\t});\t\n\t\t\n\t\tbVisible = new Button(compPrecio, SWT.CHECK);\n\t\tbVisible.setText(\"Visible\");\n\t\tgridData = new GridData();\n\t\tgridData.horizontalIndent = 15;\n\t\tbVisible.setLayoutData(gridData);\n\t\t\n\t\tl = new Label(composite, SWT.NONE);\n\t\tl.setText(\"Comentarios:\");\n\t\tgridData = new GridData();\n\t\tgridData.verticalAlignment = SWT.TOP;\n\t\tgridData.verticalIndent = 3;\n\t\tl.setLayoutData(gridData);\n\t\ttxtComentario = new Text(composite, SWT.BORDER | SWT.MULTI | SWT.V_SCROLL | SWT.WRAP);\n\t\tgridData = new GridData(GridData.FILL, GridData.CENTER, false, false);\n\t\tgridData.horizontalSpan = 4;\n\t\tgridData.heightHint = 40;\n\t\ttxtComentario.setLayoutData(gridData);\n\t\t\n\t\tl = new Label(composite, SWT.NONE);\n\t\t\n\t\tl = new Label(composite, SWT.NONE);\n\t\tl.setText(\"Un \\\"*\\\" al inicio del comentario mostrará el mismo en el PDF de la cotización.\");\n\t\tgridData = new GridData();\n\t\tgridData.horizontalSpan = 4;\n\t\tl.setLayoutData(gridData);\n\t\t\n\t\tl = new Label(composite, SWT.NONE);\n\t\t\n\t\tl = new Label(composite, SWT.SEPARATOR | SWT.HORIZONTAL);\n\t gridData = new GridData(GridData.FILL, GridData.CENTER, false, false);\n\t\tgridData.heightHint = 10;\n\t\tgridData.horizontalSpan = 5;\n\t\tl.setLayoutData(gridData);\n\n\t\tllenarCampos();\n\t\t\n\t\treturn composite;\n\t}", "public void addContent() {\n ScrollPane mySP = new ScrollPane();\n myContent = new SaveForm(myManager);\n mySP.setContent(myContent);\n mySP.setPrefSize(size, size);\n myRoot.getChildren().add(mySP);\n }", "@Override\r\n\tprotected Control createDialogArea(Composite parent) {\n\t\tComposite container = (Composite) super.createDialogArea(parent);\r\n\t\tGridData dGrid = new GridData();\r\n\t\tdGrid.horizontalSpan = 180;\r\n\t\tdGrid.horizontalAlignment = GridData.FILL;\r\n\t\tcontainer.setLayoutData(dGrid);\r\n\t\t\r\n\t\tnameLabel = new Label(container,SWT.LEFT);\r\n\t\tnameLabel = new Label(container,SWT.LEFT);\r\n\t\tString labelText = \"Most of the features for SimplifIDE require knowledge of the project structure.\\r\\n\";\r\n\t\tlabelText += \"Currently you are editting a file outside of the project where many features will not work properly.\\r\\n\";\r\n\t\tlabelText += \"Instructions for setting up your project can be found at http://simplifide.com/html2/project_structure/simplifide_structure.htm, or\\r\\n\";\r\n\t\tlabelText += \"for a simple project only containing rtl files at http://simplifide.com/html2/getting_started/simple_suite.htm.\\r\\n\";\r\n\t\tnameLabel.setText(labelText);\r\n\t\t\r\n\t\tthis.ONESHOT = true;\r\n\t\t\r\n\t\treturn container;\r\n\t}", "private void createContents() {\r\n\t\tshell = new Shell(getParent(), SWT.RESIZE | SWT.TITLE);\r\n\t\tshell.setSize(690, 436);\r\n\t\t\r\n\t\tDimension scrSize = Toolkit.getDefaultToolkit().getScreenSize();\r\n\t\tint w = 690;\r\n\t\tint h = 436;\r\n\t\tshell.setBounds((int)(scrSize.width-w)/2,(int)(scrSize.height-h)/2,w, h);\r\n\t\tshell.setText(getText());\r\n\r\n\t\t\r\n\t\tloadData();\r\n\t\t\r\n\t\tviewer = new TableViewer(shell,SWT.FULL_SELECTION |SWT.MULTI |SWT.BORDER);\r\n\t\t\r\n\t\tfinal Table table = viewer.getTable();\r\n\t\ttable.setBounds(23, 53, 638, 285);\r\n\t\ttable.setLinesVisible(true);\r\n\t\ttable.setHeaderVisible(true);\r\n\t\ttable.setRedraw(true);\r\n\t\t\r\n\t\tTableColumn tbCol_Time = new TableColumn(table, SWT.NONE);\r\n\t\ttbCol_Time.setWidth(69);\r\n\t\ttbCol_Time.setText(\"序号\");\t\t\r\n\t\t\r\n\t\tTableColumn tbCol_Path = new TableColumn(table, SWT.NONE);\r\n\t\ttbCol_Path.setWidth(127);\r\n\t\ttbCol_Path.setText(\"进程\");\t\r\n\t\t\r\n\t\tTableColumn tbCol_Info = new TableColumn(table, SWT.NONE);\r\n\t\ttbCol_Info.setWidth(123);\r\n\t\ttbCol_Info.setText(\"Hash值\");\r\n\t\t\r\n\t\tTableColumn tbCol_Type = new TableColumn(table, SWT.NONE);\r\n\t\ttbCol_Type.setWidth(92);\r\n\t\ttbCol_Type.setText(\"类型\");\r\n\t\t\r\n\t\tTableColumn tbCol_Hash = new TableColumn(table, SWT.NONE);\r\n\t\ttbCol_Hash.setWidth(196);\r\n\t\ttbCol_Hash.setText(\"描述信息\");\r\n\t\t\r\n\t\tviewer.setContentProvider(new TableViewerContentProvider());\r\n\t\tviewer.setLabelProvider(new TableViewerLabelProvider());\r\n\t\tviewer.setInput(white_list);\t\t\t\t//===== 设置数据源 ======\r\n\t\t\r\n\t\trefresh();\r\n\t\t\r\n\t\tlbl_ItemCount = new Label(shell, SWT.NONE);\r\n\t\tlbl_ItemCount.setBounds(43, 355, 194, 21);\r\n\t\tlbl_ItemCount.setText(\"未通过验证进程: \"+ table.getItemCount() +\"个\");\r\n\t\t\r\n\t\tButton button = new Button(shell, SWT.NONE);\r\n\t\tbutton.setBounds(309, 344, 88, 25);\r\n\t\tbutton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tcount--;\r\n\t\t\t\tshell.close();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbutton.setText(\"确定\");\r\n\t\t\r\n\t\tLabel label = new Label(shell, SWT.NONE);\r\n\t\tlabel.setFont(SWTResourceManager.getFont(\"楷体_GB2312\", 16, SWT.BOLD));\r\n\t\tlabel.setBounds(301, 10, 118, 21);\r\n\t\tlabel.setText(\"详细信息\");\r\n\t\t\r\n\t\tLabel label_1 = new Label(shell, SWT.SEPARATOR|SWT.HORIZONTAL);\r\n\t\tlabel_1.setBounds(10, 45, 664, 2);\r\n\r\n\t\t\r\n\t\t//添加窗体鼠标事件\r\n\t\tshell.addMouseListener(new MouseListener(){\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseDoubleClick(MouseEvent e) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseDown(MouseEvent e) {\r\n\t\t\t\t// TODO Auto-generated method stub\t\t\t\t\r\n\t\t\t\tx=e.x;\r\n\t\t\t\ty=e.y;\t\t\t\t\r\n\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseUp(MouseEvent e) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tx=y=-1;\r\n\t\t\t}\r\n\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t});\r\n\t\t\r\n\t\t//鼠标移动事件\r\n\t\tshell.addMouseMoveListener(new MouseMoveListener(){\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseMove(MouseEvent e) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tif(x>0)\r\n\t\t\t\t{\r\n\t\t\t\t\tshell.setLocation(e.x-x + shell.getLocation().x,\r\n\t\t\t\t\t\te.y-y + shell.getLocation().y);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t});\r\n\t}", "@Override\n protected Control createDialogArea(Composite parent) {\n Composite container = (Composite) super.createDialogArea(parent);\n container.setLayout(new FillLayout(SWT.HORIZONTAL));\n\n final SashForm hsashForm = new SashForm(container, SWT.HORIZONTAL);\n hsashForm.SASH_WIDTH = 1;\n\n hsashForm.setBackground(container.getDisplay().getSystemColor(SWT.COLOR_GREEN));\n\n // Create the buttons and their event handlers\n tree = new Tree(hsashForm, SWT.V_SCROLL);\n tree.setLinesVisible(true);\n tree.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent e) {\n AddDetailedInfo2Tables();\n }\n });\n tree.setLayout(new FillLayout());\n\n final Composite tabledock = new Composite(hsashForm, SWT.PUSH);\n tabledock.setLayout(new FillLayout(SWT.VERTICAL));\n\n final SashForm vsashForm = new SashForm(tabledock, SWT.VERTICAL);\n vsashForm.SASH_WIDTH = 1;\n vsashForm.setBackground(container.getDisplay().getSystemColor(SWT.COLOR_GREEN));\n\n ruletable = new Table(vsashForm, SWT.BORDER | SWT.FULL_SELECTION);\n ruletable.setHeaderVisible(true);\n ruletable.setLinesVisible(true);\n\n TableColumn col_entitysubject = new TableColumn(ruletable, SWT.CENTER);\n col_entitysubject.setWidth(87);\n col_entitysubject.setText(Messages.BaselineShowDialog_1);\n\n TableColumn col_relation = new TableColumn(ruletable, SWT.CENTER);\n col_relation.setWidth(88);\n col_relation.setText(Messages.BaselineShowDialog_2);\n\n TableColumn col_quantifier = new TableColumn(ruletable, SWT.CENTER);\n col_quantifier.setWidth(79);\n col_quantifier.setText(Messages.BaselineShowDialog_3);\n\n TableColumn col_number = new TableColumn(ruletable, SWT.CENTER);\n col_number.setWidth(80);\n col_number.setText(Messages.BaselineShowDialog_4);\n\n TableColumn col_entityguest = new TableColumn(ruletable, SWT.CENTER);\n col_entityguest.setWidth(88);\n col_entityguest.setText(Messages.BaselineShowDialog_5);\n\n requirementtable = new Table(vsashForm, SWT.BORDER | SWT.FULL_SELECTION);\n requirementtable.setHeaderVisible(true);\n requirementtable.setLinesVisible(true);\n\n TableColumn tblclmnFormaldesc = new TableColumn(requirementtable, SWT.CENTER);\n tblclmnFormaldesc.setWidth(234);\n tblclmnFormaldesc.setText(Messages.BaselineShowDialog_6);\n\n TableColumn tblclmnRelatedentity = new TableColumn(requirementtable, SWT.CENTER);\n tblclmnRelatedentity.setWidth(195);\n tblclmnRelatedentity.setText(Messages.BaselineShowDialog_7);\n\n\n hsashForm.setWeights(new int[] {2, 2});\n\n if (AddBaseline2Tree(tree, filepath)) {\n if (tree.getItemCount() > 0) {\n tree.getItem(0).setExpanded(true);\n }\n\n tree.pack();\n }\n\n return container;\n }", "private void createContents() {\n\t\tshell = new Shell(getParent(), getStyle());\n\t\tshell.setSize(720, 480);\n\t\tshell.setText(\"1FN Normalization\");\n\t\tshell.setLayout(new GridLayout(2, false));\n\t\tcomposite = new Composite(shell, SWT.NONE);\n\t\tcomposite.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 2, 1));\n\t\tcomposite.setLayout(new GridLayout(5, false));\n\t\tlblSeparators = new Label(composite, SWT.NONE);\n\t\tlblSeparators.setText(\"Separators:\");\n\t\tcomposite_1 = new Composite(composite, SWT.NONE);\n\t\tcomposite_1.setLayout(new GridLayout(5, false));\n\t\tcomposite_1.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, false, false, 2, 1));\n\t\tchk1 = new Button(composite_1, SWT.CHECK);\n\t\tchk1.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tdochk1widgetSelected(e);\n\t\t\t}\n\t\t});\n\t\tchk1.setSelection(true);\n\t\tchk1.setText(\";\");\n\t\tchk2 = new Button(composite_1, SWT.CHECK);\n\t\tchk2.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tdochk2widgetSelected(e);\n\t\t\t}\n\t\t});\n\t\tchk2.setSelection(true);\n\t\tchk2.setText(\"cr\");\n\t\tchk3 = new Button(composite_1, SWT.CHECK);\n\t\tchk3.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tdochk3widgetSelected(e);\n\t\t\t}\n\t\t});\n\t\tchk3.setText(\",\");\n\t\tchk4 = new Button(composite_1, SWT.CHECK);\n\t\tchk4.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tdochk4widgetSelected(e);\n\t\t\t}\n\t\t});\n\t\tchk4.setText(\"space\");\n\t\tchk5 = new Button(composite_1, SWT.CHECK);\n\t\tchk5.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tdochk5widgetSelected(e);\n\t\t\t}\n\t\t});\n\t\tchk5.setText(\".\");\n\t\tnew Label(composite, SWT.NONE);\n\t\tnew Label(composite, SWT.NONE);\n\t\tlblColumn = new Label(composite, SWT.NONE);\n\t\tlblColumn.setLayoutData(new GridData(SWT.RIGHT, SWT.TOP, false, false, 1, 1));\n\t\tlblColumn.setText(\"Column:\");\n\t\tlstColumn = new List(composite, SWT.BORDER | SWT.V_SCROLL | SWT.MULTI);\n\t\tlstColumn.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tdolstColumnwidgetSelected(e);\n\t\t\t}\n\t\t});\n\t\tGridData gd_lstColumn = new GridData(SWT.LEFT, SWT.FILL, false, true, 4, 1);\n\t\tgd_lstColumn.widthHint = 150;\n\t\tgd_lstColumn.heightHint = 80;\n\t\tlstColumn.setLayoutData(gd_lstColumn);\n\t\tlblMethod = new Label(composite, SWT.NONE);\n\t\tlblMethod.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));\n\t\tlblMethod.setText(\"Method:\");\n\t\tcheckSingle = new Button(composite, SWT.RADIO);\n\t\tcheckSingle.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tdocheckSinglewidgetSelected(e);\n\t\t\t}\n\t\t});\n\t\tcheckSingle.setText(\"Single Table (Recommended)\");\n\t\tchkMulti = new Button(composite, SWT.RADIO);\n\t\tchkMulti.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tdochkMultiwidgetSelected(e);\n\t\t\t}\n\t\t});\n\t\tchkMulti.setText(\"Multi table\");\n\t\tlblNewTableName = new Label(composite, SWT.NONE);\n\t\tlblNewTableName.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));\n\t\tlblNewTableName.setText(\"New table name: \");\n\t\ttxtNewTableName = new Text(composite, SWT.BORDER);\n\t\ttxtNewTableName.addModifyListener(new ModifyListener() {\n\t\t\tpublic void modifyText(ModifyEvent arg0) {\n\t\t\t\tdotxtNewTableNamemodifyText(arg0);\n\t\t\t}\n\t\t});\n\t\ttxtNewTableName.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\t\tlblActual = new Label(shell, SWT.NONE);\n\t\tlblActual.setText(\"Actual\");\n\t\tlblRefatored = new Label(shell, SWT.NONE);\n\t\tlblRefatored.setText(\"Refator\");\n\t\tmodelEditor1 = new CompModelEditorController(shell, SWT.BORDER, SWT.V_SCROLL | SWT.H_SCROLL);\n\t\tGridData gd_modelEditor1 = new GridData(SWT.LEFT, SWT.FILL, false, false, 1, 1);\n\t\tgd_modelEditor1.widthHint = 250;\n\t\tmodelEditor1.setLayoutData(gd_modelEditor1);\n\t\tmodelEditor2 = new CompModelEditorController(shell, SWT.BORDER, SWT.V_SCROLL | SWT.H_SCROLL);\n\t\tmodelEditor2.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));\n\t\tbtnConfirm = new Button(shell, SWT.NONE);\n\t\tbtnConfirm.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tdobtnConfirmwidgetSelected(e);\n\t\t\t}\n\t\t});\n\t\tbtnConfirm.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 2, 1));\n\t\tbtnConfirm.setText(\"Confirm\");\n\t\ttxtNewTableName.setEnabled(false);\n\t}", "private void createPageContent() \n\t{\n\t\tGridLayout gl = new GridLayout(4, true);\n gl.verticalSpacing = 10;\n\t\t\n\t\tGridData gd;\n\t\tfinal Label wiz1Label = new Label(shell, SWT.NONE);\n\t\twiz1Label.setText(\"Enter Fields\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 4;\n\t\twiz1Label.setLayoutData(gd);\n\t\twiz1Label.pack();\n\t\tText nameInput = new Text(shell, SWT.BORDER);\n\t\tnameInput.setMessage(\"Name\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 2;\n\t\tnameInput.setLayoutData(gd);\n\t\tnameInput.pack();\n\t\t//Component\n\t\tText componentInput = new Text(shell, SWT.BORDER);\n\t\tcomponentInput.setMessage(\"Component\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 2;\n\t\tcomponentInput.setLayoutData(gd);\n\t\tcomponentInput.pack();\n\t\t//school\n\t\tText schoolInput = new Text(shell, SWT.BORDER);\n\t\tschoolInput.setMessage(\"School\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 2;\n\t\tschoolInput.setLayoutData(gd);\n\t\tschoolInput.pack();\n\t\t//range\n\t\tText rangeInput = new Text(shell, SWT.BORDER);\n\t\trangeInput.setMessage(\"Range\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 2;\n\t\trangeInput.setLayoutData(gd);\n\t\trangeInput.pack();\n\t\t//Effect\n\t\tText effectInput = new Text(shell, SWT.BORDER);\n\t\teffectInput.setMessage(\"Effect\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 4;\n\t\teffectInput.setLayoutData(gd);\n\t\teffectInput.pack();\n\t\t//castingtime\n\t\tText castimeInput = new Text(shell, SWT.BORDER);\n\t\tcastimeInput.setMessage(\"Casting Time\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 2;\n\t\tcastimeInput.setLayoutData(gd);\n\t\tcastimeInput.pack();\n\t\t//materialcomponent\n\t\tText materialInput = new Text(shell, SWT.BORDER);\n\t\tmaterialInput.setMessage(\"Material Component\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 2;\n\t\tmaterialInput.setLayoutData(gd);\n\t\tmaterialInput.pack();\n\t\t//Savingthrow\n\t\tText savthrowInput = new Text(shell, SWT.BORDER);\n\t\tsavthrowInput.setMessage(\"Saving Throw\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 2;\n\t\tsavthrowInput.setLayoutData(gd);\n\t\tsavthrowInput.pack();\n\t\t//Focus\n\t\tText focusInput = new Text(shell, SWT.BORDER);\n\t\tfocusInput.setMessage(\"Focus\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 2;\n\t\tfocusInput.setLayoutData(gd);\n\t\tfocusInput.pack();\n\t\t//Duration\n\t\tText durationInput = new Text(shell, SWT.BORDER);\n\t\tdurationInput.setMessage(\"Duration\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 2;\n\t\tdurationInput.setLayoutData(gd);\n\t\tdurationInput.pack();\n\t\t//spellresistance\n\t\tLabel resistanceLabel = new Label(shell, SWT.NONE);\n\t\tresistanceLabel.setText(\"Can Spell Be Resisted\");\n\t\tgd = new GridData(GridData.CENTER, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 1;\n\t\tresistanceLabel.setLayoutData(gd);\n\t\tresistanceLabel.pack();\n\t\tButton resistanceInput = new Button(shell, SWT.CHECK);\n\t\tgd = new GridData(GridData.CENTER, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 1;\n\t\tresistanceInput.setLayoutData(gd);\n\t\tresistanceInput.pack();\n\t\t//level\n\t\tText levelInput = new Text(shell, SWT.BORDER);\n\t\tlevelInput.setMessage(\"Level\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, false, false);\n\t\tlevelInput.setLayoutData(gd);\n\t\tlevelInput.pack();\n\t\t//Damage\n\t\tText damageInput = new Text(shell, SWT.BORDER);\n\t\tdamageInput.setMessage(\"Damage\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 1;\n\t\tdamageInput.setLayoutData(gd);\n\t\tdamageInput.pack();\n\t\t//DamageAlternative\n\t\tText damagealterInput = new Text(shell, SWT.BORDER);\n\t\tdamagealterInput.setMessage(\"Damage Alternative\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 2;\n\t\tdamagealterInput.setLayoutData(gd);\n\t\tdamagealterInput.pack();\n\t\n\t\t//description\n\t\t\n\t\tText descriptionInput = new Text(shell, SWT.WRAP | SWT.V_SCROLL);\n\t\tdescriptionInput.setText(\"Description (Optional)\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 4;\n\t\tgd.verticalSpan = 15;\n\t\tdescriptionInput.setLayoutData(gd);\n\t\tdescriptionInput.pack();\n\t\tLabel blank = new Label(shell, SWT.NONE);\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, true);\n\t\tgd.horizontalSpan = 4;\n\t\tblank.setLayoutData(gd);\n\t\tblank.pack();\n\t\tButton save = new Button(shell, SWT.PUSH);\n\n\t\tsave.setText(\"Save\");\n\t\tsave.addListener(SWT.Selection, new Listener()\n\t\t{\n\t\t\tpublic void handleEvent(Event event)\n\t\t\t{\n\t\t\t\tBoolean checkfault = false;\n\t\t\t\tLinkedHashMap<String, String> a = new LinkedHashMap<String, String>();\n\t\t\t\tif(nameInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tcheckfault = true;\n\t\t\t\t\tnameInput.setBackground(display.getSystemColor(SWT.COLOR_RED));\n\t\t\t\t}\n\t\t\t\tif(componentInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tcheckfault = true;\n\t\t\t\t\tcomponentInput.setBackground(display.getSystemColor(SWT.COLOR_RED));\n\t\t\t\t}\n\t\t\t\tif(schoolInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tcheckfault = true;\n\t\t\t\t\tschoolInput.setBackground(display.getSystemColor(SWT.COLOR_RED));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(castimeInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tcheckfault = true;\n\t\t\t\t\tcastimeInput.setBackground(display.getSystemColor(SWT.COLOR_RED));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(levelInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tcheckfault = true;\n\t\t\t\t\tlevelInput.setBackground(display.getSystemColor(SWT.COLOR_RED));\n\t\t\t\t}\n\t\t\t\tif(checkfault)\n\t\t\t\t{\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\ta.put(\"NAME\", nameInput.getText());\n\t\t\t\ta.put(\"COMPONENTS\", componentInput.getText());\n\t\t\t\ta.put(\"SCHOOL\", schoolInput.getText());\n\t\t\t\ta.put(\"CASTINGTIME\", castimeInput.getText());\n\t\t\t\ta.put(\"LEVEL\", levelInput.getText());\n\t\t\t\tif(resistanceInput.getSelection())\n\t\t\t\t{\n\t\t\t\t\ta.put(\"SPELLRESISTANCE\", \"YES\");\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\ta.put(\"SPELLRESISTANCE\", \"NO\");\n\t\t\t\t}\n\t\t\t\tif(!materialInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"MATERIALCOMPONENT\", materialInput.getText());\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif(!savthrowInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"SAVINGTHROW\", savthrowInput.getText());\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif(!focusInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"FOCUS\", focusInput.getText());\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif(!durationInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"DURATION\", durationInput.getText());\n\t\t\t\t}\n\t\t\t\tif(!damageInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"DAMAGE\", damageInput.getText());\n\t\t\t\t}\n\t\t\t\tif(!damagealterInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"DAMAGEALTERNATE\", damagealterInput.getText());\n\t\t\t\t}\n\t\t\t\tif(!rangeInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"RANGE\", rangeInput.getText());\n\t\t\t\t}\n\t\t\t\tif(!effectInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"EFFECT\", effectInput.getText());\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\ta.put(\"DESCRIPTION\", descriptionInput.getText());\n\t\t\t\tnewspell = new SpellEntity(a);\n\t\t\t\tMain.gameState.abilities.put(newspell.getName(), newspell);\n\t\t\t\tMain.gameState.customContent.put(newspell.getName(), newspell);\n\t\t\t\tshell.close();\n\t\t\t}\n\t\t}\n\t\t);\n\t\tgd = new GridData(GridData.FILL, GridData.CENTER, false, false);\n\t\tgd.horizontalSpan = 1;\n\t\tsave.setLayoutData(gd);\n\t\tsave.pack();\n\t\tshell.setLayout(gl);\n\t\tshell.layout();\n\t\tshell.pack();\n//\t\t//wizard\n//\t\t\t\tfinal Composite wizPanel = new Composite(shell, SWT.BORDER);\n//\t\t\t\twizPanel.setBounds(0,0,WIDTH, HEIGHT);\n//\t\t\t\tfinal StackLayout wizLayout = new StackLayout();\n//\t\t\t\twizPanel.setLayout(wizLayout);\n//\t\t\t\t\n//\t\t\t\t//Page1 -- Name\n//\t\t\t\tfinal Composite wizpage1 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\twizpage1.setBounds(0,0,WIDTH,HEIGHT);\n//\t\t\t\t\n//\t\t\t\tfinal Label wiz1Label = new Label(wizpage1, SWT.NONE);\n//\t\t\t\twiz1Label.setText(\"Enter Name (required)\");\n//\t\t\t\twiz1Label.pack();\n//\t\t\t\tfinal Text wizpage1text = new Text(wizpage1, SWT.BORDER);\n//\t\t\t\twizpage1text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage1text.setText(\"FireBall\");\n//\t\t\t\tButton next1 = createNextButton(wizpage1);//TODO cancel and previous button\n//\t\t\t\tcreateBackButton(wizpage1, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage1, wizPanel, wizLayout);\n//\t\t\t\tnext1.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage1text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspellname = wizpage1text.getText();\n//\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tSystem.out.println(\"PANIC: ITEM WIZARD PAGE 1 OUT\");\n//\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz1Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t}\n//\t\t\t\t);\n//\t\t\t\t\n//\t\t\t\twizPages.add(wizpage1);\n//\t\t\t\t//Page2 -- component\n//\t\t\t\tfinal Composite wizpage2 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz2Label = new Label(wizpage2, SWT.NONE);\n//\t\t\t\twiz2Label.setText(\"Enter Component: (required)\");\n//\t\t\t\twiz2Label.pack();\n//\t\t\t\tfinal Text wizpage2text = new Text(wizpage2, SWT.BORDER);\n//\t\t\t\twizpage2text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage2text.setText(\"Fire\");\n//\t\t\t\tButton next2 = createNextButton(wizpage2);\n//\t\t\t\tcreateBackButton(wizpage2, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage2, wizPanel, wizLayout);\n//\t\t\t\tnext2.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage2text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tspellcomp = wizpage2text.getText();\n//\t\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz2Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\n//\n//\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage2);\n//\t\t\t\t//Page3 -- School\n//\t\t\t\tfinal Composite wizpage3 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz3Label = new Label(wizpage3, SWT.NONE);\n//\t\t\t\twiz3Label.setText(\"Enter School: (required)\");\n//\t\t\t\twiz3Label.pack();\n//\t\t\t\tfinal Text wizpage3text = new Text(wizpage3, SWT.BORDER);\n//\t\t\t\twizpage3text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage3text.setText(\"Descruction\");\n//\t\t\t\tButton next3 = createNextButton(wizpage3);\n//\t\t\t\tcreateBackButton(wizpage3, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage3, wizPanel, wizLayout);\n//\t\t\t\tnext3.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage3text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspellschool = wizpage3text.getText();\n//\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz3Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage3);\n//\t\t\t\t//Page4 -- Range\n//\t\t\t\tfinal Composite wizpage4 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz4Label = new Label(wizpage4, SWT.NONE);\n//\t\t\t\twiz4Label.setText(\"Enter Range: (required)\");\n//\t\t\t\twiz4Label.pack();\n//\t\t\t\tfinal Text wizpage4text = new Text(wizpage4, SWT.BORDER);\n//\t\t\t\twizpage4text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage4text.setText(\"50 feet\");\n//\t\t\t\tButton next4 = createNextButton(wizpage4);\n//\t\t\t\tcreateBackButton(wizpage4, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage4, wizPanel, wizLayout);\n//\t\t\t\tnext4.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage4text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspellrange = wizpage4text.getText();\n//\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz4Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage4);\n//\t\t\t\t//Page5 -- effect\n//\t\t\t\tfinal Composite wizpage5 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz5Label = new Label(wizpage5, SWT.NONE);\n//\t\t\t\twiz5Label.setText(\"Enter Effect: (required)\");\n//\t\t\t\twiz5Label.pack();\n//\t\t\t\tfinal Text wizpage5text = new Text(wizpage5, SWT.BORDER);\n//\t\t\t\twizpage5text.setBounds(50, 50, 250, 150);\n//\t\t\t\twizpage5text.setText(\"No effect\");\n//\t\t\t\tButton next5 = createNextButton(wizpage5);\n//\t\t\t\tcreateBackButton(wizpage5, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage5, wizPanel, wizLayout);\n//\t\t\t\tnext5.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage5text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspelleffect = wizpage5text.getText();\n//\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz5Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage5);\n//\t\t\t\t//Page6 -- casting time\n//\t\t\t\tfinal Composite wizpage6 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz6Label = new Label(wizpage6, SWT.NONE);\n//\t\t\t\twiz6Label.setText(\"Enter Casting Time: (required)\");\n//\t\t\t\twiz6Label.pack();\n//\t\t\t\tfinal Text wizpage6text = new Text(wizpage6, SWT.BORDER);\n//\t\t\t\twizpage6text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage6text.setText(\"1 turn\");\n//\t\t\t\tButton next6 = createNextButton(wizpage6);\n//\t\t\t\tcreateBackButton(wizpage6, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage6, wizPanel, wizLayout);\n//\t\t\t\tnext6.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage5text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspellcastime = wizpage6text.getText();\n//\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz6Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage6);\n//\t\t\t\t//Page7 -- Material Component\n//\t\t\t\tfinal Composite wizpage7 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz7Label = new Label(wizpage7, SWT.NONE);\n//\t\t\t\twiz7Label.setText(\"Enter Material Component: (required)\");\n//\t\t\t\twiz7Label.pack();\n//\t\t\t\tfinal Text wizpage7text = new Text(wizpage7, SWT.BORDER);\n//\t\t\t\twizpage7text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage7text.setText(\"None\");\n//\t\t\t\tButton next7 = createNextButton(wizpage7);\n//\t\t\t\tcreateBackButton(wizpage7, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage7, wizPanel, wizLayout);\n//\t\t\t\tnext7.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage7text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tspellmaterial = wizpage7text.getText();\n//\t\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz7Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\n//\n//\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage7);\n//\t\t\t\t//Page8 -- saving throw\n//\t\t\t\tfinal Composite wizpage8 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz8Label = new Label(wizpage8, SWT.NONE);\n//\t\t\t\twiz8Label.setText(\"Enter Saving Throw: (required)\");\n//\t\t\t\twiz8Label.pack();\n//\t\t\t\tfinal Text wizpage8text = new Text(wizpage8, SWT.BORDER);\n//\t\t\t\twizpage8text.setBounds(50, 50, 200, 100);\n//\t\t\t\twizpage8text.setText(\"Will negate XX\");\n//\t\t\t\tButton next8 = createNextButton(wizpage8);\n//\t\t\t\tcreateBackButton(wizpage8, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage8, wizPanel, wizLayout);\n//\t\t\t\tnext8.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage8text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tspellsaving = wizpage8text.getText();\n//\t\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz8Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\n//\n//\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage8);\n//\t\t\t\t//Page9 -- Focus\n//\t\t\t\tfinal Composite wizpage9 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz9Label = new Label(wizpage9, SWT.NONE);\n//\t\t\t\twiz9Label.setText(\"Enter Focus: (required)\");\n//\t\t\t\twiz9Label.pack();\n//\t\t\t\tfinal Text wizpage9text = new Text(wizpage9, SWT.BORDER);\n//\t\t\t\twizpage9text.setBounds(50, 50, 200, 100);\n//\t\t\t\twizpage9text.setText(\"A dart\");\n//\t\t\t\tButton next9 = createNextButton(wizpage9);\n//\t\t\t\tcreateBackButton(wizpage9, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage9, wizPanel, wizLayout);\n//\t\t\t\tnext9.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage9text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tspellfocus = wizpage9text.getText();\n//\t\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz9Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\n//\n//\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage9);\n//\t\t\t\t//Page10 -- Duration\n//\t\t\t\tfinal Composite wizpage10 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz10Label = new Label(wizpage10, SWT.NONE);\n//\t\t\t\twiz10Label.setText(\"Enter Duration: (required)\");\n//\t\t\t\twiz10Label.pack();\n//\t\t\t\tfinal Text wizpage10text = new Text(wizpage10, SWT.BORDER);\n//\t\t\t\twizpage10text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage10text.setText(\"5 Turns\");\n//\t\t\t\tButton next10 = createNextButton(wizpage10);\n//\t\t\t\tcreateBackButton(wizpage10, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage10, wizPanel, wizLayout);\n//\t\t\t\tnext10.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage10text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tspellduration = wizpage10text.getText();\n//\t\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz10Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\n//\n//\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage10);\n//\t\t\t\t//Page11 -- Level\n//\t\t\t\tfinal Composite wizpage11 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz11Label = new Label(wizpage11, SWT.NONE);\n//\t\t\t\twiz11Label.setText(\"Enter Level (required)\");\n//\t\t\t\twiz11Label.pack();\n//\t\t\t\tfinal Text wizpage11text = new Text(wizpage11, SWT.BORDER);\n//\t\t\t\twizpage11text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage11text.setText(\"1\");\n//\t\t\t\tButton next11 = createNextButton(wizpage11);\n//\t\t\t\tcreateBackButton(wizpage11, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage11, wizPanel, wizLayout);\n//\t\t\t\tnext11.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage11text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\ttry\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tif(Integer.parseInt(wizpage11text.getText()) >= 0)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspelllevel = String.valueOf(Integer.parseInt(wizpage11text.getText()));\n//\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twiz11Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\tcatch(NumberFormatException a)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twiz11Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz11Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage11);\n//\t\t\t\t//Page12 -- resistance\n//\t\t\t\tfinal Composite wizpage12 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz12Label = new Label(wizpage12, SWT.NONE);\n//\t\t\t\twiz12Label.setText(\"Enter Spell resistance: (Yes/No)\");\n//\t\t\t\twiz12Label.pack();\n//\t\t\t\tfinal Text wizpage12text = new Text(wizpage12, SWT.BORDER);\n//\t\t\t\twizpage12text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage12text.setText(\"Yes\");\n//\t\t\t\tButton next12 = createNextButton(wizpage12);\n//\t\t\t\tcreateBackButton(wizpage12, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage12, wizPanel, wizLayout);\n//\t\t\t\tnext12.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage12text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tspellresistance = wizpage12text.getText();\n//\t\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz12Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\n//\n//\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage12);\n//\t\t\t\t//Page13 - Description\n//\t\t\t\tfinal Composite wizpage13 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tLabel wiz13Label = new Label(wizpage13, SWT.NONE);\n//\t\t\t\twiz13Label.setText(\"Enter Description (Optional)\");\n//\t\t\t\twiz13Label.pack(); \n//\t\t\t\tfinal Text wizpage13text = new Text(wizpage13, SWT.BORDER);\n//\t\t\t\twizpage13text.setBounds(50, 50, 300, 200);\n//\t\t\t\twizpage13text.setText(\"Description here\");\n//\t\t\t\tButton next13 = createNextButton(wizpage13);\n//\t\t\t\tcreateBackButton(wizpage13, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage13, wizPanel, wizLayout);\n//\t\t\t\tnext13.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage13text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspellscript = wizpage13text.getText();\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspellscript = \"<empty>\";\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\tCreateVerificationPage(wizPanel, wizLayout);\n//\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\n//\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\n//\t\t\t\t\t\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage13);\n//\t\t\t\t\n//\t\t\t\twizLayout.topControl = wizpage1;\n//\t\t\t\twizPanel.layout();\n\t}" ]
[ "0.7465564", "0.71213424", "0.70750844", "0.7056892", "0.7035284", "0.6982003", "0.6966167", "0.6853646", "0.68448454", "0.6811343", "0.68096405", "0.6801873", "0.67985934", "0.6798088", "0.679386", "0.6789257", "0.67799765", "0.6769032", "0.6748607", "0.67194223", "0.6717503", "0.67035323", "0.66828877", "0.6678451", "0.66759765", "0.6675277", "0.6666175", "0.6662871", "0.66587853", "0.665795", "0.66506565", "0.6635104", "0.65900564", "0.6588636", "0.6583689", "0.6574754", "0.65720886", "0.656907", "0.65508175", "0.65392804", "0.6516047", "0.6515943", "0.65151596", "0.651121", "0.65088314", "0.65046996", "0.64980966", "0.6456817", "0.6452968", "0.64314914", "0.6408048", "0.63942474", "0.634836", "0.6324647", "0.63166547", "0.6313728", "0.6288747", "0.6273535", "0.62523174", "0.62443435", "0.62409055", "0.6212926", "0.6212883", "0.62055504", "0.61921424", "0.61892045", "0.6176031", "0.6169341", "0.6168304", "0.60950315", "0.6090538", "0.60902613", "0.60856974", "0.60703", "0.60696167", "0.6065619", "0.6064933", "0.60549086", "0.60484904", "0.60410786", "0.60372114", "0.60363436", "0.60327744", "0.6002712", "0.59914464", "0.5956609", "0.5956531", "0.59552765", "0.59287804", "0.5926907", "0.59196913", "0.5904495", "0.5904013", "0.5893288", "0.58899236", "0.58865124", "0.5883632", "0.5872325", "0.58696645", "0.58542544" ]
0.6509662
44
Identify the selected row
@Override public void widgetSelected(SelectionEvent e) { TableItem item = (TableItem) e.item; if (item == null) { return; } // The control that will be the editor must be a child of the Table IReplaceableParam<?> editedParam = (IReplaceableParam<?>)item.getData(DATA_VALUE_PARAM); if (editedParam != null) { // Clean up any previous editor control Control oldEditor = editor.getEditor(); if (oldEditor != null) { oldEditor.dispose(); } Control editControl = null; String cellText = item.getText(columnValueIndex); switch (editedParam.getType()) { case BOOLEAN: Combo cmb = new Combo(tableParams, SWT.READ_ONLY); String[] booleanItems = {Boolean.toString(true), Boolean.toString(false)}; cmb.setItems(booleanItems); cmb.select(1); if (Boolean.parseBoolean(cellText)) { cmb.select(0); } editControl = cmb; cmb.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent se) { Combo text = (Combo) editor.getEditor(); editor.getItem().setText(columnValueIndex, text.getText()); } }); break; case DATE: IReplaceableParam<LocalDateTime> calParam = (IReplaceableParam<LocalDateTime>)editedParam; LocalDateTime calToUse = calParam.getValue(); Composite dateAndTime = new Composite(tableParams, SWT.NONE); RowLayout rl = new RowLayout(); rl.wrap = false; dateAndTime.setLayout(rl); //Date cellDt; try { LocalDateTime locDT = LocalDateTime.parse(cellText, dtFmt); if (locDT != null) { calToUse = locDT; } /*cellDt = dateFmt.parse(cellText); if (cellDt != null) { calToUse.setTime(cellDt); }*/ } catch (DateTimeParseException e1) { log.error("widgetSelected ", e1); } DateTime datePicker = new DateTime(dateAndTime, SWT.DATE | SWT.MEDIUM | SWT.DROP_DOWN); datePicker.setData(DATA_VALUE_PARAM, calParam); DateTime timePicker = new DateTime(dateAndTime, SWT.TIME | SWT.LONG); timePicker.setData(DATA_VALUE_PARAM, calParam); // for the date picker the months are zero-based, the first month is 0 the last is 11 // for LocalDateTime the months range 1-12 datePicker.setDate(calToUse.getYear(), calToUse.getMonthValue() - 1, calToUse.getDayOfMonth()); timePicker.setTime(calToUse.getHour(), calToUse.getMinute(), calToUse.getSecond()); datePicker.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent se) { DateTime source = (DateTime)se.getSource(); IReplaceableParam<LocalDateTime> calParam1 = (IReplaceableParam<LocalDateTime>)source.getData(DATA_VALUE_PARAM); if (calParam1 != null) { LocalDateTime currDt = calParam1.getValue(); // for the date picker the months are zero-based, the first month is 0 the last is 11 // for LocalDateTime the months range 1-12 calParam1.setValue(currDt.withYear(source.getYear()).withMonth(source.getMonth() + 1).withDayOfMonth(source.getDay())); String resultText = dtFmt.format(calParam1.getValue()); log.debug("Result Text " + resultText); editor.getItem().setText(columnValueIndex, resultText); } else { log.warn("widgetSelected param is null"); } } }); timePicker.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent se) { DateTime source = (DateTime)se.getSource(); IReplaceableParam<LocalDateTime> calParam1 = (IReplaceableParam<LocalDateTime>)source.getData(DATA_VALUE_PARAM); if (calParam1 != null) { LocalDateTime currDt = calParam1.getValue(); calParam1.setValue(currDt.withHour(source.getHours()).withMinute(source.getMinutes()).withSecond(source.getSeconds())); String resultText = dtFmt.format(calParam1.getValue()); log.debug("Result Text " + resultText); editor.getItem().setText(columnValueIndex, resultText); } else { log.warn("widgetSelected param is null"); } } }); dateAndTime.layout(); editControl = dateAndTime; break; case INTEGER: Text intEditor = new Text(tableParams, SWT.NONE); intEditor.setText(item.getText(columnValueIndex)); intEditor.selectAll(); intEditor.addModifyListener(new ModifyListener() { @Override public void modifyText(ModifyEvent se) { Text text = (Text) editor.getEditor(); Integer resultInt = null; try { resultInt = Integer.parseInt(text.getText()); } catch (NumberFormatException nfe) { log.error("NFE ", nfe); } if (resultInt != null) { editor.getItem().setText(columnValueIndex, resultInt.toString()); } } }); editControl = intEditor; break; case STRING: default: Text newEditor = new Text(tableParams, SWT.NONE); newEditor.setText(item.getText(columnValueIndex)); newEditor.setFont(tableParams.getFont()); newEditor.selectAll(); newEditor.addModifyListener(new ModifyListener() { @Override public void modifyText(ModifyEvent se) { Text text = (Text) editor.getEditor(); editor.getItem().setText(columnValueIndex, text.getText()); } }); editControl = newEditor; break; } editControl.setFont(tableParams.getFont()); editControl.setFocus(); editor.setEditor(editControl, item, columnValueIndex); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getSelectedRow()\n {\n \treturn this.getSelectedIndex();\n }", "private void selectedRowInvoice(){\r\n //numOrdenInv = tb_factura.getSelectionModel().getSelectedIndex();\r\n }", "@Override\n public void mousePressed(MouseEvent e) {\n if (e.getButton() == MouseEvent.BUTTON3) {\n int rowUnderMouse = getTable().rowAtPoint(e.getPoint());\n// if (rowUnderMouse != -1 && !getTable().isRowSelected(rowUnderMouse)) {\n// selected = rowUnderMouse;\n// }\n selected = rowUnderMouse;\n }\n }", "private IssuePost getSingleSelectedRow() {\n ListSelectionModel selectionModel = table.getSelectionModel();\n int selectedIndex = selectionModel.getLeadSelectionIndex();\n if (selectedIndex != NOT_SELECTED) {\n return table.getRowData(selectedIndex);\n }\n return null;\n }", "protected void select() {\n\t\tcleanValues();\n\t\tint row = m_table.getSelectedRow();\n\t\tboolean enabled = row != -1;\n\t\tif (enabled)\n\t\t{\n\t\t\tInteger ID = m_table.getSelectedRowKey();\n\t\t\tif (ID != null)\n\t\t\t{\n\t\t\t\tm_C_Order_ID = ID.intValue();\n\t\t\t}\n\t\t}\n\t\tlog.info(\"ID=\" + m_C_Order_ID); \n\t}", "public int getselectedLFRow()\r\n\t{\r\n\t\treturn selectedLFRow;\r\n\t}", "public int getSelectedLayer ()\n {\n return _table.getSelectedRow();\n }", "public void fireTableRowSelected(Object source, int iRowIndex, int iSelectionType);", "public R getSingleSelection()\r\n {\r\n final ListSelectionModel lsm = jTable.getSelectionModel();\r\n if( lsm.isSelectionEmpty() == false )\r\n {\r\n final int row = lsm.getLeadSelectionIndex(); // or use .getJTable().getSelectedRow() for single or lsm.isSelectedIndex() for multiple selection\r\n if( row != Util.INVALID_INDEX )\r\n {\r\n final int xlatedRow = jTable.convertRowIndexToModel( row ); // has to be done with auto-sorter\r\n return provideRow( xlatedRow );\r\n }\r\n }\r\n\r\n return null;\r\n }", "public CellSelection getSelectCell() {\n return selection;\n }", "public String getSelectedRowID()\n\t{\n\t\tint selectedRow = recordTable.getSelectedRow();\n\t\tString returnData = null;\n\t\tif(selectedRow==-1)\n\t\t{//If there is no row selected...\n\t\t\treturn null;\n\t\t}\n\t\treturnData = (String)recordTable.getValueAt(selectedRow, Information.FIELDID);\n\t\treturn returnData;\n\t}", "public native void selectRow(int row) /*-{\n\t\tvar jso = [email protected]::getJsObj()();\n\t\tjso.selectRow(row);\n }-*/;", "private void selectTableRow () {\n int selectedRow = itemTable.getSelectedRow();\n if (selectedRow >= 0 && selectedRow < clubEventList.size()) {\n boolean modOK = modIfChanged();\n if (modOK) {\n position = clubEventList.positionUsingListIndex (selectedRow);\n positionAndDisplay();\n }\n }\n }", "@Override\r\n\tpublic void mousePressed(MouseEvent e) {\r\n\t\tJTable table = (JTable) e.getSource();\r\n\t\tthis.selectedRow = table.getSelectedRow();\r\n\t}", "private long getSelectedIndex() {\r\n if (selection != null && selection.getKeys().hasNext()) {\r\n return new Long((Integer) selection.getKeys().next());\r\n } else {\r\n return selectedRowId;\r\n }\r\n }", "public Cell getSelectedCell() {\n return selectedCell;\n }", "@FXML \n public void handleSelected() throws Exception{\n \n TablePosition pos = (TablePosition) table.getSelectionModel().getSelectedCells().get(0);\n int index = pos.getRow();\n String selected = table.getItems().get(index).toString();\n String sn = selected.substring(0, selected.indexOf(\",\"));\n String cc =selected.substring(selected.indexOf(\",\")+1, selected.length());\n \n StudentMarkClick.Activate(sn, cc, lastclicked);\n //switch to detail view\n content.getChildren().clear();\n content.getChildren().add(FXMLLoader.load(getClass().getResource(\"viewMarks.fxml\")));\n \n //selected = selected.substring(1, selected.indexOf(\",\")); //only get username\n System.out.println(sn+\"|\"+cc); \n \n }", "Object getSelection();", "public int getSelected() {\n \t\treturn selected;\n \t}", "public void getSelected() {\n for (int i = 0; i < list.size(); i++) {\n if (selectColumn.getCellObservableValue(i).getValue().isSelected()) {\n selectedIngredients.add(i + 1);\n }\n }\n }", "private void jTable1MouseClicked(java.awt.event.MouseEvent evt) {\n int indexrow=jTable1.getSelectedRow();\n DefaultTableModel model = (DefaultTableModel)jTable1.getModel();\n id=model.getValueAt(indexrow,0).toString();\n txt_id.setText(model.getValueAt(indexrow,0).toString());\n txt_class.setText(model.getValueAt(indexrow,1).toString());\n txt_section.setText(model.getValueAt(indexrow, 2).toString());\n }", "@Override\n public void focusGained(FocusEvent fe) {\n if (!table.getSelectionModel().isSelectionEmpty()) \n Order.selectedBookingIDRow = (int) table.getValueAt(table.getSelectedRow(), 0);\n }", "public abstract String getCurrentRow();", "public int getRow(){\r\n\t\treturn this.row;\r\n\t}", "public Ward getSelected() {\n\t\treturn table.getSelectionModel().getSelectedItem();\n\t}", "public Posto select(int rowSelected) {\n return postos.get(rowSelected);\n }", "@Override\n public void valueChanged(ListSelectionEvent e) {\n TableModel tm = jTable.getModel();\n // Bepaalt de geselecteerde rij en vult een array met alle waardes\n int[] selRows = jTable.getSelectedRows();\n // Dit vult selectedID\n this.result = tm.getValueAt(selRows[0],0);\n }", "@Override\n public Collection<T_ROW_ELEMENT_PM> getSelectedRows() {\n return null;\n }", "int getRowIndex();", "private void selectDetailWithMouse() {\n int selectedRowIndex=jt.convertRowIndexToModel(jt.getSelectedRow());\n String[] choices={\"Update Row\",\"Delete\",\"Cancel\"};\n int option=JOptionPane.showOptionDialog(rootPane, \"Product ID: \"+jtModel.getValueAt(selectedRowIndex, 0).toString()+\"\\n\"+\"Product Name: \"+jtModel.getValueAt(selectedRowIndex,1), \"View Data\", WIDTH, HEIGHT,null , choices, NORMAL);\n if(option==0)\n {\n tfPaintId.setText(jtModel.getValueAt(selectedRowIndex,0).toString());\n tfName.setText(jtModel.getValueAt(selectedRowIndex, 1).toString());\n tfPrice.setText(jtModel.getValueAt(selectedRowIndex, 2).toString());\n tfColor.setText(jtModel.getValueAt(selectedRowIndex, 3).toString());\n tfQuantity.setText(jtModel.getValueAt(selectedRowIndex, 8).toString());\n rwCombo.setSelectedItem(jtModel.getValueAt(selectedRowIndex, 4));\n typeCombo.setSelectedItem(jtModel.getValueAt(selectedRowIndex, 6));\n bCombo.setSelectedItem(jtModel.getValueAt(selectedRowIndex, 5));\n switch(jtModel.getValueAt(selectedRowIndex, 7).toString()) {\n case \"High\":\n high.setSelected(true);\n break;\n case \"Mild\":\n mild.setSelected(true);\n break;\n case \"Medium\":\n medium.setSelected(true);\n break;\n }\n }\n else if(option==1)\n {\n jtModel.removeRow(selectedRowIndex);\n JOptionPane.showMessageDialog(rootPane,\" Detail successfully deleted\");\n }\n else \n {\n \n } \n }", "public int getRow(){\r\n // return statement\r\n return row;\r\n }", "protected abstract void rowSelectedCriterionTable(EvCriterion<Ev, CriterionShortIdentifier> item, Cell cell, ClickEvent event);", "@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\tString row= diveRow.get(position);\n\t\t\t\t\t\tIntent i = new Intent(\"android.intent.action.VIEWSELECTEDDIVE\");\n\t\t\t\t\t\tBundle extras = new Bundle();\n\t\t\t\t\t\textras.putString(\"row\", row);\n\t\t\t\t\t\ti.putExtras(extras);\n\t\t\t\t\t\tstartActivityForResult(i, 0);\n\t\t\t\t\t\t//Toast.makeText(getBaseContext(), \"Row selected: \"+ row, Toast.LENGTH_LONG).show();\n\t\t\t\t\t\t//cursor.close();\n\t\t\t\t\t\t//dataBaseCursor.close();\n\t\t\t\t\t\tfinish();//free resources\n\t\t\t\t\t\t\n\t\t\t\t\t}", "private void table1MouseClicked(MouseEvent e) {\n\t\tint selC = table1.getSelectedColumn();\n\t\tint selR = table1.getSelectedRow();\n\t\tSystem.out.println(\" selC \" + selC + \" selR \" + selR);\n\t\t// System.out.println(modelKnow.getValueAt(selR, selC));\n\t}", "public int[] getSelectedRowIndexes() {\n return getSelectedRows();\n }", "public int getSelectedLine() {\n\t\treturn selectedLine;\n\t}", "public void widgetSelected(SelectionEvent e) {\n table.setSelection(new TableItem[]{cursor.getRow()});\n }", "public int getSelection() {\n \tcheckWidget();\n \treturn selection;\n }", "public int getRow() {\n // YOUR CODE HERE\n return this.row;\n }", "public int getRow()\r\n {\r\n return row;\r\n }", "public int getRow()\r\n\t{\r\n\t\treturn this.row;\r\n\t}", "private void jTable1MouseClicked(java.awt.event.MouseEvent evt) {\n DefaultTableModel model = (DefaultTableModel)jTable1.getModel();\n // get the selected row index\n int selectedRowIndex = jTable1.getSelectedRow();\n // set the selected row data into jtextfields\n ID_USER =Integer.parseInt(model.getValueAt(selectedRowIndex, 0).toString()) ; \n CL_USER =model.getValueAt(selectedRowIndex, 1).toString(); \n\n }", "public void mouseClicked(MouseEvent arg0){\n int r = table.getSelectedRow();\r\n if(r>=0){ \r\n// deletebtnButton.setEnabled(true);\r\n deletebtn.setEnabled(true); \r\n\r\n //Fetching records from Table on Fields\r\n idField.setText(\"\"+table.getModel().getValueAt(r,0));\r\n \t}\r\n }", "public abstract ETreeTableRecord<T> getSelectedRecord();", "public int getRow() { return _row; }", "public int getRow()\n {\n return row;\n }", "protected int getRow() {\r\n\t\treturn this.row;\r\n\t}", "public int getRow() {\r\n return this.row;\r\n }", "@Override\r\n public int getRow() {\r\n return this.row;\r\n }", "TableModel getSelected() {\r\n // get the list of selected index\r\n int[] selected = plots[0][0].fitnessTable.getSelectedRows();\r\n // get the population table\r\n Population p = IGAFitnessPlotView.this.currentPop;\r\n Table t = p.getTable();\r\n\r\n return new SelectedTableModel(t, selected);\r\n }", "int getRowId();", "int getRowId();", "int getRowId();", "int getRowId();", "int getRowId();", "public int getRow()\n\t{\n\t\treturn row;\n\t}", "public int getRow()\n\t{\n\t\treturn row;\n\t}", "public int getRow()\n\t{\n\t\treturn row;\n\t}", "@Override\n public void actionPerformed(ActionEvent e) {\n int row = table.convertRowIndexToModel( table.getEditingRow() );\n }", "public int getRow() {\r\n return row;\r\n }", "public int getRow() {\r\n\t\treturn this.row;\r\n\t}", "static int getIndexSelected() {\n return indexSelected;\n }", "public int getRow()\n {\n return row;\n }", "@Override\n public boolean isSelectedIndex(int row)\n {\n return allowSelectDisabled\n || isAssociationAvailable(assnsTable.convertRowIndexToModel(row))\n ? super.isSelectedIndex(row)\n : false;\n }", "public boolean selected(int row){\n if (root == null) {\n compile();\n }\n return root.eval(row);\n }", "public int getRow() {\n return this.row;\n }", "public int getRow() {\n return this.row;\n }", "public int getRow() {\r\n\t\treturn row;\r\n\t}", "public int getRow() {\r\n\t\treturn row;\r\n\t}", "@SuppressWarnings(\"unchecked\")\n private int getHighlightedRows() {\n int rowNumber = 0;\n // first check if any rows have been clicked on\n for (TableRow row: rows) {\n Drawable background = row.getBackground();\n if (background instanceof ColorDrawable) {\n int backColor = ((ColorDrawable) background).getColor();\n //if (backColor == rowHighlightColor) continue;\n if (backColor == rowSelectColor) {\n rowNumber = rowNumber + 1;\n }\n }\n }\n return rowNumber;\n }", "public Combustivel select(int rowSelected) {\n return combs.get(rowSelected);\n }", "private void onSelectPatient() {\n\t\tint selectedRowIndex = tablePatients.getSelectedRow();\n\n\t\tif (selectedRowIndex < 0) {\n\t\t\t// No row has been selected\n\t\t\tbuttonRemovePatient.setEnabled(false);\n\t\t\tbuttonViewPatient.setEnabled(false);\n\t\t} else {\n\t\t\t// A row has been selected\n\t\t\tbuttonRemovePatient.setEnabled(true);\n\t\t\tbuttonViewPatient.setEnabled(true);\n\t\t}\n\t}", "public void getRow(MouseEvent e) {\n\t\tconn = MySqlConnection.ConnectDb();\n\t\tindex = tableTransactions.getSelectionModel().getSelectedIndex();\n\n\t\tif (index <= -1)\n\t\t\treturn;\n\n\t\ttxt_transactionID.setText(col_transactionID.getCellData(index).toString());\n\t\ttxt_date.setPromptText(col_date.getCellData(index).toString());\n\t\ttxt_description.setText(col_description.getCellData(index).toString());\n\t\ttxt_category.setPromptText(col_category.getCellData(index).toString());\n\t\ttxt_amount.setText(col_amount.getCellData(index).toString());\n\t}", "public int getRow() {\n\t\treturn row; \n\t}", "public int getRow() {\n return row;\n }", "public int getRow() {\n return row;\n }", "public int getRow() {\n return row;\n }", "public int getRow() {\n return row;\n }", "public int getRow() {\n return row;\n }", "public int getRow() {\n return row;\n }", "public int getRow() {\n\t\treturn row;\n\t}", "public int getRow() {\n\t\treturn row;\n\t}", "int getRow();", "@FXML\n private void rowSelected() {\n if (coachesTable.getSelectionModel().getSelectedItem() != null) {\n removeButton.setDisable(false);\n }\n }", "@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\tTableRow tr1=(TableRow)v;\n\t\t\t\t\t\tTextView tv1= (TextView)tr1.getChildAt(0);\n\t\t\t\t\t\tString a = tv1.getText().toString();\n\t\t\t\t\t\t//tr1.setBackgroundColor(Color.BLACK);\n\t\t\t\t\t\tfirstname_et.setText(a);\n\t\t\t\t\t\tToast.makeText(getApplicationContext(),tv1.getText().toString()+\" Selected\",Toast.LENGTH_LONG).show();\n\t\t\t\t\t}", "public int getRowNum(){ return this.rowNum; }", "public int getSelectedId() {\n return selectedId;\n }", "public boolean isSomethingSelected() {\r\n \t\treturn graph.getSelectionCell() != null;\r\n \t}", "public boolean isAccessibleRowSelected(int r) {\n try {\n return unoAccessibleTable.isAccessibleRowSelected(r);\n } catch (com.sun.star.lang.IndexOutOfBoundsException e) {\n return false;\n } catch (com.sun.star.uno.RuntimeException e) {\n return false;\n }\n }", "public int getRow() {\n\t\t\treturn row;\n\t\t}", "public int getRow() {\n\t\t\treturn row;\n\t\t}", "public House getRow(int selectedRow) throws NoRowSelectedException {\n\t\tif (selectedRow >= this.housesArray.length || selectedRow < 0) {\n\t\t\tthrow new NoRowSelectedException();\n\t\t} else {\n\t\t\treturn housesArray[selectedRow];\n\t\t}\n\t}", "private WebElement chooseFirstRow() {\n return getRowsFromTable().get(0);\n\n }", "private int[] getSelectedNodeRecordRows() {\n\t\tfinal JTable nodesTable = getNodesTable();\n\t\treturn nodesTable.getSelectedRows();\n\t}", "public int getRowId() {\n return rowId_;\n }", "public int getRowId() {\n return rowId_;\n }", "public int getRowId() {\n return rowId_;\n }", "public int getRowId() {\n return rowId_;\n }", "public int getRowId() {\n return rowId_;\n }", "@Override\n public void onRowClicked(int position) {\n }", "private long getSelectedReturnIndex() {\r\n if (returnSelection != null && returnSelection.getKeys().hasNext()) {\r\n return new Long((Integer) returnSelection.getKeys().next());\r\n } else {\r\n return selectedReturnRowId;\r\n }\r\n }" ]
[ "0.77313715", "0.75973713", "0.7456303", "0.7342104", "0.7275112", "0.7261362", "0.72301644", "0.71423095", "0.6965468", "0.69533145", "0.69413996", "0.69397706", "0.6888303", "0.68720204", "0.68538153", "0.6736478", "0.67284685", "0.6700079", "0.66797966", "0.6654928", "0.66242355", "0.65733737", "0.6546912", "0.65305114", "0.652634", "0.65208274", "0.65188473", "0.6510506", "0.64982826", "0.6496505", "0.649", "0.64864004", "0.6482202", "0.64761806", "0.64586556", "0.64576024", "0.64487517", "0.6445618", "0.64191294", "0.64134896", "0.64080065", "0.6405718", "0.63996166", "0.6399032", "0.63959694", "0.6395508", "0.6393864", "0.6384337", "0.6367683", "0.6363633", "0.63610405", "0.63610405", "0.63610405", "0.63610405", "0.63610405", "0.6352045", "0.6352045", "0.6352045", "0.634897", "0.6333716", "0.6328702", "0.6326865", "0.63250273", "0.6324739", "0.6321436", "0.63160026", "0.63160026", "0.6295762", "0.6295762", "0.6294292", "0.6291533", "0.6290842", "0.62875175", "0.628359", "0.62680525", "0.62680525", "0.62680525", "0.62680525", "0.62680525", "0.62680525", "0.62586796", "0.62586796", "0.62446725", "0.62424695", "0.6242246", "0.62345785", "0.6233485", "0.6231008", "0.6206038", "0.6194726", "0.6194726", "0.61920094", "0.61882746", "0.6176264", "0.6175942", "0.6175942", "0.6175942", "0.6175942", "0.6175942", "0.6174531", "0.6163635" ]
0.0
-1
1. slozhytj 2. Razdelitj na kolvo indeksov
private static double middleValueElementInArray(int[] arr) { double sum = sumElementArray(arr); return sum /arr.length; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void nastaviIgru() {\r\n\t\t// nastavi igru poslije pobjede\r\n\t\tigrajPoslijePobjede = true;\r\n\t}", "private String vylozZvieraZVozidla() {\r\n if (zoo.getPracovneVozidlo() == null) {\r\n return \"Pracovne vozidlo nie je pristavene\";\r\n }\r\n\r\n Integer pozicia = MojeMetody.vlozInt(\"Vloz index zvierata\");\r\n if (pozicia == null) return \"\";\r\n\r\n try {\r\n Zivocich ziv = zoo.vylozZivocicha(pozicia-1);\r\n if (ziv == null) {\r\n return \"Zviera c. \" + pozicia + \" nie je na vozidle\\n\\t\";\r\n }\r\n zoo.pridajZivocicha(ziv);\r\n return \"Zviera \" + ziv\r\n + \"\\n\\tbolo vylozene z prepravneho vozidla\";\r\n } catch (ClassCastException exCC) {\r\n return \"Zviera c. \" + pozicia + \" nie je na vozidle\\n\\t\";\r\n } catch (Exception ex) {\r\n return \"Neznama chyba:\\n\\t\" + ex;\r\n }\r\n }", "private String nalozZvieraNaVozidlo() {\r\n if (zoo.getPracovneVozidlo() == null) {\r\n return \"Pracovne vozidlo nie je pristavene\";\r\n }\r\n\r\n Integer pozicia = MojeMetody.vlozInt(\"Vloz cislo zvierata\");\r\n if (pozicia == null) return \"\";\r\n\r\n try {\r\n Prepravitelny z = (Prepravitelny) zoo.getZvierataZOO(pozicia - 1);\r\n zoo.nalozZivocicha(z);\r\n zoo.odstranZivocicha(pozicia - 1);\r\n return \"Zviera \" + z + \"\\n\\tbolo nalozene na prepravne vozidlo\";\r\n } catch (ClassCastException exCC) {\r\n return \"Zviera c. \" + pozicia + \" nemozno prepravit\\n\\t\";\r\n } catch (NullPointerException exNP) {\r\n return \"Zviera c. \" + pozicia + \" nie je v ZOO\";\r\n } catch (Exception ex) {\r\n return \"Neznama chyba:\\n\\t\" + ex;\r\n }\r\n }", "public void zpracujObjednavky()\n\t{\n\t\tint idtmp = 0;\n\t\tfloat delkaCesty = 0;\n\t\t\n\t\tif (this.objednavky.isEmpty())\n\t\t{\n\t\t\treturn ;\n\t\t}\n\t\t\n\t\tNakladak nakl = (Nakladak) getVolneAuto();\n\t\t\n\t\tnakl.poloha[0] = this.poloha[0];\n\t\tnakl.poloha[1] = this.poloha[1];\n\t\tObjednavka ob = this.objednavky.remove();\n\n\t\t/*System.out.println();\n\t\tSystem.out.println(\"Objednavka hospody:\" + ob.id + \" se zpracuje pres trasu: \");\n\t\t */\n\t\tdelkaCesty += vyberCestu(this.id, ob.id, nakl);\n\t\t\n\t\twhile(nakl.pridejObjednavku(ob))\n\t\t{\n\t\t\tidtmp = ob.id;\n\t\t\t\n\t\t\tob = vyberObjednavku(ob.id);\n\t\t\tif (ob == null)\n\t\t\t{\n\t\t\t\tob=nakl.objednavky.getLast();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tobjednavky.remove(ob);\n\t\t\t\n\t\t\tdelkaCesty += vyberCestu(idtmp, ob.id, nakl);\n\t\t\t\n\t\t\tif((nakl.objem > 24)||(13-Simulator.getCas().hodina)*(nakl.RYCHLOST) + 100 < delkaCesty){\n\t\t\t\t//System.out.println(\"Nakladak ma \"+nakl.objem);\n\t\t\t\tnakl.kDispozici = false;\n\t\t\t\t//System.out.println(\"Auto jede \" + delkaCesty + \"km\");\n\t\t\t\tbreak;\t\t\n\t\t\t}\n\t\t\t/*\n\t\t\tif((Simulator.getCas().hodina > 12) && (delkaCesty > 80) ){\n\t\t\t\t//System.out.println(\"Nakladak ma \"+nakl.objem);\n\t\t\t\tnakl.kDispozici = false;\n\t\t\t\t//System.out.println(\"Auto jede \" + delkaCesty + \"km\");\n\t\t\t\tbreak;\t\t\n\t\t\t}\n\t\t\t\n\t\t\tif((Simulator.getCas().hodina > 9) && (delkaCesty > 130) ){\n\t\t\t\t//System.out.println(\"Nakladak ma \"+nakl.objem);\n\t\t\t\tnakl.kDispozici = false;\n\t\t\t\t//System.out.println(\"Auto jede \" + delkaCesty + \"km\");\n\t\t\t\tbreak;\t\t\n\t\t\t}*/\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t//cesta zpatky\n\t\tvyberCestu(ob.id, this.id, nakl);\n\t\tif (nakl.objem >= 1)\n\t\t{\n\t\t\tnakl.kDispozici = false;\n\t\t\tnakl.jede = true;\n\t\t\t//vytvoreni nove polozky seznamu pro statistiku\n\t\t\tnakl.novaStatCesta();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tnakl.resetCesta();\n\t\t}\n\t}", "public static void main(String [] agrs){\n\r\n\r\n Kaczka gumowa = new GumowaKaczka();\r\n gumowa.ustawKwakanieInterfejs(2);\r\n gumowa.ustawLatanieInterfejs(new SzybkieLatanie());\r\n gumowa.wyswietl();\r\n System.out.println(gumowa.kwacz());\r\n System.out.println(gumowa.lec());\r\n Kaczka dzika = new DzikaKaczka();\r\n // dzika.ustawLatanieInterfejs(1);\r\n dzika.wyswietl();\r\n System.out.println(dzika.lec());\r\n System.out.println(dzika.kwacz());\r\n\r\n\r\n// Polecenie[] polecenieWlacz;\r\n// Polecenie[] polecanieWylacz;\r\n// Polecenie polecenieWycofaj;\r\n//\r\n// polecanieWylacz = new Polecenie[7];\r\n// polecenieWlacz = new Polecenie[7];\r\n//\r\n// Swiatlo swiatlo = new Swiatlo();\r\n// polecanieWylacz[0] = new PolecenieWylaczSwiatlo(swiatlo);\r\n// polecenieWlacz[0] = new PolecenieWlaczSwiatlo(swiatlo);\r\n//\r\n//\r\n//\r\n//\r\n// polecenieWlacz[0].wykonaj();\r\n// polecanieWylacz[0].wykonaj();\r\n// polecenieWlacz[0].wykonaj();\r\n// polecenieWycofaj = polecanieWylacz[0];\r\n//// polecenieWycofaj = polecenieWlacz[0];\r\n// polecenieWycofaj.wykonaj();\r\n// polecenieWycofaj.wykonaj();\r\n//// polecenieWycofaj.wycofaj();\r\n//\r\n// WiezaStereo wiezaStereo = new WiezaStereo();\r\n//\r\n// polecenieWlacz[1] = new PolecenieWiezaStereoWlaczCD(wiezaStereo);\r\n//\r\n// polecenieWlacz[1].wykonaj();\r\n\r\n\r\n\r\n }", "private static void cajas() {\n\t\t\n\t}", "public void realizacjap34() {\n System.out.println(\"REALIZACJA PUNKTU 3\\n\");\n\n System.out.println(\"\\nWyszukiwanie osob po imieniu (Piotr) ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzOsobyPoImieniu(Listy.osoby, \"Piotr\").forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po nazwisku (Oleszczuk) ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzOsobyPoNazwisku(Listy.osoby, \"Oleszczuk\").forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po stazu pracy mniejszym niz 10============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoStazuPracyMniejszymNiz(Listy.osoby, 10).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po stazu pracy większym niz 10============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoStazuPracyWiekszymNiz(Listy.osoby, 10).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po stazu pracy równym 5============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoStazuPracyRownym(Listy.osoby, 5).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po liczbie nadgodzin mniejszej niz 6 ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoNadgodzinachMniejszychNiz(Listy.osoby, 6).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po liczbie nadgodzin wiekszej niz 6 ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoNadgodzinachWiekszychNiz(Listy.osoby, 6).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po liczbie nadgodzin równej 6 ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoNadgodzinachRownych(Listy.osoby, 6).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po pensji wiekszej niz 15000 ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoPensjiWiekszejNiz(Listy.osoby, 15000).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po pensji mniejszej niz 15000 ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoPensjiMniejszejNiz(Listy.osoby, 15000).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po pensji rownej 15000 ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoPensjiRownej(Listy.osoby, 15000).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po stanowisku (Adiunkt) ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoStanowisku(Listy.osoby, \"Adiunkt\").forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie studenta po numerze indeksu (123456) ============================================================================\\n\");\n System.out.println(NarzedziaWyszukiwania.znajdzStudentaPoIndeksie(Listy.osoby, \"123456\"));\n\n System.out.println(\"\\nWyszukiwanie studentów po roku studiów (1) ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzStudentowPoRokuStudiow(Listy.osoby, 1).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie studentów po kierunku (Informatyka Stosowana) ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzStudentowPoKierunku(Listy.osoby, \"Informatyka Stosowana\").forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie kursu po nazwie (Analiza Matematyczna 1) ============================================================================\\n\");\n System.out.println(NarzedziaWyszukiwania.znajdzKursPoNazwie(Listy.kursy, \"Analiza Matematyczna 1\"));\n\n System.out.println(\"\\nWyszukiwanie kursów po liczbie ects (5) ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzKursyPoECTS(Listy.kursy, 5).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie kursów po prowadzacym+\"+Listy.osoby.get(0).getImie()+\" \"+Listy.osoby.get(0).getNazwisko()+\" ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzKursyPoProwadzacym(Listy.kursy, Listy.osoby.get(0)).forEach(System.out::println);\n\n\n //REALIZACJA PUNKTU 4\n System.out.println(\"=====================================================================================================================\");\n System.out.println(\"REALIZACJA PUNKTU 4\");\n System.out.println(\"=====================================================================================================================\\n\");\n System.out.println(\"Kursy:\\n\");\n for (Kurs kurs : Listy.kursy) {\n System.out.println(kurs.toString());\n }\n\n System.out.println(\"\\nOsoby:\\n\");\n for (Osoba osoba : Listy.osoby) {\n System.out.println(\"OSOBA====================================================================================================\");\n System.out.println(osoba.toString());\n System.out.println();\n }\n }", "public void ustawPojazdNaPoczatek()\n\t{\n\t\tSciezka pierwszaSc = droga.get(0);\n\t\tfinal double y = 10;\n\t\tpojazd.zmienPozycje(pierwszaSc.getCenterDownX(), y);\n\t}", "private void ucitajTestPodatke() {\n\t\tList<Integer> l1 = new ArrayList<Integer>();\n\n\t\tRestoran r1 = new Restoran(\"Palazzo Bianco\", \"Bulevar Cara Dušana 21\", KategorijeRestorana.PICERIJA, l1, l1);\n\t\tRestoran r2 = new Restoran(\"Ananda\", \"Petra Drapšina 51\", KategorijeRestorana.DOMACA, l1, l1);\n\t\tRestoran r3 = new Restoran(\"Dizni\", \"Bulevar cara Lazara 92\", KategorijeRestorana.POSLASTICARNICA, l1, l1);\n\n\t\tdodajRestoran(r1);\n\t\tdodajRestoran(r2);\n\t\tdodajRestoran(r3);\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "private static int zamijeniDvijeKarte(int[] spil) {\n\t\tint prva =randomKarta (spil);\n\t\tint druga = randomKarta (spil);\n\t\tzamijeni (spil, prva, druga);\n\t\t\n\t\treturn spil, prva, druga;\n\t}", "void zmniejszBieg();", "public void naplnVrcholy() {\r\n System.out.println(\"Zadajte pocet vrcholov: \");\r\n pocetVrcholov = skener.nextInt();\r\n for (int i=0; i < pocetVrcholov; i++) {\r\n nekonecno = (int)(Double.POSITIVE_INFINITY);\r\n if(i==0) { //pre prvy vrchol potrebujeme nastavit vzdialenost 0 \r\n String menoVrcholu = Character.toString((char)(i+65)); //pretipovanie int na String, z i=0 dostanem A\r\n Vrchol vrchol = new Vrchol(menoVrcholu, 0, \"\"); //vrcholu nastavim vzdialenost a vrcholPrichodu \r\n vrcholy.add(vrchol);\r\n } else { //ostatne budu mat nekonecno alebo v tomto pripade 9999 (lebo tuto hodnotu v mensich grafoch nepresiahnem)\r\n String menoVrcholu = Character.toString((char)(i+65)); //pretipovanie int na String, z i=0 dostanem A\r\n Vrchol vrchol = new Vrchol(menoVrcholu,nekonecno, \"\"); //vrcholu nastavim vzdialenost a vrcholPrichodu \r\n vrcholy.add(vrchol);\r\n }\r\n }\r\n }", "@Test\r\n\tpublic void testGetPeliBalorazioNormalizatuak() {\n\t\tBektorea bek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p1.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(e1.getId()) == 0.5);\r\n\t\tassertTrue(bek.getBalioa(e3.getId()) == -2.75);\r\n\t\tassertFalse(bek.bektoreanDago(e2.getId()));\r\n\t\t\r\n\t\t// p2 pelikula baloratu duten erabiltzaileen ID-ak eta balorazio normalizautak (Baztezbestekoa erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p2.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 4);\r\n\t\tassertTrue(bek.getBalioa(e1.getId()) == -0.5);\r\n\t\tassertTrue(bek.getBalioa(e2.getId()) == 0.5);\r\n\t\tassertTrue(bek.getBalioa(e3.getId()) == 0.25);\r\n\t\tassertTrue(bek.getBalioa(e4.getId()) == 0);\r\n\t\t\r\n\t\t// p3 pelikula baloratu duten erabiltzaileen ID-ak eta balorazio normalizautak (Baztezbestekoa erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p3.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(e2.getId()) == -0.5);\r\n\t\tassertTrue(bek.getBalioa(e3.getId()) == 0.75);\r\n\t\tassertFalse(bek.bektoreanDago(e1.getId()));\r\n\t\t\r\n\t\t// p4 pelikula baloratu duten erabiltzaileen ID-ak eta balorazio normalizautak (Baztezbestekoa erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p4.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(e1.getId()) == 0);\r\n\t\tassertTrue(bek.getBalioa(e3.getId()) == 1.75);\r\n\t\tassertFalse(bek.bektoreanDago(e2.getId()));\r\n\t\t\r\n\t\t\r\n\t\t// Normalizazioa Zsore erabiliz egiten dugu\r\n\t\t\r\n\t\tBalorazioenMatrizea.getBalorazioenMatrizea().erreseteatu();\r\n\t\tNormalizazioKalkulua.getNormalizazioKalkulua().normalizazioMotaAldatu(new Zscore());\r\n\t\t\r\n\t\tDecimalFormat df = new DecimalFormat(\"#.0000\");\r\n\t\t\r\n\t\t// p1 pelikula baloratu duten erabiltzaileen ID-ak eta balorazio normalizautak (Zscore erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p1.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(df.format(bek.getBalioa(e1.getId())).equals(\"1,2247\"));\r\n\t\tassertTrue(df.format(bek.getBalioa(e3.getId())).equals(\"-1,6398\"));\r\n\t\tassertFalse(bek.bektoreanDago(e2.getId()));\r\n\t\t\r\n\t\t// p2 pelikula baloratu duten erabiltzaileen ID-ak eta balorazio normalizautak (Zscore erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p2.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 4);\r\n\t\tassertTrue(df.format(bek.getBalioa(e1.getId())).equals(\"-1,2247\"));\r\n\t\tassertTrue(bek.getBalioa(e2.getId()) == 1);\r\n\t\tassertTrue(df.format(bek.getBalioa(e3.getId())).equals(\",1491\"));\r\n\t\tassertTrue(bek.getBalioa(e4.getId()) == 0);\r\n\t\t\r\n\t\t// p3 pelikula baloratu duten erabiltzaileen ID-ak eta balorazio normalizautak (Zscore erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p3.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(e2.getId()) == -1);\r\n\t\tassertTrue(df.format(bek.getBalioa(e3.getId())).equals(\",4472\"));\r\n\t\tassertFalse(bek.bektoreanDago(e1.getId()));\r\n\t\t\r\n\t\t// p4 pelikula baloratu duten erabiltzaileen ID-ak eta balorazio normalizautak (Zscore erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p4.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(e1.getId()) == 0);\r\n\t\tassertTrue(df.format(bek.getBalioa(e3.getId())).equals(\"1,0435\"));\r\n\t\tassertFalse(bek.bektoreanDago(e2.getId()));\r\n\t\t\r\n\t\tBalorazioenMatrizea.getBalorazioenMatrizea().erreseteatu();\r\n\t\tNormalizazioKalkulua.getNormalizazioKalkulua().normalizazioMotaAldatu(new Batezbestekoa());\r\n\t\t\r\n\t}", "public static void trazenjeVozila(Iznajmljivac o) {\n\t\tLocalDate pocetniDatum = UtillMethod.unosDatum(\"pocetni\");\n\t\tLocalDate krajnjiDatum = UtillMethod.unosDatum(\"krajnji\");\n\t\tSystem.out.println(\"------------------------------------\");\n\t\tSystem.out.println(\"Provera dostupnosti vozila u toku...\\n\");\n\t\tArrayList<Vozilo> dostupnaVoz = new ArrayList<Vozilo>();\n\t\tint i = 0;\n\t\tfor (Vozilo v : Main.getVozilaAll()) {\n\t\t\tif (!postojiLiRezervacija(v, pocetniDatum, krajnjiDatum) && !v.isVozObrisano()) {\n\t\t\t\tSystem.out.println(i + \"-\" + v.getVrstaVozila() + \"-\" + \"Registarski broj\" + \"-\" + v.getRegBR()\n\t\t\t\t\t\t+ \"-Potrosnja na 100km-\" + v.getPotrosnja100() + \"litara\");\n\t\t\t\ti++;\n\t\t\t\tdostupnaVoz.add(v);\n\t\t\t}\n\t\t}\n\t\tif (i > 0) {\n\t\t\tSystem.out.println(\"------------------------------------------------\");\n\t\t\tSystem.out.println(\"Ukucajte kilometrazu koju planirate da predjete:\");\n\t\t\tdouble km = UtillMethod.unesiteBroj();\n\t\t\tint km1 = (int) km;\n\t\t\tporedjenjeVozila d1 = new poredjenjeVozila(km1);\n\t\t\tCollections.sort(dostupnaVoz,d1);\n\t\t\tint e = 0;\n\t\t\tfor(Vozilo v : dostupnaVoz) {\n\t\t\t\tdouble temp = cenaTroskaVoz(v, km, v.getGorivaVozila().get(0));\n\t\t\t\tSystem.out.println(e + \" - \" + v.getVrstaVozila()+ \"-Registarski broj: \"+ v.getRegBR()+\" | \"+ \"Cena na dan:\"+v.getCenaDan() +\" | Broj sedista:\"+ v.getBrSedist()+ \" | Broj vrata:\"+ v.getBrVrata() + \"| Cena troskova puta:\" + temp + \" Dinara\");\n\t\t\t\te++;\n\t\t\t}\n\t\t\tSystem.out.println(\"---------------------------------------\");\n\t\t\tSystem.out.println(\"Unesite redni broj vozila kojeg zelite:\");\n\t\t\tint redniBroj = UtillMethod.unesiteInt();\n\t\t\tif (redniBroj < dostupnaVoz.size()) {\n\t\t\t\tDateTimeFormatter formatters = DateTimeFormatter.ofPattern(\"dd/MM/yyyy\");\n\t\t\t\tString pocetni = pocetniDatum.format(formatters);\n\t\t\t\tString krajnji = krajnjiDatum.format(formatters);\n\t\t\t\tdouble cena = UtillMethod.cenaIznaj(pocetniDatum, krajnjiDatum, dostupnaVoz.get(redniBroj));\n\t\t\t\tRezervacija novaRez = new Rezervacija(dostupnaVoz.get(redniBroj), o, cena, false, pocetni, krajnji);\n\t\t\t\tMain.getRezervacijeAll().add(novaRez);\n\t\t\t\tSystem.out.println(\"Uspesno ste napravili rezervaciju!\");\n\t\t\t\tSystem.out.println(\"---------------------------------\");\n\t\t\t\tSystem.out.println(novaRez);\n\t\t\t\tSystem.out.println(\"---------------------------------\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Uneli ste pogresan redni broj!\");\n\t\t\t}\n\t\t} else {\n\t\t\tSystem.out.println(\"Nema dostupnih vozila za rezervaaciju.\");\n\t\t}\n\t}", "@Test\r\n\tpublic void testPelikulaBaloratuDutenErabiltzaileenZerrenda() {\n\t\tArrayList<Integer> zer = BalorazioenMatrizea.getBalorazioenMatrizea().pelikulaBaloratuDutenErabiltzaileenZerrenda(p1.getPelikulaId());\r\n\t\tassertTrue(zer.size() == 2);\r\n\t\tassertTrue(zer.contains(e1.getId()));\r\n\t\tassertTrue(zer.contains(e3.getId()));\r\n\t\tassertFalse(zer.contains(e2.getId()));\r\n\t\t\r\n\t\t// p2 pelikula baloratu duten erabiltzaileen ID-ak itzuli\r\n\t\tzer = BalorazioenMatrizea.getBalorazioenMatrizea().pelikulaBaloratuDutenErabiltzaileenZerrenda(p2.getPelikulaId());\r\n\t\tassertTrue(zer.size() == 4);\r\n\t\tassertTrue(zer.contains(e1.getId()));\r\n\t\tassertTrue(zer.contains(e2.getId()));\r\n\t\tassertTrue(zer.contains(e3.getId()));\r\n\t\tassertTrue(zer.contains(e4.getId()));\r\n\t\t\r\n\t\t// p3 pelikula baloratu duten erabiltzaileen ID-ak itzuli\r\n\t\tzer = BalorazioenMatrizea.getBalorazioenMatrizea().pelikulaBaloratuDutenErabiltzaileenZerrenda(p3.getPelikulaId());\r\n\t\tassertTrue(zer.size() == 2);\r\n\t\tassertTrue(zer.contains(e2.getId()));\r\n\t\tassertTrue(zer.contains(e3.getId()));\r\n\t\tassertFalse(zer.contains(e1.getId()));\r\n\t\t\r\n\t\t// p4 pelikula baloratu duten erabiltzaileen ID-ak itzuli\r\n\t\tzer = BalorazioenMatrizea.getBalorazioenMatrizea().pelikulaBaloratuDutenErabiltzaileenZerrenda(p4.getPelikulaId());\r\n\t\tassertTrue(zer.size() == 2);\r\n\t\tassertTrue(zer.contains(e1.getId()));\r\n\t\tassertTrue(zer.contains(e3.getId()));\r\n\t\tassertFalse(zer.contains(e4.getId()));\r\n\t\t\r\n\t}", "private int generujViacZvierat(int pocet){\r\n int poc = 0;\r\n for (int i = 0; i < pocet; i++) {\r\n if (zoo.pridajZivocicha(vytvorZivocicha())) poc++;\r\n }\r\n return poc;\r\n }", "@Test\r\n\tpublic void testGetErabBalorazioNormalizatuak() {\n\t\tBektorea bek = BalorazioenMatrizea.getBalorazioenMatrizea().getErabBalorazioNormalizatuak(e1.getId());\r\n\t\tassertTrue(bek.luzera() == 3);\r\n\t\tassertTrue(bek.getBalioa(p1.getPelikulaId()) == 0.5);\r\n\t\tassertTrue(bek.getBalioa(p2.getPelikulaId()) == -0.5);\r\n\t\tassertTrue(bek.getBalioa(p4.getPelikulaId()) == 0);\r\n\t\tassertFalse(bek.bektoreanDago(p3.getPelikulaId()));\r\n\t\t\r\n\t\t// e2 erabiltzaileak baloratu dituen pelikulen ID-ak eta balorazio normalizatuak (Batezbestekoa erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getErabBalorazioNormalizatuak(e2.getId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(p2.getPelikulaId()) == 0.5);\r\n\t\tassertTrue(bek.getBalioa(p3.getPelikulaId()) == -0.5);\r\n\t\tassertFalse(bek.bektoreanDago(p1.getPelikulaId()));\r\n\t\t\r\n\t\t// e3 erabiltzaileak baloratu dituen pelikulen ID-ak eta balorazio normalizatuak (Batezbestekoa erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getErabBalorazioNormalizatuak(e3.getId());\r\n\t\tassertTrue(bek.luzera() == 4);\r\n\t\tassertTrue(bek.getBalioa(p1.getPelikulaId()) == -2.75);\r\n\t\tassertTrue(bek.getBalioa(p2.getPelikulaId()) == 0.25);\r\n\t\tassertTrue(bek.getBalioa(p3.getPelikulaId()) == 0.75);\r\n\t\tassertTrue(bek.getBalioa(p4.getPelikulaId()) == 1.75);\r\n\t\t\r\n\t\t// e4 erabiltzaileak baloratu dituen pelikulen ID-ak eta balorazio normalizatuak (Batezbestekoa erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getErabBalorazioNormalizatuak(e4.getId());\r\n\t\tassertTrue(bek.luzera() == 1);\r\n\t\tassertTrue(bek.getBalioa(p2.getPelikulaId()) == 0);\r\n\t\tassertFalse(bek.bektoreanDago(p1.getPelikulaId()));\r\n\t\t\r\n\t\t\r\n\t\t// Normalizazioa Zsore erabiliz egiten dugu\r\n\t\t\r\n\t\tBalorazioenMatrizea.getBalorazioenMatrizea().erreseteatu();\r\n\t\tNormalizazioKalkulua.getNormalizazioKalkulua().normalizazioMotaAldatu(new Zscore());\r\n\t\t\r\n\t\tDecimalFormat df = new DecimalFormat(\"#.0000\");\r\n\t\t\r\n\t\t// e1 erabiltzaileak baloratu dituen pelikulen ID-ak eta balorazio normalizatuak (Zscore erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getErabBalorazioNormalizatuak(e1.getId());\r\n\t\tassertTrue(bek.luzera() == 3);\r\n\t\tassertTrue(df.format(bek.getBalioa(p1.getPelikulaId())).equals(\"1,2247\"));\r\n\t\tassertTrue(df.format(bek.getBalioa(p2.getPelikulaId())).equals(\"-1,2247\"));\r\n\t\tassertTrue(bek.getBalioa(p4.getPelikulaId()) == 0);\r\n\t\tassertFalse(bek.bektoreanDago(p3.getPelikulaId()));\r\n\t\t\r\n\t\t// e2 erabiltzaileak baloratu dituen pelikulen ID-ak eta balorazio normalizatuak (Zscore erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getErabBalorazioNormalizatuak(e2.getId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(p2.getPelikulaId()) == 1);\r\n\t\tassertTrue(bek.getBalioa(p3.getPelikulaId()) == -1);\r\n\t\tassertFalse(bek.bektoreanDago(p1.getPelikulaId()));\r\n\t\t\r\n\t\t// e3 erabiltzaileak baloratu dituen pelikulen ID-ak eta balorazio normalizatuak (Zscore erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getErabBalorazioNormalizatuak(e3.getId());\r\n\t\tassertTrue(bek.luzera() == 4);\r\n\t\tassertTrue(df.format(bek.getBalioa(p1.getPelikulaId())).equals(\"-1,6398\"));\r\n\t\tassertTrue(df.format(bek.getBalioa(p2.getPelikulaId())).equals(\",1491\"));\r\n\t\tassertTrue(df.format(bek.getBalioa(p3.getPelikulaId())).equals(\",4472\"));\r\n\t\tassertTrue(df.format(bek.getBalioa(p4.getPelikulaId())).equals(\"1,0435\"));\r\n\t\t\r\n\t\t// e4 erabiltzaileak baloratu dituen pelikulen ID-ak eta balorazio normalizatuak (Zscore erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getErabBalorazioNormalizatuak(e4.getId());\r\n\t\tassertTrue(bek.luzera() == 1);\r\n\t\tassertTrue(bek.getBalioa(p2.getPelikulaId()) == 0);\r\n\t\tassertFalse(bek.bektoreanDago(p1.getPelikulaId()));\r\n\t\t\r\n\t\tBalorazioenMatrizea.getBalorazioenMatrizea().erreseteatu();\r\n\t\tNormalizazioKalkulua.getNormalizazioKalkulua().normalizazioMotaAldatu(new Batezbestekoa());\r\n\t\t\r\n\t}", "public static void dodavanjePutnickogVozila() {\n\t\tString vrstaVozila = \"Putnicko Vozilo\";\n\t\tString regBr = UtillMethod.unosRegBroj();\n\t\tGorivo gorivo = UtillMethod.izabirGoriva();\n\t\tGorivo gorivo2 = UtillMethod.izabirGorivaOpet(gorivo);\n\t\tint brServisa = 1;\n\t\tdouble potrosnja100 = UtillMethod.unesiteDoublePotrosnja();\n\t\tSystem.out.println(\"Unesite broj km koje je vozilo preslo:\");\n\t\tdouble predjeno = UtillMethod.unesiteBroj();\n\t\tdouble preServisa = 10000;\n\t\tdouble cenaServisa = 8000;\n\t\tSystem.out.println(\"Unesite cenu vozila za jedan dan:\");\n\t\tdouble cenaDan = UtillMethod.unesiteBroj();\n\t\tSystem.out.println(\"Unesite broj sedista u vozilu:\");\n\t\tint brSedist = UtillMethod.unesiteInt();\n\t\tSystem.out.println(\"Unesite broj vrata vozila:\");\n\t\tint brVrata = UtillMethod.unesiteInt();\n\t\tboolean vozObrisano = false;\n\t\tArrayList<Gorivo> gorivaVozila = new ArrayList<Gorivo>();\n\t\tgorivaVozila.add(gorivo);\n\t\tif(gorivo2!=Main.nista) {\n\t\t\tgorivaVozila.add(gorivo2);\n\t\t}\n\t\tArrayList<Servis> servisiNadVozilom = new ArrayList<Servis>();\n\t\tPutnickoVozilo vozilo = new PutnickoVozilo(vrstaVozila, regBr, gorivaVozila, brServisa, potrosnja100, predjeno,\n\t\t\t\tpreServisa, cenaServisa, cenaDan, brSedist, brVrata, vozObrisano, servisiNadVozilom);\n\t\tUtillMethod.prviServis(vozilo, predjeno);\n\t\tMain.getVozilaAll().add(vozilo);\n\t\tSystem.out.println(\"Novo vozilo je uspesno dodato u sistem!\");\n\t\tSystem.out.println(\"---------------------------------------\");\n\t}", "public void Zabojstwa() {\n\t\tSystem.out.println(\"Zabojstwa\");\n\t\tfor(int i=0;i<Plansza.getNiebezpieczenstwoNaPlanszy().size();i++) {\n\t\t\tfor(GenerujNiebezpieczenstwo niebez : Plansza.getNiebezpieczenstwoNaPlanszy()) {\n\n\t\t\t\tif(niebez.getZabojca() instanceof DzikieZwierzeta) {\n\t\t\t\t\tif(niebez.getXniebezpieczenstwo()-1 <= Plansza.getNiewolnikNaPLanszy().getXpolozenie() && niebez.getXniebezpieczenstwo()+1 >= Plansza.getNiewolnikNaPLanszy().getXpolozenie()) {\n\t\t\t\t\t\tif(niebez.getYniebezpieczenstwo()-1 <= Plansza.getNiewolnikNaPLanszy().getYpolozenie() && niebez.getYniebezpieczenstwo()+1 >= Plansza.getNiewolnikNaPLanszy().getYpolozenie()) {\n\t\t\t\t\t\t\tif(Plansza.getNiewolnikNaPLanszy().getUbrania() >= niebez.getZabojca().ZmniejszIloscPopulacja() && Plansza.getNiewolnikNaPLanszy().getJedzenie() >= niebez.getZabojca().ZmniejszIloscPopulacja()) {\n\t\t\t\t\t\t\t\tPlansza.getNiewolnikNaPLanszy().setUbrania(Plansza.getNiewolnikNaPLanszy().getUbrania() - niebez.getZabojca().ZmniejszIloscPopulacja());\n\t\t\t\t\t\t\t\tPlansza.getNiewolnikNaPLanszy().setJedzenie(Plansza.getNiewolnikNaPLanszy().getJedzenie() - niebez.getZabojca().ZmniejszIloscPopulacja());\n\t\t\t\t\t\t\t\tPlansza.getNiewolnikNaPLanszy().setLicznikNiebezpieczenstw(Plansza.getNiewolnikNaPLanszy().getLicznikNiebezpieczenstw()+1);\n\t\t\t\t\t\t\t\tPlansza.getNiebezpieczenstwoNaPlanszy().remove(niebez);\n\t\t\t\t\t\t\t\ti--;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tif(niebez.getZabojca() instanceof Bandyci) {\n\t\t\t\t\tif(niebez.getXniebezpieczenstwo()-1 <= Plansza.getRzemieslnikNaPlanszy().getXpolozenie() && niebez.getXniebezpieczenstwo()+1 >= Plansza.getRzemieslnikNaPlanszy().getXpolozenie()) {\n\t\t\t\t\t\tif(niebez.getYniebezpieczenstwo()-1 <= Plansza.getRzemieslnikNaPlanszy().getYpolozenie() && niebez.getYniebezpieczenstwo()+1 >= Plansza.getRzemieslnikNaPlanszy().getYpolozenie()) {\n\t\t\t\t\t\t\tif(Plansza.getRzemieslnikNaPlanszy().getMaterialy() >= niebez.getZabojca().ZmniejszIloscPopulacja() && Plansza.getRzemieslnikNaPlanszy().getNarzedzia() >= niebez.getZabojca().ZmniejszIloscPopulacja()) {\n\t\t\t\t\t\t\t\tif(GeneratorRandom.RandomOd0(101) <= ZapisOdczyt.getRzemieslnicySzansa()) {\n\t\t\t\t\t\t\t\t\tPlansza.getNiebezpieczenstwoNaPlanszy().remove(niebez);\n\t\t\t\t\t\t\t\t\ti--;\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tPlansza.getRzemieslnikNaPlanszy().setMaterialy(Plansza.getRzemieslnikNaPlanszy().getMaterialy() - niebez.getZabojca().ZmniejszIloscPopulacja());\n\t\t\t\t\t\t\t\tPlansza.getRzemieslnikNaPlanszy().setNarzedzia(Plansza.getRzemieslnikNaPlanszy().getNarzedzia() - niebez.getZabojca().ZmniejszIloscPopulacja());\n\t\t\t\t\t\t\t\tPlansza.getRzemieslnikNaPlanszy().setLicznikNiebezpieczenstw(Plansza.getRzemieslnikNaPlanszy().getLicznikNiebezpieczenstw()+1);\n\t\t\t\t\t\t\t\tPlansza.getNiebezpieczenstwoNaPlanszy().remove(niebez);\n\t\t\t\t\t\t\t\ti--;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(niebez.getZabojca() instanceof Zlodzieje) {\n\t\t\t\t\tif(niebez.getXniebezpieczenstwo()-1 <= Plansza.getArystokrataNaPlanszy().getXpolozenie() && niebez.getXniebezpieczenstwo()+1 >= Plansza.getArystokrataNaPlanszy().getXpolozenie()) {\n\t\t\t\t\t\tif(niebez.getYniebezpieczenstwo()-1 <= Plansza.getArystokrataNaPlanszy().getYpolozenie() && niebez.getYniebezpieczenstwo()+1 >= Plansza.getArystokrataNaPlanszy().getYpolozenie()) {\n\t\t\t\t\t\t\tif(Plansza.getArystokrataNaPlanszy().getTowary() >= niebez.getZabojca().ZmniejszIloscPopulacja() && Plansza.getArystokrataNaPlanszy().getZloto() >= niebez.getZabojca().ZmniejszIloscPopulacja()) {\n\t\t\t\t\t\t\t\tPlansza.getArystokrataNaPlanszy().setTowary(Plansza.getArystokrataNaPlanszy().getTowary() - niebez.getZabojca().ZmniejszIloscPopulacja());\n\t\t\t\t\t\t\t\tPlansza.getArystokrataNaPlanszy().setZloto(Plansza.getArystokrataNaPlanszy().getZloto() - niebez.getZabojca().ZmniejszIloscPopulacja());\n\t\t\t\t\t\t\t\tPlansza.getArystokrataNaPlanszy().setLicznikNiebezpieczenstw(Plansza.getArystokrataNaPlanszy().getLicznikNiebezpieczenstw()+1);\n\t\t\t\t\t\t\t\tPlansza.getNiebezpieczenstwoNaPlanszy().remove(niebez);\n\t\t\t\t\t\t\t\ti--;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t}", "public int liczbaelnastosie() {\n\t\treturn 0;\n\t}", "private Zivocich vytvorZivocicha() {\r\n final String[] zFarba = {\"cervena\", \"zelena\", \"modra\", \"zlta\", \"zlto-zelena\"};\r\n Zivocich zviera = null;\r\n double kolkoVazi = 0.0;\r\n\r\n //-- Vygenerujeme zviera\r\n int vygenerovane = 1 + generator.nextInt(4); //cislo <1,4>\r\n\r\n switch (vygenerovane) {\r\n case 1: //blcha \r\n double kolkoDoskoci=3 * generator.nextDouble() ; //cislo <0;2.99>\r\n double kolkoVyskoci=3 * generator.nextDouble() ; //cislo <0;2.99>\r\n zviera=new Blcha(6,kolkoDoskoci,kolkoVyskoci);\r\n break;\r\n case 2: //simpanz\r\n kolkoVazi=3 + (97 * generator.nextDouble()); //cislo <3;99.9>\r\n boolean cviceny;\r\n cviceny=generator.nextBoolean(); \r\n zviera=new Simpanz(kolkoVazi,cviceny);\r\n break;\r\n case 3: //papagaj\r\n kolkoVazi = 0.1 + (5*generator.nextDouble()); // cislo <0.1; 6>\r\n String farba = zFarba[generator.nextInt(5)]; // farba zo zoznamu\r\n zviera = new Papagaj(\"Ara\", 2, kolkoVazi, farba); \r\n break;\r\n case 4: //slon\r\n kolkoVazi=20 + (480*generator.nextDouble()); //cislo <20;500> \r\n int pocet=generator.nextInt(50); //pocet zubov bude <0,49>\r\n zviera=new Slon(kolkoVazi,pocet);\r\n break;\r\n } //------------------------------------------------------------- switch --\r\n return zviera;\r\n }", "private static void kapazitaetPruefen(){\n\t\tList<OeffentlichesVerkehrsmittel> loev = new ArrayList<OeffentlichesVerkehrsmittel>();\n\t\t\n\t\tLinienBus b1 = new LinienBus();\n\t\tFaehrschiff f1 = new Faehrschiff();\n\t\tLinienBus b2 = new LinienBus();\t\n\t\t\n\t\tloev.add(b1);\n\t\tloev.add(b2);\n\t\tloev.add(f1);\n\t\t\n\t\tint zaehlung = 500;\n\t\tboolean ausreichend = kapazitaetPruefen(loev,500);\n\t\tp(\"Kapazitaet ausreichend? \" + ausreichend);\n\t\t\n\t}", "private void dodajEpsilonPrijelaz(int pocetno, int sljedece) {\n String key = pocetno + \",$$\";\n if (!prijelazi.containsKey(key)) {\n prijelazi.put(key, new Integer(sljedece).toString());\n } else {\n String value = prijelazi.get(key) + \",\" + new Integer(sljedece).toString();\n prijelazi.put(key, value);\n }\n }", "@Test\r\n\tpublic void testGetPeliBalorazioak() {\n\t\tBektorea bek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioak(p1.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(e1.getId()) == 4);\r\n\t\tassertTrue(bek.getBalioa(e3.getId()) == 0.5);\r\n\t\tassertFalse(bek.bektoreanDago(e2.getId()));\r\n\t\t\r\n\t\t// p2 pelikula baloratu duten erabiltzaileen ID-ak eta balorazioak itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioak(p2.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 4);\r\n\t\tassertTrue(bek.getBalioa(e1.getId()) == 3);\r\n\t\tassertTrue(bek.getBalioa(e2.getId()) == 2);\r\n\t\tassertTrue(bek.getBalioa(e3.getId()) == 3.5);\r\n\t\tassertTrue(bek.getBalioa(e4.getId()) == 3.5);\r\n\t\t\r\n\t\t// p3 pelikula baloratu duten erabiltzaileen ID-ak eta balorazioak itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioak(p3.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(e2.getId()) == 1);\r\n\t\tassertTrue(bek.getBalioa(e3.getId()) == 4);\r\n\t\tassertFalse(bek.bektoreanDago(e1.getId()));\r\n\t\t\r\n\t\t// p4 pelikula baloratu duten erabiltzaileen ID-ak eta balorazioak itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioak(p4.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(e1.getId()) == 3.5);\r\n\t\tassertTrue(bek.getBalioa(e3.getId()) == 5);\r\n\t\tassertFalse(bek.bektoreanDago(e2.getId()));\r\n\r\n\t}", "public abstract String dohvatiKontakt();", "public void testOctaedre() {\n\t\t\t\n\t\t\tSolide i = Octaedre.octaedre();\n\t\t\t\n\t\t\t/* creation de points qui ont les memes coordonnees que ceux qui \n\t\t\t * constituent notre solide (car octaedre() n'a pas de parametres)\n\t\t\t */\n\t\t\t\n\t\t\tPoint p1 = new Point(-25, 0,-25);\n\t\t\tPoint p2 = new Point(-25, 0,25);\n\t\t\tPoint p3 = new Point(25, 0,-25);\n\t\t\tPoint p4 = new Point(25,0,25);\n\t\t\tfloat hauteur = (float) (50/Math.sqrt(2));\n\t\t\t// on se sert de la hauteur pour donnee les coordonees des sommets manquant\n\t\t\tPoint p5 = new Point(0, hauteur,0);\n\t\t\tPoint p6 = new Point(0,-hauteur,0);\n\t\t\t\n\t\t\t//On teste si les points de l'octaedre i sont bien les memes que ceux créés\n\t\t\t\n\t\t\tassertTrue(i.getPoint().get(4).getAbscisse()==(p1.getAbscisse()));\n\t\t\tassertTrue(i.getPoint().get(1).getAbscisse()==(p2.getAbscisse()));\n\t\t\tassertTrue(i.getPoint().get(5).getAbscisse()==(p3.getAbscisse()));\n\t\t\tassertTrue(i.getPoint().get(3).getAbscisse()==(p4.getAbscisse()));\n\t\t\tassertTrue(i.getPoint().get(2).getAbscisse()==(p5.getAbscisse()));\n\t\t\tassertTrue(i.getPoint().get(0).getAbscisse()==(p6.getAbscisse()));\n\t\t\t\n\t\t\tassertTrue(i.getPoint().get(4).getOrdonnee()==(p1.getOrdonnee()));\n\t\t\tassertTrue(i.getPoint().get(1).getOrdonnee()==(p2.getOrdonnee()));\n\t\t\tassertTrue(i.getPoint().get(5).getOrdonnee()==(p3.getOrdonnee()));\n\t\t\tassertTrue(i.getPoint().get(3).getOrdonnee()==(p4.getOrdonnee()));\n\t\t\tassertTrue(i.getPoint().get(2).getOrdonnee()==(p5.getOrdonnee()));\n\t\t\tassertTrue(i.getPoint().get(0).getOrdonnee()==(p6.getOrdonnee()));\n\t\t\t\n\t\t\tassertTrue(i.getPoint().get(4).getProfondeur()==(p1.getProfondeur()));\n\t\t\tassertTrue(i.getPoint().get(1).getProfondeur()==(p2.getProfondeur()));\n\t\t\tassertTrue(i.getPoint().get(5).getProfondeur()==(p3.getProfondeur()));\n\t\t\tassertTrue(i.getPoint().get(3).getProfondeur()==(p4.getProfondeur()));\n\t\t\tassertTrue(i.getPoint().get(2).getProfondeur()==(p5.getProfondeur()));\n\t\t\tassertTrue(i.getPoint().get(0).getProfondeur()==(p6.getProfondeur()));\n\t\t\t\n\t\t\t//On teste si les faces de l'octaedre contiennent bien les points créés\n\t\t\t\n\t\t\tassertTrue(i.getFaces().get(0).contient(p1));\n\t\t\tassertTrue(i.getFaces().get(0).contient(p2));\n\t\t\tassertTrue(i.getFaces().get(0).contient(p5));\n\t\t\t\n\t\t\tassertTrue(i.getFaces().get(1).contient(p1));\n\t\t\tassertTrue(i.getFaces().get(1).contient(p2));\n\t\t\tassertTrue(i.getFaces().get(1).contient(p6));\n\t\t\t\n\t\t\tassertTrue(i.getFaces().get(2).contient(p1));\n\t\t\tassertTrue(i.getFaces().get(2).contient(p3));\n\t\t\tassertTrue(i.getFaces().get(2).contient(p5));\n\t\t\t\n\t\t\tassertTrue(i.getFaces().get(3).contient(p1));\n\t\t\tassertTrue(i.getFaces().get(3).contient(p3));\n\t\t\tassertTrue(i.getFaces().get(3).contient(p6));\n\t\t\n\t\t\tassertTrue(i.getFaces().get(4).contient(p3));\n\t\t\tassertTrue(i.getFaces().get(4).contient(p4));\n\t\t\tassertTrue(i.getFaces().get(4).contient(p5));\n\t\t\t\n\t\t\tassertTrue(i.getFaces().get(5).contient(p3));\n\t\t\tassertTrue(i.getFaces().get(5).contient(p4));\n\t\t\tassertTrue(i.getFaces().get(5).contient(p6));\n\t\t\t\n\t\t\tassertTrue(i.getFaces().get(6).contient(p2));\n\t\t\tassertTrue(i.getFaces().get(6).contient(p4));\n\t\t\tassertTrue(i.getFaces().get(6).contient(p5));\n\t\t\t\n\t\t\tassertTrue(i.getFaces().get(7).contient(p2));\n\t\t\tassertTrue(i.getFaces().get(7).contient(p4));\n\t\t\tassertTrue(i.getFaces().get(7).contient(p6));\n\t\t\t\n\t\t\t\n\t\t\t\n\t}", "float znajdzOstatecznaCene()\n\t{\n\t\t//getInput(\"znajdzOstatecznaCene\");\n\t\t//print (\"znajdzOstatecznaCene \"+iteracja);\n\t\t\n\t\t//debug\n\t\tBoolean debug = false;\n\t\tif (LokalneCentrum.getCurrentHour().equals(\"03:00\"))\n\t\t{\n\t\t\tprint(\"03:00 on the clock\",debug);\n\t\t\tdebug=false;\n\t\t}\n\t\t\n\t\t//wszystkie ceny jakie byly oglaszan ne na najblizszy slot w \n\t\tArrayList<Float> cenyNaNajblizszySlot =znajdzOstatecznaCeneCenaNaNajblizszeSloty();\n\t\t\n\t\t\n\t\t//Stworzenie cen w raportowaniu\n\t\tint i=0;\n\t\twhile (i<cenyNaNajblizszySlot.size())\n\t\t{\n\t\t\trynekHistory.kontraktDodajCene(cenyNaNajblizszySlot.get(i));\n\t\t\ti++;\n\t\t}\n\t\t\n\t\tprint(\"ceny na najblizszy slot \"+cenyNaNajblizszySlot.size());\n\n\t\t\n\t\t//do rpzerobienia problemu minimalizacji na maksymalizacje\n\t\tint inverter =-1;\n\t\t\n\t\ti=0;\n\t\tfloat cena =cenyNaNajblizszySlot.get(i);\n\t\tfloat minimuCena =cena;\t\t\n\t\tfloat minimumValue =inverter*funkcjaRynku2(cena, false,true);\n\t\ti++;\n\t\t\n\t\trynekHistory.kontraktDodajWartoscFunkcjiRynku(funkcjaRynku2(cena, false), minimuCena);\n\t\t\n\t\twhile (i<cenyNaNajblizszySlot.size())\n\t\t{\n\t\t\tcena =cenyNaNajblizszySlot.get(i);\n\t\t\tfloat value =inverter*funkcjaRynku2(cena, false,true);\t\t\t\n\n\t\t\trynekHistory.kontraktDodajWartoscFunkcjiRynku(funkcjaRynku2(cena, false), cena);\n\n\t\t\tif (value<minimumValue)\n\t\t\t{\n\t\t\t\tminimuCena =cena;\n\t\t\t\tminimumValue = value;\n\n\t\t\t}\n\t\t\t\n\t\t\ti++;\n\t\t}\n\t\t\n\t\tif(debug)\n\t\t{\n\t\t\tgetInput(\"03:00 end\");\n\t\t}\n\t\t\n\t\t//getInput(\"znajdzOstatecznaCene - nto finished\");\n\t\treturn minimuCena;\n\t\t\n\t}", "void rozpiszKontraktyPart2NoEV(int index,float wolumenHandlu, float sumaKupna,float sumaSprzedazy )\n\t{\n\t\tArrayList<Prosument> listaProsumentowTrue =listaProsumentowWrap.getListaProsumentow();\n\t\t\n\n\t\tint a=0;\n\t\twhile (a<listaProsumentowTrue.size())\n\t\t{\n\t\t\t\t\t\t\n\t\t\t// ustala bianrke kupuj\n\t\t\t// ustala clakowita sprzedaz (jako consumption)\n\t\t\t//ustala calkowite kupno (jako generacje)\n\t\t\tDayData constrainMarker = new DayData();\n\t\t\t\n\t\t\tArrayList<Point> L1\t=listaFunkcjiUzytecznosci.get(a);\n\t\t\t\n\t\t\t//energia jaka zadeklarowal prosument ze sprzeda/kupi\n\t\t\tfloat energia = L1.get(index).getIloscEnergiiDoKupienia();\n\t\t\t\n\t\t\tif (energia>0)\n\t\t\t{\n\t\t\t\tfloat iloscEnergiiDoKupienia = energia/sumaKupna*wolumenHandlu;\n\t\t\t\t\n\t\t\t\tconstrainMarker.setKupuj(1);\n\t\t\t\tconstrainMarker.setGeneration(iloscEnergiiDoKupienia);\n\t\t\t\t\n\t\t\t\trynekHistory.ustawBetaDlaWynikowHandlu(iloscEnergiiDoKupienia,a);\t\t\t\t\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tfloat iloscEnergiiDoSprzedania = energia/sumaSprzedazy*wolumenHandlu;\n\n\t\t\t\t\n\t\t\t\tconstrainMarker.setKupuj(0);\n\t\t\t\tconstrainMarker.setConsumption(iloscEnergiiDoSprzedania);\n\t\t\t\t\n\t\t\t\trynekHistory.ustawBetaDlaWynikowHandlu(iloscEnergiiDoSprzedania,a);\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tArrayList<Float> priceVector = priceVectorsList.get(priceVectorsList.size()-1);\n\t\t\t\n\t\t\t//poinformuj prosumenta o wyniakch handlu i dostosuj go do wynikow\n\t\t\tlistaProsumentowTrue.get(a).getKontrakt(priceVector,constrainMarker);\n\t\t\t\n\t\t\ta++;\n\t\t}\n\t}", "private void laskeMatkojenPituus() {\n matkojenpituus = 0.0;\n\n for (Matka m : matkat) {\n matkojenpituus += m.getKuljettumatka();\n }\n\n }", "@Test\r\n\tpublic void testErabiltzaileakBaloratuDituenPelikulenZerrenda() {\n\t\tArrayList<Integer> zer = BalorazioenMatrizea.getBalorazioenMatrizea().erabiltzaileakBaloratuDituenPelikulenZerrenda(e1.getId());\r\n\t\tassertTrue(zer.size() == 3);\r\n\t\tassertTrue(zer.contains(p1.getPelikulaId()));\r\n\t\tassertTrue(zer.contains(p2.getPelikulaId()));\r\n\t\tassertTrue(zer.contains(p4.getPelikulaId()));\r\n\t\tassertFalse(zer.contains(p3.getPelikulaId()));\r\n\t\t\r\n\t\t// e2 erabiltzaileak baloratu dituen pelikulen ID-ak itzuli\r\n\t\tzer = BalorazioenMatrizea.getBalorazioenMatrizea().erabiltzaileakBaloratuDituenPelikulenZerrenda(e2.getId());\r\n\t\tassertTrue(zer.size() == 2);\r\n\t\tassertTrue(zer.contains(p2.getPelikulaId()));\r\n\t\tassertTrue(zer.contains(p3.getPelikulaId()));\r\n\t\tassertFalse(zer.contains(p1.getPelikulaId()));\r\n\t\t\r\n\t\t// e3 erabiltzaileak baloratu dituen pelikulen ID-ak itzuli\r\n\t\tzer = BalorazioenMatrizea.getBalorazioenMatrizea().erabiltzaileakBaloratuDituenPelikulenZerrenda(e3.getId());\r\n\t\tassertTrue(zer.size() == 4);\r\n\t\tassertTrue(zer.contains(p1.getPelikulaId()));\r\n\t\tassertTrue(zer.contains(p2.getPelikulaId()));\r\n\t\tassertTrue(zer.contains(p3.getPelikulaId()));\r\n\t\tassertTrue(zer.contains(p4.getPelikulaId()));\r\n\t\t\r\n\t\t// e2 erabiltzaileak baloratu dituen pelikulen ID-ak itzuli\r\n\t\tzer = BalorazioenMatrizea.getBalorazioenMatrizea().erabiltzaileakBaloratuDituenPelikulenZerrenda(e4.getId());\r\n\t\tassertTrue(zer.size() == 1);\r\n\t\tassertTrue(zer.contains(p2.getPelikulaId()));\r\n\t\tassertFalse(zer.contains(p1.getPelikulaId()));\r\n\t\t\r\n\t}", "public void ZbierzTowaryKlas() {\n\t\tSystem.out.println(\"ZbierzTowaryKlas\");\n\t\tfor(int i=0;i<Plansza.getTowarNaPlanszy().size();i++) {\n\t\t\tfor(Towar towar : Plansza.getTowarNaPlanszy()) {\n\t\t\t\t\n\t\t\t\tif(Plansza.getNiewolnikNaPLanszy().getXpolozenie()-1 <= towar.getXtowar() && Plansza.getNiewolnikNaPLanszy().getXpolozenie()+1 >= towar.getXtowar()) \n\t\t\t\t\tif(Plansza.getNiewolnikNaPLanszy().getYpolozenie()-1 <= towar.getYtowar() && Plansza.getNiewolnikNaPLanszy().getYpolozenie()+1 >= towar.getYtowar()) {\n\t\t\t\t\t\tPlansza.getNiewolnikNaPLanszy().ZbieranieTowarow(towar);\n\t\t\t\t\t\t//Szansa Niewolnika na zdobycie dwoch razy wiecej towarow\n\t\t\t\t\t\tif(GeneratorRandom.RandomOd0(101) <= ZapisOdczyt.getNiewolnicySzansa()) {\n\t\t\t\t\t\t\tPlansza.getNiewolnikNaPLanszy().ZbieranieTowarow(towar);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tPlansza.getTowarNaPlanszy().remove(towar);\n\t\t\t\t\t\tPlansza.getNiewolnikNaPLanszy().setLicznikTowarow(Plansza.getNiewolnikNaPLanszy().getLicznikTowarow()+1);\n\t\t\t\t\t\ti--;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(Plansza.getRzemieslnikNaPlanszy().getXpolozenie()-1 <= towar.getXtowar() && Plansza.getRzemieslnikNaPlanszy().getXpolozenie()+1 >= towar.getXtowar()) \n\t\t\t\t\tif(Plansza.getRzemieslnikNaPlanszy().getYpolozenie()-1 <= towar.getYtowar() && Plansza.getRzemieslnikNaPlanszy().getYpolozenie()+1 >= towar.getYtowar()) {\n\t\t\t\t\t\tPlansza.getRzemieslnikNaPlanszy().ZbieranieTowarow(towar);\n\t\t\t\t\t\tPlansza.getTowarNaPlanszy().remove(towar);\n\t\t\t\t\t\tPlansza.getRzemieslnikNaPlanszy().setLicznikTowarow(Plansza.getRzemieslnikNaPlanszy().getLicznikTowarow()+1);\n\t\t\t\t\t\ti--;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(Plansza.getArystokrataNaPlanszy().getXpolozenie()-1 <= towar.getXtowar() && Plansza.getArystokrataNaPlanszy().getXpolozenie()+1 >= towar.getXtowar()) \n\t\t\t\t\tif(Plansza.getArystokrataNaPlanszy().getYpolozenie()-1 <= towar.getYtowar() && Plansza.getArystokrataNaPlanszy().getYpolozenie()+1 >= towar.getYtowar()) {\n\t\t\t\t\t\tPlansza.getArystokrataNaPlanszy().ZbieranieTowarow(towar);\n\t\t\t\t\t\tPlansza.getTowarNaPlanszy().remove(towar);\n\t\t\t\t\t\tPlansza.getArystokrataNaPlanszy().setLicznikTowarow(Plansza.getArystokrataNaPlanszy().getLicznikTowarow()+1);\n\t\t\t\t\t\ti--;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void leerPlanesDietas();", "public void test5(){\r\n\t\tZug zug1 = st.zugErstellen(1, 0, \"Zug 1\");\r\n\t\tZug zug2 = st.zugErstellen(0, 3, \"Zug 2\"); \r\n\t}", "public void ucitajPotez(Potez potez) {\n\t\tint red = potez.vratiRed();\n\t\tint kolona = potez.vratiKolonu();\n\t\ttabla[red][kolona] = potez.vratiRezultat();\n\n\t\tif (potez.vratiRezultat() == Polje1.potopljen) {\n\t\t\tint gornjiRed, gornjaKolona;\n\t\t\tboolean cont1 = false;\n\t\t\tboolean cont2 = false;\n\t\t\tboolean redar = false;\n\t\t\tboolean kolonar = false;\n\t\t\twhile (redar == false) {\n\t\t\t\tif (red == 0) {\n\t\t\t\t\tgornjiRed = 0;\n\t\t\t\t\tcont1 = true;\n\t\t\t\t} else {\n\t\t\t\t\tgornjiRed = red - 1;\n\t\t\t\t}\n\t\t\t\tif (red == 9) {\n\t\t\t\t\tcont2 = true;\n\t\t\t\t}\n\t\t\t\tif (tabla[gornjiRed][kolona] == Polje1.pogodjen && cont1 == false) {\n\t\t\t\t\ttabla[gornjiRed][kolona] = Polje1.potopljen;\n\t\t\t\t\tred--;\n\t\t\t\t} else {\n\t\t\t\t\tcont1 = true;\n\t\t\t\t\tgornjiRed++;\n\t\t\t\t}\n\t\t\t\tif (cont1 == true) {\n\t\t\t\t\tif (tabla[gornjiRed][kolona] == Polje1.pogodjen || tabla[gornjiRed][kolona] == Polje1.potopljen) {\n\t\t\t\t\t\ttabla[gornjiRed][kolona] = Polje1.potopljen;\n\t\t\t\t\t\tred++;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcont2 = true;\n\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (cont1 == true && cont2 == true)\n\t\t\t\t\tredar = true;\n\t\t\t}\n\t\t\tcont1 = false;\n\t\t\tcont2 = false;\n\t\t\tred = potez.vratiRed();\n\t\t\twhile (kolonar == false) {\n\t\t\t\tif (kolona == 0) {\n\t\t\t\t\tgornjaKolona = 0;\n\t\t\t\t\tcont1 = true;\n\t\t\t\t} else {\n\t\t\t\t\tgornjaKolona = kolona - 1;\n\t\t\t\t}\n\t\t\t\tif (kolona == 9) {\n\t\t\t\t\tcont2 = true;\n\t\t\t\t}\n\t\t\t\tif (tabla[red][gornjaKolona] == Polje1.pogodjen && cont1 == false) {\n\t\t\t\t\ttabla[red][gornjaKolona] = Polje1.potopljen;\n\t\t\t\t\tkolona--;\n\t\t\t\t} else {\n\t\t\t\t\tcont1 = true;\n\t\t\t\t\tgornjaKolona++;\n\t\t\t\t}\n\t\t\t\tif (cont1 == true) {\n\t\t\t\t\tif (tabla[red][gornjaKolona] == Polje1.pogodjen || tabla[red][gornjaKolona] == Polje1.potopljen) {\n\t\t\t\t\t\ttabla[red][gornjaKolona] = Polje1.potopljen;\n\t\t\t\t\t\tkolona++;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcont2 = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (cont1 == true && cont2 == true)\n\t\t\t\t\tkolonar = true;\n\n\t\t\t}\n\n\t\t}\n\n\n\t}", "@Test\r\n\tpublic void testGetErabBalorazioak() {\n\t\tBektorea bek = BalorazioenMatrizea.getBalorazioenMatrizea().getErabBalorazioak(e1.getId());\r\n\t\tassertTrue(bek.luzera() == 3);\r\n\t\tassertTrue(bek.getBalioa(p1.getPelikulaId()) == 4);\r\n\t\tassertTrue(bek.getBalioa(p2.getPelikulaId()) == 3);\r\n\t\tassertTrue(bek.getBalioa(p4.getPelikulaId()) == 3.5);\r\n\t\tassertFalse(bek.bektoreanDago(p3.getPelikulaId()));\r\n\t\t\r\n\t\t// e2 erabiltzaileak baloratu dituen pelikulen ID-ak eta balorazioak itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getErabBalorazioak(e2.getId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(p2.getPelikulaId()) == 2);\r\n\t\tassertTrue(bek.getBalioa(p3.getPelikulaId()) == 1);\r\n\t\tassertFalse(bek.bektoreanDago(p1.getPelikulaId()));\r\n\t\t\r\n\t\t// e3 erabiltzaileak baloratu dituen pelikulen ID-ak eta balorazioak itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getErabBalorazioak(e3.getId());\r\n\t\tassertTrue(bek.luzera() == 4);\r\n\t\tassertTrue(bek.getBalioa(p1.getPelikulaId()) == 0.5);\r\n\t\tassertTrue(bek.getBalioa(p2.getPelikulaId()) == 3.5);\r\n\t\tassertTrue(bek.getBalioa(p3.getPelikulaId()) == 4);\r\n\t\tassertTrue(bek.getBalioa(p4.getPelikulaId()) == 5);\r\n\t\t\r\n\t\t// e4 erabiltzaileak baloratu dituen pelikulen ID-ak eta balorazioak itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getErabBalorazioak(e4.getId());\r\n\t\tassertTrue(bek.luzera() == 1);\r\n\t\tassertTrue(bek.getBalioa(p2.getPelikulaId()) == 3.5);\r\n\t\tassertFalse(bek.bektoreanDago(p1.getPelikulaId()));\r\n\t\t\r\n\t}", "public void urciStupneVrcholu(){\n\t\tfor(int i = 0;i < vrchP.length; i++){\n\t\t\tstupenVrcholu(vrchP[i].klic);\n\t\t}\n\t}", "@SuppressWarnings(\"SuspiciousMethodCalls\")\n private int houve_estouro()\n {\n int retorno = 0;\n boolean checar = false;\n for (Map.Entry i: janela.entrySet())\n {\n if (janela.get(i.getKey()).isEstouro())\n {\n janela.get(i.getKey()).setEstouro(false);\n retorno =(int) i.getKey();\n checar = true;\n break;\n }\n }\n for(Map.Entry i2: janela.entrySet()) janela.get(i2.getKey()).setEstouro(false);\n if(checar) return retorno;\n else return -69;\n }", "public void dodajZmijuPocetak() {\n\t\tthis.zmija.add(new Cvor(1,4));\n\t\tthis.zmija.add(new Cvor(1,3));\n\t\tthis.zmija.add(new Cvor(1,2));\n\t\t\n\t\tint i = this.zmija.get(0).i;\n\t\tint j = this.zmija.get(0).j;\n\t\tthis.tabla[i][j] = 'O';\n\t\t\n\t\tfor (int k = 1; k < this.zmija.size(); k++) {\n\t\t\ti = this.zmija.get(k).i;\n\t\t\tj = this.zmija.get(k).j;\n\t\t\tthis.tabla[i][j] = 'o';\n\t\t}\t\n\t}", "private void pojedi (int i, int j) {\n\t\trezultat++;\n\t\tthis.zmija.add(0, new Cvor(i,j));\n\t\tthis.dodajZmiju();\n\t\tthis.dodajHranu();\n\t}", "public ArrayList<ArrayList<Float>> predykcjaCenNaRynkuLokalnym()\n\t{\n\t\tfloat cenaMinimalnaNaRynkuLokalnym= Stale.cenaMinimalnaNaRynkuLokalnym;\n\t\tfloat cenaMaksymalnaNaRynkuLokalnym = Stale.cenaDystrybutoraZewnetrznego;\n\t\t\n\t\t//tu siedzi to rozroznienie czy z generatora czy predykcja z poprzendiej symualcji\n\t\tArrayList<Float> normalnaPredykcja = pierwszaPredykcja();\n\t\tpriceVectorsList.add(normalnaPredykcja);\n\t\t\n\t\tArrayList<ArrayList<Float>> listaPredykcjiCen= new ArrayList<ArrayList<Float>>();\n\t\t\n\t\t\n\t\t//nizsza \n\t\tArrayList<Float> predykcjaZNizszaCena=new ArrayList<Float>(normalnaPredykcja);\t\t\n\t\tArrayList<Float> predykcjaZWyzszaCena=new ArrayList<Float>(normalnaPredykcja);\n\t\t\n\t\tfloat nizszaCena =(normalnaPredykcja.get(0)+cenaMinimalnaNaRynkuLokalnym)/2 ;\n\t\tfloat wyzszaCena=(normalnaPredykcja.get(0)+cenaMaksymalnaNaRynkuLokalnym)/2;\n\t\t\n\t\tpredykcjaZNizszaCena.set(0, nizszaCena);\n\t\tpredykcjaZWyzszaCena.set(0, wyzszaCena);\n\t\t\n\t\tlistaPredykcjiCen.add(predykcjaZNizszaCena);\n\t\tlistaPredykcjiCen.add(normalnaPredykcja);\n\t\tlistaPredykcjiCen.add(predykcjaZWyzszaCena);\n\t\t\n\t\t//reporting - zapisz zadeklarowan cene\n\t\trynekHistory.dodajZadeklarowanaCene(normalnaPredykcja.get(0));\n\t\t\n\t\t\n\t\treturn listaPredykcjiCen;\t\n\t}", "public IzvajalecZdravstvenihStoritev() {\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\tclass Ulamek{\r\n\t\t\tprivate int licznik, mianownik;\r\n\r\n\t\t\tpublic void ustawLicznik (int l){\r\n\t\t\t\tlicznik=l;\r\n\t\t\t}\r\n\t\t\tpublic void ustawMianownik (int m){\r\n\t\t\t\tmianownik=m;\r\n\t\t\t}\r\n\t\t\tpublic void ustawUlamek (int u1, int u2){\r\n\t\t\t\tlicznik=u1;\r\n\t\t\t\tmianownik=u2;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tpublic void wyswietl (){\r\n\t\t\t\t\r\n\t\t\t\tint przod, reszta, przod_dlugosc, mianownik_dlugosc, licznik_dlugosc;\r\n\t\t\t\tString przod_zamiana, mianownik_string, licznik_string;\r\n\t\t\t\tdouble wynik;\r\n\t\t\t\t\r\n\t\t\t\tif (mianownik!=0 && licznik !=0){\r\n\t\t\t\tprzod=licznik/mianownik;\r\n\t\t\t\treszta=licznik-(przod*mianownik);\r\n\t\t\t\tprzod_zamiana=\"\"+przod;\r\n\t\t\t\tprzod_dlugosc=przod_zamiana.length();\r\n\t\t\t\twynik=1.0*licznik/mianownik;\r\n\t\t\t\t\r\n\t\t\t\tif(reszta!=0){\r\n\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\tint licznik = 0;\r\n\t\t\t\t\tdo{\r\n\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t licznik++;\r\n\t\t\t\t\t}while (licznik!=przod_dlugosc);\r\n\t\t\t\tSystem.out.println(reszta);\r\n\t\t\t}\r\n\r\n\t\t\t\t//zamiana na stringa i liczenie\r\n\t\t\t\tmianownik_string=\"\"+mianownik;\r\n\t\t\t\tmianownik_dlugosc=mianownik_string.length();\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t//brak calości\r\n\t\t\t\tif(przod==0){\r\n\t\t\t\tSystem.out.print(\" \"+\" \"+\" \");\r\n\t\t\t\tint licznik3 = 0;\r\n\t\t\t\tdo{\r\n\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t licznik3++;\r\n\t\t\t\t}while (licznik3!=mianownik_dlugosc);\r\n\t\t\t System.out.print(\" = \"+wynik);\r\n\r\n\t\t\t System.out.println();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\r\n\r\n\t\t\t\tif(przod!=0){\r\n\t\t\t\tSystem.out.print(\" \"+przod+\" \");\r\n\t\t\t\tint licznik3 = 0;\r\n\t\t\t\tdo{\r\n\t\t\t\t\tif(reszta!=0){\r\n\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t}\r\n\t\t\t\t licznik3++;\r\n\t\t\t\t}while (licznik3!=mianownik_dlugosc);\r\n\t\t\t System.out.print(\" = \"+wynik);\r\n\r\n\t\t\t System.out.println();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif(reszta!=0){\r\n\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\tint licznik2 = 0;\r\n\t\t\t\tdo{\r\n\t\t\t\t\tif(reszta!=0){\r\n\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t licznik2++;\r\n\t\t\t\t\t\r\n\t\t\t\t}while (licznik2!=przod_dlugosc);\r\n\t\t\t\tSystem.out.println(mianownik);\r\n\t\t\t System.out.println();\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\t//jezeli blad \r\n\t\t\t\t\tmianownik_string=\"\"+mianownik;\r\n\t\t\t\t\tmianownik_dlugosc=mianownik_string.length();\r\n\t\t\t\t\tlicznik_string=\"\"+licznik;\r\n\t\t\t\t\tlicznik_dlugosc=licznik_string.length();\r\n\t\t\t\t\tif(licznik_dlugosc>mianownik_dlugosc){\r\n\t\t\t\t\t\tmianownik_dlugosc=licznik_dlugosc;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//gora\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t//if(licznik==0){\r\n\t\t\t\t\t//System.out.print(\" \");\r\n\t\t\t\t\t//}\r\n\r\n\t\t\t\t\tSystem.out.println(licznik);\r\n\t\t\t\t\t\r\n\t\t\t\t\t//srodek\r\n\t\t\t\t\tSystem.out.print(\" \"+\" \"+\" \");\r\n\t\t\t\t\t\r\n\t\t\t\t\tint licznik3 = 0;\r\n\t\t\t\t\tdo{\r\n\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t licznik3++;\r\n\t\t\t\t\t}while (licznik3!=mianownik_dlugosc);\r\n\t\t\t\t System.out.print(\" = \"+\"ERR\");\r\n\r\n\t\t\t\t System.out.println();\r\n\t\t\t\t\t\r\n\t\t\t\t //dol\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t\t\tSystem.out.println(mianownik);\r\n\t\t\t\t\t System.out.println();\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t Ulamek u1=new Ulamek();\r\n\t\t Ulamek u2=new Ulamek();\r\n\r\n\t\t u1.ustawLicznik(3);\r\n\t\t u1.ustawMianownik(5);\r\n\r\n\t\t u2.ustawLicznik(142);\r\n\t\t u2.ustawMianownik(8);\r\n\r\n\t\t u1.wyswietl();\r\n\r\n\r\n\r\n\r\n\r\n\r\n\t\t \r\n\t\t u2.wyswietl();\r\n\r\n\r\n\r\n\r\n\t\t u2.ustawUlamek(100,0);\r\n\r\n\r\n\t\t u2.wyswietl();\r\n\r\n\t}", "public static void dodavanjeTeretnogVozila() {\n\t\tString vrstaVozila = \"Teretno Vozilo\";\n\t\tString regBr = UtillMethod.unosRegBroj();\n\t\tGorivo gorivo = UtillMethod.izabirGoriva();\n\t\tGorivo gorivo2 = UtillMethod.izabirGorivaOpet(gorivo);\n\t\tint brServisa = 1;\n\t\tdouble potrosnja = UtillMethod.unesiteDoublePotrosnja();\n\t\tSystem.out.println(\"Unesite broj km koje je vozilo preslo:\");\n\t\tdouble predjeno = UtillMethod.unesiteBroj();\n\t\tdouble preServisa = 20000;\n\t\tdouble cenaServisa = 10000;\n\t\tSystem.out.println(\"Unesite cenu vozila za jedan dan:\");\n\t\tdouble cenaDan = UtillMethod.unesiteBroj();\n\t\tSystem.out.println(\"Unesite broj sedista u vozilu:\");\n\t\tint brSedista = UtillMethod.unesiteInt();\n\t\tSystem.out.println(\"Unesite broj vrata vozila:\");\n\t\tint brVrata = UtillMethod.unesiteInt();\n\t\tboolean vozObrisano = false;\n\t\tArrayList<Gorivo> gorivaVozila = new ArrayList<Gorivo>();\n\t\tgorivaVozila.add(gorivo);\n\t\tif(gorivo2!=Main.nista) {\n\t\t\tgorivaVozila.add(gorivo2);\n\t\t}\n\t\tArrayList<Servis> servisiNadVozilom = new ArrayList<Servis>();\n\t\tSystem.out.println(\"Unesite maximalnu masu koje vozilo moze da prenosi u KG !!\");\n\t\tint maxMasauKg = UtillMethod.unesiteInt();\n\t\tSystem.out.println(\"Unesite maximalnu visinu u m:\");\n\t\tdouble visinauM = UtillMethod.unesiteBroj();\n\t\tTeretnaVozila vozilo = new TeretnaVozila(vrstaVozila, regBr, gorivaVozila, brServisa, potrosnja, predjeno, preServisa,\n\t\t\t\tcenaServisa, cenaDan, brSedista, brVrata, vozObrisano, servisiNadVozilom, maxMasauKg, visinauM);\n\t\tUtillMethod.prviServis(vozilo, predjeno);\n\t\tMain.getVozilaAll().add(vozilo);\n\t\tSystem.out.println(\"Novo vozilo je uspesno dodato u sistem!\");\n\t\tSystem.out.println(\"--------------------------------------\");\n\t}", "Groepen maakGroepsindeling(Groepen aanwezigheidsGroepen);", "public void zapisUrok() {\r\n\r\n\t\taktualnyZostatok = getZostatok() * urokovaSadzba / 100;\r\n\t\tsetVklad(aktualnyZostatok);\r\n\r\n\t}", "private void zmienne_poziomu(int poziom)\n {\n liczba_zyc =Integer.parseInt(konfiguracja.properties.getProperty(poziom+\"_liczba_zyc\"));\n liczba_naboi=Integer.parseInt(konfiguracja.properties.getProperty(poziom+\"_liczba_naboi\"));\n liczba_zyc_wroga=Integer.parseInt(konfiguracja.properties.getProperty(poziom+\"_liczba_zyc_wroga\"));\n liczba_pilek=Integer.parseInt(konfiguracja.properties.getProperty(poziom+\"_liczba_pilek\"));\n predkosc_wroga=Integer.parseInt(konfiguracja.properties.getProperty(poziom+\"_predkosc_wroga\"));\n bonusy_poziomu=Integer.parseInt(konfiguracja.properties.getProperty(poziom+\"_bonusy_poziomu\"));\n rozmiar_pilki=Integer.parseInt(konfiguracja.properties.getProperty(poziom+\"_rozmiar_pilki\"));\n zmiana_ruchu_wroga=Integer.parseInt(konfiguracja.properties.getProperty(poziom+\"_zmiana_ruchu_wroga\"));\n czas_gry=Integer.parseInt(konfiguracja.properties.getProperty(poziom+\"_czas_gry\"));\n }", "private void poetries() {\n\n\t}", "public void obrniListu() {\n if (prvi != null && prvi.veza != null) {\n Element preth = null;\n Element tek = prvi;\n \n while (tek != null) {\n Element sled = tek.veza;\n \n tek.veza = preth;\n preth = tek;\n tek = sled;\n }\n prvi = preth;\n }\n }", "void berechneUmfang() {\r\n\t\tfor (int i = 1; i < m_ANZAHL_POINTS; i++) {\r\n\t\t\tm_umfang += m_pointArray[i].distance(m_pointArray[i-1]);\t\t\r\n\t\t}\r\n\t}", "private Karta kartaErabaki(ArrayList<ArrayList<Karta>> pMatrizea) \r\n\t{\r\n\t\tKarta karta = (Karta) new KartaNormala(ElementuMota.ELURRA,0,KoloreMota.BERDEA);\r\n\t\tfor(int i=0;i<pMatrizea.size();i++) \r\n\t\t{\r\n\t\t\tfor(int x=0;x<5;x++) \r\n\t\t\t{\r\n\t\t\t\tif(pMatrizea.get(i).get(0).getElementua()!=pMatrizea.get(i).get(1).getElementua() &&\r\n\t\t\t\t\t\tpMatrizea.get(i).get(0).getElementua()!=this.lortuJolastekoKartaPosz(x).getElementua() &&\r\n\t\t\t\t\t\tpMatrizea.get(i).get(1).getElementua()!=this.lortuJolastekoKartaPosz(x).getElementua() &&\r\n\t\t\t\t\t\tpMatrizea.get(i).get(0).getKolorea()!=this.lortuJolastekoKartaPosz(x).getKolorea() &&\r\n\t\t\t\t\t\tpMatrizea.get(i).get(1).getKolorea()!=this.lortuJolastekoKartaPosz(x).getKolorea() &&\r\n\t\t\t\t\t\tthis.lortuJolastekoKartaPosz(x).getBalioa()>karta.getBalioa() &&\r\n\t\t\t\t\t\tthis.lortuJolastekoKartaPosz(x).getErabilgarria()) \r\n\t\t\t\t{\r\n\t\t\t\t\tkarta = lortuJolastekoKartaPosz(x);\r\n\t\t\t\t}\r\n\t\t\t\tif(pMatrizea.get(i).get(0).getElementua()==pMatrizea.get(i).get(1).getElementua() &&\r\n\t\t\t\t\t\tpMatrizea.get(i).get(0).getElementua()==this.lortuJolastekoKartaPosz(x).getElementua() &&\r\n\t\t\t\t\t\tpMatrizea.get(i).get(1).getElementua()==this.lortuJolastekoKartaPosz(x).getElementua() &&\r\n\t\t\t\t\t\tpMatrizea.get(i).get(0).getKolorea()!=this.lortuJolastekoKartaPosz(x).getKolorea() &&\r\n\t\t\t\t\t\tpMatrizea.get(i).get(1).getKolorea()!=this.lortuJolastekoKartaPosz(x).getKolorea() &&\r\n\t\t\t\t\t\tthis.lortuJolastekoKartaPosz(x).getBalioa()>karta.getBalioa() &&\r\n\t\t\t\t\t\tthis.lortuJolastekoKartaPosz(x).getErabilgarria()) \r\n\t\t\t\t{\r\n\t\t\t\t\tkarta = this.lortuJolastekoKartaPosz(x);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn karta;\r\n\t}", "private String elaboraIncipit() {\n String testo = VUOTA;\n\n if (usaHeadIncipit) {\n testo += elaboraIncipitSpecifico();\n testo += A_CAPO;\n }// fine del blocco if\n\n return testo;\n }", "public static void main(String[] args) {\n\n Studenti s1= new Studenti(\"Pera Peric\",\"drumski\",\"DR-123\");\n Studenti s2 = new Studenti(\"Laza Lazic\", \"logistika\",\"LO-267\");\n Studenti s3 = new Studenti(\"Marko Markovic\", \"vodni\", \"VO-745\");\n\n // menja broj indeksa\n s2.setBrIndeksa(\"LO-473\");\n\n // stampa sve podatke o studentu - kada nisu uneti rezultati ispita\n System.out.println(s1.getBrIndeksa());\n System.out.println(s2.getBrIndeksa());\n System.out.println(s3.getBrIndeksa());\n\n //unos rezultata, stampanje rezultata i poruka da li je polozio ispit ili nije na osnovu rezultata\n s1.setRezultat(81);\n System.out.println(\"Sacuvana vrednost za rezultat je \"+s1.getRezultat()); //81\n s2.setRezultat(50);\n System.out.println(\"Sacuvana vrednost za rezultat je \"+s2.getRezultat()); //50\n s3.setRezultat(-4);\n System.out.println(\"Sacuvana vrednost za rezultat je \"+s3.getRezultat()); //0, ne prihvata -4\n\n // stampa sve podatke o studentu - kada su uneti rezultati ispita\n System.out.println(s1.getBrIndeksa());\n System.out.println(s2.getBrIndeksa());\n System.out.println(s3.getBrIndeksa());\n }", "public void zmiana_rozmiaru_okna()\n {\n b.dostosowanie_rozmiaru(getWidth(),getHeight());\n w.dostosowanie_rozmiaru(getWidth(),getHeight());\n\n for (Pilka np : p) {\n np.dostosowanie_rozmiaru(getWidth(),getHeight());\n }\n for (Naboj np : n) {\n np.dostosowanie_rozmiaru(getWidth(),getHeight());\n }\n for (Bonus np : bon) {\n np.dostosowanie_rozmiaru(getWidth(),getHeight());\n }\n\n }", "private static void statistique(){\n\t\tfor(int i = 0; i<7; i++){\n\t\t\tfor(int j = 0; j<7; j++){\n\t\t\t\tfor(int l=0; l<jeu.getJoueurs().length; l++){\n\t\t\t\t\tif(jeu.cases[i][j].getCouleurTapis() == jeu.getJoueurs()[l].getNumJoueur()){\n\t\t\t\t\t\tjeu.getJoueurs()[l].setTapis(jeu.getJoueurs()[l].getTapisRest()+1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tJoueur j;\n\t\tSystem.out.println(\"// Fin de la partie //\");\n\t\tfor(int i=0; i<jeu.getJoueurs().length; i++) {\n\t\t\tj =jeu.getJoueurs()[i];\n\t\t\tSystem.out.println(\"Joueur \"+ (j.getNumJoueur()+1) + \" a obtenue \"+j.getTapisRest()+j.getMonnaie()+\" points\" );\n\t\t}\n\t}", "boolean sprawdz_przegrana(){\n for(int i=0;i<figura_jakas.getWspolzedne_figorki().size();i++)\n if(sprawdz_kolizje_z_innymi_klockami(0))\n return true;\n return false;\n }", "private int obliczDowoz() {\n int x=this.klient.getX();\n int y=this.klient.getY();\n double odl=Math.sqrt((Math.pow((x-189),2))+(Math.pow((y-189),2)));\n int kilometry=(int)(odl*0.5); //50 gr za kilometr\n return kilometry;\n }", "double objetosc() {\n return dlugosc * wysokosc * szerokosc; //zwraca obliczenie poza metode\r\n }", "ArrayList<Float> pierwszaPredykcja()\n\t{\n\t\tif (Stale.scenariusz<100)\n\t\t{\n\t\t\treturn pierwszaPredykcjaNormal();\n\t\t}\n\t\telse\n\t\t{\n\t\t\t//dla scenariusza testowego cnea predykcji jest ustawiana na 0.30\n\t\t\tArrayList<Float> L1 = new ArrayList<>();\n\t\t\tL1.add(0.30f);\n\t\t\treturn L1;\n\t\t}\n\t}", "public int orientaceGrafu(){\n\t\tint poc = 0;\n\t\tfor(int i = 0 ; i < hrana.length ; i++){\n\t\t\tif(!oriNeboNeoriHrana(hrana[i].zacatek,hrana[i].konec))\n\t\t\t poc++;\n\t\t}\n\t\tif(poc == 0 )\n\t\t\treturn 0;\n\t\t\n\t\tif(poc == pocetHr)\n\t\t\treturn 1;\n\t\t\n\t\t\n\t\t\treturn 2;\n\t\t \n\t\t\n\t\t\t\t\t\n\t}", "public boolean souvislost(){\n\t\t\n\t\tif(pole.size() != pocetVrcholu){\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t\t\n\t}", "public ListaBrojeva izdvojElmenteNaParnimPozicijama() {\n if (prvi != null) {\n ListaBrojeva parni = new ListaBrojeva();\n \n Element tek = prvi;\n Element preth = null;\n Element parniKraj = null;\n int br = 0;\n \n while (tek.veza != null) {\n preth = tek;\n tek = tek.veza;\n \n if (br % 2 != 0) {\n preth.veza = tek.veza;\n if (parni.prvi == null) {\n parni.prvi = tek;\n parniKraj = tek;\n tek.veza = null; \n } else {\n parniKraj.veza = tek;\n tek.veza = null;\n parniKraj = parniKraj.veza;\n }\n tek = preth;\n }\n br++;\n }\n /*prvi element iz liste je paran, ali je preskocen, \n tako da ga sad izbacujemo iz liste i dodajemo u novu*/\n Element pom = prvi;\n prvi = prvi.veza;\n pom.veza = parni.prvi;\n parni.prvi = pom;\n return parni;\n }\n return null;\n }", "private boolean spoji(int direkcija) {\r\n\t\tint pocetna;\r\n\t\tint pomak;\r\n\t\tboolean spojeno = false;\r\n\t\tboolean bilo_promjene = false;\r\n\t\t\r\n\t\t// pomjeranje desno i lijevo\r\n\t\tif(direkcija == 1 || direkcija == 2) {\r\n\t\t\tpocetna = 6 - 3*direkcija; // pocetna je ili 3 ili 0\r\n\t\t\tpomak = 2*direkcija - 3; // pomak je ili -1 ili 1\r\n\t\t\t\r\n\t\t\t// ovaj dio vrsi samo spajanje polja\r\n\t\t\tfor(int i = 0 ; i < 4 ; i++)\r\n\t\t\t\tfor(int j = pocetna ; j != pocetna + 3 * pomak ; j += pomak)\r\n\t\t\t\t\tif(spojeno)\r\n\t\t\t\t\t\tspojeno = false;\r\n\t\t\t\t\telse if(tabela[i][j] != 0 && tabela[i][j] == tabela[i][j + pomak]) {\r\n\t\t\t\t\t\ttabela[i][j] = 2 * tabela[i][j];\r\n\t\t\t\t\t\tif(!igrajPoslijePobjede && tabela[i][j] == 8) // ako je igrac pobijedio (po prvi put, tj. nije bio nastavak igre)\r\n\t\t\t\t\t\t\tpobjeda = true;\r\n\t\t\t\t\t\ttabela[i][j + pomak] = 0;\r\n\t\t\t\t\t\tspojeno = true;\r\n\t\t\t\t\t\tbilo_promjene = true;\r\n\t\t\t\t\t\tbroj_slobodnih++;\r\n\t\t\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// pomjeranje gore i dole\r\n\t\telse {\r\n\t\t\tpocetna = direkcija; // pocetna je ili 3 ili 0\r\n\t\t\tpomak = 1 - (2*direkcija)/3; // pomak je ili -1 ili 1\r\n\t\t\t\r\n\t\t\t// ovaj dio vrsi samo spajanje polja\r\n\t\t\tfor(int j = 0 ; j < 4 ; j++) {\r\n\t\t\t\tfor(int i = pocetna ; i != pocetna + 3 * pomak ; i += pomak)\r\n\t\t\t\t\tif(spojeno)\r\n\t\t\t\t\t\tspojeno = false;\r\n\t\t\t\t\telse if(tabela[i][j] != 0 && tabela[i][j] == tabela[i + pomak][j]) {\r\n\t\t\t\t\t\ttabela[i][j] = 2 * tabela[i][j];\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(!igrajPoslijePobjede && tabela[i][j] == 8) // ako je igrac pobijedio (po prvi put, tj. nije bio nastavak igre)\r\n\t\t\t\t\t\t\tpobjeda = true;\r\n\t\t\t\t\t\ttabela[i + pomak][j] = 0;\r\n\t\t\t\t\t\tspojeno = true;\r\n\t\t\t\t\t\tbilo_promjene = true;\r\n\t\t\t\t\t\tbroj_slobodnih++;\r\n\t\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn bilo_promjene;\r\n\t}", "public void ispisiSveNapomene() {\r\n\t\tint i = 0;// redni broj napomene\r\n\t\tint brojac = 0;\r\n\t\tfor (Podsjetnik podsjetnik : lista) {\r\n\r\n\t\t\ti++;\r\n\t\t\tSystem.out.println(i + \")\" + podsjetnik);\r\n\t\t\tbrojac = i;\r\n\t\t}\r\n\t\tif (brojac == 0) {\r\n\t\t\tSystem.out.println(\"Nema unesenih napomena!!\");\r\n\t\t}\r\n\r\n\t}", "public void pridejNovePivo ()\n\t{\n\t\n\t\tpivo = pivo + PRODUKCE;\n\t\t\n\t}", "public void test6(){\r\n\t\tZug zug1 = st.zugErstellen(2, 0, \"Zug 1\");\r\n\t\tZug zug2 = st.zugErstellen(2, 0, \"Zug 2\");\r\n\t\tst.fahren();\r\n\t}", "@Test\n public void konstruktoriAsettaaSateenOikein() {\n assertEquals(3.0, lierio.getSade(), 1);\n }", "public static void vracanjeVozila(Osoba o) {\n\t\tArrayList<Rezervacija> temp = new ArrayList<Rezervacija>();\n\t\tint i = 0;\n\t\tif (o.getClass().equals(Iznajmljivac.class)) {\n\t\t\tfor (Rezervacija r : Main.getRezervacijeAll()) {\n\t\t\t\tif (r.getIznajmljivac().equals(o)\n\t\t\t\t\t\t&& UtillMethod.parsovanjeDatuma(r.getDatumKraja()).isBefore(LocalDate.now())\n\t\t\t\t\t\t&& !r.isRezervacijaObrisana()) {\n\t\t\t\t\tSystem.out.println(i + \"-Iznajmljivac|\" + r.getIznajmljivac() + \" Vozilo|\" + r.getVozilo()\n\t\t\t\t\t\t\t+ \" Datum pocetka rezervacije|\" + r.getDatumPocetka() + \" Datum kraja rezervacije|\"\n\t\t\t\t\t\t\t+ r.getDatumKraja());\n\t\t\t\t\ttemp.add(r);\n\t\t\t\t\ti++;\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tfor (Rezervacija r : Main.getRezervacijeAll()) {\n\t\t\t\tif (UtillMethod.parsovanjeDatuma(r.getDatumKraja()).isBefore(LocalDate.now())\n\t\t\t\t\t\t&& !r.isRezervacijaObrisana()) {\n\t\t\t\t\tSystem.out.println(i + \"-Iznajmljivac|\" + r.getIznajmljivac() + \" Vozilo|\" + r.getVozilo()\n\t\t\t\t\t\t\t+ \" Datum pocetka rezervacije|\" + r.getDatumPocetka() + \" Datum kraja rezervacije|\"\n\t\t\t\t\t\t\t+ r.getDatumKraja());\n\t\t\t\t\ttemp.add(r);\n\t\t\t\t\ti++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"----------------------------------------------------------\");\n\t\tSystem.out.println(\"Unesite redni broj rezervacije vozila kojeg zelite da vratite:\");\n\t\tint redniBroj = UtillMethod.unesiteInt();\n\t\tif (redniBroj < temp.size()) {\n\t\t\tSystem.out.println(\"Unesite koliko kilometara ste presli sa vozilom:\");\n\t\t\tdouble brojKm = UtillMethod.unesiteBroj();\n\t\t\tRezervacija rezervTemp = temp.get(redniBroj);\n\t\t\tSystem.out.println(\"Izaberite vrstu goriva koje je vozilo koristilo.\");\n\t\t\tGorivo g = UtillMethod.izabirGoriva();\n\t\t\tdouble cenaIznajm = UtillMethod.ukupnaCenaIznajmljivanja(rezervTemp, brojKm, g);\n\t\t\tSystem.out.println(\"Cena iznajmljivanja je \" + cenaIznajm + \" Dinara!\");\n\t\t\tdouble prePromene = rezervTemp.getVozilo().getPredjeno();\n\t\t\trezervTemp.getVozilo().setPredjeno(prePromene + brojKm);\n\t\t\ttemp.get(redniBroj).setRezervacijaObrisana(true);\n\t\t}\n\n\t}", "private void poczatkowe_zmienne()\n {\n konfiguracja.loadProperties();\n predkosc_wroga=Integer.parseInt(konfiguracja.properties.getProperty(\"predkosc_wroga\"));\n czas_watku=Integer.parseInt(konfiguracja.properties.getProperty(\"czas_watku\"));\n punkty_poziomu=Integer.parseInt(konfiguracja.properties.getProperty(\"punkty_poziomu\"));\n zmienne_poziomu(poziom);\n }", "@Test\n\tpublic void testGehituErabiltzaile() {\n\t\tErabiltzaileLista.getErabiltzaileLista().erreseteatuErabiltzaileLista();\t\t\n\t\tErabiltzaileLista.getErabiltzaileLista().gehituErabiltzaile(\"Martin\", \"123456\",\"123456\");\n\t\tassertEquals(1, ErabiltzaileLista.getErabiltzaileLista().erabiltzaileKop());\n\t\tErabiltzaileLista.getErabiltzaileLista().gehituErabiltzaile(\"Mikel\", \"123456\",\"123456\");\n\t\tassertEquals(2,ErabiltzaileLista.getErabiltzaileLista().erabiltzaileKop());\n\t\tErabiltzaileLista.getErabiltzaileLista().gehituErabiltzaile(\"Martin\", \"123456\",\"123456\");\n\t\tassertEquals(2, ErabiltzaileLista.getErabiltzaileLista().erabiltzaileKop());\n\t}", "public void ordenaPontos(){\r\n\t\tloja.ordenaPontos();\r\n\t}", "public static void main(String[] args) {\n ArrayList<Integer> taszkok = new ArrayList<>();\r\n String text = null;\r\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\r\n try {\r\n text = reader.readLine();\r\n\r\n String[] taszkfeltolt = text.split(\",\");\r\n for(int i = 0; i<taszkfeltolt.length ;i++){\r\n taszkok.add(Integer.parseInt(taszkfeltolt[i])) ;\r\n }\r\n\r\n }\r\n catch(Exception e){\r\n\r\n }\r\n\r\n int laphibak=0;\r\n ArrayList<String> abc = new ArrayList<>();\r\n ArrayList<Integer> fagyi = new ArrayList<>();\r\n ArrayList<Integer> szam = new ArrayList<>();\r\n for(int i = 0; i<taszkok.size();i++){\r\n boolean csillag=false;\r\n boolean nemvoltlaphiba=false;\r\n int fagyilesz=-1;\r\n //System.out.print(taszkok.get(i));\r\n\r\n if(0>taszkok.get(i)){\r\n //valami történik\r\n taszkok.set(i, taszkok.get(i)*(-1));\r\n fagyilesz=0;\r\n }\r\n if(abc.size()<3){\r\n\r\n int vanilyen = vanilyen(taszkok.get(i),szam);\r\n if(vanilyen==-1){\r\n if (abc.size()==2){\r\n abc.add(\"C\");\r\n System.out.print(\"C\");\r\n }\r\n else if (abc.size()==1){\r\n abc.add(\"B\");\r\n System.out.print(\"B\");\r\n }\r\n else if (abc.size()==0){\r\n abc.add(\"A\");\r\n System.out.print(\"A\");\r\n }\r\n szam.add(taszkok.get(i));\r\n if(fagyilesz!=0){\r\n fagyi.add(4); // a kör végén ugy is csökkentem 1el elsőre is\r\n }\r\n else{\r\n fagyi.add(0);\r\n }\r\n }\r\n else{\r\n String temp=abc.get(vanilyen);\r\n abc.remove(vanilyen); //a tömb végére rakom és 0 ra allitom a fagyasztast\r\n abc.add(temp);\r\n //System.out.print(abc);\r\n int tempfagyi=fagyi.get(vanilyen);\r\n fagyi.remove(vanilyen);\r\n if(fagyilesz!=0){\r\n fagyi.add(tempfagyi);\r\n }\r\n else{\r\n fagyi.add(0);\r\n }\r\n szam.remove(vanilyen);\r\n szam.add(taszkok.get(i));\r\n //System.out.print(temp+\"e,\");\r\n nemvoltlaphiba=true;\r\n }\r\n\r\n }\r\n else if(abc.size()==3){\r\n int vanilyen = vanilyen(taszkok.get(i),szam);\r\n if(vanilyen==-1){ //ha ez egy uj szam\r\n int hanyadikbet=vanszabad(fagyi);\r\n if(hanyadikbet!=-1){\r\n String temp=abc.get(hanyadikbet);\r\n szam.remove(hanyadikbet);\r\n szam.add(taszkok.get(i));\r\n abc.remove(hanyadikbet); //a tömb végére rakom és 4 ra allitom a fagyasztast\r\n abc.add(temp);\r\n\r\n fagyi.remove(hanyadikbet);\r\n if(fagyilesz!=0){\r\n fagyi.add(4);\r\n }\r\n else{\r\n fagyi.add(0);\r\n }\r\n\r\n System.out.print(temp);\r\n }\r\n else{\r\n csillag=true;\r\n }\r\n }\r\n else{\r\n String temp=abc.get(vanilyen);\r\n abc.remove(vanilyen); //a tömb végére rakom és 0 ra allitom a fagyasztast\r\n abc.add(temp);\r\n szam.remove(vanilyen);\r\n szam.add(taszkok.get(i));\r\n int fagyitemp=fagyi.get(vanilyen);\r\n fagyi.remove(vanilyen);\r\n fagyi.add(fagyitemp);\r\n nemvoltlaphiba=true;\r\n }\r\n\r\n\r\n }\r\n\r\n if (csillag==true){\r\n System.out.print(\"*\");\r\n }\r\n if(nemvoltlaphiba==true){\r\n System.out.print(\"-\");\r\n }\r\n else{\r\n laphibak++;\r\n }\r\n for(int j = 0; j<fagyi.size();j++){\r\n if(fagyi.get(j)!=0){\r\n fagyi.set(j,fagyi.get(j)-1); //csokkentem a fagyasztast\r\n }\r\n }\r\n }\r\n\r\n\r\n System.out.println();\r\n System.out.print(laphibak);\r\n }", "protected boolean strzalSasiadujacy(StatekIterator oStatkiPrzeciwnika)\n\t\t{\n\t\t//przygotowanie kontenera przechowujacego do 4 sasiednich pol, ktore nadaja sie do kolejnego strzalu\n\t\tArrayList<Pozycja> oSasiedniePola = new ArrayList<Pozycja>(4);\n\t\t//petla wyszukujaca we wczesniejszych trafieniach pola do oddania kolejnego strzalu\n\t\twhile (oUzyteczneTrafienia.size() > 0)\n\t\t\t{\n\t\t\t//wylosowanie pola do przetestowania\n\t\t\tint iLosowanePole = oRand.nextInt(oUzyteczneTrafienia.size());\n\t\t\tPozycja oWybranePole = oUzyteczneTrafienia.get(iLosowanePole);\n\t\t\t\n\t\t\ttry\n\t\t\t\t{\n\t\t\t\t//wczytanie wspolrzednych 4 sasiadow i sprawdzenie, czy sa to pola puste, lub zawierajace statek\n\t\t\t\tfor (int i = -1; i <= 1; ++i)\n\t\t\t\t\tfor (int j = -1; j <= 1; ++j)\n\t\t\t\t\t\tif (\n\t\t\t\t\t\t\toWybranePole.getX() + i >= 0 && oWybranePole.getX() + i < oStatkiPrzeciwnika.getPlansza().getSzerokosc()\n\t\t\t\t\t\t\t&& oWybranePole.getY() + j >= 0 && oWybranePole.getY() + j < oStatkiPrzeciwnika.getPlansza().getWysokosc()\n\t\t\t\t\t\t\t&& (i + j == -1 || i + j == 1)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (oStatkiPrzeciwnika.getPlansza().getPole(oWybranePole.getX() + i, oWybranePole.getY() + j) == PlanszaTypPola.PLANSZA_POLE_PUSTE\n\t\t\t\t\t\t\t\t|| oStatkiPrzeciwnika.getPlansza().getPole(oWybranePole.getX() + i, oWybranePole.getY() + j) == PlanszaTypPola.PLANSZA_STATEK\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tPozycja oPrawidlowe = new Pozycja(2);\n\t\t\t\t\t\t\t\toPrawidlowe.setX(oWybranePole.getX() + i);\n\t\t\t\t\t\t\t\toPrawidlowe.setY(oWybranePole.getY() + j);\n\t\t\t\t\t\t\t\toSasiedniePola.add(oPrawidlowe);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (bProsteLinie == true)\n\t\t\t\t\t{\n\t\t\t\t\tboolean bPionowy = false;\n\t\t\t\t\tboolean bPoziomy = false;\n\t\t\t\t\tfor (int i = -1; i <= 1; ++i)\n\t\t\t\t\t\tfor (int j = -1; j <= 1; ++j)\n\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\toWybranePole.getX() + i >= 0 && oWybranePole.getX() + i < oStatkiPrzeciwnika.getPlansza().getSzerokosc()\n\t\t\t\t\t\t\t\t&& oWybranePole.getY() + j >= 0 && oWybranePole.getY() + j < oStatkiPrzeciwnika.getPlansza().getWysokosc()\n\t\t\t\t\t\t\t\t&& (i + j == -1 || i + j == 1)\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif (oStatkiPrzeciwnika.getPlansza().getPole(oWybranePole.getX() + i, oWybranePole.getY() + j) == PlanszaTypPola.PLANSZA_STRZAL_CELNY)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tif (i == 0)\n\t\t\t\t\t\t\t\t\t\tbPionowy = true;\n\t\t\t\t\t\t\t\t\tif (j == 0)\n\t\t\t\t\t\t\t\t\t\tbPoziomy = true;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\tif (bPionowy == true && bPoziomy == true)\n\t\t\t\t\t\tthrow new ProgramistaException();\n\t\t\t\t\tif (bPionowy == true)\n\t\t\t\t\t\t{\n\t\t\t\t\t\tfor (int i = oSasiedniePola.size() - 1; i >= 0; --i)\n\t\t\t\t\t\t\tif (oSasiedniePola.get(i).getX() != oWybranePole.getX())\n\t\t\t\t\t\t\t\toSasiedniePola.remove(i);\n\t\t\t\t\t\t}\n\t\t\t\t\tif (bPoziomy == true)\n\t\t\t\t\t\t{\n\t\t\t\t\t\tfor (int i = oSasiedniePola.size() - 1; i >= 0; --i)\n\t\t\t\t\t\t\tif (oSasiedniePola.get(i).getY() != oWybranePole.getY())\n\t\t\t\t\t\t\t\toSasiedniePola.remove(i);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (oSasiedniePola.size() > 0)\n\t\t\t\t\t{\n\t\t\t\t\t//sa pola prawidlowe do oddania kolejnego strzalu\n\t\t\t\t\tint iWylosowanySasiad = oRand.nextInt(oSasiedniePola.size());\n\t\t\t\t\t//oddanie strzalu na wspolrzedne weybranego pola\n\t\t\t\t\tboolean bStrzal;\n\t\t\t\t\tbStrzal = oStatkiPrzeciwnika.strzal(oSasiedniePola.get(iWylosowanySasiad).getX(), oSasiedniePola.get(iWylosowanySasiad).getY());\n\t\t\t\t\tif (bStrzal == true)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t//zapisanie celnego strzalu w tablicy trafien\n\t\t\t\t\t\tPozycja oTrafienie = new Pozycja(2);\n\t\t\t\t\t\toTrafienie.setX( oSasiedniePola.get(iWylosowanySasiad).getX() );\n\t\t\t\t\t\toTrafienie.setY( oSasiedniePola.get(iWylosowanySasiad).getY() );\n\t\t\t\t\t\toUzyteczneTrafienia.add(oTrafienie);\n\t\t\t\t\t\t}\n\t\t\t\t\treturn bStrzal;\n\t\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t//brak prawidlowych pol. usuniecie trafienia z listy i przejscie do kolejnej iteracji petli wyszukujacej\n\t\t\t\t\toUzyteczneTrafienia.remove(iLosowanePole);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\tcatch (ParametrException e)\n\t\t\t\t{\n\t\t\t\tthrow new ProgramistaException(e);\n\t\t\t\t}\n\t\t\t\n\t\t\t}\n\t\treturn strzalLosowy(oStatkiPrzeciwnika);\n\t\t}", "@Test\n public void testAvaaRuutu() {\n int x = 0;\n int y = 0;\n Peli pjeli = new Peli(new Alue(3, 0));\n pjeli.avaaRuutu(x, y);\n ArrayList[] lista = pjeli.getAlue().getRuudukko();\n ArrayList<Ruutu> ruudut = lista[0];\n assertEquals(true, ruudut.get(0).isAvattu());\n assertEquals(false, pjeli.isLahetetty());\n }", "void evoluer()\n {\n int taille = grille.length;\n int nbVivantes = 0;\n for(int i=-1; i<2; i++)\n {\n int xx = ((x+i)+taille)%taille; // si x+i=-1, xx=taille-1. si x+i=taille, xx=0\n for(int j=-1; j<2; j++)\n {\n if (i==0 && j==0) continue;\n int yy = ((y+j)+taille)%taille;\n if (grille[xx][yy].vivante) nbVivantes++;\n }\n }\n if (nbVivantes<=1 || nbVivantes>=4) {vientDeChanger = (vivante==true); vivante = false;}\n if (nbVivantes==3) {vientDeChanger = (vivante==false); vivante = true;}\n }", "float znajdzOstatecznaCene2()\n\t{\n\t\tArrayList<Float> cenyNaNajblizszySlot =znajdzOstatecznaCeneCenaNaNajblizszeSloty();\n\t\t\n\t\tfloat minimuCena =-1;\n\t\t\n\t\t//Stworzenie cen w raportowaniu\n\t\tint i=0;\n\t\twhile (i<cenyNaNajblizszySlot.size())\n\t\t{\n\t\t\trynekHistory.kontraktDodajCene(cenyNaNajblizszySlot.get(i));\n\t\t\ti++;\n\t\t}\n\t\t\n\t\t//wyznacz liste ktora ma najwieksza wartosc funkcji rynkowej\n\t\t\n\t\tArrayList<Float> cenyZNajwiekszaFunkcjaRynkowa = new ArrayList<>();\n\t\tfloat maximumFunkcjiRynkowej=-1;\n\t\t\n\t\ti=0;\n\t\twhile (i<cenyNaNajblizszySlot.size())\n\t\t{\n\t\t\tfloat cena =cenyNaNajblizszySlot.get(i);\n\t\t\tfloat value =funkcjaRynku2(cena, false,true);\t\t\t\n\n\t\t\trynekHistory.kontraktDodajWartoscFunkcjiRynku(value, cena);\n\n\t\t\t\n\t\t\tif (value>maximumFunkcjiRynkowej)\n\t\t\t{\n\t\t\t\tcenyZNajwiekszaFunkcjaRynkowa.clear();\n\t\t\t\tcenyZNajwiekszaFunkcjaRynkowa.add(cena);\n\t\t\t\tmaximumFunkcjiRynkowej = value;\n\t\t\t}\n\t\t\telse if (value==maximumFunkcjiRynkowej)\n\t\t\t{\n\t\t\t\tcenyZNajwiekszaFunkcjaRynkowa.add(cena);\n\t\t\t} \n\t\t\t\n\t\t\t\n\t\t\ti++;\n\t\t}\n\t\t\n\t\tminimuCena = cenyZNajwiekszaFunkcjaRynkowa.get(cenyZNajwiekszaFunkcjaRynkowa.size()/2);\n\t\t\n\t\treturn minimuCena;\n\n\t}", "private TreeNode napraviStabloUtil(List<TreeNode> cvorovi, int pocetni, int krajnji) {\n// osnovni slučaj\n if (pocetni > krajnji) {\n return null;\n }\n /* Nadji srednji element i proglasi ga korenom */\n int mid = (pocetni + krajnji) / 2;\n TreeNode cvor = cvorovi.get(mid);\n /* Koristeci indeks u infiks obilasku\n* konstruiši levo i desno podstablo */\n cvor.left = napraviStabloUtil(cvorovi, pocetni, mid - 1);\n cvor.right = napraviStabloUtil(cvorovi, mid + 1, krajnji);\n return cvor;\n }", "public void trenneVerbindung();", "public void estiloAcierto() {\r\n\t\t /**Bea y Jose**/\t\t\r\n \r\n\t}", "void novyVrchol(String klic){\n\t\tVrchol pom = new Vrchol(klic,'B');\n\t\t\n\t\tvrchP[pocet] = pom;\n\t\tpocet++;\n\t\n\t}", "public static void otkazivanjeRezervacije(Osoba o) {\n\t\tArrayList<Rezervacija> rezervacijeIznaj = new ArrayList<Rezervacija>();\n\t\tint i = 0;\n\t\tif (o.getClass().equals(Iznajmljivac.class)) {\n\t\t\tfor (Rezervacija r : Main.getRezervacijeAll()) {\n\t\t\t\tif (r.getIznajmljivac().equals(o) && !r.isRezervacijaObrisana()) {\n\t\t\t\t\tSystem.out.println(\"Rezervacija-\" + i + \"--\" + r.getIznajmljivac() + \" \" + r.getVozilo()\n\t\t\t\t\t\t\t+ \"pocetak rezervacije|\" + r.getDatumKraja() + \"kraj rezervacije|\" + r.getDatumKraja());\n\t\t\t\t\trezervacijeIznaj.add(r);\n\t\t\t\t\ti++;\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tfor(Rezervacija r : Main.getRezervacijeAll()) {\n\t\t\t\tif(!r.isRezervacijaObrisana()) {\n\t\t\t\t\tSystem.out.println(\"Rezervacija-\" + i + \"--\" + r.getIznajmljivac() + \" \" + r.getVozilo()\n\t\t\t\t\t+ \"pocetak rezervacije|\" + r.getDatumKraja() + \"kraj rezervacije|\" + r.getDatumKraja());\n\t\t\trezervacijeIznaj.add(r);\n\t\t\ti++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Unesite redni broj rezervacije koju zelite da otkazete:\");\n\t\tint redniBroj = UtillMethod.unesiteInt();\n\t\tif (redniBroj < rezervacijeIznaj.size()) {\n\t\t\tRezervacija temp = rezervacijeIznaj.get(redniBroj);\n\t\t\ttemp.setRezervacijaObrisana(true);\n\t\t\tSystem.out.println(\"Rezervacija je uspesno izbrisana!\");\n\t\t} else {\n\t\t\tSystem.out.println(\"Ne postoji rezervacija sa tim brojem!\");\n\t\t}\n\t}", "private void vulKeuzeBordIn()\n {\n String[] lijstItems = dc.geefLijstItems();\n for (int i = 0; i < canvasKeuzeveld.length; i++)\n {\n for (int j = 0; j < canvasKeuzeveld[i].length; j++)\n {\n GraphicsContext gc = canvasKeuzeveld[i][j].getGraphicsContext2D();\n //checkImage(j + 1, gc);\n vulIn(lijstItems[j], gc);\n }\n }\n //dc.geefLijstItems();\n }", "public void asetaTeksti(){\n }", "public void DaneStartowe() {\n\t\tSystem.out.println(\"DaneStartowe\");\n\t\tPlansza.getNiewolnikNaPLanszy().setJedzenie(ZapisOdczyt.getPopulacjaStartowaNiewolnicy());\n\t\tPlansza.getNiewolnikNaPLanszy().setUbrania(ZapisOdczyt.getPopulacjaStartowaNiewolnicy());\n\t\tPlansza.getRzemieslnikNaPlanszy().setMaterialy(ZapisOdczyt.getPopulacjaStartowaRzemieslnicy());\n\t\tPlansza.getRzemieslnikNaPlanszy().setNarzedzia(ZapisOdczyt.getPopulacjaStartowaRzemieslnicy());\n\t\tPlansza.getArystokrataNaPlanszy().setZloto((int) (ZapisOdczyt.getPopulacjaStartowaArystokracja() + ZapisOdczyt.getArystokracjaWiekszaPopulacja()*ZapisOdczyt.getPopulacjaStartowaArystokracja()*0.01));\n\t\tPlansza.getArystokrataNaPlanszy().setTowary((int) (ZapisOdczyt.getPopulacjaStartowaArystokracja() + ZapisOdczyt.getArystokracjaWiekszaPopulacja()*ZapisOdczyt.getPopulacjaStartowaArystokracja()*0.01));\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "public static void TroskoviPredjenogPuta() {\n\t\tUtillMethod.izlistavanjeVozila();\n\t\tSystem.out.println(\"Unesite redni broj vozila za koje zelite da racunate predjeni put!\");\n\t\tint redniBroj = UtillMethod.unesiteInt();\n\t\tif (redniBroj < Main.getVozilaAll().size()) {\n\t\t\tif (!Main.getVozilaAll().get(redniBroj).isVozObrisano()) {\n\t\t\t\tSystem.out.println(\"Unesite broj kilometara koje ste presli sa odgovarajucim vozilom\");\n\t\t\t\tdouble km = UtillMethod.unesiteBroj();\n\t\t\t\tVozilo v = Main.getVozilaAll().get(redniBroj);\n\t\t\t\tdouble rezultat;\n\t\t\t\tif(v.getGorivaVozila().size()>1) {\n\t\t\t\t\tGorivo g = UtillMethod.izabirGoriva();\n\t\t\t\t\trezultat = cenaTroskaVoz(v,km,g);\n\t\t\t\t}else {\n\t\t\t\t\t rezultat = cenaTroskaVoz(v,km,v.getGorivaVozila().get(0));\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"Cena troskova za predjeni put je \" + rezultat + \"Dinara!\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Ovo vozilo je obrisano i ne moze da se koristi!\");\n\t\t\t}\n\t\t} else {\n\t\t\tSystem.out.println(\"Uneli ste pogresan redni broj!\");\n\t\t}\n\t}", "public void obliczSzanseWykolejenia(Tramwaj tramwaj, Pogoda pogoda, Motorniczy motorniczy, Przystanek przystanek){\r\n RegulyWykolejen regulyWykolejen= new RegulyWykolejen();\r\n this.szansaWykolejenia = pogoda.getRyzyko() + przystanek.getStanTechnicznyPrzystanku() + tramwaj.getStanTechTramwaju() + regulyWykolejen.regulaWiek(motorniczy.getWiek()) + regulyWykolejen.regulaDoswiadczenie(motorniczy.getDoswiadczenie());\r\n }", "public void ajaTesti() {\n \n long summa1 = 0;\n long summa2 = 0;\n int laskuri1=0; //test\n int laskuri2=0;\n \n Taytto tulosN = null;\n TayttoDP tulosDP = null;\n \n //rotatoidaan testien suoritusjärjestystä kerran\n int rot = 2;\n for (int i=0;i<rot;i++) {\n //random järjestys\n //Tavara[] ar = shuffleTavarat();\n\n Tavara[] ar = this.tavarat;\n Taytto tayttoN = new Taytto(ar, sakki);\n TayttoDP tayttoDP = new TayttoDP(ar, sakki);\n\n long aikaAlussa = 0;\n long aikaLopussa = 0;\n long aika = 0;\n\n int sisatoisto=this.toistokoe;\n //rotatoidaan testien ajojärjestys\n long sum1=0; \n long sum2=0; \n\n //ignoorataan 10 ensimmäistä tuloksista, lisätään siksi 10 ylimääräistä toistokierrosta\n for (int j=0;j<sisatoisto;j++) {\n\n if (i%2==0) {\n laskuri1++;\n\n // Mittaus naivi-algoritmi\n aikaAlussa = System.nanoTime();\n tayttoN.etsiMaksimiArvoJaJono(); \n aikaLopussa = System.nanoTime(); \n\n aika=aikaLopussa-aikaAlussa;\n //ignoorataan 10 ensimmäistä tuloksista\n if(j>=0) sum1+=aika;\n\n // Mittaus DP -algoritmi\n aikaAlussa = System.nanoTime();\n tayttoDP.etsiMaksimiArvoJaJono(); \n aikaLopussa = System.nanoTime(); \n\n aika=aikaLopussa-aikaAlussa;\n if(j>=0) sum2+=aika;\n }\n else {\n laskuri2++; //test\n\n // Mittaus DP -algoritmi\n aikaAlussa = System.nanoTime();\n tayttoDP.etsiMaksimiArvoJaJono(); \n aikaLopussa = System.nanoTime(); \n\n aika=aikaLopussa-aikaAlussa;\n if(j>=0) sum2+=aika;\n \n // Mittaus naivi-algoritmi\n aikaAlussa = System.nanoTime();\n tayttoN.etsiMaksimiArvoJaJono(); \n aikaLopussa = System.nanoTime(); \n\n aika=aikaLopussa-aikaAlussa;\n if (j>=0) sum1+=aika;\n }\n\n //Tarkistus, että tulos sama kummallakin algoritmilla\n if (tayttoN.annaMaxArvo()!=tayttoDP.annaMaxArvo()) {\n System.out.println(\"Taytto1: Arvo: \" + tayttoN.annaMaxArvo() + \" , jono :\" + tayttoN.annaMaxJono());\n System.out.println(\"Taytto2: Arvo: \" + tayttoDP.annaMaxArvo() + \" , jono :\" + tayttoDP.annaMaxJono()); \n break;\n }\n \n \n }\n summa1+=sum1/(sisatoisto);\n summa2+=sum2/(sisatoisto);\n \n tulosN=tayttoN;\n tulosDP=tayttoDP;\n \n }\n// System.out.println(laskuri1);\n// System.out.println(laskuri2);\n\n \n long keskiarvo1 = summa1/rot;\n long keskiarvo2 = summa2/rot;\n\n String[] kootN = tulosN.annaMaxJono().split(\" \");\n int kokoN = 0;\n for (int i = 0; i < kootN.length; i++) {\n try {\n kokoN += this.tavarat[Integer.parseInt(kootN[i])-1].annaKoko();\n } catch (NumberFormatException nfe) {};\n } \n \n String[] kootDP = tulosDP.annaMaxJono().split(\" \");\n int kokoDP = 0;\n for (int i = 0; i < kootDP.length; i++) {\n try {\n kokoDP += this.tavarat[Integer.parseInt(kootDP[i])-1].annaKoko();\n } catch (NumberFormatException nfe) {};\n } \n\n System.out.println(this.nimi);\n System.out.println(\"Tavarat: \" + annaTavaroidenKokoJaArvo());\n System.out.println(\"Sakki \" + this.sakki.annaKoko() + \", lkm \" + this.koko + \", toistot \" + toistokoe);\n System.out.println(\"Keskiarvo (ms) Naiivi: \" + keskiarvo1/1000 + \", DP: \" + keskiarvo2/1000);\n System.out.println(\"Tulos Naiivi: maksimiarvo: \" + tulosN.annaMaxArvo() + \" koko: \" + kokoN + \" maksimiarvon toteuttavien travaroiden järjestysnumerot: \"); \n System.out.println(tulosN.annaMaxJono());\n System.out.println(\"Tulos DP: maksimiarvo: \" + tulosDP.annaMaxArvo() + \" koko: \" + kokoDP + \" maksimiarvon toteuttavien travaroiden järjestysnumerot: \");\n System.out.println(tulosDP.annaMaxJono());\n \n }", "public boolean Vacia (){\n return cima==-1;\n \n }", "private void sonucYazdir() {\n\t\talinanPuan = (int)(((float)alinanPuan / (float)toplamPuan) * 100);\n\t\tSystem.out.println(\"\\nSınav Bitti..!\\n\" + soruSayisi + \" sorudan \" + dogruSayaci + \" tanesine\"\n\t\t\t\t\t\t+ \" doğru cevap verdiniz.\\nPuan: \" + alinanPuan + \"/\" + toplamPuan);\n\t}", "public boolean klic() {\n\t\tif(first.next.zacetniIndex!=0) {\r\n\t\t\tfirst.next.zacetniIndex = 0;\r\n\t\t\tfirst.next.koncniIndex = first.next.size-1;\r\n\t\t\t//ce je en element, nimamo vec praznega prostora\r\n\t\t\tif(first==last) prazno=0;\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\t\r\n\t\tList prev = first.next;\r\n\t\tList el = first.next.next;\r\n\t\t\r\n\t\twhile(el!=null) {\r\n\t\t\tif(prev.koncniIndex!=el.zacetniIndex-1) {\r\n\t\t\t\t\r\n\t\t\t\tint razlika = el.zacetniIndex - prev.koncniIndex - 1;\r\n\t\t\t\tel.zacetniIndex = el.zacetniIndex - razlika;\r\n\t\t\t\tel.koncniIndex = el.koncniIndex - razlika;\r\n\t\t\t\t//ce pomeramo zadnega zmanjsujemo praznega prostora\r\n\t\t\t\tif(prev==last) prazno = prazno - razlika;\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\tprev=el;\r\n\t\t\tel=el.next;\r\n\t }\r\n\t\treturn false;\r\n\t}", "public void kast() {\n\t\t// vaelg en tilfaeldig side\n\t\tdouble tilfaeldigtTal = Math.random();\n\t\tvaerdi = (int) (tilfaeldigtTal * 6 + 1);\n\t}", "public void pobierzukladprzegladRZiSBO() {\r\n if (uklad.getUklad() == null) {\r\n uklad = ukladBRDAO.findukladBRPodatnikRokPodstawowy(wpisView.getPodatnikObiekt(), wpisView.getRokWpisuSt());\r\n }\r\n List<PozycjaRZiSBilans> pozycje = UkladBRBean.pobierzpozycje(pozycjaRZiSDAO, pozycjaBilansDAO, uklad, \"\", \"r\");\r\n UkladBRBean.czyscPozycje(pozycje);\r\n rootProjektRZiS.getChildren().clear();\r\n List<StronaWiersza> zapisy = StronaWierszaBean.pobraniezapisowwynikoweBO(stronaWierszaDAO, wpisView);\r\n try {\r\n PozycjaRZiSFKBean.ustawRoota(rootProjektRZiS, pozycje, zapisy);\r\n level = PozycjaRZiSFKBean.ustawLevel(rootProjektRZiS, pozycje);\r\n Msg.msg(\"i\", \"Pobrano układ \");\r\n } catch (Exception e) {\r\n E.e(e);\r\n rootProjektRZiS.getChildren().clear();\r\n Msg.msg(\"e\", e.getLocalizedMessage());\r\n }\r\n }", "public void provocarEvolucion(Tribu tribuJugador, Tribu tribuDerrotada){\r\n System.out.println(\"\\n\");\r\n System.out.println(\"-------------------Fase de evolución ----------------------\");\r\n int indiceAtributo;\r\n int indiceAtributo2;\r\n double golpeViejo = determinarGolpe(tribuJugador);\r\n for(int i = 1; i <= 10 ; i++){\r\n System.out.println(\"Iteración número: \" + i);\r\n indiceAtributo = (int)(Math.random() * 8);\r\n indiceAtributo2 = (int)(Math.random() * 8);\r\n String nombreAtributo1 = determinarNombrePosicion(indiceAtributo);\r\n String nombreAtributo2 = determinarNombrePosicion(indiceAtributo2);\r\n if((tribuJugador.getArray()[indiceAtributo] < tribuDerrotada.getArray()[indiceAtributo] \r\n && (tribuJugador.getArray()[indiceAtributo2] < tribuDerrotada.getArray()[indiceAtributo2]))){\r\n System.out.println(\"Se cambió el atributo \" + nombreAtributo1 + \" de la tribu del jugador porque\"\r\n + \" el valor era \" + tribuJugador.getArray()[indiceAtributo] + \" y el de la tribu enemeiga era de \"\r\n + tribuDerrotada.getArray()[indiceAtributo] + \" esto permite hacer más fuerte la tribu del jugador.\");\r\n \r\n tribuJugador.getArray()[indiceAtributo] = tribuDerrotada.getArray()[indiceAtributo];\r\n \r\n System.out.println(\"Se cambió el atributo \" + nombreAtributo2 + \" de la tribu del jugador porque\"\r\n + \" el valor era \" + tribuJugador.getArray()[indiceAtributo2] + \" y el de la tribu enemeiga era de \"\r\n + tribuDerrotada.getArray()[indiceAtributo2] + \" esto permite hacer más fuerte la tribu del jugador.\");\r\n \r\n tribuJugador.getArray()[indiceAtributo2] = tribuDerrotada.getArray()[indiceAtributo2];\r\n }\r\n }\r\n double golpeNuevo = determinarGolpe(tribuJugador);\r\n if(golpeNuevo > golpeViejo){\r\n tribus.replace(tribuJugador.getNombre(), determinarGolpe(tribuJugador));\r\n System.out.println(\"\\nTribu evolucionada\");\r\n imprimirAtributos(tribuJugador);\r\n System.out.println(\"\\n\");\r\n System.out.println(tribus);\r\n }\r\n else{\r\n System.out.println(\"\\nTribu sin evolucionar\");\r\n System.out.println(\"La tribu no evolucionó porque no se encontraron atributos\"\r\n + \" que permitiesen crecer su golpe\");\r\n imprimirAtributos(tribuJugador);\r\n System.out.println(\"\\n\");\r\n System.out.println(tribus);\r\n }\r\n }", "private String elaboraAvvisoScrittura() {\n String testo = VUOTA;\n\n if (usaHeadNonScrivere) {\n testo += TAG_NON_SCRIVERE;\n testo += A_CAPO;\n }// end of if cycle\n\n return testo;\n }", "@Override\r\n\tpublic int operar() {\n\t\treturn 0;\r\n\t}", "@Test\n public void testExistenceTestuJedneOsoby() {\n osBeznyMuz = new Osoba(120, 150, Barva.MODRA);\n testJedneOsoby(osBeznyMuz, 120, 150, 70, 140, Barva.MODRA);\n }", "public void test2(){\r\n\t\tZug zug1 = st.zugErstellen(2, 2, \"Zug 1\");\r\n\t\tst.fahren();\r\n\t}", "private void lisaaMiinaOikealle(int i, int j) {\n ArrayList<Ruutu> lista;\n if (i + 1 < x) {\n lista = this.ruudukko[i + 1];\n lista.get(j).setViereisetMiinat(1);\n if (j - 1 >= 0) {\n lista.get(j - 1).setViereisetMiinat(1);\n }\n if (j + 1 < x) {\n lista.get(j + 1).setViereisetMiinat(1);\n }\n }\n }", "public static void dodavanjeBicikl() {\n\t\tString vrstaVozila = \"Bicikl\";\n\t\tString regBr = UtillMethod.unosRegBroj();\n\t\tGorivo gorivo = Main.nista;\n\t\tint brServisa = 1;\n\t\tdouble potrosnja100 = 0;\n\t\tSystem.out.println(\"Unesite broj km koje je vozilo preslo:\");\n\t\tdouble predjeno = UtillMethod.unesiteBroj();\n\t\tdouble preServisa = 700;\n\t\tdouble cenaServisa = 5000;\n\t\tSystem.out.println(\"Unesite cenu vozila za jedan dan:\");\n\t\tdouble cenaDan = UtillMethod.unesiteBroj();\n\t\tint brSedist = 1;\n\t\tint brVrata = 0;\n\t\tboolean vozObrisano = false;\n\t\tArrayList<Gorivo> gorivaVozila = new ArrayList<Gorivo>();\n\t\tgorivaVozila.add(gorivo);\n\t\tArrayList<Servis> servisiNadVozilom = new ArrayList<Servis>();\n\t\tBicikl vozilo = new Bicikl(vrstaVozila, regBr, gorivaVozila, brServisa, potrosnja100, predjeno, preServisa,\n\t\t\t\tcenaServisa, cenaDan, brSedist, brVrata, vozObrisano, servisiNadVozilom);\n\t\tUtillMethod.prviServis(vozilo, predjeno);\n\t\tMain.getVozilaAll().add(vozilo);\n\t\tSystem.out.println(\"Novo vozilo je uspesno dodato u sistem!\");\n\t\tSystem.out.println(\"--------------------------------------\");\n\t}", "public void inicjalizujRynek()\n\t{\n\t\tif (!Stale.cenyZGeneratora)\n\t\t{\n\t\t\tlistaCenWczytanaZPliku=loader.loadPrices();\n\t\t}\n\t}" ]
[ "0.66134506", "0.6478026", "0.64030313", "0.63684064", "0.6340288", "0.6290669", "0.6279527", "0.6237544", "0.62161994", "0.6205577", "0.6196634", "0.614148", "0.61393267", "0.61326045", "0.6126462", "0.61073333", "0.6100119", "0.6087373", "0.60623467", "0.6037626", "0.60204005", "0.6005893", "0.5986642", "0.5976437", "0.59688824", "0.59314644", "0.5927369", "0.5922425", "0.5913361", "0.5911212", "0.59099686", "0.59082645", "0.5901605", "0.58953637", "0.5895082", "0.588201", "0.5874492", "0.585972", "0.58583045", "0.58519197", "0.58410066", "0.5836578", "0.58190954", "0.58156216", "0.58055544", "0.58023894", "0.58018506", "0.5799487", "0.5799299", "0.57952833", "0.578793", "0.57862043", "0.5774448", "0.5766403", "0.5764865", "0.5762729", "0.5762404", "0.57612133", "0.57606703", "0.5753607", "0.57507676", "0.57505", "0.5745742", "0.57393247", "0.5738216", "0.573335", "0.5730278", "0.57238275", "0.57208246", "0.5718511", "0.5715817", "0.57130575", "0.57101166", "0.5708335", "0.56980294", "0.5684223", "0.5678929", "0.5678817", "0.5678373", "0.56591415", "0.56539375", "0.56490725", "0.56412435", "0.5636711", "0.56333023", "0.56332535", "0.5633242", "0.56321657", "0.5626532", "0.5625348", "0.56245816", "0.5623759", "0.56195974", "0.56184286", "0.56154215", "0.56145954", "0.5610116", "0.56073874", "0.5605888", "0.5602391", "0.5600657" ]
0.0
-1
Creates the JPA Query Object based on current QueryBuilder
public Query createQuery() { String queryString = getQueryString(); if (debug == true) { logger.info( "Query String: {0}", queryString); logger.info( "Parameters: Max Results: {0}, First result: {1}, Order By: {2}, Restrictions: {3}, Joins: {4}", new Object[]{maxResults, firstResult, orderBy, normalizedRestrictions, joins}); } Query query = entityManager.createQuery(queryString); List<QueryParameter> parameters = getQueryParameters(); for (QueryParameter parameter : parameters) { //dates (Date and Calendar) if (parameter.getTemporalType() != null && (parameter.getValue() instanceof Date || parameter.getValue() instanceof Calendar)) { if (parameter.getValue() instanceof Date) { if (parameter.getPosition() != null) { query.setParameter(parameter.getPosition(), (Date) parameter.getValue(), parameter.getTemporalType()); } else { if (parameter.getProperty() != null) { query.setParameter(parameter.getProperty(), (Date) parameter.getValue(), parameter.getTemporalType()); } } } else if (parameter.getValue() instanceof Calendar) { if (parameter.getPosition() != null) { query.setParameter(parameter.getPosition(), (Calendar) parameter.getValue(), parameter.getTemporalType()); } else { if (parameter.getProperty() != null) { query.setParameter(parameter.getProperty(), (Calendar) parameter.getValue(), parameter.getTemporalType()); } } } } else { if (parameter.getPosition() != null) { query.setParameter(parameter.getPosition(), parameter.getValue()); } else { if (parameter.getProperty() != null) { query.setParameter(parameter.getProperty(), parameter.getValue()); } } } } if (maxResults != null) { query.setMaxResults(maxResults); } if (firstResult != null) { query.setFirstResult(firstResult); } return query; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected JPAQuery<T> createQuery() {\n\t\tJPAQuery<T> query = new JPAQuery<>(entityManager);\n\t\tquery.from(getDslRoot());\n\t\treturn query;\n\t}", "SelectQuery createSelectQuery();", "public QueryBuilder buildQueryBuilder() {\n return dao.getQueryBuilder()\n .from(dao.getEntityClass(), (joinBuilder != null ? joinBuilder.getRootAlias() : null))\n .join(joinBuilder)\n .add(queryRestrictions)\n .debug(debug)\n .audit(isAuditQuery());\n }", "public Query<T, R> build() {\n // if criteria.size == 0, rootCriterion = null\n Criterion rootCriterion = null;\n if (criteria.size() == 1) {\n rootCriterion = criteria.get(0);\n } else if (criteria.size() > 1) {\n rootCriterion = Restrictions.and(criteria\n .toArray(new Criterion[criteria.size()]));\n }\n return new QueryImpl<T, R>(entityClass, returnType, rootCriterion,\n orderings, maxResults, returnFields);\n }", "@Override\n\tpublic <T> TypedQuery<T> createQuery(CriteriaQuery<T> criteriaQuery) {\n\t\treturn null;\n\t}", "public interface QueryBuilder {\n QueryBuilder from();\n QueryBuilder where();\n QueryBuilder orderBy();\n QueryBuilder groupBy();\n Object execute(Object... args);\n Object execute(Tuple args);\n}", "public JpqlQuery(EntityManagerFactoryImpl entityManagerFactory, CriteriaBuilderImpl cb, NamedQueryMetadata metadata) {\n \t\tthis(entityManagerFactory, metadata.getQuery(), cb);\n \n \t\tthis.lastUsed = Long.MAX_VALUE;\n \n \t\t// force sql compilation\n \t\tthis.q.getSql();\n \n \t\tthis.lockMode = metadata.getLockMode();\n \t\tif (metadata.getHints().size() > 0) {\n \t\t\tthis.hints = Maps.newHashMap();\n \t\t\tthis.hints.putAll(metadata.getHints());\n \t\t}\n \n \t\tentityManagerFactory.addNamedQuery(metadata.getName(), this);\n \t}", "@Override\n\tpublic TypedQuery<Plan> constructQuery(Map<String, String> customQuery) {\n\t\tCriteriaBuilder cb = null;\n\t\ttry {\n\t\t\tcb = em.getCriteriaBuilder();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\tCriteriaQuery<Plan> cq = cb.createQuery(Plan.class);\n\t\tRoot<Plan> plan = cq.from(Plan.class);\n\t\tPredicate existingpredicate = null;\n\t\tint predicateCount=0;\n\t\tPredicate masterPredicate=null;\n\n\t\ttry {\n\n\t\t\tfor (Map.Entry<String,String> entry : customQuery.entrySet()) \n\t\t\t{\n\t\t\t\tif(plan.get(entry.getKey().toString()) != null)\n\t\t\t\t{\n\t\t\t\t\t\n\t\t\t\t\t//Query for range values with comma(,) as delimiter\n\t\t\t\t\tif(entry.getValue().contains(\",\"))\n\t\t\t\t\t{\n\t\t\t\t\t\tint minRange=Integer.parseInt(customQuery.get(entry.getKey().toString()).split(\",\")[0]);\n\t\t\t\t\t\tint maxRange=Integer.parseInt(customQuery.get(entry.getKey().toString()).split(\",\")[1]);\n\t\t\t\t\t\tif(predicateCount==0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tmasterPredicate = cb.between(plan.get(entry.getKey().toString()),minRange, maxRange );\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\texistingpredicate = cb.between(plan.get(entry.getKey().toString()),minRange, maxRange );\n\t\t\t\t\t\t\tmasterPredicate=cb.and(masterPredicate,existingpredicate);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tpredicateCount++;\n\t\t\t\t\t}\n\t\t\t\t\t//Query for equals values\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(predicateCount==0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tmasterPredicate = cb.equal(plan.get(entry.getKey().toString()), customQuery.get(entry.getKey().toString()));\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\texistingpredicate = cb.equal(plan.get(entry.getKey().toString()), customQuery.get(entry.getKey().toString()));\n\t\t\t\t\t\t\tmasterPredicate=cb.and(masterPredicate,existingpredicate);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tpredicateCount++;\n\t\t\t\t\t\t//cq.where(predicate);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tcq.where(masterPredicate);\n\t\tTypedQuery<Plan> query = em.createQuery(cq);\n\t\treturn query;\n\t}", "public static QueryInterface createQuery() {\n return new XmlQuery();\n }", "public Query buildQuery(String from, String where, QueryBuilder builder){\n\t\tbuilder.from(from);\n builder.where(where);\n return builder.getQuery();\n\t}", "public abstract Query<T> buildFilter(Query<T> builder, T exampleObj);", "public QueryBuilder()\n {\n\tlabel = null;\n\tqueryCondition = null;\n\tselectionLimiter = null;\n\tselectionSorter = null;\n\n\tvariablesMap = new HashMap<String, Expression>();\n\tselectionLabelsReferencedByStats = new HashSet<String>();\n }", "public Query(QueryFilterBuilder builder) {\n super(builder);\n }", "public Query createQuery(String hql, Object... params) ;", "@SuppressWarnings({ \"rawtypes\", \"unchecked\" })\n \tprivate CriteriaQueryImpl constructSelectQuery(CriteriaBuilderImpl cb, CommonTree tree) {\n \t\tfinal CriteriaQueryImpl q = new CriteriaQueryImpl(this.metamodel);\n \n \t\tthis.constructFrom(cb, q, tree.getChild(1));\n \n \t\tfinal Tree select = tree.getChild(0);\n \t\tfinal List<Selection<?>> selections = this.constructSelect(cb, q, select.getChild(select.getChildCount() - 1));\n \n \t\tif (selections.size() == 1) {\n \t\t\tq.select(selections.get(0));\n \t\t}\n \t\telse {\n \t\t\tq.multiselect(selections);\n \t\t}\n \n \t\tif (select.getChild(0).getType() == JpqlParser.DISTINCT) {\n \t\t\tq.distinct(true);\n \t\t}\n \n \t\tint i = 2;\n \t\twhile (true) {\n \t\t\tfinal Tree child = tree.getChild(i);\n \n \t\t\t// end of query\n \t\t\tif (child.getType() == JpqlParser.EOF) {\n \t\t\t\tbreak;\n \t\t\t}\n \n \t\t\t// where fragment\n \t\t\tif (child.getType() == JpqlParser.WHERE) {\n \t\t\t\tq.where(this.constructJunction(cb, q, child.getChild(0)));\n \t\t\t}\n \n \t\t\t// group by fragment\n \t\t\tif (child.getType() == JpqlParser.LGROUP_BY) {\n \t\t\t\tq.groupBy(this.constructGroupBy(cb, q, child));\n \t\t\t}\n \n \t\t\t// having fragment\n \t\t\tif (child.getType() == JpqlParser.HAVING) {\n \t\t\t\tq.having(this.constructJunction(cb, q, child.getChild(0)));\n \t\t\t}\n \n \t\t\t// order by fragment\n \t\t\tif (child.getType() == JpqlParser.LORDER) {\n \t\t\t\tthis.constructOrder(cb, q, child);\n \t\t\t}\n \n \t\t\ti++;\n \t\t\tcontinue;\n \t\t}\n \n \t\treturn q;\n \t}", "@Override\n\tpublic Query createQuery(CriteriaUpdate updateQuery) {\n\t\treturn null;\n\t}", "static DbQuery createValueQuery() {\n DbQuery query = new DbQuery();\n query.order = OrderBy.VALUE;\n return query;\n }", "QueryType createQueryType();", "@SuppressWarnings(\"unchecked\")\n \tpublic <T> QueryImpl<T> createTypedQuery(EntityManagerImpl entityManager) {\n \t\tif (this.lastUsed != Long.MAX_VALUE) {\n \t\t\tthis.lastUsed = System.currentTimeMillis();\n \t\t}\n \n \t\tfinal QueryImpl<T> typedQuery = new QueryImpl<T>((BaseQuery<T>) this.q, entityManager);\n \n \t\tif (this.lockMode != null) {\n \t\t\ttypedQuery.setLockMode(this.lockMode);\n \t\t}\n \n \t\tif (this.hints != null) {\n \t\t\tfor (final Entry<String, Object> entry : this.hints.entrySet()) {\n \t\t\t\ttypedQuery.setHint(entry.getKey(), entry.getValue());\n \t\t\t}\n \t\t}\n \n \t\treturn typedQuery;\n \t}", "Query createQuery(final String query);", "GroupQuery createQuery();", "private BaseQueryImpl<?> construct(CriteriaBuilderImpl cb, CommonTree tree) {\n \t\tfinal Tree type = tree.getChild(0);\n \t\tif (type.getType() == JpqlParser.SELECT) {\n \t\t\treturn this.constructSelectQuery(cb, tree);\n \t\t}\n \t\telse if (type.getType() == JpqlParser.DELETE) {\n \t\t\treturn this.constructDeleteQuery(cb, tree);\n \t\t}\n \t\telse {\n \t\t\treturn this.constructUpdateQuery(cb, tree);\n \t\t}\n \t}", "protected BooleanQuery.Builder newBooleanQuery() {\n return new BooleanQuery.Builder();\n }", "public QueryExecution createQueryExecution(Query qry);", "public Query(){\n this(new MongoQueryFilter.MongoQueryFilterBuilder());\n }", "public Query advancedQuery() \n {\n return null;\n }", "void build(ISqlClauseBuilder builder);", "@Override\n public void constructQuery() {\n try {\n super.constructQuery();\n sqlQueryBuilder.append(Constants.QUERY_SELECT);\n appendColumnName();\n appendPrimaryTableName();\n appendConditions(getJoinType());\n appendClause(joinQueryInputs.clauses, true);\n sqlQueryBuilder.append(Constants.SEMI_COLON);\n queryDisplayListener.displayConstructedQuery(sqlQueryBuilder.toString());\n } catch (NoSuchClauseFoundException noSuchClauseFoundException) {\n queryDisplayListener.showException(noSuchClauseFoundException.getExceptionMessage());\n }\n }", "public interface GroupQueryBuilder extends QueryBuilder\n{\n /**\n * Create GroupQuery based on conditions set using other GroupQueryBuilder methods.\n * @return\n */\n GroupQuery createQuery();\n\n /**\n * Reset all query conditions\n * @return\n */\n GroupQueryBuilder reset();\n\n /**\n * Search for a Group with a given key\n *\n * @param key\n * @return\n */\n GroupQueryBuilder setKey(String key);\n\n /**\n * Search for groups with a given name and type\n * @param name\n * @param type\n * @return\n */\n GroupQueryBuilder setNameAndType(String name, String type);\n\n /**\n * Search for groups with a given name\n *\n * @param name\n * @return\n */\n GroupQueryBuilder setName(String name);\n\n /**\n * Search for groups with a given type\n * @param type\n * @return\n */\n GroupQueryBuilder setType(String type);\n\n /**\n * Search for groups that are associated with a given group\n *\n * @param group\n * @param parent\n * @return\n */\n GroupQueryBuilder addAssociatedGroup(Group group, boolean parent);\n\n /**\n * Search for groups that are associated with a given group\n *\n * @param key\n * @param parent\n * @return\n */\n GroupQueryBuilder addAssociatedGroup(String key, boolean parent);\n\n /**\n * Search for groups that are associated with a given groups\n * @param groups\n * @param parent\n * @return\n */\n GroupQueryBuilder addAssociatedGroups(Collection<Group> groups, boolean parent);\n\n /**\n * Search for groups that are associated with a given groups\n *\n * @param keys\n * @param parent\n * @return\n */\n GroupQueryBuilder addAssociatedGroupsKeys(Collection<String> keys, boolean parent);\n\n /**\n * Search for groups that are associated with a given user\n *\n * @param user\n * @return\n */\n GroupQueryBuilder addAssociatedUser(User user);\n\n /**\n * Search for groups that are associated with a given user\n *\n * @param key\n * @return\n */\n GroupQueryBuilder addAssociatedUser(String key);\n\n /**\n * Search for groups that are associated with a given users\n *\n * @param users\n * @return\n */\n GroupQueryBuilder addAssociatedUsers(Collection<User> users);\n\n /**\n * Search for groups that are associated with a given users\n *\n * @param keys\n * @return\n */\n GroupQueryBuilder addAssociatedUsersKeys(Collection<String> keys);\n\n /**\n * Search for groups that are connected with a Role with a given user\n *\n * @param user\n * @return\n */\n GroupQueryBuilder addUserConnectedByRole(User user);\n\n /**\n * Search for groups that are connected with a Role with a given user\n *\n * @param key\n * @return\n */\n GroupQueryBuilder addUserConnectedByRole(String key);\n\n /**\n * Search for groups that are connected with a Role with a given users\n *\n * @param users\n * @return\n */\n GroupQueryBuilder addUsersConnectedByRole(Collection<User> users);\n\n /**\n * Search for groups that are connected with a Role with a given users\n *\n * @param ids\n * @return\n */\n GroupQueryBuilder addUsersIdsConnectedByRole(Collection<String> ids);\n\n /**\n * Search for groups that are associated or connected with a Role with a given user\n *\n * @param user\n * @return\n */\n GroupQueryBuilder addRelatedUser(User user);\n\n /**\n * Search for groups that are associated or connected with a Role with a given user\n *\n * @param id\n * @return\n */\n GroupQueryBuilder addRelatedUser(String id);\n\n /**\n * Sort results\n *\n * @param order\n * @return\n * @throws UnsupportedQueryCriterium\n */\n GroupQueryBuilder sort(SortOrder order) throws UnsupportedQueryCriterium;\n\n /**\n * Sort by attribute name\n *\n * @param name\n * @return\n * @throws UnsupportedQueryCriterium\n */\n GroupQueryBuilder sortAttributeName(String name) throws UnsupportedQueryCriterium;\n\n /**\n * Return specified page from results\n *\n * @param firstResult\n * @param maxResults\n * @return\n * @throws UnsupportedQueryCriterium\n */\n GroupQueryBuilder page(int firstResult, int maxResults) throws UnsupportedQueryCriterium;\n\n /**\n * Filter resuts by a given attribute values. All values need to be present \n *\n * @param attributeName\n * @param attributeValue\n * @return\n * @throws UnsupportedQueryCriterium\n */\n GroupQueryBuilder attributeValuesFilter(String attributeName, String[] attributeValue) throws UnsupportedQueryCriterium;\n\n}", "@SuppressWarnings(\"unchecked\")\r\n\tprivate Query createQuery(String jql, Class<?> clazz, boolean isNative, int offset, int size, Object params){\r\n\t\tif(StringUtils.isBlank(jql) && (clazz == null || clazz == Object.class)){\r\n\t\t\tthrow new IllegalArgumentException(\"Incorrect argument\");\r\n\t\t}\r\n\t\tif (StringUtils.isBlank(jql)) {\r\n\t\t\tjql = \"from \" + clazz.getName();\r\n\t\t}\r\n\t\t\r\n\t\tQuery oQuery;\r\n\t\tif (isNative) {\r\n\t\t\tif(clazz != null && clazz != Object.class){\r\n\t\t\t\toQuery = em.createNativeQuery(jql, clazz);\r\n\t\t\t}else{\r\n\t\t\t\toQuery = em.createNativeQuery(jql);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\toQuery = em.createQuery(jql);\r\n\t\t}\r\n\t\t\r\n\t\tif (params != null) {\r\n\t\t\tif(params instanceof Map<?, ?>){\r\n\t\t\t\tMap<String, Object> oParams = (Map<String, Object>)params;\r\n\t\t\t\tfor (String key : oParams.keySet()) {\r\n\t\t\t\t\toQuery.setParameter(key, oParams.get(key));\r\n\t\t\t\t}\r\n\t\t\t}else{\r\n\t\t\t\tObject[] oParams = (Object[])params;\r\n\t\t\t\tfor(int i = 0; i < oParams.length; i++){\r\n\t\t\t\t\toQuery.setParameter(i, oParams[i]);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(offset > 0 || size > 0){\r\n\t\t\toQuery.setFirstResult(offset);\r\n\t\t\toQuery.setMaxResults(size);\r\n\t\t}\r\n\t\t\r\n\t\treturn oQuery;\r\n\t}", "public interface BaseQueryBuilder {\n\n /**\n * \n * 查询构建完成\n * \n * @return {@link EsdslBuilder}\n * @since JDK 1.8\n */\n EsdslBuilder queryDone();\n}", "protected <T extends BaseEntity> TypedQuery<T> createQuery(\n\t\t\tMap<String, Boolean> sort, Map<String, Object> filters) {\n\t\tList<Filter> listFilters = getQueryParam().createListFiltersFromMap(filters);\n//\t\tlistFilters.addAll(createListFilterForJoinFields());\n//\t\tgetQueryParam().addJoinFilters(joinFields);\t\t\n\n\t\treturn createQuery(sort, listFilters);\n\t}", "private QueryImpl(com.google.protobuf.GeneratedMessageLite.Builder builder) {\n super(builder);\n\n }", "public QueryOptions build() {\n return new QueryOptions(this.columns, this.excludeColumns, this.excludeAttributes, this.shards);\n }", "@Override\n\tpublic Query createQuery(CriteriaDelete deleteQuery) {\n\t\treturn null;\n\t}", "private DbQuery() {}", "@SuppressWarnings(\"unchecked\")\n\tprotected <T extends BaseEntity> TypedQuery<T> createQuery(\n\t\t\tMap<String, Boolean> sort, List<Filter> filters) {\n\t\tgetQueryParam().setOrderBy(sort);\n\n\t\taddFilters(filters);\n\n\t\tString jpql = queryParam.createSearchJPQL();\n\t\tTypedQuery<T> query = (TypedQuery<T>) getEntityManager().createQuery(jpql,\n\t\t\t\tgetEntityClass());\n\t\tqueryParam.updateParameter(query);\n\t\treturn query;\n\t}", "SQLQuery createSQLQuery(final String query);", "CampusSearchQuery generateQuery();", "public CriteriaBuilder getBuilder() {\n\t CriteriaBuilder builder = emFactory.getCriteriaBuilder();\n\t return builder;\n\t }", "public Builder clearQuery() {\n bitField0_ = (bitField0_ & ~0x00000010);\n query_ = getDefaultInstance().getQuery();\n\n return this;\n }", "IQuery getQuery();", "public WorldUps.UQuery.Builder getQueriesBuilder(\n int index) {\n return getQueriesFieldBuilder().getBuilder(index);\n }", "public QueryCore buildQuery() throws SQLException\n {\n if(l != null)\n {\n for(int i=0;i<l.size();i++)\n {\n prepStm.setObject(i+1,l.get(i));\n }\n }\n return this;\n }", "protected MultiPhraseQuery.Builder newMultiPhraseQueryBuilder() {\n return new MultiPhraseQuery.Builder();\n }", "public void setQueryBuilder(QueryBuilder queryBuilder) {\n\n if (queryBuilder == null) {\n throw new IllegalArgumentException(\"queryBuilder should not be null!\");\n }\n\n this.builder = queryBuilder;\n\n }", "public Query() {\r\n }", "private void montaQuery(Publicacao object, Query q) {\t\t\n\t}", "interface FindByQueryWithQuery<T> extends TerminatingFindByQuery<T> {\n\n\t\t/**\n\t\t * Set the filter query to be used.\n\t\t *\n\t\t * @param query must not be {@literal null}.\n\t\t * @return new instance of {@link TerminatingFindByQuery}.\n\t\t * @throws IllegalArgumentException if query is {@literal null}.\n\t\t */\n\t\tTerminatingFindByQuery<T> matching(Query query);\n\n\t}", "private RealmQuery buildRealmQuery(Realm realm, Class myClass) {\n RealmQuery query = RealmQuery.createQuery(realm, myClass);\n return query;\n }", "ObstacleQuery createObstacleQuery();", "MessageQuery createMessageQuery();", "public JPQLQuery(ExecutionContext ec)\r\n {\r\n this(ec, (JPQLQuery) null);\r\n }", "static DbQuery createKeyQuery() {\n DbQuery query = new DbQuery();\n query.order = OrderBy.KEY;\n return query;\n }", "public org.apache.drill.exec.proto.UserBitShared.QueryId.Builder getQueryIdBuilder() {\n bitField0_ |= 0x00000001;\n onChanged();\n return getQueryIdFieldBuilder().getBuilder();\n }", "public org.apache.drill.exec.proto.UserBitShared.QueryId.Builder getQueryIdBuilder() {\n bitField0_ |= 0x00000001;\n onChanged();\n return getQueryIdFieldBuilder().getBuilder();\n }", "public WorldUps.UQuery.Builder addQueriesBuilder() {\n return getQueriesFieldBuilder().addBuilder(\n WorldUps.UQuery.getDefaultInstance());\n }", "public abstract String createQuery();", "@Override\n\tpublic <T> TypedQuery<T> createQuery(String qlString, Class<T> resultClass) {\n\t\treturn null;\n\t}", "private String getCreateQuery() {\n String query = null;\n try {\n query = crudQueryComposer.composeCreateQuery();\n } catch (MissingPropertyException e) {\n logger.error(e);\n }\n return query;\n }", "SelectQueryBuilder selectAll();", "@Override\n public Object build() {\n return AggregationBuilders.filter(this.getName(),\n (org.opensearch.index.query.QueryBuilder)this.queryBuilder.seekRoot().query().filtered().filter().getCurrent().build());\n }", "public ConditionQueryBuilder getSubqueryBuilder()\r\n\t\t{\r\n\t\t\treturn subqueryBuilder;\r\n\t\t}", "public Query getQuery()\n {\n return query;\n }", "protected StringBuilder generateQuery() {\n StringBuilder sb = new StringBuilder();\n sb.append(\" FROM \") \n .append(dao.getParameterClass(0).getName())\n .append(\" d WHERE (:incorrectEvent = '' OR d.incorrectEvent.id = :incorrectEvent) \")\n .append(\"AND (d.createDate BETWEEN :dateFrom AND :dateTo ) \")\n .append(\"AND ( ((:incorrectEvent ='' AND :incorrectEventName!='' AND UPPER(d.incorrectEvent.name) LIKE :incorrectEventName) \")\n .append(\" OR (:incorrectEvent ='' AND :incorrectEventName!='' AND UPPER(d.incorrectEvent.name) LIKE :incorrectEventName)) \")\n .append(\" OR (:search='' OR d.searchField LIKE :search) ) \");\n return sb;\n }", "public interface ExtraQuery {\n\n ExtraQuery setTypeName(String typeName);\n ExtraQuery setIndexName(String indexName);\n\n /**\n * Add condition for extraQuery\n * @see #eq(String, Object) for replace\n * @param name name of target field in repo.entity in <b>output channel</b>\n * @param value value of target field in repo.entity in <b>output channel</b>\n */\n @Deprecated\n ExtraQuery filter(String name, Object value);\n\n ExtraQuery eq(String name, Object value);\n\n /**\n * Add condition using primary key\n */\n ExtraQuery id(Object value);\n\n ExtraQuery select(String... field);\n\n /**\n * rename {@link #select(String...)} fields as new name\n * @param cols new name\n */\n ExtraQuery as(String... cols);\n\n /**\n * @see #as(String...) for replace\n */\n @Deprecated\n ExtraQuery addField(String... cols);\n\n @Override\n String toString();\n}", "private CriteriaQuery<Bank> getCriteriaQuery(String name, String location) {\n Expression expr; // refers to the attributes of entity class\n Root<Bank> queryRoot; // entity/table from which the selection is performed\n CriteriaQuery<Bank> queryDefinition; // query being built\n List<Predicate> predicates = new ArrayList<>(); // list of conditions in the where clause\n\n CriteriaBuilder builder; // creates predicates\n builder = em.getCriteriaBuilder();\n\n queryDefinition = builder.createQuery(Bank.class);\n // defines the from part of the query\n queryRoot = queryDefinition.from(Bank.class);\n // defines the select part of the query\n // at this point we have a query select s from Student s (select * from student in SQL)\n queryDefinition.select(queryRoot);\n if (name != null) {\n // gets access to the field called name in the Student class\n expr = queryRoot.get(\"name\");\n predicates.add(builder.like(expr, name));\n }\n\n if (location != null) {\n // gets access to the field called name in the Student class\n expr = queryRoot.get(\"location\");\n // creates condition of the form s.average >= average\n predicates.add(builder.equal(expr, location));\n }\n // if there are any conditions defined\n if (!predicates.isEmpty()) {\n // build the where part in which we combine the conditions using AND operator\n queryDefinition.where(\n builder.or(predicates.toArray(\n new Predicate[predicates.size()])));\n }\n return queryDefinition;\n }", "protected Querydsl getQuerydsl() {\n return this.querydsl;\n }", "private UQuery(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public FromClause createFromClause()\n {\n return null;\n }", "public Query getQuery(Session session) {\n return session.createQuery(query);\n }", "public Query QueryCompiler(Logger logger, BooleanJunction<BooleanJunction> booleanQuery) {\n logger.info(\"Compiling queries into super query.\");\n Query builtQuery = booleanQuery.createQuery();\n\n return builtQuery;\n }", "TSearchQuery createSearchQuery(SearchQueryDefinitionAPI searchQueryDefinition);", "Query query();", "public Query() {\n\n// oriToRwt = new HashMap();\n// oriToRwt.put(); // TODO\n }", "public interface QueryResultBuilder <T>{\n\t\n\t/**\n\t * Apply the given filter to the underlying query.\n\t * \n\t * @param filter The filter to apply.\n\t * @param params Filter parameters\n\t * @return Builder for chaining\n\t */\n\tpublic QueryResultBuilder<T> applyFilter(Option<QueryFilter<T>> filter, Option<Map<String, Object>> params);\n\t\n\t/**\n\t * Apply the given filter to the underlying query.\n\t * \n\t * @param filters The filter to apply\n\t * @return Builder for chaining\n\t */\n\tpublic QueryResultBuilder<T> applyFilters(Option<Filters> filters);\n\t\n\t/**\n\t * Apply the given search to the underlying query.\n\t * \n\t * @param search The search to apply\n\t * @return Builder for chaining\n\t */\n\tpublic QueryResultBuilder<T> applySearch(Option<Search> search);\n\t\n\t/**\n\t * Set the given page for the underlying query.\n\t * \n\t * @param page The page to apply\n\t * @return Builder for chaining\n\t */\n\tpublic QueryResultBuilder<T> setPage(Option<Page> page);\n\t\n\t/**\n\t * Apply the given sort to the underlying query.\n\t * \n\t * @param sort The sort to apply\n\t * @return Builder for chaining\n\t */\n\tpublic QueryResultBuilder<T> applySort(Option<Sort> sort);\n\t\n\t/**\n\t * Get the final result\n\t * @return\n\t */\n\tpublic QueryResult<T> getResult();\n}", "public PseudoQuery() {\r\n\t}", "private String buildSoqlQuery(String entityName, String selectQueryFragment, Date startDate, Date endDate) {\r\n\t\tStringBuilder completeQuery = new StringBuilder(\"\");\r\n\t\tcompleteQuery.append(selectQueryFragment);\r\n\t\tcompleteQuery.append(ConstantesBulkApi.ALL_ENTITIES_FROM_CLAUSE);\r\n\t\tcompleteQuery.append(entityName);\r\n\t\t\r\n\t\tswitch (entityName) {\r\n\t\t\tcase ConstantesBulkApi.ENTITY_ADDRESS:\r\n\t\t\t\tcompleteQuery.append(ConstantesBulkApi.ADDRESS_ENTITY_WHERE_CLAUSE);\r\n\t\t\t\tbreak;\r\n\t\t\tcase ConstantesBulkApi.ENTITY_REPEATED_CASES:\r\n\t\t\t\tcompleteQuery.append(ConstantesBulkApi.WITHOUT_COUNTRY_ENTITIES_WHERE_CLAUSE);\r\n\t\t\t\tbreak;\r\n\t\t\tcase ConstantesBulkApi.ENTITY_GROUP:\r\n\t\t\t\tcompleteQuery.append(ConstantesBulkApi.WITHOUT_COUNTRY_ENTITIES_WHERE_CLAUSE);\r\n\t\t\t\tbreak;\r\n\t\t\tcase ConstantesBulkApi.ENTITY_CASE_COMMENT:\r\n\t\t\t\tcompleteQuery.append(ConstantesBulkApi.CASE_COMMENT_ENTITY_WHERE_CLAUSE);\r\n\t\t\t\tbreak;\r\n\t\t\tcase ConstantesBulkApi.ENTITY_CASE_HISTORY:\r\n\t\t\t\tcompleteQuery.append(ConstantesBulkApi.CASE_HISTORY_ENTITY_WHERE_CLAUSE);\r\n\t\t\t\tbreak;\r\n\t\t\tcase ConstantesBulkApi.ENTITY_TASK:\r\n\t\t\t\tcompleteQuery.append(ConstantesBulkApi.TASK_ENTITY_WHERE_CLAUSE);\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tcompleteQuery.append(ConstantesBulkApi.ALL_ENTITIES_BASIC_WHERE_CLAUSE);\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t\t\r\n\t\tif (ConstantesBulkApi.ENTITY_CASE_HISTORY.equals(entityName)) {\r\n\t\t\tcompleteQuery.append(\"AND (\").append(ConstantesBulkApi.OBJECT_CREATED_DATE_WHERE_CLAUSE);\r\n\t\t} else if (ConstantesBulkApi.ENTITY_REPEATED_CASES.equals(entityName) || ConstantesBulkApi.ENTITY_GROUP.equals(entityName)) {\r\n\t\t\tcompleteQuery.append(\" (\").append(ConstantesBulkApi.OBJECT_LAST_MODIFIED_DATE_WHERE_CLAUSE);\r\n\t\t} else {\r\n\t\t\tcompleteQuery.append(\"AND (\").append(ConstantesBulkApi.OBJECT_LAST_MODIFIED_DATE_WHERE_CLAUSE);\r\n\t\t}\r\n \t\tcompleteQuery.append(\" >= \").append(Utils.parseDateToString(startDate));\r\n\t\tif (ConstantesBulkApi.ENTITY_CASE_HISTORY.equals(entityName)) {\r\n\t\t\tcompleteQuery.append(\" AND \").append(ConstantesBulkApi.OBJECT_CREATED_DATE_WHERE_CLAUSE);\r\n\t\t} else {\r\n\t\t\tcompleteQuery.append(\" AND \").append(ConstantesBulkApi.OBJECT_LAST_MODIFIED_DATE_WHERE_CLAUSE);\r\n\t\t}\r\n\t\tcompleteQuery.append(\" <= \").append(Utils.parseDateToString(endDate)).append(\")\");\r\n\t\tLOGGER.debug(\"Consulta a realizar: \" + completeQuery);\r\n\t\treturn completeQuery.toString();\r\n\t}", "public abstract DatabaseQuery createDatabaseQuery(ParseTreeContext context);", "@Override\n public SpanQuery toFragmentQuery () throws QueryException {\n\n // The query is null\n if (this.isNull)\n return (SpanQuery) null;\n\n if (this.isEmpty) {\n log.error(\"You can't queryize an empty query\");\n return (SpanQuery) null;\n };\n\n // The query is not a repetition query at all, but may be optional\n if (this.min == 1 && this.max == 1)\n return this.subquery.retrieveNode(this.retrieveNode)\n .toFragmentQuery();\n\n // That's a fine repetition query\n return new SpanRepetitionQuery(\n this.subquery.retrieveNode(this.retrieveNode).toFragmentQuery(),\n this.min, this.max, true);\n }", "private String getSelectQuery() {\n String query = null;\n try {\n query = crudQueryComposer.composeReadQuery();\n } catch (MissingPropertyException e) {\n logger.error(e);\n }\n return query;\n }", "public Query createQuery(String hql, Object... values) {\n Assert.hasText(hql);\n Query query = getSession().createQuery(hql);\n for (int i = 0; i < values.length; i++) {\n query.setParameter(i, values[i]);\n }\n return query;\n }", "public static Query empty() {\n return new Query();\n }", "@Override\n\tpublic Query createQuery(String qlString) {\n\t\treturn null;\n\t}", "public PathologyReportDetailQueryBuilder() {\n super();\n }", "private SearchRequestBuilder createSearchBuilder(StoreURL storeURL, EsQuery esQuery) {\n SearchRequestBuilder searchBuilder = this.getClient(storeURL)\n .prepareSearch(esQuery.getGraph())\n .setQuery(RootBuilder.get(esQuery))\n .setFetchSource(true)\n .setFrom(esQuery.getPageNo())\n .setSize(esQuery.getPageSize());\n if(CollectionUtils.isNotEmpty(esQuery.getSchemas())){\n searchBuilder.setTypes(esQuery.getSchemas().toArray(new String[]{}));\n }\n this.addAggregations(esQuery, searchBuilder); // aggregation\n this.addSortFields(esQuery, searchBuilder); // sort\n this.addHighlightFields(esQuery, searchBuilder); // highlight\n return searchBuilder;\n }", "@SuppressWarnings({ \"rawtypes\", \"unchecked\" })\n \tprivate CriteriaUpdateImpl<?> constructUpdateQuery(CriteriaBuilderImpl cb, CommonTree tree) {\n \t\tfinal CriteriaUpdateImpl<?> q = new CriteriaUpdateImpl(this.metamodel);\n \n \t\tfinal Tree updateDef = tree.getChild(0);\n \n \t\tfinal Tree aliasedDef = updateDef.getChild(0);\n \t\tfinal Aliased aliased = new Aliased(aliasedDef);\n \n \t\tfinal EntityTypeImpl entity = this.getEntity(aliased.getQualified().toString());\n \t\tfinal RootImpl<?> r = (RootImpl<?>) q.from(entity);\n \t\tthis.putAlias(q, aliasedDef, aliased, r);\n \n \t\tfinal Tree setDefs = updateDef.getChild(1);\n \t\tfor (int i = 0; i < setDefs.getChildCount(); i++) {\n \t\t\tfinal Tree setDef = setDefs.getChild(i);\n \n \t\t\tfinal BasicPath left = (BasicPath) this.getExpression(cb, q, setDef.getChild(0), null);\n \t\t\tfinal AbstractExpression right = this.getExpression(cb, q, setDef.getChild(1), left.getJavaType());\n \n \t\t\tq.set(left, right);\n \t\t}\n \n \t\tif (updateDef.getChildCount() == 3) {\n \t\t\tq.where(this.constructJunction(cb, q, updateDef.getChild(2)));\n \t\t}\n \n \t\treturn q;\n \t}", "Query getNamedQuery(final String query);", "private Query generarQueryListaMenuPersonalizado(MenuPersonalizadoDTO menuPersonalizado, boolean esContador) {\n Map<String, Object> parametros = new HashMap<String, Object>();\n StringBuilder jpaql = new StringBuilder();\n if (esContador) {\n jpaql.append(\" select count(o.idMenuPersonalizado) from MenuPersonalizado o where 1=1 \");\n } else {\n jpaql.append(\" select o from MenuPersonalizado o left join fetch o.menu where 1=1 \"); \n }\n jpaql.append(\" and o.persona.idUsuario =:idUsuario \");\n parametros.put(\"idUsuario\", menuPersonalizado.getId() + \"\");\n if (!StringUtils.isNullOrEmpty(menuPersonalizado.getEstado())) {\n\t\t\tjpaql.append(\" and upper(o.estado) = :estado \");\n\t\t\tparametros.put(\"estado\", menuPersonalizado.getEstado().toUpperCase());\n\t\t}\n\t\tif (!StringUtils.isNullOrEmpty(menuPersonalizado.getSearch())) {\n\t jpaql.append(\" and upper(o.idMenuPersonalizado) like :search \");\n\t parametros.put(\"search\", \"%\" + menuPersonalizado.getSearch().toUpperCase() + \"%\");\n\t } else {\n\t\t\t\n\t\t\tif (!StringUtils.isNullOrEmpty(menuPersonalizado.getFechaCreacion())) {\n\t\t\t\tjpaql.append(\" and o.fechaCreacion = :fechaCreacion \");\n\t\t\t\tparametros.put(\"fechaCreacion\", menuPersonalizado.getFechaCreacion());\n\t\t\t}\n\t\t\tif (!StringUtils.isNullOrEmpty(menuPersonalizado.getUsuarioCreacion())) {\n\t\t\t\tjpaql.append(\" and upper(o.usuarioCreacion) like :usuarioCreacion \");\n\t\t\t\tparametros.put(\"usuarioCreacion\", \"%\" + menuPersonalizado.getUsuarioCreacion().toUpperCase() + \"%\");\n\t\t\t}\n\t\t}\n if (!esContador) {\n //jpaql.append(\" ORDER BY 1 \");\n }\n Query query = createQuery(jpaql.toString(), parametros);\n return query;\n }", "@Test\n public void constructorStoreSucceed()\n {\n // arrange\n // act\n QuerySpecificationBuilder querySpecificationBuilder = new QuerySpecificationBuilder(\"*\", QuerySpecificationBuilder.FromType.ENROLLMENTS);\n\n // assert\n assertEquals(\"*\", Deencapsulation.getField(querySpecificationBuilder, \"selection\"));\n assertEquals(QuerySpecificationBuilder.FromType.ENROLLMENTS, Deencapsulation.getField(querySpecificationBuilder, \"fromType\"));\n }", "public QueryBO() {\r\n }", "protected static IQueryExecutor getSingleClassQueryExecutor(IQuery query, IStorageEngine engine, IInstanceBuilder instanceBuilder) {\r\n\r\n\t\tif (CriteriaQuery.class == query.getClass()) {\r\n\t\t\treturn new CriteriaQueryExecutor(query, engine);\r\n\t\t}\r\n\t\tif (ValuesCriteriaQuery.class == query.getClass()) {\r\n\t\t\treturn new ValuesCriteriaQueryExecutor(query, engine);\r\n\t\t}\r\n\r\n\t\tif (NativeQuery.class.isAssignableFrom(query.getClass())) {\r\n\t\t\treturn new NativeQueryExecutor(query, engine, instanceBuilder);\r\n\t\t}\r\n\r\n\t\tif (SimpleNativeQuery.class.isAssignableFrom(query.getClass())) {\r\n\t\t\treturn new NativeQueryExecutor(query, engine, instanceBuilder);\r\n\t\t}\r\n\r\n\t\tthrow new ODBRuntimeException(NeoDatisError.QUERY_TYPE_NOT_IMPLEMENTED.addParameter(query.getClass().getName()));\r\n\t}", "private Queries() {\n // prevent instantiation\n }", "@Override\n\tpublic Query createNamedQuery(String name) {\n\t\treturn null;\n\t}", "public String buildJS() {\n if (className == null || instanceName == null) {\n // The query is only \"select `JS_expression`\" - in that case, just eval it\n return \"{ visitor = wrapVisitor(visitor); let result = \"+selectExpression+\"; let isIterable = result != null && typeof result[Symbol.iterator] === 'function'; if (isIterable) { for (r in result) { if (visitor.visit(result[r])) { break }; }} else { visitor.visit(result); } }\";\n } else {\n // The query is \"select `JS_expression` from `class_name` `identifier`\n // visitor is\n String selectFunction = \"function __select__(\"+instanceName+\") { return \"+selectExpression+\" };\";\n String iteratorConstruction = \"let iterator = heap.objects('\"+className+\"', \"+isInstanceOf+\");\";\n String whereFunction;\n String resultsIterator;\n if (whereExpression == null) {\n whereFunction = \"\";\n resultsIterator = \"while (iterator.hasNext()) { let item = iterator.next(); if (visitor.visit(__select__(item))) { break; }; };\";\n } else {\n whereFunction = \"function __where__(\"+instanceName+\") { return \"+whereExpression+\" };\";\n resultsIterator = \"while (iterator.hasNext()) { let item = iterator.next(); if(__where__(item)) { if (visitor.visit(__select__(item))) { break; } } };\";\n }\n return \"{ visitor = wrapVisitor(visitor); \" + selectFunction + whereFunction + iteratorConstruction + resultsIterator + \"}\";\n }\n }", "public Builder clearQueries() {\n if (queriesBuilder_ == null) {\n queries_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000010);\n onChanged();\n } else {\n queriesBuilder_.clear();\n }\n return this;\n }", "QueryConstraintType createQueryConstraintType();", "protected Criteria createCriteriaInternal() {\n Criteria criteria = new Criteria(this);\n return criteria;\n }", "protected Criteria createCriteriaInternal() {\n Criteria criteria = new Criteria(this);\n return criteria;\n }", "protected Criteria createCriteriaInternal() {\n Criteria criteria = new Criteria(this);\n return criteria;\n }" ]
[ "0.79359955", "0.72442335", "0.6935934", "0.6551806", "0.6525471", "0.65198386", "0.6409184", "0.63781816", "0.6344", "0.63394326", "0.6337755", "0.63001573", "0.62837315", "0.6241862", "0.62414354", "0.623712", "0.6185779", "0.6164807", "0.61574894", "0.61550844", "0.6148507", "0.6098183", "0.60892", "0.6054554", "0.6052978", "0.6040259", "0.6040214", "0.5964099", "0.59494245", "0.59379053", "0.5884977", "0.5862896", "0.5851233", "0.58499455", "0.58356935", "0.58195126", "0.5801564", "0.5747004", "0.57460093", "0.5721624", "0.5719778", "0.57077855", "0.56997216", "0.5696222", "0.5687413", "0.5687044", "0.56792134", "0.5673461", "0.5623498", "0.5597529", "0.55928093", "0.55913585", "0.5571448", "0.5570525", "0.55475587", "0.55475587", "0.55421066", "0.55380225", "0.55363274", "0.55341786", "0.5533239", "0.5529234", "0.55285203", "0.5477375", "0.54683626", "0.5446754", "0.54332554", "0.5424033", "0.5419901", "0.54176694", "0.54161304", "0.54109067", "0.5407414", "0.540591", "0.5404295", "0.5401443", "0.5400111", "0.53986186", "0.53807545", "0.5377949", "0.5373897", "0.5366704", "0.536602", "0.53627026", "0.535954", "0.5344135", "0.53136414", "0.53098077", "0.5307479", "0.5297185", "0.5285164", "0.528421", "0.5282205", "0.52712476", "0.5269419", "0.5254795", "0.52416724", "0.5241451", "0.5241451", "0.5241451" ]
0.6956294
2
private static final JsonFactory JSON_FACTORY = JacksonFactory.getDefaultInstance();
private HttpRequestInitializer getCredentials(final NetHttpTransport HTTP_TRANSPORT, TCC tcc) throws IOException { logger.debug("Obtendo credenciais..."); String credentialsPath = CREDENTIALS_FILE_PATH + tcc.getAluno().getCurso().getCodigoCurso() + ".json"; logger.debug("Caminho do arquivo de credenciais: " + credentialsPath); GoogleCredentials credentials = GoogleCredentials.fromStream(new FileInputStream(credentialsPath)); credentials = credentials.createScoped(SCOPES); credentials.refreshIfExpired(); HttpRequestInitializer requestInitializer = new HttpCredentialsAdapter(credentials); return requestInitializer; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JsonFactory() { this(null); }", "private JSONMessageFactory(){}", "private JSON() {\n\t}", "private JSONHelper() {\r\n\t\tsuper();\r\n\t}", "private JsonUtils() {}", "public JsonField() {\n }", "private JsonUtils()\r\n {\r\n // Private constructor to prevent instantiation\r\n }", "private JsonUtils() { }", "public ClaseJson() {\n }", "private JsonUtils() {\n\t\tsuper();\n\t}", "public JSONUtils() {\n\t\tsuper();\n\t}", "protected Object readResolve()\n/* */ {\n/* 353 */ return new JsonFactory(this, this._objectCodec);\n/* */ }", "Gson() {\n }", "@Override\n protected JsonUtil getJsonUtil() {\n return super.getJsonUtil();\n }", "public JsonRequestSerializer() {\n this(JNC.GSON);\n }", "public static Formatter getFormatter() {\n return new JsonFormatter();\n }", "public JSONUser(){\n\t}", "public MinecraftJson() {\n }", "public static JSONBuilder newInstance(){\n return new JSONBuilder();\n }", "private JsonUtil() {\n this.parser = new JSONParser();\n get_text();\n }", "public KafkaJsonSerializer() {\n\n }", "public JSONLoader() {}", "public JsonArray() {\n }", "public JSONModel() {\n jo = new JSONObject();\n }", "public JsonFactory setCodec(ObjectCodec oc)\n/* */ {\n/* 721 */ this._objectCodec = oc;\n/* 722 */ return this;\n/* */ }", "public static Json getInstance() {\n\t\treturn instance;\n\t}", "private DTOFactory() {\r\n \t}", "private static Gson gson() {\n return JsonUtils.buildGson(gb -> gb.registerTypeAdapter(Json.class, (JsonSerializer<Json>) (json, type, jsonSerializationContext) ->\n jsonParser.parse(json.value())\n ));\n }", "public JSFOla() {\n }", "public JsonHttpChannel() {\n this.defaultConstructor = new JsonHttpEventFactory();\n }", "public JsonUtil() {\r\n this.jsonSerializer = new JSONSerializer().transform(new ExcludeTransformer(), void.class).exclude(\"*.class\");\r\n }", "public JSONBuilder() {\n\t\tthis(null, null);\n\t}", "private SerializerFactory() {\n // do nothing\n }", "@Test\n public void jsonTest() {\n // TODO: test json\n }", "private SerializerFactory() {\r\n registerAvailableSerializers();\r\n }", "public void testGetJSON() {\n\t}", "public interface BaseFormModel {\n JSONObject toJson();\n}", "protected static JSONObject m3355f() {\n JSONObject jSONObject = new JSONObject();\n m3351a(jSONObject, true);\n return jSONObject;\n }", "public JsonPath()\r\n {\r\n numberOfParameters = 2;\r\n }", "@Test\n public void jsonTest(){\n }", "protected JsonFactory(JsonFactory src, ObjectCodec codec)\n/* */ {\n/* 293 */ this._objectCodec = null;\n/* 294 */ this._factoryFeatures = src._factoryFeatures;\n/* 295 */ this._parserFeatures = src._parserFeatures;\n/* 296 */ this._generatorFeatures = src._generatorFeatures;\n/* 297 */ this._characterEscapes = src._characterEscapes;\n/* 298 */ this._inputDecorator = src._inputDecorator;\n/* 299 */ this._outputDecorator = src._outputDecorator;\n/* 300 */ this._rootValueSeparator = src._rootValueSeparator;\n/* */ }", "JDefinedClass objectFactory();", "SerializeFactory getSerializeFactory();", "public static JsonAdapter.Factory create() {\n return nullSafe(new AutoValueMoshi_AutoValueFactory());\n }", "public interface JsonBean {\n String toJson();\n void fromJson(String json) throws Exception;\n}", "@Bean\n public MessageConverter jsonMessageConverter() {\n return new Jackson2JsonMessageConverter();\n }", "private ObjectFactory() { }", "public ParamJson() {\n\t\n\t}", "public static JSONWriter getInstance(){\n\t\treturn new JSONWriter();\n\t}", "public JsonFactory copy()\n/* */ {\n/* 324 */ _checkInvalidCopy(JsonFactory.class);\n/* */ \n/* 326 */ return new JsonFactory(this, null);\n/* */ }", "TorrentJsonParser getJsonParser();", "public JsonHttpChannel(FromJsonHttp defaultConstructor) {\n this.defaultConstructor = defaultConstructor;\n }", "protected BusinessObjectMapper() {\n }", "public AuthorizationJson() {\n }", "@Bean\n public ObjectMapper objectMapper() {\n return new ObjectMapper();\n }", "public JSONWriter()\n {\n _features = 0;\n _writeNullValues = false;\n _writerLocator = null;\n _treeCodec = null;\n _generator = null;\n _timezone = DEFAULT_TIMEZONE;\n }", "public ObjectMapper() {\n this.typeConverter = null;\n }", "public MJEasyClient() {\n client = new MailjetClient(System.getenv(\"MJ_APIKEY_PUBLIC\"), System.getenv(\"MJ_APIKEY_PRIVATE\"));\n }", "public String getFormatName()\n/* */ {\n/* 465 */ if (getClass() == JsonFactory.class) {\n/* 466 */ return \"JSON\";\n/* */ }\n/* 468 */ return null;\n/* */ }", "public abstract Object toJson();", "public Factory() {\n this(getInternalClient());\n }", "UserModel()\n {/*Used for Gson*/}", "public static void initialize() {\r\n\t\tjson = new JSONFile(filePath);\t\r\n\t}", "public interface JSONAdapter {\n public JSONObject toJSONObject();\n}", "private JArray()\n {\n throw new UnsupportedOperationException(\"Unsupported operation: uninstantiable utility class.\");\n }", "public JSONNode() {\n map = new HashMap<>();\n }", "public interface JsonProperties {\n\n String ACCESS_LEVEL = \"accessLevel\";\n String ADDRESS = \"address\";\n String ASSET_ID = \"assetId\";\n String CONTENT = \"content\";\n String CREATED_BY = \"createdBy\";\n String DATA = \"data\";\n String DATA_HASH = \"dataHash\";\n String EVENT_ID = \"eventId\";\n String ID_DATA = \"idData\";\n String META_DATA = \"metadata\";\n String PERMISSIONS = \"permissions\";\n String REGISTERED_BY = \"registeredBy\";\n String REGISTERED_ON = \"registeredOn\";\n String SEQUENCE_NUMBER = \"sequenceNumber\";\n String SIGNATURE = \"signature\";\n String TIMESTAMP = \"timestamp\";\n}", "private RestClient() {\n }", "T deserialize(JsonObject json, DynamicDeserializerFactory deserializerFactory) throws ClassNotFoundException;", "public static SerializerFactory getInstance() {\r\n return INSTANCE;\r\n }", "protected JsonParser getJsonParser( ) {\r\n\t\treturn jsonParser;\r\n\t}", "@Test\n public void readUserClassPatient() throws UnsupportedEncodingException, IOException {\n testJson = gson.toJson(Factory.createUser(\"Patient\"));\n\n //convert string to input stream\n InputStream inputStream = new ByteArrayInputStream(testJson.getBytes(Charset.forName(\"UTF-8\")));\n //convert inputstream to jsonReader\n JsonReader reader = new JsonReader(new InputStreamReader(inputStream, \"UTF-8\"));\n\n //read json string into resultant\n IUser actual = DataHandler.readUserClass(reader);\n\n //compare results \n assertEquals(\"Fails to return Patient properly\", Factory.createUser(\"Patient\").getClass(), actual.getClass());\n }", "JSONConverter getDefaultConverter();", "@Bean\n\tpublic ObjectMapper mapper() {\n\t\treturn new ObjectMapper();\n\t}", "public InvalidJsonException() {\n\t\tsuper();\n\t}", "JSONObject toJson();", "JSONObject toJson();", "public ObjectFactory() {}", "public ObjectFactory() {}", "public ObjectFactory() {}", "public TestRunJsonParser(){\n }", "private RestUtil() {\n\t}", "@Test\n public void readUserClassSecretary() throws UnsupportedEncodingException, IOException {\n testJson = gson.toJson(Factory.createUser(\"Secretary\"));\n\n //convert string to input stream\n InputStream inputStream = new ByteArrayInputStream(testJson.getBytes(Charset.forName(\"UTF-8\")));\n //convert inputstream to jsonReader\n JsonReader reader = new JsonReader(new InputStreamReader(inputStream, \"UTF-8\"));\n\n //read json string into resultant\n IUser actual = DataHandler.readUserClass(reader);\n\n //compare results \n assertEquals(\"Fails to return Secretary properly\", Factory.createUser(\"Secretary\").getClass(), actual.getClass());\n }", "@Bean\n public MessageConverter messageConverter() {\n return new Jackson2JsonMessageConverter();\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }" ]
[ "0.69471973", "0.68727916", "0.65082", "0.63999367", "0.6399163", "0.63474244", "0.63308114", "0.6251505", "0.62199163", "0.609235", "0.60515964", "0.5947603", "0.58889556", "0.58694464", "0.5833459", "0.5794363", "0.5775141", "0.5740572", "0.5643225", "0.5637818", "0.5622109", "0.5600543", "0.5552222", "0.5532149", "0.5512892", "0.54864067", "0.5475862", "0.5429289", "0.5428367", "0.5414705", "0.5408252", "0.5404107", "0.5391719", "0.5391106", "0.53856754", "0.5373956", "0.5342709", "0.5310443", "0.53101385", "0.52889735", "0.5287528", "0.5282313", "0.52743626", "0.5258573", "0.5224364", "0.5207852", "0.5201071", "0.519056", "0.51846975", "0.51736575", "0.5168573", "0.5142496", "0.5141474", "0.5131017", "0.51089853", "0.509741", "0.5084409", "0.50840324", "0.50543886", "0.5045072", "0.50442755", "0.5042743", "0.50406474", "0.5036423", "0.5033438", "0.5025582", "0.50204307", "0.50071055", "0.5000121", "0.49910066", "0.4972698", "0.49706954", "0.49625438", "0.49578494", "0.49548602", "0.49471915", "0.49471915", "0.49465054", "0.49465054", "0.49465054", "0.49338236", "0.49170816", "0.49152857", "0.49115434", "0.49098474", "0.49098474", "0.49098474", "0.49098474", "0.49098474", "0.49098474", "0.49098474", "0.49098474", "0.49098474", "0.49098474", "0.49098474", "0.49098474", "0.49098474", "0.49098474", "0.49098474", "0.49098474", "0.49098474" ]
0.0
-1
/ Transforma o id do tcc em uma string de pelo menos 5 caracteres, para ser aceito pelo google e identificar o evento do tcc
private String formatTccId(TCC tcc) { String id = Integer.toString(tcc.getIdTCC()); while (id.length() < 5) { id = "0" + id; } return id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String createId() {\n int idLength = 5;\n String possibleChars = \"1234567890\";\n Random random = new Random();\n StringBuilder newString = new StringBuilder();\n\n for (int i = 0; i < idLength; i++) {\n int randomInt = random.nextInt(10);\n newString.append(possibleChars.charAt(randomInt));\n }\n\n return newString.toString();\n }", "public String GiveEventID(){\n \tRandom x = new Random();\n \tString pool = \"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789\";\n \tString newid = \"\";\n \tfor(int i = 0;i<26;i++){\n \t\tnewid+=pool.charAt(x.nextInt(36));\n \t}\n \tJSONArray ja = fetchAllNotes(TimeT.getName(),new String[] {TimeT.getFields()[0]},new String[] {newid});\n \tif(ja.length()!=0)\n \t\tnewid = GiveEventID();\n \treturn newid;\n \t\n }", "private String getID()\n {\n String chars = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890!@#$%^&*()_+{}|:<>?/.,';][=-`~\";\n String id = \"\";\n int max = new Random().nextInt((16 - 12) + 1)+12;\n for(int i=0;i<16;i++)\n {\n int r = new Random().nextInt((chars.length()-1 - 0) + 1)+0;\n id+=chars.charAt(r);\n }\n return id;\n }", "java.lang.String getStringId();", "java.lang.String getStringId();", "private String idString(int occurrence) {\n if (occurrence == 0) {\n return null;\n }\n String stringRep = \"\";\n while (occurrence > 0) {\n // generate character from A-Z and add to stringRep\n char nextChar = (char) ((occurrence - 1) % 26 + 'A');\n stringRep = nextChar + stringRep;\n occurrence = (occurrence - 1) / 26;\n }\n return stringRep;\n }", "private static String modifyID(final String fifteenid) {\n String eightid = fifteenid.substring(0, 6);\n eightid = eightid + \"19\";\n eightid = eightid + fifteenid.substring(6, 15);\n eightid = eightid + getVerify(eightid);\n return eightid;\n }", "private String getCursoId(String turma_id) \n\t{\n\t\tString curso = null;\n\t\tif(turma_id.charAt(0) == 'I')\n\t\t{\n\t\t\tcurso = \"LEIT\";\n\t\t}else if(turma_id.charAt(0) == 'C')\n\t\t{\n\t\t\tcurso = \"LECT\";\n\t\t}else if(turma_id.charAt(0) == 'M')\n\t\t{\n\t\t\tcurso = \"LEMT\";\n\t\t}else if(turma_id.charAt(0) == 'G')\n\t\t{\n\t\t\tcurso = \"LGF\";\n\t\t}\n\t\telse if(turma_id.charAt(0) == 'A')\n\t\t{\n\t\t\tcurso = \"LEIT\";\n\t\t}\n\t\treturn curso;\n\t}", "public String getString_entries_id() { \n char carr[] = new char[Math.min(net.tinyos.message.Message.MAX_CONVERTED_STRING_LENGTH,11)];\n int i;\n for (i = 0; i < carr.length; i++) {\n if ((char)getElement_entries_id(i) == (char)0) break;\n carr[i] = (char)getElement_entries_id(i);\n }\n return new String(carr,0,i);\n }", "public String getId()\r\n\t{\n\t\treturn id.substring(2, 5);\r\n\t}", "public static String createId(CalendarDB db) {\n char[] skipChars = {\n 34, 39, 64, 91, 92, 93, 123, 125\n };\n \n int len = 10;\n char[] cArray = new char[len];\n\n for (int i = 0; i < len; i++) {\n\n boolean isAllowed = false;\n\n Random rand = new Random();\n char r = '0';\n// char test = 53;\n// System.out.println(\"Test char(\"+test+\")\");\n\n //[0] 48-57 0-9\n //[1] 65-90 A-Z\n //[2] 97- 122 a-z\n char[] valids = new char[3];\n \n //checkif the char is valid\n while (!isAllowed) {\n /*\n only takes valid chars. The fourth random just chooses one of the\n three in valids[]. \n */\n valids[0] = (char) RandomHandler.createIntegerFromRange(48, 57, rand);\n valids[1] = (char) RandomHandler.createIntegerFromRange(65, 90, rand);\n valids[2] = (char) RandomHandler.createIntegerFromRange(97, 122, rand);\n int start = 0;\n \n //the first char must not be a number\n if(i == 0)\n start += 1;\n \n r = valids[RandomHandler.createIntegerFromRange(start, 2, rand)];\n\n for (char ch : skipChars) {\n if (r != ch) {\n isAllowed = true;\n } else {\n isAllowed = false;\n }\n }\n }\n\n cArray[i] = r;\n }\n String s = new String(cArray);\n \n //retry creating id when the same is already used in database\n if(db.isIdAvailable(s))\n createId(db);\n \n System.out.println(\"ID created: \" + s);\n return s;\n }", "public ID(String id) {\n this.type = id.charAt(0);\n this.UID = id;\n }", "String mo10312id();", "private String convertStringToUuid(String input) {\n String[] uuid = new String[5];\n uuid[0] = input.substring(0, 8);\n uuid[1] = input.substring(8, 12);\n uuid[2] = input.substring(12, 16);\n uuid[3] = input.substring(16, 20);\n uuid[4] = input.substring(20, 32);\n return String.join(\"-\", uuid);\n }", "private String idToShortURL(int n)\n {\n char map[] = \"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789\".toCharArray();\n\n StringBuffer shorturl = new StringBuffer();\n\n // Convert given integer id to a base 62 number\n while (n > 0)\n {\n // use above map to store actual character\n // in short url\n shorturl.append(map[n%62]);\n n = n/62;\n }\n\n // Reverse shortURL to complete base conversion\n\n\n return shorturl.reverse().toString();\n }", "public String generateTeamID() {\n List<Team> teams = getAllOrdered();\n int idNum;\n \n if (teams == null || teams.isEmpty()) \n idNum = 0;\n else {\n String idStr = teams.get(teams.size() - 1).getTeamID();\n idNum = Integer.parseInt(idStr.substring(2, idStr.length()));\n }\n \n String teamID;\n int newIdNum = idNum + 1;\n if (newIdNum <= 9)\n teamID = \"T_000\" + newIdNum;\n else if (newIdNum <= 99) \n teamID = \"T_00\" + newIdNum;\n else if (newIdNum <= 999)\n teamID = \"T_0\" + newIdNum;\n else \n teamID = \"T_\" + newIdNum;\n \n return teamID;\n }", "java.lang.String getAoisId();", "public abstract java.lang.String getTica_id();", "private void generateID(){\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (String t : terms.keySet())\n\t\t\tsb.append(t.replaceAll(\"\\\\W\", \"\")\n\t\t\t\t\t.substring(0, Math.min(4, t.replaceAll(\"\\\\W\", \"\").length())) + \"-\");\n\t\tfor (String s : sources)\n\t\t\tsb.append(s.replaceAll(\"\\\\W\", \"\")\n\t\t\t\t\t.substring(0, Math.min(4, s.replaceAll(\"\\\\W\", \"\").length())) + \"-\");\n\t\tsb.deleteCharAt(sb.length()-1);\n\t\tif (yearFrom > -1) sb.append(\"_\" + yearFrom);\n\t\tif (yearTo > -1) sb.append(\"_\" + yearTo);\n\t\tif (useCompounds) sb.append(\"_COMP\");\n\t\tif (useStopwords) sb.append(\"_STOP\");\n\t\tsb.append(\"_CNT\" + contextSize);\n\t\tsb.append(\"_\" + System.currentTimeMillis());\n\t\tthis.id = sb.toString();\n\t}", "String gini_GetEntityID(int ent_id) {\n String name;\n switch (ent_id) {\n case 2:\n name = \"Miscellaneous\";\n break;\n case 3:\n name = \"JERS\";\n break;\n case 4:\n name = \"ERS/QuikSCAT/Scatterometer\";\n break;\n case 5:\n name = \"POES/NPOESS\";\n break;\n case 6:\n name = \"Composite\";\n break;\n case 7:\n name = \"DMSP satellite Image\";\n break;\n case 8:\n name = \"GMS satellite Image\";\n break;\n case 9:\n name = \"METEOSAT satellite Image\";\n break;\n case 10:\n name = \"GOES-7 satellite Image\";\n break;\n case 11:\n name = \"GOES-8 satellite Image\";\n break;\n case 12:\n name = \"GOES-9 satellite Image\";\n break;\n case 13:\n name = \"GOES-10 satellite Image\";\n break;\n case 14:\n name = \"GOES-11 satellite Image\";\n break;\n case 15:\n name = \"GOES-12 satellite Image\";\n break;\n case 16:\n name = \"GOES-13 satellite Image\";\n break;\n case 17:\n name = \"GOES-14 satellite Image\";\n break;\n case 18:\n name = \"GOES-15 satellite Image\";\n break;\n case 19: // GOES-R\n name = \"GOES-16 satellite Image\";\n break;\n case 99: // special snowflake GEMPAK Composite Images generated by Unidata\n name = \"RADAR-MOSIAC Composite Image\";\n break;\n default:\n name = \"Unknown\";\n }\n\n return name;\n }", "private String generateRandomId(){\n\n //creates a new Random object\n Random rnd = new Random();\n\n //creates a char array that is made of all the alphabet (lower key + upper key) plus all the digits.\n char[] characters = \"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890\".toCharArray();\n\n //creates the initial, empty id string\n String id = \"\";\n\n /*Do this 20 times:\n * randomize a number from 0 to the length of the char array, characters\n * add the id string the character from the index of the randomized number*/\n for (int i = 0; i < 20; i++){\n id += characters[rnd.nextInt(characters.length)];\n }\n\n //return the 20 random chars long string\n return id;\n\n }", "@Override\n public String getToID()\n {\n \tStringBuilder sb = new StringBuilder();\n\n\t\tint prefix = getPrefix();\n \tint ident = getIdent1();\n\n \tswitch( IdentType.fromIdent( ident ) )\n \t{\n \t\tcase IPFIXI:\n \t\t\tsb.append( \"INTER-PREFIX\" );\n \t\t\tbreak;\n \t\tcase ALLI:\n \t\t\tsb.append( \"ALL RADIOS\" );\n \t\t\tbreak;\n \t\tcase PABXI:\n \t\t\tsb.append( \"PABX EXT\" );\n \t\t\tbreak;\n \t\tcase PSTNSI1:\n \t\tcase PSTNSI2:\n \t\tcase PSTNSI3:\n \t\tcase PSTNSI4:\n \t\tcase PSTNSI5:\n \t\tcase PSTNSI6:\n \t\tcase PSTNSI7:\n \t\tcase PSTNSI8:\n \t\tcase PSTNSI9:\n \t\tcase PSTNSI10:\n \t\tcase PSTNSI11:\n \t\tcase PSTNSI12:\n \t\tcase PSTNSI13:\n \t\tcase PSTNSI14:\n \t\tcase PSTNSI15:\n \t\t\tsb.append( \"PRE-DEFINED PSTN\" );\n \t\t\tbreak;\n \t\tcase PSTNGI:\n \t\t\tsb.append( \"PSTN GATEWAY\" );\n \t\t\tbreak;\n \t\tcase TSCI:\n \t\t\tsb.append( \"SYSTEM CONTROLLER\" );\n \t\t\tbreak;\n \t\tcase DIVERTI:\n \t\t\tsb.append( \"CALL DIVERT\" );\n \t\t\tbreak;\n \t\tcase USER:\n\t\t\tdefault:\n\t\t\t\tif( prefix != 0 || ident != 0 )\n\t\t\t\t{\n\t \tsb.append( format( prefix, 3 ) );\n\t \tsb.append( \"-\" );\n\t \tsb.append( format( ident, 4) );\n\t\t\t\t}\n \tbreak;\n \t}\n\n \treturn sb.toString();\n }", "java.lang.String getID();", "public static String autoID(String table, String field, Integer substring) throws SQLException, ClassNotFoundException {\r\n String id = \"\";\r\n String string_id = \"\";\r\n try {\r\n Connection con;\r\n\r\n con = Apache_Connectionpool.getInstance().getConnection();\r\n\r\n String query = \"SELECT \" + field + \" FROM \" + table + \" WHERE SUBSTRING(\" + field + \",\" + substring + \",6)<? order by SUBSTRING(\" + field + \",\" + substring + \",6) DESC limit 1\";\r\n PreparedStatement stmt = con.prepareStatement(query);\r\n stmt.setInt(1, 999);\r\n ResultSet rs = stmt.executeQuery();\r\n if (rs.next()) {\r\n int sub_id, new_sub_id;\r\n string_id = rs.getString(field).substring(substring - 1);\r\n id = rs.getString(field).substring(0, substring - 1);\r\n sub_id = Integer.parseInt(string_id);\r\n new_sub_id = sub_id + 1;\r\n\r\n id += (new_sub_id <= 9) ? \"00\" + new_sub_id : ((new_sub_id >= 10 && new_sub_id <= 99) ? \"0\" + new_sub_id : new_sub_id);\r\n\r\n }\r\n con.close();\r\n rs.close();\r\n return id;\r\n } catch (Exception ex) {\r\n ex.printStackTrace();\r\n return \"\";\r\n }\r\n\r\n }", "public void testStringID() {\n String testID = generator.generatePrefixedIdentifier(\"test\");\n assertNotNull(testID);\n assertTrue(testID.matches(\"test\" + ID_REGEX));\n }", "public abstract java.lang.String getIdpcTV();", "java.lang.String getRecognitionId();", "public ScText newIdText()\n {\n return newIdText(\"Id\");\n }", "public ScText newIdText()\n {\n return newIdText(\"Id\");\n }", "public ScText newIdText()\n {\n return newIdText(\"Id\");\n }", "public ScText newIdText()\n {\n return newIdText(\"Id\");\n }", "public String getUniqueIdentifier(){\n return (streetAddress + aptNumber + zip).toLowerCase().replaceAll(\"\\\\s+\",\"\"); \n }", "private String creatUniqueID(){\n long ID = System.currentTimeMillis();\n return Long.toString(ID).substring(9,13);\n }", "public void generarId() {\n try{\n int numAleatorio = (int)(Math.random()*99999);\n boolean resultado = dgt.generarIdAutomatico(numAleatorio);\n tfid.setText(String.valueOf(numAleatorio));\n }catch(Exception e){\n System.out.println(e.getMessage());\n }\n }", "public static String m21417t(Context context) {\n if (TextUtils.isEmpty(f16893d)) {\n try {\n f16893d = ((TelephonyManager) context.getSystemService(\"phone\")).getSubscriberId();\n } catch (Exception e) {\n C5205o.m21464a((Throwable) e);\n }\n }\n return f16893d;\n }", "java.lang.String getFortId();", "private static String normalizeID(String id) {\r\n\t\tint hashcode = id.hashCode();\r\n\t\tboolean positive = hashcode >= 0;\r\n\t\tlong longcode = positive ? (long) hashcode : -(long) hashcode;\r\n\t\tStringBuffer hexstring = new StringBuffer(Long.toHexString(longcode));\r\n\t\twhile (hexstring.length() < 8) {\r\n\t\t\thexstring.insert(0, '0');\r\n\t\t}\r\n\t\tif (positive) {\r\n\t\t\thexstring.insert(0, '0');\r\n\t\t} else {\r\n\t\t\thexstring.insert(0, '1');\r\n\t\t}\r\n\t\treturn hexstring.toString();\r\n\t}", "public static String unmakeID(int id) {\r\n byte[] bytes = new byte[] {\r\n (byte) id,\r\n (byte) (id >>> 8),\r\n (byte) (id >>> 16),\r\n (byte) (id >>> 24)\r\n };\r\n return new String(bytes);\r\n }", "private String convertToID(String originalTree) {\n\tString result = new String(originalTree);\n\tfor (int i = 0; i < noTax; i++) {\n\t int indx = result.indexOf(taxa[i] + \")\");\n\t if (indx == -1) {\n\t\tindx = result.indexOf(taxa[i] + \",\");\n\t }\n\t try{\n\t\tresult = result.substring(0, indx) + i + \n\t\t result.substring(indx + taxa[i].length(), result.length());\n\t } catch (Exception e) {\n\t\tSystem.out.println(\"Error in replacing\\n\" + taxa[i] +\n\t\t\t\t \"\\n in \" + result);\n\t\tSystem.exit(-1);\n\t }\n\t}\n\treturn result;\n }", "public static String generate6CharacterTagCode() {\n\t\tString longTime = String.valueOf(Calendar.getInstance().getTimeInMillis());\n\t\tint len = longTime.length();\n\n\t\treturn longTime.substring(len - 6);\n\t}", "public static String generateID(int num){\n StringBuilder str=new StringBuilder();//定义变长字符串\n Random random=new Random();\n for (int i = 0; i < num; i++) {\n str.append(random.nextInt(10));\n }\n return str.toString();\n }", "public String toStringEvent(String id){\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"yyyy-MM-dd HH:mm\");\n String speakers = \"\";\n if (getEventSpeaker(id).size() != 0){\n if (getEventSpeaker(id).size() == 1){\n speakers = \", Speaker: \";\n }\n else{speakers = \", Speakers: \";}\n for (Speaker s: getEventSpeaker(id)){\n speakers += \" \" + s.getName() + \", \";\n }\n String line = \"Event: \" + getEvent(id).getTitle() + \", Room: \" +\n getEventRoom(id).getRoomName()\n + speakers + \"Starts at: \" + getEvent(id).getStartTime().format(formatter) + \", Ends at: \" +\n getEvent(id).getEndTime().format(formatter);\n if (getEvent(id).getVIPStatus()){\n line += \", VIP restricted event\";\n }\n return line;}\n else { String line = \"Event: \" + getEvent(id).getTitle() + \", Room: \" +\n getEventRoom(id).getRoomName()\n + \", Starts at: \" + getEvent(id).getStartTime().format(formatter) + \", Ends at: \" +\n getEvent(id).getEndTime().format(formatter);\n if (getEvent(id).getVIPStatus()){\n line += \", VIP restricted event\";\n }\n return line;\n }\n }", "private String normalizeDiseaseId(String diseaseId) {\n String[] tokens = diseaseId.split(\":\");\n if (\"ORPHANET\".equals(tokens[0])) {\n diseaseId = \"ORPHA:\" + tokens[1];\n }\n return diseaseId;\n }", "public static String toUserPresentable(String id)\n {\n StringBuilder builder = new StringBuilder(id.length() * 2);\n \n char[] chars = id.toCharArray();\n boolean postSpace = true;\n boolean upcaseNext = true;\n \n for (char ch : chars)\n {\n if (upcaseNext)\n {\n builder.append(Character.toUpperCase(ch));\n upcaseNext = false;\n \n continue;\n }\n \n if (ch == '_')\n {\n builder.append(' ');\n upcaseNext = true;\n continue;\n }\n \n boolean upperCase = Character.isUpperCase(ch);\n \n if (upperCase && !postSpace)\n builder.append(' ');\n \n builder.append(ch);\n \n postSpace = upperCase;\n }\n \n return builder.toString();\n }", "public void setID(final String id)\n {\n this.id = id.substring(6, id.length());\n }", "public String mo38889c() {\n String trim = this.f30736g0.getText().toString().trim();\n return trim.length() == 5 ? trim.substring(3, 5) : \"\";\n }", "public String gerarUID() {\n //String id1 = UUID.randomUUID().toString().replace(\"-\", \"\");\n String id1 = UUID.randomUUID().toString();\n return id1;\n }", "private static byte[] m24635a(Context context, String str) {\n String f = C6014b.m23956f();\n String string = Secure.getString(context.getContentResolver(), \"android_id\");\n String substring = str.substring(0, Math.min(8, str.length() - 1));\n StringBuilder sb = new StringBuilder();\n sb.append(substring);\n sb.append(f.substring(0, Math.min(8, f.length() - 1)));\n String sb2 = sb.toString();\n StringBuilder sb3 = new StringBuilder();\n sb3.append(sb2);\n sb3.append(string.substring(0, Math.min(8, string.length() - 1)));\n String sb4 = sb3.toString();\n if (sb4.length() != 24) {\n StringBuilder sb5 = new StringBuilder();\n sb5.append(sb4);\n sb5.append(str.substring(8, 24 - sb4.length()));\n sb4 = sb5.toString();\n }\n return sb4.getBytes();\n }", "protected String generateCommandID()\n {\n String res = new String (_initialID);\n // \"increase\" the ID for the next call\n boolean wasIncr = false;\n for (int i = _initialID.length-1; i>=0; i--)\n {\n if (_initialID[i] >= 'Z')\n {\n _initialID[i] = 'A';\n if ( i > 0 )\n {\n _initialID[i-1]++;\n wasIncr = true;\n }\n }\n else\n {\n if (! wasIncr) _initialID[i]++;\n break;\n }\n }\n return res;\n }", "private String genSenderID(String phoneNumber) {\r\n String sid = phoneNumber.replaceAll(senderIDRegex, \"\");\r\n return sid.length() > 11 ? sid.substring(sid.length() - 11, sid.length()) : sid;\r\n }", "String idProvider();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "public static String getTagID(String str){\n\t\tString tag = str.substring(0, 8);\n\t\tString regEx = \"(\\\\d{1}|[A-F])+(\\\\d{1}|[A-F])+(\\\\d{1}|[A-F])+(\\\\d{1}|[A-F])+(\\\\d{1}|[A-F])+(\\\\d{1}|[A-F])+(\\\\d{1}|[A-F])+(\\\\d{1}|[A-F])\";\n\t\tPattern pattern = Pattern.compile(regEx);\n\t\tMatcher matcher = pattern.matcher(tag);\n\t\t\n\n\t\tif(!matcher.find()){\n\t\t\t\n\t\t\treturn \"\";\n\t\t}\n\t\n\t\treturn tag;\n\t}", "public static String getManufacturerID(byte[] edid) {\n // Bytes 8-9 are manufacturer ID in 3 5-bit characters.\n String temp = String\n .format(\"%8s%8s\", Integer.toBinaryString(edid[8] & 0xFF), Integer.toBinaryString(edid[9] & 0xFF))\n .replace(Symbol.C_SPACE, '0');\n Logger.debug(\"Manufacurer ID: {}\", temp);\n return String.format(\"%s%s%s\", (char) (64 + Integer.parseInt(temp.substring(1, 6), 2)),\n (char) (64 + Integer.parseInt(temp.substring(7, 11), 2)),\n (char) (64 + Integer.parseInt(temp.substring(12, Normal._16), 2))).replace(Symbol.AT, Normal.EMPTY);\n }", "public String nextAvalibleID()\r\n\t{\r\n\t\t//creates a blank string as all Id's have to be 3 digits and if it was an itger it would remove the leading 0's\r\n\t\tString id = \"\";\r\n\t\t//If the pointer is 0 then the id needs to be 001\r\n\t\tif(nextPatientLocation == 0)\r\n\t\t{\r\n\t\t\tid = \"001\";\r\n\t\t}\r\n\t\t//otherwise it is the existing length + howver many 0's needed to make it 3 digits + the pointer data + 1 to make the first one not overlap any leaing id's\r\n\t\telse if(nextPatientLocation < 10)\r\n\t\t{\r\n\t\t\tid = \"00\"+(nextPatientLocation+1);\r\n\t\t}\r\n\t\telse if(nextPatientLocation < 100)\r\n\t\t{\r\n\t\t\tid = \"0\"+(nextPatientLocation+1);\r\n\t\t}\r\n\t\telse if(nextPatientLocation < 999)\r\n\t\t{\r\n\t\t\tid = \"\"+(nextPatientLocation+1);\r\n\t\t}\r\n\t\treturn id;//Id is returned\r\n\t}", "public String getIdentifierString();", "private String creatNewText() {\n\t\tRandom rnd = new Random();\n\t\treturn \"Some NEW teXt U9\" + Integer.toString(rnd.nextInt(999999));\n\t}", "String getIdNumber();" ]
[ "0.69161457", "0.6819992", "0.64149386", "0.6382333", "0.6382333", "0.6213928", "0.61789644", "0.61467516", "0.6129651", "0.5999383", "0.5965071", "0.5867719", "0.58531886", "0.58162177", "0.5813796", "0.57818246", "0.57677335", "0.57647663", "0.57418233", "0.5738322", "0.57241416", "0.57221997", "0.5700599", "0.5688038", "0.5682618", "0.566444", "0.56481004", "0.5629751", "0.5629751", "0.5629751", "0.5629751", "0.56283563", "0.55739087", "0.5565712", "0.5550804", "0.5549997", "0.5527064", "0.5507555", "0.5506807", "0.5493051", "0.5453284", "0.5447635", "0.5435598", "0.54280996", "0.5421998", "0.54148424", "0.5413623", "0.54131085", "0.5411393", "0.54094994", "0.5406304", "0.540602", "0.540602", "0.540602", "0.540602", "0.540602", "0.540602", "0.540602", "0.540602", "0.540602", "0.540602", "0.540602", "0.540602", "0.540602", "0.540602", "0.540602", "0.540602", "0.540602", "0.540602", "0.540602", "0.540602", "0.540602", "0.540602", "0.540602", "0.540602", "0.540602", "0.540602", "0.540602", "0.540602", "0.540602", "0.540602", "0.540602", "0.540602", "0.540602", "0.540602", "0.540602", "0.540602", "0.540602", "0.540602", "0.540602", "0.540602", "0.540602", "0.540602", "0.540602", "0.54001075", "0.5398151", "0.539521", "0.5349736", "0.5347283", "0.5342799" ]
0.71991277
0
/ create a board
@PostMapping("/boards") public ResponseEntity<Board> createBoard(@RequestBody Board board) throws URISyntaxException { if(board.getId()!=null){ throw new BadRequestAlertException("A new Board cannot already have an ID", ENTITY_NAME, "idexists"); } Board result = boardRepository.save(board); return ResponseEntity.created(new URI("/api/boards/" + result.getId())) .headers(HeaderUtil.createEntityCreationAlert(applicationName, false, ENTITY_NAME, result.getId().toString())) .body(result); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void createBoard();", "public void createBoard() {\n\t\tboard = new Piece[8][8];\n\t\t\n\t\tfor(int i=0; i<8; i++) {\n\t\t\tfor(int j=0; j<8; j++) {\n\t\t\t\tboard[i][j] = null;\n\t\t\t}\n\t\t}\n\t}", "private void generateBoard(){\n\t}", "public static void createBoard() \n\t{\n\t\tfor (int i = 0; i < tictactoeBoard.length; i++) \n\t\t{\n\t\t\ttictactoeBoard[i] = '-';\n\t\t}\n\t}", "public void Makeboard() {\r\n\r\n Normalboard(new Point2(20, 300));\r\n Normalboard(new Point2(224, 391));\r\n Stingboard(new Point2(156, 209));\r\n Leftlboard(new Point2(88, 482));\r\n Rightboard(new Point2(292, 573));\r\n Regenerateboard(new Point2(360, 118));\r\n\r\n }", "private void createBoard() {\n\t// An array of rows containing rows with squares are made\n\t\tfor (int i = 0; i < squares.length; i++) {\n\t \trows[i] = new Row(squares[i]);\n\t\t}\n\n\n\t// An array of columns containing columns with squares are made\n\t\tSquare[] columnArray = new Square[size];\n\t\tfor (int i = 0; i < size; i++) {\n\t\t for (int row = 0; row < size; row++) {\n\t\t\t\tcolumnArray[row] = squares[row][i];\n\t\t }\n\t\t columns[i] = new Column(columnArray);\n\t\t columnArray = new Square[size];\n\t\t}\n\n\n\t\tSquare[] boxArray;\n\t\tint counter;\n\t\t// Box nr i\n\t\tfor (int i = 0; i < size; i = i + height) {\n\t\t // Box nr j\n\t\t for (int j = 0; j < size; j = j + length) {\n\t\t\t\tcounter = 0;\n\t\t\t\tboxArray = new Square[size];\n\t\t\t\tint rowIndex = (i / height) * height;\n\t\t\t\tint columnIndex = (j / length) * length;\n\t\t\t\t// Row nr k\n\t\t\t\tfor (int k = rowIndex; k < rowIndex + height; k++) {\n\t\t\t\t // Column nr l\n\t\t\t\t for (int l = columnIndex; l < columnIndex + length; l++) {\n\t\t\t\t\t\tboxArray[counter] = squares[k][l];\n\t\t\t\t\t\tcounter++;\n\t\t\t\t }\n\t\t\t\t}\n\t\t\t\tboxes[j/length][i/height] = new Box(boxArray);\n\t\t }\n\t\t}\t\n\t\tcreatePointers();\n }", "public void createBoard() {\n for (int i = 0; i < matrix.length; i++) {\n for (int j = 0; j < matrix[i].length; j++) {\n matrix[i][j] = WATER;\n }\n }\n }", "MainBoard createMainBoard();", "public void createBoard() {\n for (int i = 0; i < rows; i++) {\n for (int j = 0; j <colls; j++) {\n if(i==0 || j == 0 || i == rows-1|| j == colls-1){\n board[i][j] = '*';\n } else {\n board[i][j] = ' ';\n }\n }\n }\n }", "public Board createBoard(Square[][] grid) {Collect.Hit(\"BoardFactory.java\",\"createBoard(Square[][] grid)\");assert grid != null; Collect.Hit(\"BoardFactory.java\",\"createBoard(Square[][] grid)\", \"1053\"); Board board = new Board(grid); Collect.Hit(\"BoardFactory.java\",\"createBoard(Square[][] grid)\", \"1079\"); int width = board.getWidth(); Collect.Hit(\"BoardFactory.java\",\"createBoard(Square[][] grid)\", \"1115\"); int height = board.getHeight(); Collect.Hit(\"BoardFactory.java\",\"createBoard(Square[][] grid)\", \"1148\"); for (int x = 0; x < width; x++) {\n\t\t\tfor (int y = 0; y < height; y++) {\n\t\t\t\tSquare square = grid[x][y];\n\t\t\t\tfor (Direction dir : Direction.values()) {\n\t\t\t\t\tint dirX = (width + x + dir.getDeltaX()) % width;\n\t\t\t\t\tint dirY = (height + y + dir.getDeltaY()) % height;\n\t\t\t\t\tSquare neighbour = grid[dirX][dirY];\n\t\t\t\t\tsquare.link(neighbour, dir);\n\t\t\t\t}\n\t\t\t}\n\t\t} Collect.Hit(\"BoardFactory.java\",\"createBoard(Square[][] grid)\", \"1183\"); Collect.Hit(\"BoardFactory.java\",\"createBoard(Square[][] grid)\", \"1552\");return board ; }", "public void create(){\n\t\t//creating board to keep track of player postion with 1 or 0. 0 if not there 1 if they are there\n\t\tfor(int i = 0; i <this.position.length; i++){\n\t\t\tfor(int p = 0; p < this.position.length; p++){\n\t\t\t\tthis.position[i][p] = 0;//filling with zero\n\t\t\t}\n\t\t}//end of position making board\n\t\tthis.position[1][1] = 1;//putting player in this position\n\n\t\t//creating door in the rooms\n\t\tfor(int i = 0; i <this.Door.length; i++){\n\t\t\tfor(int p = 0; p < this.Door.length; p++){\n\t\t\t\tthis.Door[i][p] = 0;//filling with zero\n\t\t\t}\n\t\t}//end of Door making board\n\t\tthis.Door[9][13] = 1;//puts the door here \n\n\t\t//makes board that tells if item is there\n\t\tfor(int i = 0; i <this.Items.length; i++){\n\t\t\tfor(int p = 0; p < this.Items.length; p++){\n\t\t\t\tthis.Items[i][p] = null;//filling with null\n\t\t\t}\n\t\t}//end of filling board that has items\n\n\t\t//makes border of room\n\t\tfor(int i = 0; i < this.area.length; i++){\n\t\t\tfor(int p = 0; p<this.area.length; p++){\n\t\t\t\tif(i==0){\n\t\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t\t}\n\t\t\t\telse if (p==0 || p==19){\n\t\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t\t}\n\t\t\t\telse if(i==19){\n\t\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tthis.area[i][p] = \" \";\n\t\t\t\t}\n\t\t\t}//end of innner for\n\t\t}//end of outter for\n\t\tfor(int i = 4; i< 5 ; i++){\n\t\t\tfor(int p = 4; p < 7; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 4; i< 5 ; i++){\n\t\t\tfor(int p = 4; p < 7; p++){\n\t\t\t\tthis.area[p][i] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 7; i< 8 ; i++){\n\t\t\tfor(int p = 2; p < 7; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 17; i< 18 ; i++){\n\t\t\tfor(int p = 13; p < 17; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\t\n\t\t}\n\t\tfor(int i = 14; i< 15 ; i++){\n\t\t\tfor(int p = 13; p < 17; p++){\n\t\t\t\tthis.area[p][i] = \"[ ]\";\n\t\t\t}\t\n\t\t}\t\n\t\tfor(int i = 11; i< 12 ; i++){\n\t\t\tfor(int p = 10; p < 17; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 15; i< 16 ; i++){\n\t\t\tfor(int p = 3; p < 6; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 16; i< 17 ; i++){\n\t\t\tfor(int p = 6; p < 13; p++){\n\t\t\t\tthis.area[p][i] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 12; i< 13 ; i++){\n\t\t\tfor(int p = 5; p < 10; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t\tSystem.out.println(\" \");\n\t\t}//end of for that creates walls\t\n\n\t\t//for loop that distributes items\n\t\tint y = 0;\n\t\tint x = 0;\n\t\tfor(int i = 0;i<10;i++){\n\t\t\tItem thing = ItemGenerator.generate();//making an item\n\t\t\tboolean good = false;\n\t\t\twhile(!good){//makes coordates until there is nothing in the way\n\t\t\t\ty = fate.nextInt(20);//getting coordiantaes \n\t\t\t\tx = fate.nextInt(20);\n\t\t\t\tif(this.Items[y][x]==null && this.area[y][x] != \"[ ]\"){\n\t\t\t\t\tgood = true;\n\t\t\t\t}//end of if\n\t\t\t\telse{ \n\t\t\t\t\tgood = false;\n\t\t\t\t}\n\t\t\t}//end of while\n\t\t\tItems[y][x] = thing;\n\t\t}//end of for that distributes items on board\n\n\t}", "public static int[][] createBoard() {\r\n\t\t\r\n\t\tint[][] board = new int [8][8];\r\n\t\t//printing the red solduers\r\n\t\tfor (int line =0,column=0;line<3;line=line+1){\r\n\t\t\tif (line%2==0){column=0;}\r\n\t\t\telse {column=1;}\r\n\t\t\tfor (;column<8;column=column+2){\r\n\t\t\t\tboard [line][column] = 1;\r\n\t\t\t}\r\n\t\t}\r\n\t\t//printing the blu solduers\r\n\t\tfor (int line =5,column=0;line<8;line=line+1){\r\n\t\t\tif (line%2==0){column=0;}\r\n\t\t\telse {column=1;}\r\n\t\t\tfor (;column<8;column=column+2){\r\n\t\t\t\tboard [line][column] = -1;\r\n\t\t\t}\r\n\t\t}\t\t\t\r\n\t\treturn board;\r\n\t}", "Board createLayout();", "void generateNewBoard() {\n createAvailableDice();\n\n // Add them to board\n generateBoardLayout();\n }", "public void create() {\n\t\t// setup Chess board\n\t\tthis.removeAll();\n\t\tthis.layout = new GridLayout(this.startupBoardSize, this.startupBoardSize);\n\t\tthis.squares = new SquarePanel[this.startupBoardSize][this.startupBoardSize];\n\t\t\n\t\tsetLayout(layout);\n\t\tsetPreferredSize(new Dimension(600, 600));\n\t\tsetBorder(new LineBorder(new Color(0, 0, 0)));\n\n\t\t//paint the chess board\n\n\t\tfor (int i = 0; i < this.startupBoardSize; i++) \n\t\t{\n\t\t\tfor (int j = 0; j < this.startupBoardSize; j++) \n\t\t\t{\n\t\t\t\tsquares[i][j] = new SquarePanel(j, i);\n\t\t\t\tsquares[i][j].setPreferredSize(new Dimension(600 / this.startupBoardSize - 5, 600 / this.startupBoardSize - 5));\n\n\n\t\t\t\tsquares[i][j].setBackground(Color.WHITE);\n\t\t\t\t\n\t\t\t\tif (((i + j) % 2) == 0) \n\t\t\t\t{\n\t\t\t\t\tsquares[i][j].setBackground(Color.DARK_GRAY);\n\t\t\t\t}\n\t\t\t\tadd(squares[i][j]);\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n\tpublic Board createBoard(long width, long height)\r\n\t{\r\n\t\treturn new Board(width, height);\r\n\t}", "private static void createEmptyBoard()\n {\n for (int index = 1; index < board.length; index++)\n {\n board[index] = ' ';\n }\n }", "public void newBoard(LiteBoard board) {\n }", "public static void makeBoardChess() {\r\n \r\n white = new AllPiece(\"White\");\r\n black = new AllPiece(\"Black\");\r\n \r\n }", "private void testBoardCreation() {\n for (int r = 0; r < Constants.BOARD_GRID_ROWS; r++) {\n for (int c = 0; c < Constants.BOARD_GRID_COLUMNS; c++) {\n Vector2 tokenLocation = this.mBoardLevel.getCenterOfLocation(r, c);\n Image tokenImage = new Image(this.mResources.getToken(PlayerType.RED));\n tokenImage.setPosition(tokenLocation.x, tokenLocation.y);\n this.mStage.addActor(tokenImage);\n }\n }\n }", "public void create3(){\n\t\t//creating board to keep track of player postion with 1 or 0. 0 if not there 1 if they are there\n\t\tfor(int i = 0; i <this.position.length; i++){\n\t\t\tfor(int p = 0; p < this.position.length; p++){\n\t\t\t\tthis.position[i][p] = 0;//filling with zero\n\t\t\t}\n\t\t}//end of position making board\n\n\n\t\t//creating stairs to connect rooms\n\t\tfor(int i = 0; i <this.Stairs.length; i++){\n\t\t\tfor(int p = 0; p < this.Stairs.length; p++){\n\t\t\t\tthis.Stairs[i][p] = 0;//filling with zero\n\t\t\t}\n\t\t}\n\t\tthis.Stairs[1][1] = 1;\n\n\t\t//creating board to keep track of garret\n\t\tfor(int i = 0; i <this.Garret.length; i++){\n\t\t\tfor(int p = 0; p < this.Garret.length; p++){\n\t\t\t\tthis.Garret[i][p] = 0;//filling with zero\n\t\t\t}\n\t\t}//end of garret board\n\t\tthis.Garret[18][10] = 1;//putts garret there\n\n\t\t//makes board that tells if item is there\n\t\tfor(int i = 0; i <this.Items.length; i++){\n\t\t\tfor(int p = 0; p < this.Items.length; p++){\n\t\t\t\tthis.Items[i][p] = null;//filling with null\n\t\t\t}\n\t\t}//end of filling board that has items\n\n\t\t//makes border of room\n\t\tfor(int i = 0; i < this.area.length; i++){\n\t\t\tfor(int p = 0; p<this.area.length; p++){\n\t\t\t\tif(i==0){\n\t\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t\t}\n\t\t\t\telse if (p==0 || p==19){\n\t\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t\t}\n\t\t\t\telse if(i==19){\n\t\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tthis.area[i][p] = \" \";\n\t\t\t\t}\n\t\t\t}//end of innner for\n\t\t}//end of outter for\n\t\tfor(int i = 1; i< 6 ; i++){\n\t\t\tfor(int p = 7; p < 8; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 6; i< 7 ; i++){\n\t\t\tfor(int p = 7; p > 4; p--){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 6; i< 11 ; i++){\n\t\t\tfor(int p = 4; p < 5; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 10; i< 11 ; i++){\n\t\t\tfor(int p = 5; p < 8; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 11; i< 15 ; i++){\n\t\t\tfor(int p = 7; p < 8; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 15; i< 16 ; i++){\n\t\t\tfor(int p = 7; p > 3; p--){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 13; i< 14 ; i++){\n\t\t\tfor(int p = 1; p < 4; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 4; i< 5 ; i++){\n\t\t\tfor(int p = 12; p < 17; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 5; i< 9 ; i++){\n\t\t\tfor(int p = 12; p < 13; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 13; i< 14 ; i++){\n\t\t\tfor(int p = 7; p < 12; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 13; i< 16 ; i++){\n\t\t\tfor(int p = 12; p < 13; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 9; i< 10 ; i++){\n\t\t\tfor(int p = 12; p < 19; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t\tSystem.out.println(\" \");\n\t\t}//end of for that creates walls\n\n\t\t//for loop that distributes items\n\t\tint y = 0;\n\t\tint x = 0;\n\t\tfor(int i = 0;i<10;i++){\n\t\t\tItem thing = ItemGenerator.generate();//making an item\n\t\t\tboolean good = false;\n\t\t\twhile(!good){//makes coordates until there is nothing in the way\n\t\t\t\ty = fate.nextInt(20);//getting coordiantaes\n\t\t\t\tx = fate.nextInt(20);\n\t\t\t\tif(this.Items[y][x]==null && this.area[y][x] != \"[ ]\"){\n\t\t\t\t\tgood = true;\n\t\t\t\t}//end of if\n\t\t\t\telse{\n\t\t\t\t\tgood = false;\n\t\t\t\t}\n\t\t\t}//end of while\n\t\t\tItems[y][x] = thing;\n\t\t}//end of for that distributes items on board\n\n\t}", "private Board create3by3Board() {\n Tile[][] tiles;\n Tile t1 = new Tile(0, 3);\n Tile t2 = new Tile(1, 3);\n Tile t3 = new Tile(2, 3);\n Tile t4 = new Tile(3, 3);\n Tile t5 = new Tile(4, 3);\n Tile t6 = new Tile(5, 3);\n Tile t7 = new Tile(6, 3);\n Tile t8 = new Tile(7, 3);\n Tile t9 = new Tile(8, 3);\n tiles = new Tile[3][3];\n tiles[0][0] = t7;\n tiles[0][1] = t6;\n tiles[0][2] = t2;\n tiles[1][0] = t5;\n tiles[1][1] = t9;\n tiles[1][2] = t3;\n tiles[2][0] = t1;\n tiles[2][1] = t8;\n tiles[2][2] = t4;\n return new Board(tiles);\n }", "private char[] createBoard() {\n for (int i = 1; i < 10; i++) {\n board[i] = 0;\n }\n return board;\n }", "public void create2(){\n\t\t//creating board to keep track of player postion with 1 or 0. 0 if not there 1 if they are there\n\t\tfor(int i = 0; i <this.position.length; i++){\n\t\t\tfor(int p = 0; p < this.position.length; p++){\n\t\t\t\tthis.position[i][p] = 0;//filling with zero\n\t\t\t}\n\t\t}//end of position making board\n\n\n\t\t//creating door in the rooms\n\t\tfor(int i = 0; i <this.Door.length; i++){\n\t\t\tfor(int p = 0; p < this.Door.length; p++){\n\t\t\t\tthis.Door[i][p] = 0;//filling with zero\n\t\t\t}\n\t\t}//end of Door making board\n\t\tthis.Door[1][1] = 1;\n\n\t\t//creating stairs to transport to room3\n\t\tfor(int i = 0; i <this.Stairs.length; i++){\n\t\t\tfor(int p = 0; p < this.Stairs.length; p++){\n\t\t\t\tthis.Stairs[i][p] = 0;//filling with zero\n\t\t\t}\n\t\t}//end of Door making board\n\t\tthis.Stairs[18][18] = 1;\n\n\t\t//creating board to keep track of ari\n\t\tfor(int i = 0; i <this.Ari.length; i++){\n\t\t\tfor(int p = 0; p < this.Ari.length; p++){\n\t\t\t\tthis.Ari[i][p] = 0;//filling with zero\n\t\t\t}\n\t\t}\n\t\tthis.Ari[7][11] = 1;//putts ari there\n\n\t\t//makes board that tells if item is there\n\t\tfor(int i = 0; i <this.Items.length; i++){\n\t\t\tfor(int p = 0; p < this.Items.length; p++){\n\t\t\t\tthis.Items[i][p] = null;//filling with null\n\t\t\t}\n\t\t}//end of filling board that has items\n\n\t\t//makes border of room\n\t\tfor(int i = 0; i < this.area.length; i++){\n\t\t\tfor(int p = 0; p<this.area.length; p++){\n\t\t\t\tif(i==0){\n\t\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t\t}\n\t\t\t\telse if (p==0 || p==19){\n\t\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t\t}\n\t\t\t\telse if(i==19){\n\t\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tthis.area[i][p] = \" \";\n\t\t\t\t}\n\t\t\t}//end of innner for\n\t\t}//end of outter for\n\t\tfor(int i = 3; i< 4 ; i++){\n\t\t\tfor(int p = 1; p < 18; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 6; i< 7 ; i++){\n\t\t\tfor(int p = 19; p > 1; p--){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 9; i< 10 ; i++){\n\t\t\tfor(int p = 1; p < 18; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 12; i< 13 ; i++){\n\t\t\tfor(int p = 19; p > 1; p--){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 15; i< 16 ; i++){\n\t\t\tfor(int p = 1; p < 18; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\n\t\t\tSystem.out.println(\" \");\n\t\t}//end of for that creates walls\n\n\t\t//for loop that distributes items\n\t\tint y = 0;\n\t\tint x = 0;\n\t\tfor(int i = 0;i<10;i++){\n\t\t\tItem thing = ItemGenerator.generate();//making an item\n\t\t\tboolean good = false;\n\t\t\twhile(!good){//makes coordates until there is nothing in the way\n\t\t\t\ty = fate.nextInt(20);//getting coordiantaes\n\t\t\t\tx = fate.nextInt(20);\n\t\t\t\tif(this.Items[y][x]==null && this.area[y][x] != \"[ ]\"){\n\t\t\t\t\tgood = true;\n\t\t\t\t}//end of if\n\t\t\t\telse{\n\t\t\t\t\tgood = false;\n\t\t\t\t}\n\t\t\t}//end of while\n\t\t\tItems[y][x] = thing;\n\t\t}//end of for that distributes items on board\n\n\t}", "RasPiBoard createRasPiBoard();", "@Override\n public void createBoard(int width, int height, int numMines) {\n // Clamp the dimensions and mine numbers\n dims = new Point(Util.clamp(width, MIN_DIM_X, MAX_DIM_X),\n Util.clamp(height, MIN_DIM_Y, MAX_DIM_Y));\n int maxMines = (int) ((dims.getX() - 1) * (dims.getY() - 1));\n this.numMines = Util.clamp(numMines, MIN_MINES, maxMines);\n\n // Step 1\n cells = new ArrayList<>();\n for (int i = 0; i < dims.getY(); i++) {\n List<Cell> oneRow = new ArrayList<>();\n for (int j = 0; j < dims.getX(); j++) {\n oneRow.add(new CellImpl(this, new Point(j, i), false));\n }\n cells.add(oneRow);\n }\n\n // Step 2\n int minesPlaced = 0;\n while (minesPlaced < this.numMines) {\n int randX = ThreadLocalRandom.current().nextInt((int) dims.getX());\n int randY = ThreadLocalRandom.current().nextInt((int) dims.getY());\n\n if (!cells.get(randY).get(randX).isMine()) {\n cells.get(randY).get(randX).setNumber(-1);\n minesPlaced++;\n }\n }\n\n // Step 3\n updateCellNumbers();\n }", "private Board create5by5Board() {\n Tile[][] tiles;\n Tile t1 = new Tile(0, 5);\n Tile t2 = new Tile(1, 5);\n Tile t3 = new Tile(2, 5);\n Tile t4 = new Tile(3, 5);\n Tile t5 = new Tile(4, 5);\n Tile t6 = new Tile(5, 5);\n Tile t7 = new Tile(6, 5);\n Tile t8 = new Tile(7, 5);\n Tile t9 = new Tile(8, 5);\n Tile t10 = new Tile(9, 5);\n Tile t11 = new Tile(10, 5);\n Tile t12 = new Tile(11, 5);\n Tile t13 = new Tile(12, 5);\n Tile t14 = new Tile(13, 5);\n Tile t15 = new Tile(14, 5);\n Tile t16 = new Tile(15, 5);\n Tile t17 = new Tile(16, 5);\n Tile t18 = new Tile(17, 5);\n Tile t19 = new Tile(18, 5);\n Tile t20 = new Tile(19, 5);\n Tile t21 = new Tile(20, 5);\n Tile t22 = new Tile(21, 5);\n Tile t23 = new Tile(22, 5);\n Tile t24 = new Tile(23, 5);\n Tile t25 = new Tile(24, 5);\n tiles = new Tile[5][5];\n tiles[0][0] = t7;\n tiles[0][1] = t6;\n tiles[0][2] = t2;\n tiles[0][3] = t5;\n tiles[0][4] = t9;\n tiles[1][0] = t3;\n tiles[1][1] = t1;\n tiles[1][2] = t8;\n tiles[1][3] = t4;\n tiles[1][4] = t11;\n tiles[2][0] = t17;\n tiles[2][1] = t18;\n tiles[2][2] = t10;\n tiles[2][3] = t25;\n tiles[2][4] = t20;\n tiles[3][0] = t23;\n tiles[3][1] = t21;\n tiles[3][2] = t12;\n tiles[3][3] = t15;\n tiles[3][4] = t13;\n tiles[4][0] = t22;\n tiles[4][1] = t24;\n tiles[4][2] = t14;\n tiles[4][3] = t16;\n tiles[4][4] = t19;\n return new Board(tiles);\n }", "public Board<?> makeBoard() throws EscapeException {\n\t\tswitch (bi.getCoordinateId()) {\n\t\t\tcase HEX:\n\t\t\t\treturn makeHexBoard();\n\t\t\tcase ORTHOSQUARE:\n\t\t\t\treturn makeOrthoBoard();\n\t\t\tcase SQUARE:\n\t\t\t\treturn makeSquareBoard();\n\t\t\tdefault:\n\t\t\t\tthrow new EscapeException(\"Board does not exist!\");\n\t\t}\n\t}", "private Board create4by4Board() {\n Tile[][] tiles;\n Tile t1 = new Tile(0, 4);\n Tile t2 = new Tile(1, 4);\n Tile t3 = new Tile(2, 4);\n Tile t4 = new Tile(3, 4);\n Tile t5 = new Tile(4, 4);\n Tile t6 = new Tile(5, 4);\n Tile t7 = new Tile(6, 4);\n Tile t8 = new Tile(7, 4);\n Tile t9 = new Tile(8, 4);\n Tile t10 = new Tile(9, 4);\n Tile t11 = new Tile(10, 4);\n Tile t12 = new Tile(11, 4);\n Tile t13 = new Tile(12, 4);\n Tile t14 = new Tile(13, 4);\n Tile t15 = new Tile(14, 4);\n Tile t16 = new Tile(15, 4);\n tiles = new Tile[4][4];\n tiles[0][0] = t5;\n tiles[0][1] = t16;\n tiles[0][2] = t1;\n tiles[0][3] = t3;\n tiles[1][0] = t13;\n tiles[1][1] = t15;\n tiles[1][2] = t9;\n tiles[1][3] = t12;\n tiles[2][0] = t2;\n tiles[2][1] = t6;\n tiles[2][2] = t7;\n tiles[2][3] = t14;\n tiles[3][0] = t10;\n tiles[3][1] = t4;\n tiles[3][2] = t8;\n tiles[3][3] = t11;\n return new Board(tiles);\n }", "public static String[][] createBoard() {\r\n final int ROW_LENGTH = 10;\r\n final int COL_LENGTH = 10;\r\n String[][] board = new String[ROW_LENGTH][COL_LENGTH];\r\n for (int r = 0; r < board.length; r++) {\r\n for (int c = 0; c < board[0].length; c++) {\r\n board[r][c] = \" * \";\r\n }\r\n }\r\n return board;\r\n }", "@Override\r\n\tpublic void createBoardWithFile(Board board) {\n\t\t\r\n\t}", "public void createNewGame() {\n\t\tfor(int n = 0; n < 8; n++){\n\t\t\tfor(int j = 0; j < 8; j++){\n\t\t\t\tif ( n % 2 == j % BLACK_PAWN ) {\n\t\t\t\t\tif (n < 3)\n\t\t\t\t\t\tarr[n][j] = RED_PAWN;\n\t\t\t\t\telse if (n > 4)\n\t\t\t\t\t\tarr[n][j] = BLACK_PAWN;\n\t\t\t\t\telse\n\t\t\t\t\t\tarr[n][j] = EMPTY;\n\t\t } \n\t\t\t\telse\n\t\t\t\t\tarr[n][j] = EMPTY;\n\t\t\t}\n\t\t}\n\t}", "public static StackPane createBoard() {\n StackPane stackPane = new StackPane();\n for (int i = 0; i < 9; i++) {\n for (int j = 0; j < 9; j++) {\n Tile tile = new Tile();\n Coordinates coordinates = new Coordinates(i, j);\n tile.setTextValue(\"\");\n tile.setTranslateX(i * 50);\n tile.setTranslateY(j * 50);\n tile.setEditable(true);\n tile.setTileId(coordinates);\n stackPane.getChildren().add(tile);\n tiles.put(coordinates, tile);\n }\n }\n return stackPane;\n }", "@Override\n\tpublic void create(Board board) throws Exception {\n\t\tdao.insert(board);\n\t}", "public static void createBoard() {\n Checkers[] CheckerBoard = new Checkers[24];\n CheckerBoard[0] = new Checkers(0,1,\"black\");\n CheckerBoard[1] = new Checkers(0,3,\"black\");\n CheckerBoard[2] = new Checkers(0,5,\"black\");\n CheckerBoard[3] = new Checkers(0,7,\"black\");\n CheckerBoard[4] = new Checkers(1,0,\"black\");\n CheckerBoard[5] = new Checkers(1,2,\"black\");\n CheckerBoard[6] = new Checkers(1,4,\"black\");\n CheckerBoard[7] = new Checkers(1,6,\"black\");\n CheckerBoard[8] = new Checkers(2,1,\"black\");\n CheckerBoard[9] = new Checkers(2,3,\"black\");\n CheckerBoard[10] = new Checkers(2,5,\"black\");\n CheckerBoard[11] = new Checkers(2,7,\"black\");\n CheckerBoard[12] = new Checkers(5,1,\"red\");\n CheckerBoard[13] = new Checkers(5,3,\"red\");\n CheckerBoard[14] = new Checkers(5,5,\"red\");\n CheckerBoard[15] = new Checkers(5,7,\"red\");\n CheckerBoard[16] = new Checkers(6,0,\"red\");\n CheckerBoard[17] = new Checkers(6,2,\"red\");\n CheckerBoard[18] = new Checkers(6,4,\"red\");\n CheckerBoard[19] = new Checkers(6,6,\"red\");\n CheckerBoard[20] = new Checkers(7,1,\"red\");\n CheckerBoard[21] = new Checkers(7,3,\"red\");\n CheckerBoard[22] = new Checkers(7,5,\"red\");\n CheckerBoard[23] = new Checkers(7,7,\"red\");\n\n\n\n }", "public void createCellBoard(int rows, int cols) {\n\t\trowcount = rows;\n\t\tcolcount = cols;\n\t\tcells = new int[rows][cols];\n\t}", "public static int[][] createBoard() {\r\n\r\n\t\tint[][] board = new int[9][9];\r\n\t\tfor (int i = 0; i < 9; i++) {\r\n\t\t\tfor (int j = 0; j < 9; j++)\r\n\t\t\t\tboard[i][j] = scan.nextInt();\r\n\t\t}\r\n\t\treturn board;\r\n\r\n\t}", "public GameBoard createGameBoard(int nunb_rows,int mumb_cols, int numb_players,String[] playerNames ) {\n this.squareCount = nunb_rows * mumb_cols;\n\n //counter is used to add fields\n int counter = 0;\n\n //initializes the board as an array of fields of size \"fieldcount\"\n this.mySquares = new Square[squareCount];\n mySquares[0]=new FirstSquareImpl(1, this);\n Square square;\n for (int i=1; i<(squareCount-1); i++) {\n square = new SquareImpl(i+1, this);\n mySquares[i]=square;\n }\n mySquares[(squareCount-1)]=new LastSquareImpl(squareCount, this);\n this.lastSquare=mySquares[(squareCount-1)];\n mySquares[1]=new LadderImpl(2,6, this);\n mySquares[6]=new LadderImpl(7,9, this);\n mySquares[10]=new SnakeImpl(11,5, this);\n\n\n //initialises a queue of players and add numb_players to stack\n Player player;\n for (int i=0; i<numb_players; i++) {\n player = new PlayerImpl(playerNames[i], this.mySquares[0]);\n this.myPlayers.add(player);\n\n //add Player to first Square\n this.mySquares[0].enter(player);\n\n }\n return this;\n }", "public void makeBoard2d() {\n for (int i = 0; i < 3; i++) {\n for (int j = 0; j < 3; j++) {\n this.board2d[i][j] = this.board[(i * 3) + j];\n }\n }\n }", "public static char[][] createBoard(int n){\r\n char[][] a = new char[n][n];\r\n for(int i = 0; i<n; i++){\r\n for(int j = 0; j<n; j++){\r\n a[i][j] = ' ';\r\n }\r\n }\r\n return a;\r\n }", "private void fillBoard() {\n\n boardMapper.put(1, new int[]{0, 0});\n boardMapper.put(2, new int[]{0, 1});\n boardMapper.put(3, new int[]{0, 2});\n boardMapper.put(4, new int[]{1, 0});\n boardMapper.put(5, new int[]{1, 1});\n boardMapper.put(6, new int[]{1, 2});\n boardMapper.put(7, new int[]{2, 0});\n boardMapper.put(8, new int[]{2, 1});\n boardMapper.put(9, new int[]{2, 2});\n\n }", "@Override\n public void createBoard(List<List<Boolean>> mines) {\n dims = new Point(\n Util.clamp(mines.get(0).size(), MIN_DIM_X, MAX_DIM_X),\n Util.clamp(mines.size(), MIN_DIM_Y, MAX_DIM_Y));\n int maxMines = (int) ((dims.getX() - 1) * (dims.getY() - 1));\n this.numMines = Util.clamp(numMines, MIN_MINES, maxMines);\n\n // Create Cells based on mines\n cells = new ArrayList<>();\n for (int i = 0; i < dims.getY(); i++) {\n ArrayList<Cell> oneRow = new ArrayList<>();\n for (int j = 0; j < dims.getX(); j++) {\n oneRow.add(new CellImpl(this, new Point(j, i), mines.get(i).get(j)));\n }\n cells.add(oneRow);\n }\n\n updateCellNumbers();\n }", "void createWires() {\n this.splitBoard(new Posn(0, 0), this.height, this.width);\n int counter = 0;\n for (int i = 0; i < this.width; i++) {\n for (int j = 0; j < this.height; j++) {\n nodes.set(counter, this.board.get(i).get(j));\n counter++;\n }\n }\n }", "public Board() {\n\t\tboard = new char[9][9];\n\t}", "String[][] createGameBoard(int size) {\r\n\t\tString board[][] = new String[size][size];\r\n\t\t// Create a 3*3 board first\r\n\t\tfor (int i = 0; i < 3; i++) {\r\n\t\t\tfor (int j = 0; j < 3; j++) {\r\n\t\t\t\tboard[i][j] = \"@\";\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"Board created successfully\");\r\n\t\treturn board;\r\n\r\n\t}", "ArrayList<ArrayList<GamePiece>> makeBoard() {\n ArrayList<ArrayList<GamePiece>> row = new ArrayList<ArrayList<GamePiece>>();\n for (int i = 0; i < this.width; i++) {\n ArrayList<GamePiece> column = new ArrayList<GamePiece>();\n for (int j = 0; j < this.height; j++) {\n GamePiece temp = new GamePiece(i, j);\n column.add(temp);\n nodes.add(temp);\n }\n row.add(column);\n }\n return row;\n }", "public void newGame() {\n \tturn = PieceColor.White;\n \t\n \t//the middle are empty squares\n \tfor(int i = 2; i < 6; i++) {\n \t\tfor(int j = 0; j < 8; j++) {\n \t\t\tsetPiece(j, i, new NoPiece(j, i));\n \t\t}\n \t}\n \t\n \t//pawns\n \tfor(int i = 0; i < 8; i++) {\n \t\t//make these pawns\n \t\tsetPiece(i, 1, new Pawn(i, 1, PieceColor.White, this));\n \t\tsetPiece(i, 6, new Pawn(i, 6, PieceColor.Black, this));\n \t}\n \t\n \t//white back row\n \tsetPiece(0, 0, new Rook(0, 0, PieceColor.White, this));\n \tsetPiece(1, 0, new Knight(1, 0, PieceColor.White, this));\n \tsetPiece(2, 0, new Bishop(2, 0, PieceColor.White, this));\n \tsetPiece(3, 0, new Queen(3, 0, PieceColor.White, this));\n \tsetPiece(4, 0, new King(4, 0, PieceColor.White, this));\n \tsetPiece(5, 0, new Bishop(5, 0, PieceColor.White, this));\n \tsetPiece(6, 0, new Knight(6, 0, PieceColor.White, this));\n \tsetPiece(7, 0, new Rook(7, 0, PieceColor.White, this));\n \t\n \t//black back row\n \tsetPiece(0, 7, new Rook(0, 7, PieceColor.Black, this));\n \tsetPiece(1, 7, new Knight(1, 7, PieceColor.Black, this));\n \tsetPiece(2, 7, new Bishop(2, 7, PieceColor.Black, this));\n \tsetPiece(3, 7, new Queen(3, 7, PieceColor.Black, this));\n \tsetPiece(4, 7, new King(4, 7, PieceColor.Black, this));\n \tsetPiece(5, 7, new Bishop(5, 7, PieceColor.Black, this));\n \tsetPiece(6, 7, new Knight(6, 7, PieceColor.Black, this));\n \tsetPiece(7, 7, new Rook(7, 7, PieceColor.Black, this));\n \t\n \t//store locations of king so they can be checked\n \twKing = new Square(4, 0);\n \tbKing = new Square(4, 7);\n }", "public Board()\r\n\t{\r\n\t\tsuper(8, 8);\r\n\t}", "public TicTacToeBoard() {\n grid = new Cell[N][N];\n\n for (int i = 0; i < N; i++) {\n for (int j = 0; j < N; j++)\n grid[i][j] = new Cell(i, j, '-');\n }\n }", "public Board()\r\n\t{\r\n\t\tfor(int x = 0; x < 9; x++)\r\n\t\t\tfor(int y = 0 ; y < 9; y++)\r\n\t\t\t{\r\n\t\t\t\tboard[x][y] = new Cell();\r\n\t\t\t\tboard[x][y].setBoxID( 3*(x/3) + (y)/3+1);\r\n\t\t\t}\r\n\t}", "public TicTacToe(){ \r\n\t\tboard = new char[3][3];\r\n\t}", "public Board() {\n this.board = new byte[][] { new byte[3], new byte[3], new byte[3] };\n }", "private TilePane createGrid() {\n\t\tTilePane board = new TilePane();\n\t\tboard.setPrefRows(9);\n\t\tboard.setPrefColumns(9);\n\t\tboard.setPadding(new Insets(3,3,3,3));\n\t\tboard.setHgap(3); //Horisontal gap between tiles\n\t\tboard.setVgap(3); //Vertical gap between tiles\n\t\t\n\t\t//Creates and colors tiles\n\t\tfor(int i = 0; i < 9; i++){\n\t\t\tfor(int k = 0; k < 9; k++){\n\t\t\t\tLetterTextField text = new LetterTextField();\n\t\t\t\ttext.setPrefColumnCount(1);\n\t\t\t\t\n\t\t\t\tif(!(i/3 == 1 || k/3 == 1) || (i/3 == 1 && k/3 == 1)){\n\t\t\t\t\ttext.setStyle(\"-fx-background-color: #daa520;\");\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfield[i][k] = text;\n\t\t\t\tboard.getChildren().add(text);\n\t\t\t}\n\t\t}\t\t\n\t\treturn board;\n\t}", "private JButton[][] createBoard(int size){\n int count = 1;\n this.setLayout( new GridLayout(dimensions, dimensions));\n for (int o = 0; o < size; o++) {\n for (int i = 0; i < size; i++) {\n jbtnBoard[o][i] = new JButton(Integer.toString(i) + \",\" + Integer.toString(o));\n String name = Integer.toString(i) + \",\" + Integer.toString(o);\n jbtnBoard[o][i].setName(name);\n jbtnBoard[o][i].setForeground(Color.GREEN);\n this.add(jbtnBoard[o][i]);\n count++;\n }\n }\n return jbtnBoard;\n }", "public void createSquares() {\n for (int row = 0; row < BOARD_SIZE; row++) {\n for (int col = 0; col < BOARD_SIZE; col++) {\n playingBoard[row][col] = new Square();\n }\n }\n }", "public void initializeBoard() {\n\n\t\t/*\n\t\t * How the array coordinates align with the actual chess board\n\t\t * (row,col) \n\t\t * (7,0) ... ... ... \n\t\t * (7,7) ... ... ... \n\t\t * ... ... ... \n\t\t * (2,0) ...\n\t\t * (1,0) ... \n\t\t * (0,0) ... ... ... (0,7)\n\t\t */\n\n\t\tboolean hasMoved = false;\n\t\tboolean white = true;\n\t\tboolean black = false;\n\n\t\t// Set white piece row\n\t\tboard[0][0] = new Piece('r', white, hasMoved, 0, 0, PieceArray.A_rookId);\n\t\tboard[0][1] = new Piece('n', white, hasMoved, 0, 1, PieceArray.B_knightId);\n\t\tboard[0][2] = new Piece('b', white, hasMoved, 0, 2, PieceArray.C_bishopId);\n\t\tboard[0][3] = new Piece('q', white, hasMoved, 0, 3, PieceArray.D_queenId);\n\t\tboard[0][4] = new Piece('k', white, hasMoved, 0, 4, PieceArray.E_kingId);\n\t\tboard[0][5] = new Piece('b', white, hasMoved, 0, 5, PieceArray.F_bishopId);\n\t\tboard[0][6] = new Piece('n', white, hasMoved, 0, 6, PieceArray.G_knightId);\n\t\tboard[0][7] = new Piece('r', white, hasMoved, 0, 7, PieceArray.H_rookId);\n\n\t\t// Set white pawns\n\t\tfor (int i = 0; i < 8; i++) {\n\t\t\tboard[1][i] = new Piece('p', white, hasMoved, 1, i, i + 8);\n\t\t}\n\n\t\t// Set empty rows\n\t\tfor (int row = 2; row < 6; row++)\n\t\t\tfor (int col = 0; col < 8; col++)\n\t\t\t\tboard[row][col] = null;\n\n\t\t// Set black pawns\n\t\tfor (int i = 0; i < 8; i++) {\n\t\t\tboard[6][i] = new Piece('p', black, hasMoved, 6, i, i+8);\n\t\t}\n\n\t\t// Set black piece row\n\t\tboard[7][0] = new Piece('r', black, hasMoved, 7, 0, PieceArray.A_rookId);\n\t\tboard[7][1] = new Piece('n', black, hasMoved, 7, 1, PieceArray.B_knightId);\n\t\tboard[7][2] = new Piece('b', black, hasMoved, 7, 2, PieceArray.C_bishopId);\n\t\tboard[7][3] = new Piece('q', black, hasMoved, 7, 3, PieceArray.D_queenId);\n\t\tboard[7][4] = new Piece('k', black, hasMoved, 7, 4, PieceArray.E_kingId);\n\t\tboard[7][5] = new Piece('b', black, hasMoved, 7, 5, PieceArray.F_bishopId);\n\t\tboard[7][6] = new Piece('n', black, hasMoved, 7, 6, PieceArray.G_knightId);\n\t\tboard[7][7] = new Piece('r', black, hasMoved, 7, 7, PieceArray.H_rookId);\n\t}", "public TicTacToeBoard() {board = new int[rows][columns];}", "public IImage createCheckerboard() {\n List<List<Pixel>> grid = new ArrayList<>();\n for (int i = 0; i < this.height; i++) {\n List<Pixel> row;\n // alternating between making rows starting with black or white tiles\n if (i % 2 == 0) {\n // start white\n for (int j = 0; j < this.tileSize; j++) {\n row = createRow(255, 0, (i * this.tileSize) + j);\n grid.add(row);\n }\n }\n else {\n // start black\n for (int m = 0; m < this.tileSize; m++) {\n row = createRow(0, 255, (i * this.tileSize) + m);\n grid.add(row);\n }\n }\n }\n return new Image(grid, 255);\n }", "public void create() {\n\n\t\tthis.data = new Object[lb.getBoardLen()+3][3];\n\t\tdata[0][0] = \"RANK\";\n\t\tdata[0][1] = \"PLAYER\";\n\t\tdata[0][2] = \"POINTS\";\n\t\t\n\t\tfor (int i = 1; i <= lb.getBoardLen(); i++) {\n\t\t\tdata[i][0] = \"#\" + Integer.toString(i);\n\t\t\tdata[i][1] = lb.getUserPointsList().get(i-1).username;\n\t\t\tdata[i][2] = Integer.toString(lb.getUserPointsList().get(i-1).points);\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\tif (Sfunctions.sUserPull(user.getUsername(), user.getPassword()).getWeek() == -1) {\n\t\t\tdata[lb.getBoardLen() + 1][0] = \"\";\n\t\t\tdata[lb.getBoardLen() + 1][1] = \"THE SEASON HAS ENDED.\";\n\t\t\tdata[lb.getBoardLen() + 1][2] = \"\";\n\t\t\tdata[lb.getBoardLen() + 2][0] = \"\";\n\t\t\tdata[lb.getBoardLen() + 2][1] = \"THANKS FOR PLAYING!\";\n\t\t\tdata[lb.getBoardLen() + 2][2] = \"\";\n\t\t}\n\t\telse {\n\t\t\tdata[lb.getBoardLen() + 1][0] = \"\";\n\t\t\tdata[lb.getBoardLen() + 1][1] = \"\";\n\t\t\tdata[lb.getBoardLen() + 1][2] = \"\";\n\t\t\tdata[lb.getBoardLen() + 2][0] = \"\";\n\t\t\tdata[lb.getBoardLen() + 2][1] = \"\";\n\t\t\tdata[lb.getBoardLen() + 2][2] = \"\";\n\t\t}\n\t\n\tJTable table = new JTable(data, headers);\n\ttable.setBackground(new Color(104, 0, 0));\n\ttable.setForeground(Color.WHITE);\n\ttable.setFont(textFont);\n\ttable.setShowGrid(false);\n\ttable.setEnabled(false);\n\n\t//Depending on where the ME is\n\tme_row = getRowByValue(table, user.getUsername());\n\ttable.setRowSelectionInterval(me_row, me_row);\n\t\n\t\n\n\t\n\tTableColumn column = null;\n\tfor (int i = 0; i < 3; i++) {\n\t column = table.getColumnModel().getColumn(i);\n\t if (i == 0) {\n\t \t\tcolumn.setPreferredWidth(60);\n\t }\n\t if (i == 1) {\n\t column.setPreferredWidth(210); //third column is bigger\n\t } else {\n\t \t\tcolumn.setPreferredWidth(80);\n\t }\n\t}\n\n\t\n\tthis.add(table);\n\tthis.setBackground(new Color(104, 0, 0));\n\t}", "public Board(){\n for(int holeIndex = 0; holeIndex<holes.length; holeIndex++)\n holes[holeIndex] = new Hole(holeIndex);\n for(int kazanIndex = 0; kazanIndex<kazans.length; kazanIndex++)\n kazans[kazanIndex] = new Kazan(kazanIndex);\n nextToPlay = Side.WHITE;\n }", "public Board(char[][] board) {\n this.boardWidth = board.length;\n this.boardHeight = board[0].length;\n this.board = board;\n this.numShips = 0;\n boardInit();\n }", "public ChessBoard() {\n initComponents();\n createChessBoard();\n\n }", "public Board() {\n for (int y = 0; y < spaces.length; y++) {\n for (int x = 0; x < spaces[0].length; x++) {\n spaces[y][x] = new SubBoard();\n wonBoards[y][x] = ' ';\n }\n }\n }", "public Board(String gameType) {\n propertyFactory = new TileFactory(gameType);\n createBoard();\n }", "public Board() {\n //Create all pieces\n board[0][0] = new Rook(\"black\", 0, 0);\n board[0][1] = new Knight(\"black\", 0, 1);\n board[0][2] = new Bishop(\"black\", 0, 2);\n board[0][3] = new Queen(\"black\", 0, 3);\n board[0][4] = new King(\"black\", 0, 4);\n board[0][5] = new Bishop(\"black\", 0, 5);\n board[0][6] = new Knight(\"black\", 0, 6);\n board[0][7] = new Rook(\"black\", 0, 7);\n\n board[7][0] = new Rook(\"white\", 7, 0);\n board[7][1] = new Knight(\"white\", 7, 1);\n board[7][2] = new Bishop(\"white\", 7, 2);\n board[7][3] = new Queen(\"white\", 7, 3);\n board[7][4] = new King(\"white\", 7, 4);\n board[7][5] = new Bishop(\"white\", 7, 5);\n board[7][6] = new Knight(\"white\", 7, 6);\n board[7][7] = new Rook(\"white\", 7, 7);\n\n for (int j = 0; j < 8; j++) {\n board[1][j] = new Pawn(\"black\", 1, j);\n board[6][j] = new Pawn(\"white\", 6, j);\n }\n\n //Printing everything\n for (Piece[] a : board) {\n for (Piece b : a) {\n System.out.printf(\"%-15s\", \"[\" + b + \"]\");\n }\n System.out.println(\"\");\n }\n }", "public Board(int rows, int columns) throws Exception {\n\t\tif (rows >= 8 && columns >= 8) {\n\t\t\tthis.rows = rows;\n\t\t\tthis.columns = columns;\n\t\t\tboard = new int[rows][columns];\n\t\t\tthis.bombs = (rows * columns) / 3;\n\t\t\tfillBoard();\n\t\t} else {\n\t\t\tthrow new Exception(\"Minesweeper dimensions invalid:\\nWidth: from 8 to 100\\nHeight: from 8 to 100\\nBombs: 1 to 1/3 of squares\");\n\t\t}\n\t}", "private void initialiseBoard() {\r\n\t\t//Set all squares to EMPTY\r\n\t\tfor(int x = 0; x < board.getWidth(); x++) {\r\n\t\t\tfor(int y = 0; y < board.getHeight(); y++) {\r\n\t\t\t\tboard.setSquare(new GridSquare(GridSquare.Type.EMPTY), x, y);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//Assign player tiles\r\n\t\tsetFixedTile(new PlayerTile(GridSquare.Type.PLAYER_ONE_TILE), Board.PLAYER_ONE_POSITION_X, Board.PLAYER_ONE_POSITION_Y);\r\n\t\tsetFixedTile(new PlayerTile(GridSquare.Type.PLAYER_TWO_TILE), Board.PLAYER_TWO_POSITION_X, Board.PLAYER_TWO_POSITION_Y);\r\n\t\t\r\n\t\t//Assign Creation tiles\r\n\t\tsetFixedTile(new CreationTile(GridSquare.Type.CREATION_TILE), Board.PLAYER_ONE_POSITION_X+3, Board.PLAYER_ONE_POSITION_Y+3);\r\n\t\tsetFixedTile(new CreationTile(GridSquare.Type.CREATION_TILE), Board.PLAYER_TWO_POSITION_X-3, Board.PLAYER_TWO_POSITION_Y-3);\r\n\t\t\r\n\t\t//Assign Out of Bounds tiles\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_ONE_POSITION_X-3, Board.PLAYER_ONE_POSITION_Y);\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_ONE_POSITION_X, Board.PLAYER_ONE_POSITION_Y-3);\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_ONE_POSITION_X-3, Board.PLAYER_ONE_POSITION_Y-3);\r\n\t\t\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_TWO_POSITION_X+3, Board.PLAYER_TWO_POSITION_Y);\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_TWO_POSITION_X, Board.PLAYER_TWO_POSITION_Y+3);\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_TWO_POSITION_X+3, Board.PLAYER_TWO_POSITION_Y+3);\r\n\t\t\r\n\t\t\r\n\t}", "void generateBoard(){\r\n rearrangeSolution();\r\n makeInitial();\r\n }", "@Override\n public Board createBoard(String username, String boardname, String category) throws UserNotFoundException {\n // Check the user\n User user = userDataMapper.getUserByUserName(username);\n if (user == null)\n throw new UserNotFoundException();\n\n // Get the board\n Board board = new Board(boardname, category);\n try {\n boardDataGateway.add(board);\n } catch (DataAccessException daex) {\n return null;\n }\n return board;\n }", "public Board(int boardHeight, int boardWidth) {\n this.boardWidth = boardHeight+1;\n this.boardHeight = boardWidth+1;\n this.board = new char[this.boardHeight][this.boardWidth];\n this.numShips = 0;\n boardInit();\n }", "private void createBoardRow(int row, int startState, int endState) {\n\t\tLog.d(LOG_TAG, String.format(\"Create board row %s with start state: %s and end state: %s\",row,startState,endState));\n\t\tBoardSquareInfo[][] squares = getBoardGame();\n\t\t\n\t\tfor(int col=0; col<COLUMNS; col++) {\n\t\t\tint id = row*COLUMNS+col;\n\t\t\tint state = (col%2 == 0)? startState: endState;\n\t\t\tint chip = (state == PLAYER1_STATE || state == PLAYER2_STATE)? PAWN_CHIP: EMPTY_CHIP;\n\t\t\t\n\t\t\tsquares[row][col] = new BoardSquareInfo(id,row,col,state,chip);\n\t\t}\n\t}", "Board() {\r\n init();\r\n }", "public void createPieces(){ \n\t\tfor(int x = 0; x<BOARD_LENGTH; x++){\n\t\t\tfor(int y = 0; y<BOARD_LENGTH; y++){ \n\t\t\t\tif(CHESS_MAP[x][y] != (null)){\n\t\t\t\t\tswitch (CHESS_MAP[x][y]){\n\t\t\t\t\tcase KING:\n\t\t\t\t\t\tpieces[pieceCounter] = new King(pieceCounter, new Point(x+1,y+1), new Point(0,0), true, true, BOARD_PIECE_LENGTH, true);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase QUEEN:\n\t\t\t\t\t\tpieces[pieceCounter] = new Queen(pieceCounter, new Point(x+1,y+1), new Point(0,0), true, true, BOARD_PIECE_LENGTH, true);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase BISHOP:\n\t\t\t\t\t\tpieces[pieceCounter] = new Bishop(pieceCounter, new Point(x+1,y+1), new Point(0,0), true, true, BOARD_PIECE_LENGTH, true);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase KNIGHT:\n\t\t\t\t\t\tpieces[pieceCounter] = new Knight(pieceCounter, new Point(x+1,y+1), new Point(0,0), true, true, BOARD_PIECE_LENGTH, true);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase PAWN:\n\t\t\t\t\t\tpieces[pieceCounter] = new Pawn(pieceCounter, new Point(x+1,y+1), new Point(0,0), true, true, BOARD_PIECE_LENGTH, true);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase ROOK:\n\t\t\t\t\t\tpieces[pieceCounter] = new Rook(pieceCounter, new Point(x+1,y+1), new Point(0,0), true, true, BOARD_PIECE_LENGTH, true);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} \n\t\t\t\t\tsetPieceIconAndName(x, y, CHESS_MAP[x][y]); \t\n\t\t\t\t\tpieceCounter++;\n\t\t\t\t}else{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t} \n\t}", "public BoardTest() {\n initComponents();\n \n createSudoku();\n //createBoggle();\n }", "public Board(int dimensions){\n this.dimensions = dimensions;\n createBoard(dimensions);\n this.status = Status.CREATED;\n this.hitsLeft = 15;\n }", "public static void initBoard()\r\n\t{\n\t\tfor ( int r=0; r<3; r++ )\r\n\t\t\tfor ( int c=0; c<3; c++ )\r\n\t\t\t\tboard[r][c] = ' ';\r\n\t}", "public Board()\r\n {\r\n board = new Piece[8][8];\r\n xLength = yLength = 8;\r\n }", "public static void drawBoard(){\n\t\tSystem.out.println(\"\\n\\t A B C\");\r\n\t\tSystem.out.println(\"\\t .-----------.\");\r\n\t\tSystem.out.println(\"\\t1 |_\"+TicTac.place[0]+\"_|_\"+TicTac.place[1]+\"_|_\"+TicTac.place[2]+\"_|\\n\");\r\n\t\tSystem.out.println(\"\\t2 |_\"+TicTac.place[3]+\"_|_\"+TicTac.place[4]+\"_|_\"+TicTac.place[5]+\"_|\\n\");\r\n\t\tSystem.out.println(\"\\t3 |_\"+TicTac.place[6]+\"_|_\"+TicTac.place[7]+\"_|_\"+TicTac.place[8]+\"_|\");\r\n\t\tSystem.out.println(\"\\t '-----------'\");\r\n\t}", "public static void setBoard() {\n\t\tStdDraw.setPenColor(StdDraw.BOOK_LIGHT_BLUE);\n\t\tStdDraw.filledRectangle(500, 500, 1000, 1000);\n\t\tStdDraw.setPenColor(StdDraw.BLACK);\n\t\tStdDraw.filledCircle(200, 800, 35);\n\t\tStdDraw.filledCircle(500, 800, 35);\n\t\tStdDraw.filledCircle(800, 800, 35);\n\t\tStdDraw.filledCircle(200, 200, 35);\n\t\tStdDraw.filledCircle(500, 200, 35);\n\t\tStdDraw.filledCircle(800, 200, 35);\n\t\tStdDraw.filledCircle(200, 500, 35);\n\t\tStdDraw.filledCircle(800, 500, 35);\n\t\tStdDraw.filledCircle(350, 650, 35);\n\t\tStdDraw.filledCircle(500, 650, 35);\n\t\tStdDraw.filledCircle(650, 650, 35);\n\t\tStdDraw.filledCircle(350, 350, 35);\n\t\tStdDraw.filledCircle(500, 350, 35);\n\t\tStdDraw.filledCircle(650, 350, 35);\n\t\tStdDraw.filledCircle(350, 500, 35);\n\t\tStdDraw.filledCircle(650, 500, 35);\n\n\t\tStdDraw.setPenRadius(0.01);\n\t\tStdDraw.line(200, 200, 800, 200);\n\t\tStdDraw.line(200, 800, 800, 800);\n\t\tStdDraw.line(350, 350, 650, 350);\n\t\tStdDraw.line(350, 650, 650, 650);\n\t\tStdDraw.line(200, 500, 350, 500);\n\t\tStdDraw.line(650, 500, 800, 500);\n\t\tStdDraw.line(200, 800, 200, 200);\n\t\tStdDraw.line(800, 800, 800, 200);\n\t\tStdDraw.line(350, 650, 350, 350);\n\t\tStdDraw.line(650, 650, 650, 350);\n\t\tStdDraw.line(500, 800, 500, 650);\n\t\tStdDraw.line(500, 200, 500, 350);\n\n\t\tStdDraw.setPenColor(StdDraw.BLUE);\n\t\tStdDraw.filledCircle(80, 200, 35);\n\t\tStdDraw.filledCircle(80, 300, 35);\n\t\tStdDraw.filledCircle(80, 400, 35);\n\t\tStdDraw.filledCircle(80, 500, 35);\n\t\tStdDraw.filledCircle(80, 600, 35);\n\t\tStdDraw.filledCircle(80, 700, 35);\n\n\t\tStdDraw.setPenColor(StdDraw.RED);\n\t\tStdDraw.filledCircle(920, 200, 35);\n\t\tStdDraw.filledCircle(920, 300, 35);\n\t\tStdDraw.filledCircle(920, 400, 35);\n\t\tStdDraw.filledCircle(920, 500, 35);\n\t\tStdDraw.filledCircle(920, 600, 35);\n\t\tStdDraw.filledCircle(920, 700, 35);\n\n\t\tStdDraw.setPenColor(StdDraw.BLACK);\n\n\t}", "public Board() {\n this.board = new Piece[16];\n }", "public static String[][] createBoardState() {\n String[][] initialBoardState = {\n {\"Rw\", \"Nw\", \"Bw\", \"Qw\", \"Kw\", \"Bw\", \"Nw\", \"Rw\"},\n {\"Pw\", \"Pw\", \"Pw\", \"Pw\", \"Pw\", \"Pw\", \"Pw\", \"Pw\"},\n {\" \", \" \", \" \", \" \", \" \", \" \", \" \", \" \"},\n {\" \", \" \", \" \", \" \", \" \", \" \", \" \", \" \"},\n {\" \", \" \", \" \", \" \", \" \", \" \", \" \", \" \"},\n {\" \", \" \", \" \", \" \", \" \", \" \", \" \", \" \"},\n {\"Pb\", \"Pb\", \"Pb\", \"Pb\", \"Pb\", \"Pb\", \"Pb\", \"Pb\"},\n {\"Rb\", \"Nb\", \"Bb\", \"Qb\", \"Kb\", \"Bb\", \"Nb\", \"Rb\"}\n };\n\n return initialBoardState;\n }", "String drawBoard();", "public int[][] createBoard(int size){\r\n\t\tint[][] newBoard = new int[size+1][size+1];\r\n\t\tfor (int i = 0; i < newBoard.length; i++){\r\n\t\t\tfor (int j = 0; j < newBoard[i].length; j++) {\r\n\t\t\t\tif (i == 0) {\r\n\t\t\t\t\tnewBoard[i][j] = j;\r\n\t\t\t\t} else if (j == 0) {\r\n\t\t\t\t\tnewBoard[i][j] = i;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}newBoard[0][0] = 0;\r\n\treturn newBoard;\r\n\t}", "public void run() {\n GameBoard board = new GameBoard(nrows, ncols);\n\n\n }", "public Board() {\n\t\tmarkCount = 0;\n\t\ttheBoard = new char[3][];\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\ttheBoard[i] = new char[3];\n\t\t\tfor (int j = 0; j < 3; j++)\n\t\t\t\ttheBoard[i][j] = SPACE_CHAR;\n\t\t}\n\t}", "public void boardSetUp(){\n\t}", "public Board() {\n\t\tintializeBoard(_RowCountDefault, _ColumnCountDefault, _CountToWinDefault);\n\t}", "private void initializeBoard() {\n\t\t\n\t}", "private void initializeBoard() {\n\n squares = new Square[8][8];\n\n // Sets the initial turn to the White Player\n turn = white;\n\n final int maxSquares = 8;\n for(int i = 0; i < maxSquares; i ++) {\n for (int j = 0; j < maxSquares; j ++) {\n\n Square square = new Square(j, i);\n Piece piece;\n Player player;\n\n if (i < 2) {\n player = black;\n } else {\n player = white;\n }\n\n if (i == 0 || i == 7) {\n switch(j) {\n case 3:\n piece = new Queen(player, square);\n break;\n case 4:\n piece = new King(player, square);\n break;\n case 2:\n case 5:\n piece = new Bishop(player, square);\n break;\n case 1:\n case 6:\n piece = new Knight(player, square);\n break;\n default:\n piece = new Rook(player, square);\n }\n square.setPiece(piece);\n } else if (i == 1 || i == 6) {\n piece = new Pawn(player, square);\n square.setPiece(piece);\n }\n squares[j][i] = square;\n }\n }\n }", "public Board(GameBoardUI win, Player o, Player t)\n\t{\n\t\tblack = o;\n\t\twhite = t;\n\t\tboardWindow = win;\n\t\tcurrentBoard = new char[19][19];\n\t\tfor (char[] c : currentBoard)\n\t\t{\n\t\t\tArrays.fill(c, ' ');\n\t\t}\n\t\tpastBoards = new ArrayList<>();\n\t\tpastBoards.add(currentBoard);\n\t}", "boolean ensureBoardisCreated(String[][] board) {\r\n\t\tint i = 0, j = 0;\r\n\t\tboolean isBoardCorrectFlag = false;\r\n\t\tfor (i = 0; i < 3; i++) {\r\n\t\t\tSystem.out.println();\r\n\t\t\tfor (j = 0; j < 3; j++) {\r\n\t\t\t\tSystem.out.print(\"[\" + board[i][j] + \"]\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\r\n\t\tif (i == j) {\r\n\t\t\tSystem.out.println(\"3*3 Board created successfully\");\r\n\t\t\tisBoardCorrectFlag = true;\r\n\t\t}\r\n\t\treturn isBoardCorrectFlag;\r\n\t}", "void drawBoard(Board board);", "private void fillBoardWithCells(){\n double posx = MyValues.HORIZONTAL_VALUE*0.5*MyValues.HEX_SCALE + MyValues.DIAGONAL_VALUE*MyValues.HEX_SCALE;\n double posy = 2*MyValues.DIAGONAL_VALUE*MyValues.HEX_SCALE ;\n HexCell startCell = new HexCell(0,0, this);\n startCell.changePosition(posx, posy);\n boardCells[0][0] = startCell;\n for (int i = 0; i< x-1; i++) {\n HexCell currentCell = new HexCell(i+1, 0, this);\n boardCells[i+1][0] = currentCell;\n //i mod 2 = 0: Bottom\n if (i % 2 == 0) {\n boardCells[i][0].placeHexCell(currentCell, MyValues.HEX_POSITION.BOT_RIGHT );\n } else {\n //i mod 2 =1: Top\n boardCells[i][0].placeHexCell(currentCell, MyValues.HEX_POSITION.TOP_RIGHT );\n }\n }\n for(int i = 0; i < x; i++){\n for(int j = 0; j < y-1; j++){\n HexCell currentCell = new HexCell(i, j+1, this);\n //System.out.println(Integer.toString(i) + Integer.toString(j));\n boardCells[i][j+1] = currentCell;\n boardCells[i][j].placeHexCell(currentCell, MyValues.HEX_POSITION.BOT);\n }\n }\n }", "public Piece[][] createStandardChessboard(Player whitePlayer, Player blackPlayer) {\t\t\r\n\t\tPiece[][] start_board = {\r\n\t\t\t\t{new Rook(0,0,blackPlayer), new Knight(1,0,blackPlayer), new Bishop(2,0,blackPlayer), new Queen(3,0,blackPlayer),new King(4,0,blackPlayer), new Bishop(5,0,blackPlayer), new Knight(6,0,blackPlayer), new Rook(7,0,blackPlayer)},\r\n\t\t\t\t{new Pawn(0,1,blackPlayer), new Pawn(1,1,blackPlayer), new Pawn(2,1,blackPlayer), new Pawn(3,1,blackPlayer),new Pawn(4,1,blackPlayer), new Pawn(5,1,blackPlayer), new Pawn(6,1,blackPlayer), new Pawn(7,1,blackPlayer)},\r\n\t\t\t\t{null, null, null, null,null, null, null, null},\r\n\t\t\t\t{null, null, null, null,null, null, null, null},\r\n\t\t\t\t{null, null, null, null,null, null, null, null},\r\n\t\t\t\t{null, null, null, null,null, null, null, null},\r\n\t\t\t\t{new Pawn(0,6,whitePlayer), new Pawn(1,6,whitePlayer), new Pawn(2,6,whitePlayer), new Pawn(3,6,whitePlayer),new Pawn(4,6,whitePlayer), new Pawn(5,6,whitePlayer), new Pawn(6,6,whitePlayer), new Pawn(7,6,whitePlayer)},\r\n\t\t\t\t{new Rook(0,7,whitePlayer), new Knight(1,7,whitePlayer), new Bishop(2,7,whitePlayer), new Queen(3,7,whitePlayer),new King(4,7,whitePlayer), new Bishop(5,7,whitePlayer), new Knight(6,7,whitePlayer), new Rook(7,7,whitePlayer)}\r\n\t\t};\r\n\t\treturn start_board;\r\n\t}", "public Board(int x, int y){\n player1 = \"Player 1\";\n player2 = \"Player 2\";\n randomPlayer1 = \"CPU 1\";\n randomPlayer2 = \"CPU 2\";\n board = new Square[x][y];\n for (int i = 0; i < board.length;i++){\n row++;\n for(int j = 0; j < board.length; j++){\n if(column == y){\n column = 0;\n }\n column++;\n board[i][j] = new Square(row, column);\n }\n }\n row = x;\n column = y;\n }", "Board() {\n this.cardFactory = new CardFactory(this);\n }", "private Parent create() {\n root.setPrefSize(600,600);\r\n\r\n for(int i = 0; i < 3; ++i) {\r\n for(int j = 0; j < 3; ++j) {\r\n Tile tile = new Tile();\r\n tile.setTranslateX(j * 200);\r\n tile.setTranslateY(i * 200);\r\n\r\n root.getChildren().add(tile);\r\n board[j][i] = tile;\r\n }\r\n }\r\n\r\n // horizontal strikes\r\n for(int i = 0; i < 3; ++i) {\r\n comboList.add(new Combination(board[0][i], board[1][i], board[2][i]));\r\n }\r\n\r\n // vertical strikes\r\n for(int j = 0; j < 3; ++j) {\r\n comboList.add(new Combination(board[j][0], board[j][1], board[j][2]));\r\n }\r\n\r\n // diagonal strikes\r\n comboList.add(new Combination(board[0][0], board[1][1], board[2][2]));\r\n comboList.add(new Combination(board[2][0], board[1][1], board[0][2]));\r\n\r\n return root;\r\n }", "public void initializeDebugBoard() {\n\t\tboolean hasNotMoved = false;\n\t\tboolean hasMoved = true;\n\t\tboolean white = true;\n\t\tboolean black = false;\n\n\t\t// Set empty rows\n\t\tfor (int row = 0; row < 8; row++)\n\t\t\tfor (int col = 0; col < 8; col++)\n\t\t\t\tboard[row][col] = null;\n\n\t\tboard[5][4] = new Piece('k', white, hasMoved, 5, 4, PieceArray.E_kingId);\n//\t\tboard[1][4] = new Piece(\"rook\", white, hasMoved, 1, 4);\n\t\tboard[2][2] = new Piece('q', black, hasMoved, 2, 2, PieceArray.A_rookId);\n//\t\tboard[3][2] = new Piece('q', black, hasMoved, 3, 2, PieceArray.H_rookId);\n\t\t\n\n\t\tboard[0][0] = new Piece('k', black, hasMoved, 0, 0, PieceArray.E_kingId);\n//\t\tboard[7][7] = new Piece('r', black, hasNotMoved, 7, 7, PieceArray.A_rookId);\n//\t\tboard[6][7] = new Piece('p', black, hasNotMoved, 6, 7, PieceArray.A_pawnId);\n//\t\tboard[6][6] = new Piece('p', black, hasNotMoved, 6, 6, PieceArray.B_pawnId);\n//\t\tboard[6][5] = new Piece('p', black, hasNotMoved, 6, 5, PieceArray.C_pawnId);\n//\t\tboard[6][4] = new Piece('p', black, hasNotMoved, 6, 4, PieceArray.D_pawnId);\n\t\n//\t\tboard[6][6] = new Piece(\"pawn\", black, hasMoved, 6, 6);\n//\t\tboard[6][7] = new Piece(\"pawn\", black, hasMoved, 6, 7);\n//\t\tboard[6][4] = new Piece(\"pawn\", black, hasMoved, 6, 4);\n//\t\t\t\n//\t\t\n//\t\tboard[4][4] = new Piece(\"pawn\", black, hasMoved, 4,4);\n//\t\tboard[3][5] = new Piece(\"rook\", white,hasMoved,3,5);\n//\t\tboard[1][7] = new Piece(\"pawn\",black,hasMoved,1,7);\n\n\t}", "public void initBoard() {\n board = new Board();\n\n // initilaisation des groupes\n Group violet = new Group();\n Group bleu = new Group();\n Group orange = new Group();\n Group vert = new Group();\n Group rouge = new Group();\n Group jaune = new Group();\n Group rose = new Group();\n Group marine = new Group();\n Group gare = new Group();\n Group compagnie = new Group();\n\n // ajout des cases\n board.addCaseBoard(new StartCase());\n board.addCaseBoard(new BuildingCaseImpl(\"Bvd Belleville\", 60, 2, 10,30, 90, 160,250, 30,violet, 50));\n board.addCaseBoard(new CaseBoardImpl(\"Caisse de caumunauté\"));\n board.addCaseBoard(new BuildingCaseImpl(\"Rue lecourbe\", 60, 4,20,60,180,320,450, 30,violet, 50));\n board.addCaseBoard(new CaseBoardImpl(\"Taxes\"));\n board.addCaseBoard(new BuyableCaseImpl(\"Gare Monparnasse\", 200, 2, 100,gare));\n board.addCaseBoard(new BuildingCaseImpl(\"Rue de Vaugirard\", 100, 6,30,90,270,400,550, 50, bleu, 50));\n board.addCaseBoard(new CaseBoardImpl(\"Chance\"));\n board.addCaseBoard(new BuildingCaseImpl(\"Rue de Courcelles\", 100, 6,30,90,270,400,550, 50, bleu, 50));\n board.addCaseBoard(new BuildingCaseImpl(\"Av de la Republique\", 120, 8,40,100,300,450,600, 60, bleu, 50));\n board.addCaseBoard(new CaseBoardImpl(\"Prison\"));\n board.addCaseBoard(new BuildingCaseImpl(\"Bvd de la villette\", 140, 10,50,150,450,625,750, 70, orange, 100));\n board.addCaseBoard(new BuyableCaseImpl(\"Compagnie de distribution d'electricité\",150, 0, 75, compagnie));\n board.addCaseBoard(new BuildingCaseImpl(\"Av de Neuilly\", 140, 10,50,150,450,625,750, 70, orange, 100));\n board.addCaseBoard(new BuildingCaseImpl(\"Rue de Paradis\", 160, 12,60,180,500,700,900, 80, orange, 100));\n board.addCaseBoard(new BuyableCaseImpl(\"Gare de Lyon\", 200, 2, 100,gare));\n board.addCaseBoard(new BuildingCaseImpl(\"Av de Mozart\", 180, 14,70,200,550,700,900, 90, vert, 100));\n board.addCaseBoard(new CaseBoardImpl(\"Caisse de Communauté\"));\n board.addCaseBoard(new BuildingCaseImpl(\"Bvd Saint Michel\", 180, 14,70,200,550,700,900, 90, vert, 100));\n board.addCaseBoard(new BuildingCaseImpl(\"Place Pigalle\", 200, 16,80,220,600,800,950, 100, vert, 100));\n board.addCaseBoard(new CaseBoardImpl(\"Park Gratuit\"));\n board.addCaseBoard(new BuildingCaseImpl(\"Av Matignon\", 220, 18,90,250,700,875,1050, 110, rouge, 150));\n board.addCaseBoard(new CaseBoardImpl(\"Chance\"));\n board.addCaseBoard(new BuildingCaseImpl(\"Bvd MalesHerbes\", 220, 18,90,250,700,875,1050, 110, rouge, 150));\n board.addCaseBoard(new BuildingCaseImpl(\"Av Henri-Martin\", 240, 20,100,300,750,925,1100, 120, rouge, 150));\n board.addCaseBoard(new BuyableCaseImpl(\"Gare du Nord\", 200, 2, 100,gare));\n board.addCaseBoard(new BuildingCaseImpl(\"Fb Saint Honoré\", 260, 22,110,330,800,975,1150, 130, jaune, 150));\n board.addCaseBoard(new BuildingCaseImpl(\"Place de la Bourse\", 260, 22,110,330,800,975,1150, 130, jaune, 150));\n board.addCaseBoard(new BuyableCaseImpl(\"Compagnie de distribution des eaux\",150, 0, 75, compagnie));\n board.addCaseBoard(new BuildingCaseImpl(\"Rue lafayette\", 280, 24,120,360,850,1025,1200, 140, jaune, 150));\n board.addCaseBoard(new CaseBoardImpl(\"Aller en Prison\"));\n board.addCaseBoard(new BuildingCaseImpl(\"Av de Breteuil\", 300, 26,130,390,900,1100,1275, 150, rose, 200));\n board.addCaseBoard(new BuildingCaseImpl(\"Av Foch\", 300, 26,130,390,900,1100,1275, 150, rose, 200));\n board.addCaseBoard(new CaseBoardImpl(\"Caisse de Communauté\"));\n board.addCaseBoard(new BuildingCaseImpl(\"Bvd des Capucines\", 320, 28,150,450,1000,1200,1400, 160, rose, 200));\n board.addCaseBoard(new BuyableCaseImpl(\"Gare Saint-Lazarre\", 200, 2, 100,gare));\n board.addCaseBoard(new CaseBoardImpl(\"Chance\"));\n board.addCaseBoard(new BuildingCaseImpl(\"Av des Champs Elysées\", 350, 35,175,500,1100,1300,1500, 175, marine, 200));\n board.addCaseBoard(new CaseBoardImpl(\"Caisse de Communauté\"));\n board.addCaseBoard(new BuildingCaseImpl(\"Rue de la Paix\", 400, 50,200,600,1400,1700,2000, 200, marine, 200));\n }", "private void getBoard() {\n gameBoard = BoardFactory.makeBoard();\n }", "private void initGameBoard(int rows, int cols)\n {\n //GameBoard = new Cell[ROWS][COLS];\n\n for(int i = 0; i < rows; i++)\n {\n for(int j = 0; j < cols; j++)\n {\n GameBoard[i][j] = new Cell(i,j, Color.BLUE,false);\n }\n\n }\n }" ]
[ "0.8066814", "0.78090715", "0.7773242", "0.77587503", "0.7743665", "0.7698141", "0.7677991", "0.75875723", "0.754854", "0.737944", "0.7237815", "0.71994805", "0.7198578", "0.7086945", "0.70645213", "0.70584136", "0.70548636", "0.7031006", "0.7021675", "0.69898146", "0.69599503", "0.69255745", "0.6915249", "0.68970555", "0.688927", "0.6884899", "0.6861025", "0.68599945", "0.6846407", "0.68294704", "0.68180287", "0.67733264", "0.67320615", "0.6731387", "0.6696855", "0.66851425", "0.66834897", "0.66806453", "0.66620284", "0.66467613", "0.6621492", "0.66157186", "0.66053814", "0.65734965", "0.6564663", "0.6562792", "0.65564096", "0.654554", "0.65364057", "0.65242314", "0.65097314", "0.65069735", "0.65020806", "0.6490755", "0.6487066", "0.6472307", "0.6470913", "0.645238", "0.6447786", "0.6445466", "0.64442986", "0.64410806", "0.64241993", "0.64180464", "0.64082783", "0.64005905", "0.6397991", "0.6394526", "0.6393238", "0.6379275", "0.6373864", "0.63641405", "0.6352006", "0.6342086", "0.6337346", "0.6331495", "0.63299257", "0.6327162", "0.631952", "0.63120264", "0.6308243", "0.6305576", "0.63052046", "0.6283045", "0.62811685", "0.6280018", "0.6279435", "0.6279152", "0.627808", "0.6271453", "0.6262302", "0.6261032", "0.6255463", "0.62551093", "0.62457913", "0.62449455", "0.62350553", "0.62325525", "0.6228858", "0.6227603", "0.6217629" ]
0.0
-1
/ read all boards
@GetMapping("/boards") public List<Board> getAllBoards(){ return boardRepository.findAll(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic ArrayList<Board1> getAll() {\n\t\treturn dao.selectAll();\r\n\t}", "List findall_board_info(Integer board_id);", "public BoardInterface[] getBoards();", "@Override\n\tpublic List<BoardVO> listAll() throws Exception {\n\t\treturn dao.listAll();\n\t}", "@Override\n\tpublic List<BoardVO> listAll() throws Exception {\n\t\treturn dao.listAll();\n\t}", "public List<CommonBoardVO> listAll() throws Exception;", "@Override\n\tpublic List<SpringBoardVO> boardSelectAll(SpringBoardVO bvo) {\n\t\treturn springBoardDAO.boardSelectAll(bvo);\n\t}", "public List<CardImage> readAll() {\n List<CardImage> cards = new ArrayList<CardImage>();\n for (String colour : this.colours) {\n for (String number : this.numbers) {\n for (String darkLight : this.darkLight) {\n cards\n .add(\n new CardImage(colour, number, darkLight,\n new Image(getClass().getResource(\n \"cards/\" + colour + seperator + number + seperator + darkLight + \".png\")\n .toExternalForm())));\n }\n }\n }\n return cards;\n }", "@Override\r\n\tpublic cms_board_vo read(int cms_bno) throws Exception {\n\t\treturn sql.selectOne(\"cms_board.read\", cms_bno);\r\n\t}", "@Override\n\tpublic List<Board2DTO> getBoardList() throws Exception {\n\t\treturn board2Mapper.getBoardList();\n\t}", "@Override\r\n\tpublic BoardDto read(int bno) throws Exception {\n\t\treturn dao.read(bno);\r\n\t}", "@Override\n\tpublic List<Map> boardList() {\n\t\treturn dao.boardList(session);\n\t}", "private void getBoard() {\n gameBoard = BoardFactory.makeBoard();\n }", "Data<List<Boards>> getBoards();", "@Override\n\tpublic Map<String, Object> read(int bno) throws Exception {\n\t\treturn boardDao.read(bno);\n\t}", "@Override\n public List<Board> getBoards(String username) {\n List<Board> boards = boardDataGateway.getBoards(username);\n for (Board b : boards) {\n b.setPins(getPinsOnBoard(username, b.getName()));\n }\n return boards;\n }", "@Override\r\n\tpublic List<FTipBoardVO> listAll() throws Exception {\n\t\treturn session.selectList(namespace + \".listAll\");\r\n\t}", "@Override\r\n\tpublic List<cms_board_vo> list(SearchCriteria scri) throws Exception {\n\t\treturn sql.selectList(\"cms_board.list\", scri);\r\n\t}", "@Override\r\n\tpublic List<BoardVO> list() throws Exception {\n\t\tlog.info(\"list() - 게시판 리스트 데이터 가져오기 +++++++++++++++\");\r\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic ArrayList<BoardVO> getBoardList() {\n\t\treturn boardDao.getBoardList();\r\n\t}", "public Board getBoard ();", "public List<GameBoard> getBoardList() {\r\n return new ArrayList<GameBoard>(this.boards);\r\n }", "private int[][] readBoard(Region[][] tiles) {\t\t\t\n\t\t\n\t\tint board[][] = new int[BOARD_SIZE][BOARD_SIZE];\n\t\tdouble highScore, score;\n\t\tint best;\n\n\t\tfor (int i = 0; i < BOARD_SIZE; i++) {\n\t\t\tfor (int j = 0; j < BOARD_SIZE; j++) {\t\t\t\n\t\t\t\t\n\t\t\t\thighScore = 0;\n\t\t\t\tscore = 0;\n\t\t\t\tbest = 0;\n\t\t\t\tint dark = (i / 3 + j / 3) % 2;\n\t\t\t\tfor (int k = 1; k < NUMBER_FILES[dark].length; k++) {\n\t\t\t\t\tMatch m = tiles[i][j].exists(NUMBER_FILES[dark][k], 0);\n\t\t\t\t\tif (m != null) {\n\t\t\t\t\t\tscore = m.getScore();\n\t\t\t\t\t\tif (score > highScore) {\n\t\t\t\t\t\t\tbest = k;\n\t\t\t\t\t\t\thighScore = score;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tboard[i][j] = best;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println();\n\t\tfor (int is[] : board) {\n\t\t\tfor (int i : is) {\n\t\t\t\tSystem.out.print(i + \" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\n\t\treturn board;\n\t}", "@Override\r\n\tpublic List<Libro> readAll() {\n\t\treturn libroRepository.findAll();\r\n\t}", "@Override\r\n\tpublic Board read(PageParam pageParam) {\n\t\treturn mapper.get(pageParam);\r\n\t}", "private CurrentBoard board() throws IOException, EncodeException {\n\n //obtain current board state to init POJO\n boolean[][] player = new boolean[model.BOARD_SIZE][model.BOARD_SIZE];\n boolean[][] occupied = new boolean[model.BOARD_SIZE][model.BOARD_SIZE];\n boolean[][] king = new boolean[model.BOARD_SIZE][model.BOARD_SIZE];\n for(int row = 0; row < model.getBoard().length; row++){\n for(int col = 0; col < model.getBoard()[row].length; col++) {\n player[row][col] = model.isPlayerOne(row, col);\n occupied[row][col] = model.squareIsOccupied(row, col);\n king[row][col] = model.squareHoldsKing(row,col);\n }\n }\n currentBoard.setDoubleJump(model.canDoubleJump);\n currentBoard.setPlayerOne(player);\n currentBoard.setKing(king);\n currentBoard.setOccupied(occupied);\n return currentBoard;\n }", "String getBoard();", "List<T> readAll();", "Data<List<Boards>> getBoards(String fields);", "@Override\r\n\tpublic List<Board> getList(PageParam pageParam) {\n\t\treturn (List<Board>) mapper.getList(pageParam);\r\n\t}", "@Override\n\tpublic List<BoardDto> boardReplyAll(int board_id) {\n\t\treturn dao.boardReplyAll(board_id);\n\t}", "public void setBoard() {\n for (int i = 0; i < 10 ; i++) {\n board[i] = coordinator.holes[i].getNumberOfMarbleBalls();\n }\n }", "public static WildBoard getBoard()\n {\n System.out.println(\"*** WildApp.getBoard() called\");\n \n return myBoard;\n }", "@Override\n\tpublic List<Libro> readAll() {\n\t\treturn libroDao.readAll();\n\t}", "@Transactional(isolation = Isolation.READ_COMMITTED)\n\t@Override\n\tpublic BoardVO read(Integer b_no) throws Exception {\n\t\tdao.updateViewCnt(b_no);\n\t\treturn dao.read(b_no);\n\t}", "List<Board> boardListPage(Criteria cri) throws Exception;", "public int getCurMems(String boardId) {\n\t\tConnection conn = getConnection();\n\t\tint curmem = cd.getCurMems(conn, boardId);\n\t\tclose(conn);\n\t\treturn curmem;\n\t}", "@Override\n\tpublic List<Map<String, Object>> selectBoardList() {\n\t\treturn null;\n\t}", "public void printboard(){\n \tfor(int i=0;i<9;i+=3){\n\t\t\t System.err.println(board[i]+board[i+1]+board[i+2]);\n\t\t\t}\n }", "@Override\n\tpublic List<Map<String, Object>> readAll() {\n\t\treturn rolDao.readAll();\n\t}", "public List<SampleVO> selectBoardList() {\n\t\treturn sqlSession.selectList(\"sample.selectBoardList\");\r\n\t}", "public String selectCurMemsList(String boardId) {\n\t\tConnection conn = getConnection();\n\t\tString list = cd.selectCurMemsList(conn, boardId);\n\t\tclose(conn);\n\t\treturn list;\n\t}", "public void printBoard() {\n \tfor(int i = 7; i >= 0; i--) {\n \t\tfor(int j = 0; j < 8; j++) {\n \t\t\tSystem.out.print(\"\"+getPiece(j, i).getColor().toString().charAt(0)+getPiece(j, i).getName().charAt(0)+\"\\t\");\n \t\t}\n \t\tSystem.out.println();\n \t}\n }", "public void Display_Boards(){\r\n\t\tfor(int i=0; i<13; i++){\r\n\t\t\tdisplay.putStaticLine(myBoard.Display(i)+\" \"+hisBoard.Display(i));\r\n\t\t}\r\n\t}", "public void boardMain() {\n\n while(true) {\n\n try {\n\n System.out.println(\"메인 / 게시판 메인-------------------------------\\n\");\n System.out.println(\"1. 게시글 작성\\n2. 게시글 보기\\n3. 게시글 수정\\n4. 게시글 삭제\\n5. 뒤로가기\\n \");\n int inputMenu = Prompt.inputInt(\"입력>\");\n\n if (inputMenu == 1) { // 게시글 작성\n this.add();\n\n }else if (inputMenu == 2) { // 게시글 보기\n this.List();\n\n }else if (inputMenu == 3) { // 게시글 수정\n this.update();\n\n }else if (inputMenu == 4) { // 게시글 삭제\n this.delete();\n\n }else if (inputMenu == 5) {\n break;\n\n }else {\n System.out.println(\"잘못 입력하였습니다.1\");\n }\n } catch(Exception e) {\n System.out.println(\"잘못 입력하였습니다.2\");\n }\n }\n\n }", "public void displayBoard(){\r\n System.out.println(board.toString());\r\n }", "private void initializeBoard() {\n\t\t\n\t}", "String[][] getBoard();", "@GetMapping(\"/api/obd\")\n public List<Obd> readAll() {\n return obdRepository.findAll();\n }", "public int[][] getBoard();", "@Override\n\tpublic List<Room> getAll() {\n\t\tArrayList<Room> list = new ArrayList<>();\n\t\tConnection cn = ConnectionPool.getInstance().getConnection();\n\t\ttry {\n\t\t\tStatement st = cn.createStatement();\n\t\t\tResultSet rs = st.executeQuery(\"SELECT * FROM room\");\n\t\t\twhile(rs.next()) {\n\t\t\t\tlist.add(new Room(rs.getInt(1), rs.getInt(2)));\n\t\t\t}\n\t\t\treturn list;\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tConnectionPool.getInstance().closeConnection(cn);\n\t\t}\n\t\treturn new ArrayList<Room>();\n\t}", "@Override\r\n\tpublic Vector<BoardDTO> listBoard(String groupNum) {\n\t\treturn null;\r\n\t}", "private int[][] readBoardInput() {\n\t\tint board[][] = new int[BOARD_SIZE][BOARD_SIZE];\n\t\tfor (int i = 0; i < BOARD_SIZE; i++) {\n\t\t\tfor (int j = 0; j < BOARD_SIZE; j++) {\n\t\t\t\tboard[i][j] = in.nextInt();\n\t\t\t}\n\t\t}\n\t\treturn board;\n\t}", "public List<Building> getBoardBuildings() {\n return mPersonalBoardCards.getBoardBuildings();\n }", "private Board()\r\n {\r\n this.grid = new Box[Config.GRID_SIZE][Config.GRID_SIZE];\r\n \r\n for(int i = 0; i < Config.NB_WALLS; i++)\r\n {\r\n this.initBoxes(Wall.ID);\r\n }\r\n \r\n for(int i = 0; i < Config.NB_CHAIR; i++)\r\n {\r\n this.initBoxes(Chair.ID);\r\n }\r\n \r\n for(int i = 0; i < Config.NB_PLAYER; i++)\r\n {\r\n this.initBoxes(Chair.ID);\r\n }\r\n }", "public void runAll() {\n\t\t\n\t\tfor(int row = 0; row < board.length;row++ ) {\n\t\t\t\n\t\t\tfor(int col = 0; col < board[row].length; col++) {\n\t\t\t\t\n\t\t\t\tSystem.out.printf(\"Queen starts from position %d, %d%n%n\", row, col);\n\t\t\t\tqueenTour(row,col);\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t}", "@Override\r\n\tpublic List<CommentVO> commentRead(Integer boardkey) throws Exception {\n\r\n\t\treturn session.selectList(namespace + \".commentRead\", boardkey);\r\n\r\n\t}", "public List<Computer> getAll(){\n\t\treturn getWithLimit(-1,-1);\n\t}", "public char[][] getBoard(Connection c) {\n Statement stmt = null;\n ResultSet rs = null;\n char[][] board = new char[4][3];\n \n try {\n c.setAutoCommit(false);\n System.out.println(\"Database opened successfully\");\n \n stmt = c.createStatement();\n String sql = \"SELECT * FROM GAMEBOARD;\";\n rs = stmt.executeQuery(sql);\n if (!rs.next()) {\n return null;\n }\n int id = rs.getInt(\"PLAYER_ID\");\n int x = rs.getInt(\"COORD_X\");\n int y = rs.getInt(\"COORD_Y\");\n char type = rs.getString(\"PLAYER_TYPE\").charAt(0);\n board[x][y] = type;\n if (id == 1) {\n board[3][0] = type;\n }\n\n while (rs.next()) {\n id = rs.getInt(\"PLAYER_ID\");\n x = rs.getInt(\"COORD_X\");\n y = rs.getInt(\"COORD_Y\");\n type = rs.getString(\"PLAYER_TYPE\").charAt(0);\n board[x][y] = type;\n if (id == 1) {\n board[3][0] = type;\n }\n }\n } catch (Exception e) {\n System.err.println(e.getClass().getName() + \": \" + e.getMessage());\n return null;\n } finally {\n if (stmt != null) {\n try {\n stmt.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }\n if (rs != null) {\n try {\n rs.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }\n }\n \n System.out.println(\"Get Board Succeed.\");\n return board;\n }", "public Collection<Board> getNextBoards(final Player player) {\r\n\t\treturn board.getNextBoards(player);\r\n\t}", "public static Board getBoard(){\n\t\treturn board;\n\t}", "private static void showBoard() {\n for (int i = 1; i < 10; i++) {\n for (int j = 1; j < 4; j++) {\n System.out.println(j + \".\" + board[i]);\n }\n\n }\n }", "@Override\n\tpublic List<Cliente> readAll() {\n\t\treturn clientedao.readAll();\n\t}", "public Command[] readCommands() {\n\t\tList<Command> result = new ArrayList<Command>();\n\t\tCommand next = null;\n\t\tdo {\n\t\t\tnext = readCommand();\n\t\t\tif (next!=null) {\n\t\t\t\tresult.add(next);\n\t\t\t}\n\t\t} while (next!=null);\n\t\treturn (Command[])result.toArray(new Command[0]);\n }", "private Board getBoard() {\n return gameStatus.getBoard();\n }", "public int[] getBoard() {\n\t return board;\n }", "public SmallGameBoard[] getAllGames(){return games;}", "void displayBoard();", "public void run() {\n GameBoard board = new GameBoard(nrows, ncols);\n\n\n }", "@Test\r\n public void getBoardTest() {\r\n assertEquals(board4, boardManager4.getBoard());\r\n }", "ReadResponseMessage fetchAllMessages();", "private void printBoard() {\r\n for (int i = 0; i < board.length; i++) {\r\n for (int j = 0; j < board[i].length; j++) {\r\n System.out.print(board[j][i] + \" \");\r\n }\r\n System.out.println();\r\n }\r\n }", "@Override\r\n\tpublic Set<Robot> getRobots(Board board)\r\n\t{\r\n\t\treturn board.getElements(Robot.class);\r\n\t}", "private void generateBoard(){\n\t}", "public void printBoard() {\n\t\tfor (int colIndex = 0; colIndex < 4; colIndex++){\n\t\t\tfor (int rowIndex = 0; rowIndex < 4; rowIndex++){\n\t\t\t\tSystem.out.print(this.myBoard[colIndex][rowIndex] + \" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "private static void showBoard()\n {\n System.out.println(board[1] + \" | \" + board[2] + \" | \" + board[3]);\n System.out.println(\"----------\");\n System.out.println(board[4] + \" | \" + board[5] + \" | \" + board[6]);\n System.out.println(\"----------\");\n System.out.println(board[7] + \" | \" + board[8] + \" | \" + board[9]);\n }", "public Collection<T> readAll();", "@GetMapping(\"/boards/{id}\")\n public ResponseEntity<Board> getBoard(@PathVariable Long id){\n Optional<Board> board = boardRepository.findById(id);\n return ResponseUtil.wrapOrNotFound(board);\n }", "@Override\n\tpublic List<BoardVO> getArticle() {\n\t\tString sql = \"SELECT * FROM board ORDER BY board_id ASC\";\n\t\t\n\t\treturn template.query(sql, new BoardMapper());\n\t}", "@Override\n public Board getBoard(String username, String boardname) {\n return boardDataGateway.getBoard(username, boardname);\n }", "private void displayBoard() {\r\n\r\n for (int r = 0; r < 8; r++) {\r\n for (int c = 0; c < 8; c++) {\r\n if (model.pieceAt(r, c) == null)\r\n board[r][c].setIcon(null);\r\n else if (model.pieceAt(r, c).player() == Player.WHITE) {\r\n if (model.pieceAt(r, c).type().equals(\"Pawn\"))\r\n board[r][c].setIcon(wPawn);\r\n\r\n if (model.pieceAt(r, c).type().equals(\"Rook\"))\r\n board[r][c].setIcon(wRook);\r\n\r\n if (model.pieceAt(r, c).type().equals(\"Knight\"))\r\n board[r][c].setIcon(wKnight);\r\n\r\n if (model.pieceAt(r, c).type().equals(\"Bishop\"))\r\n board[r][c].setIcon(wBishop);\r\n\r\n if (model.pieceAt(r, c).type().equals(\"Queen\"))\r\n board[r][c].setIcon(wQueen);\r\n\r\n if (model.pieceAt(r, c).type().equals(\"King\"))\r\n board[r][c].setIcon(wKing);\r\n } else if (model.pieceAt(r, c).player() == Player.BLACK) {\r\n if (model.pieceAt(r, c).type().equals(\"Pawn\"))\r\n board[r][c].setIcon(bPawn);\r\n\r\n if (model.pieceAt(r, c).type().equals(\"Rook\"))\r\n board[r][c].setIcon(bRook);\r\n\r\n if (model.pieceAt(r, c).type().equals(\"Knight\"))\r\n board[r][c].setIcon(bKnight);\r\n\r\n if (model.pieceAt(r, c).type().equals(\"Bishop\"))\r\n board[r][c].setIcon(bBishop);\r\n\r\n if (model.pieceAt(r, c).type().equals(\"Queen\"))\r\n board[r][c].setIcon(bQueen);\r\n\r\n if (model.pieceAt(r, c).type().equals(\"King\"))\r\n board[r][c].setIcon(bKing);\r\n }\r\n repaint();\r\n }\r\n }\r\n if (model.inCheck(Player.WHITE))\r\n JOptionPane.showMessageDialog(null, \"White King in Check\");\r\n if (model.inCheck(Player.BLACK))\r\n JOptionPane.showMessageDialog(null, \"Black King in Check\");\r\n if (model.movingIntoCheck())\r\n JOptionPane.showMessageDialog(null, \"Cannot move into check\");\r\n if (model.isComplete())\r\n JOptionPane.showMessageDialog(null, \"Checkmate\");\r\n }", "public void loop() throws Exception {\r\n // get a command and process it from\r\n // the serial port (if available.)\r\n// wdt_disable();\r\n if (mrlComm.readMsg()) {\r\n mrlComm.processCommand();\r\n }\r\n // update devices\r\n mrlComm.updateDevices();\r\n // send back load time and memory\r\n // driven by getBoardInfo now !!!\r\n // mrlComm.publishBoardStatus();\r\n }", "public List<DYRepBoardDTO> dyreplist(int bno) {\n\t\tDBConn dbconn = DBConn.getDB();\n\t\tConnection conn=null;\n\t\t\n\t\tList<DYRepBoardDTO> list =null;\n\t\t\n\t\ttry {\n\t\t\tconn=dbconn.getConn();\n\t\t\tconn.setAutoCommit(false);\n\t\t\t\n\t\t\tDYBoardDAO dao = DYBoardDAO.getdao();\n\t\t\t list = dao.dyreplist(conn,bno);\n\t\t\t\n\t\t\tconn.commit();\n\t\t}catch(NamingException | SQLException e) {\n\t\t\tSystem.out.println(e);\n\t\t}finally {\n\t\t\tif(conn!=null)try {conn.close();}catch(SQLException e) {}\n\t\t}\n\t\t\n\t\treturn list;\n\t}", "public void pullPlayerTiles() {\r\n\t\tRandom r = new Random();\r\n\t\tfor (int i=0; i < 7; i++) {\r\n\t\t\tint random = r.nextInt(Launch.getBoneyard().size());\r\n\t\t\t//System.out.println(\"[debug] random = \"+random);\r\n\t\t\t//System.out.println(\"[debug] index\"+random+\" in BONEYARD = \"+Arrays.toString(Launch.BONEYARD.get(random).getDots()));\r\n\t\t\tif (Utils.isSet(Launch.getBoneyard(), random)) {\r\n\t\t\t\tPLAYER_DOMINOS.add(Launch.getBoneyard().get(random));\r\n\t\t\t\tLaunch.getBoneyard().remove(random);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void showBoard() {\n System.out.println(\"The board is\");\n System.out.println(\"| 1 | 2 | 3 |\\n| 4 | 5 | 6 | \\n| 7 | 8 | 9 |\");\n }", "public Board getBoard() {\r\n return board;\r\n }", "public FloorTile[][] getBoard(){\r\n return board;\r\n }", "private Set<Node> getAllCardNodes() {\n return guiRobot.lookup(CARD_PANE_ID).queryAll();\n }", "public void showBoard() {\n for (int i = 0; i < booleanBoard.length; i++) {\n for (int j = 0; j < booleanBoard.length; j++) {\n if (strBoard[i][j].equals(\"possible move\") || strBoard[i][j].equals(\"castling\")) {\n gA.getBoard()[i][j].setBackgroundResource(R.color.green);\n }\n if (strBoard[i][j].equals(\"possible kill\")) {\n gA.getBoard()[i][j].setBackgroundResource(R.color.red);\n }\n if (booleanBoard[i][j]) {\n if (figBoard[i][j].getColor().equals(\"white\")) {\n gA.getBoard()[i][j].setRotation(180);\n } else {\n gA.getBoard()[i][j].setRotation(0);\n }\n gA.getBoard()[i][j].setImageResource(figBoard[i][j].getImageResource());\n } else {\n gA.getBoard()[i][j].setImageResource(0);\n }\n }\n }\n }", "public List<Piece> allPieces();", "void readFiles(Boolean smart) \n\t//throws IOException// more here for safety\n\t{\n\t\tint i;\n\t\tfor (i = 0; i<165; ++i)\n\t\tfor (int j = 0; j<11; ++j)\n\t\t{\t//if(smart)memoryFile.readInt(board(i,j));\n\t\t\t//else \n\t\t\t\tboard[i][j] = 0;\n\t\t}\n\t\t//try memoryFileStream.close(); catch (IOException e);\n\t}", "public static SquareBoard getFullBoard() {\n\n\t\tSquareBoard fullBoard = new SquareBoard(BOARD_SIZE);\n\t\t\n\t\tfor (int ctr = 0; ctr < (BOARD_SIZE * BOARD_SIZE); ctr++) {\n\t\t\tfullBoard.getSpaceByIndex(ctr).setPiece(\n\t\t\t\t\tnew BasicPieceHelper(String.valueOf(ctr), null));\n\t\t}\n\t\t\n\t\treturn fullBoard;\n\t}", "public Set<BoardObject> boardObjects(){\r\n\t\treturn boardObjects;\r\n\t}", "public void printBoard() {\n System.out.println(\"Updated board:\");\n for (int row = 0; row < size; row++) {\n for (int col = 0; col < size; col++) {\n\n System.out.print(grid[row][col] + \" \");\n\n }\n System.out.println(\"\");\n }\n }", "public Board getBoard() {\n return board;\n }", "@Override\r\n\tpublic List<Categoria> readAll() {\n\t\tList<Categoria> lista = new ArrayList<>();\r\n\t\tString SQL = \"select *from categoria\";\r\n\t\ttry {\r\n\t\t\tcx = Conexion.getConexion();\r\n\t\t\tps = cx.prepareStatement(SQL);\r\n\t\t\trs = ps.executeQuery(SQL);\r\n\t\t\twhile(rs.next()) {\r\n\t\t\t\tCategoria r = new Categoria();\r\n\t\t\t\tr.setCategoria_idcategoria(rs.getInt(\"CATEGORIA_IDCATEGORIA\"));\r\n\t\t\t\tr.setNombre(rs.getString(\"NOMBRE\"));\r\n\t\t\t\tlista.add(r);\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\tSystem.out.println(\"Error: \"+e);\r\n\t\t}\r\n\t\t\r\n\t\treturn lista;\r\n\t}", "public void initializeBoard() {\r\n int x;\r\n int y;\r\n\r\n this.loc = this.userColors();\r\n\r\n this.board = new ArrayList<ACell>();\r\n\r\n for (y = -1; y < this.blocks + 1; y += 1) {\r\n for (x = -1; x < this.blocks + 1; x += 1) {\r\n ACell nextCell;\r\n\r\n if (x == -1 || x == this.blocks || y == -1 || y == this.blocks) {\r\n nextCell = new EndCell(x, y);\r\n } else {\r\n nextCell = new Cell(x, y, this.randColor(), false);\r\n }\r\n if (x == 0 && y == 0) {\r\n nextCell.flood();\r\n }\r\n this.board.add(nextCell);\r\n }\r\n }\r\n this.stitchCells();\r\n this.indexHelp(0, 0).floodInitStarter();\r\n }", "public void readMessages() {\n if (!this.isConnectedToClientServer){return;}\n String inputMessage = inputQueue.poll();\n if (inputMessage != null){\n try{\n ClientMessageType messageType = ClientMessageParser.parse(inputMessage);\n if (messageType == ClientMessageType.INCOMING_BALL){\n //parses the message to get a ball, which is then added to the board\n Ball ball = ClientMessageParser.parseIncomingBall(inputMessage);\n board.addBall(ball);\n }\n else if (messageType == ClientMessageType.WALL_INVISIBILITY){\n //parses the messages to find out which boundary to make invisible, and does so\n BoundarySide whichBoundary = ClientMessageParser.parseWallInvisibility(inputMessage, board.neighbors);\n board.makeInvisible(whichBoundary);\n }\n else if (messageType == ClientMessageType.WALL_VISIBILITY){\n //parses the messages to find out which boundary to make visible, and does so\n BoundarySide whichBoundary = ClientMessageParser.parseWallVisibility(inputMessage, board.neighbors);\n board.makeVisible(whichBoundary);\n }\n else if (messageType == ClientMessageType.DISCONNECT_CLIENT){\n disconnectFromClientAndServer();\n }\n } catch (IncorrectFormatException e){\n //don't do anything --> message is not parsed, but play on this board still continues\n }\n }\n }", "public Board getCurrentBoard() {\n return boardIterator.board;\n }", "public int[] getBoard() {\n return board.clone(); //return board.clone();\n }" ]
[ "0.66389674", "0.6483539", "0.6409841", "0.62914973", "0.62914973", "0.6204414", "0.6083559", "0.5995839", "0.5973431", "0.59012914", "0.58871883", "0.5861086", "0.58128124", "0.5788036", "0.5756602", "0.57131445", "0.56844497", "0.5668093", "0.56602734", "0.5617916", "0.5571181", "0.5518795", "0.5507428", "0.54959244", "0.5486959", "0.5471923", "0.54651576", "0.5444501", "0.54439497", "0.5428799", "0.53946304", "0.5390204", "0.5382293", "0.5356392", "0.5340925", "0.53391266", "0.53372955", "0.5309759", "0.5304115", "0.52926445", "0.52811414", "0.52759564", "0.5267585", "0.52674764", "0.5252873", "0.5245384", "0.5243703", "0.52431047", "0.52192104", "0.5218835", "0.5204352", "0.5188033", "0.51867044", "0.5180654", "0.51752234", "0.5168957", "0.51608366", "0.51548666", "0.5151682", "0.5137282", "0.51340884", "0.51241815", "0.5116725", "0.51033056", "0.50990903", "0.50959015", "0.5092194", "0.50881606", "0.5087257", "0.50819635", "0.5079548", "0.5067477", "0.5064484", "0.50635165", "0.5062594", "0.5052989", "0.50490224", "0.5046529", "0.50424725", "0.5038869", "0.50342125", "0.50325304", "0.50289273", "0.50280213", "0.50236875", "0.5011851", "0.5008084", "0.500399", "0.4999005", "0.49979722", "0.49974746", "0.49964568", "0.49930158", "0.4988193", "0.4986837", "0.49849182", "0.49834445", "0.498055", "0.49771217", "0.49767452" ]
0.62336695
5
/ read 'id' board
@GetMapping("/boards/{id}") public ResponseEntity<Board> getBoard(@PathVariable Long id){ Optional<Board> board = boardRepository.findById(id); return ResponseUtil.wrapOrNotFound(board); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List findall_board_info(Integer board_id);", "@Override\n public Board getBoard(int id) {\n Board b = boardDataGateway.getBoardByID(id);\n if (b != null)\n b.setPins(getPinsOnBoard(b.getCreator().getUsername(), b.getName()));\n return b;\n }", "@Override\r\n\tpublic BoardDto read(int bno) throws Exception {\n\t\treturn dao.read(bno);\r\n\t}", "public void getCheque(Integer id) {\n\t\t\r\n\t}", "@Override\n\tpublic Map<String, Object> read(int bno) throws Exception {\n\t\treturn boardDao.read(bno);\n\t}", "String getBoard();", "T read(int id);", "T read(int id);", "@Override\r\n\tpublic cms_board_vo read(int cms_bno) throws Exception {\n\t\treturn sql.selectOne(\"cms_board.read\", cms_bno);\r\n\t}", "E read(K id);", "public int[][] getBoard();", "void deleteBoard(long id);", "@Override\r\n\tpublic void read(Object id) {\n\t\t\r\n\t}", "public Board getBoard ();", "@Override\r\n\tpublic Board read(PageParam pageParam) {\n\t\treturn mapper.get(pageParam);\r\n\t}", "String[][] getBoard();", "public boolean readIDChannel(int id, int offset) throws GameActionException {\n\t\tint chan = id % CommsProtocol.ID_CHAN_MOD;\n\t\tint data = rc.readBroadcast(offset + chan);\n\t\tif (data == 0) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\tdata--;\n\t\t\tif (data % CommsProtocol.ID_CHAN_MOD == id\n\t\t\t\t\t% CommsProtocol.ID_MSG_MOD) {\n\t\t\t\tdata = data / CommsProtocol.ID_CHAN_MOD;\n\t\t\t\tlastMsg = msgs[data / (CommsProtocol.LOC_MASK)];\n\t\t\t\tlastLoc = new MapLocation(data % GameConstants.MAP_MAX_WIDTH,\n\t\t\t\t\t\t(data / GameConstants.MAP_MAX_WIDTH)\n\t\t\t\t\t\t\t\t% GameConstants.MAP_MAX_HEIGHT);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\t}", "public HexModel searchByID(String id) {\n\t\tfor (int y = 0; y < grid[0].length; y++) {\r\n\t\t\tfor (int x = 0; x < grid[y].length; x++) {\r\n\t\t\t\tif (grid[y][x] != null && grid[y][x].getId().equals(id))\r\n\t\t\t\t\treturn grid[y][x];\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn null;\r\n\t}", "public static PolovniAutomobili read(int id) {\n PolovniAutomobili s = null;\n try {\n CONNECTION = DriverManager.getConnection(URL, USERNAME, PASSWORD);\n String query = \"SELECT * FROM polovni WHERE id = ?\";\n try (PreparedStatement ps = CONNECTION.prepareStatement(query)) {\n ps.setInt(1, id);\n ResultSet result = ps.executeQuery();\n if (result.next()) {\n s = new PolovniAutomobili(result.getString(\"imgUrl\"), result.getString(\"naziv\"), result.getInt(\"godiste\"), result.getInt(\"cena\"), result.getString(\"url\"));\n }\n CONNECTION.close();\n }\n } catch (SQLException ex) {\n System.out.println(\"MySql Connection error...\");\n Logger.getLogger(PolovniFunctions.class.getName()).log(Level.SEVERE, null, ex);\n return null;\n }\n return s;\n }", "public int getBoard_id(){\n return Board_id;\n }", "String getBoardString();", "public String getBoardCards(String boardID, Argument ... args) {\n return(enhanceURL(createURL(GET_BOARD_CARDS).params(args).asString(boardID)));\n }", "Data<List<Boards>> getBoards();", "@Override\n\tpublic Map<String, Object> read(int id) {\n\t\treturn rolDao.read(id);\n\t}", "public Pit getPitById(int id) throws IndexOutOfBoundsException {\n try {\n return board.getPit(id);\n } catch (IndexOutOfBoundsException e) {\n throw new IndexOutOfBoundsException(String.format(\"Id %d is invalid\", id));\n }\n }", "@Override\r\n\tpublic Map<String, Object> read(int id) {\n\t\tSystem.out.println(id);\r\n\t\tsimpleJdbcCall = new SimpleJdbcCall(jdbcTemplate).withCatalogName(\"PKG_ESTADO_CIVIL\")\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t .withProcedureName(\"PR_BUS_ESTADO_CIVIL\")\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t .declareParameters(new SqlOutParameter(\"CUR_ESTADO_CIVIL\", OracleTypes.CURSOR,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t new ColumnMapRowMapper()), new SqlParameter(\"IDESTADO_CIVIL\", Types.INTEGER));\r\n\t\tSqlParameterSource in = new MapSqlParameterSource().addValue(\"IDESTADO_CIVIL\", id);\r\n\t\treturn simpleJdbcCall.execute(in);\r\n\t}", "public static Cell getCell(String id)\n {\n for (int i = 0; i < cellList.size(); i ++)\n {\n if (cellList.get(i).getId().equals(id))\n return cellList.get(i);\n }\n return null;\n }", "public RobotInfo get(int id){\n \treturn info[id % HASH];\n }", "@Override\n\tpublic BoardVO getArticle(int bId) {\n\t\tString sql = \"SELECT * FROM board WHERE board_id=?\";\n\t\treturn template.queryForObject(sql, new BoardMapper(), bId);\n\t\t\t\n\t\t\n\t}", "private int[][] readBoard(Region[][] tiles) {\t\t\t\n\t\t\n\t\tint board[][] = new int[BOARD_SIZE][BOARD_SIZE];\n\t\tdouble highScore, score;\n\t\tint best;\n\n\t\tfor (int i = 0; i < BOARD_SIZE; i++) {\n\t\t\tfor (int j = 0; j < BOARD_SIZE; j++) {\t\t\t\n\t\t\t\t\n\t\t\t\thighScore = 0;\n\t\t\t\tscore = 0;\n\t\t\t\tbest = 0;\n\t\t\t\tint dark = (i / 3 + j / 3) % 2;\n\t\t\t\tfor (int k = 1; k < NUMBER_FILES[dark].length; k++) {\n\t\t\t\t\tMatch m = tiles[i][j].exists(NUMBER_FILES[dark][k], 0);\n\t\t\t\t\tif (m != null) {\n\t\t\t\t\t\tscore = m.getScore();\n\t\t\t\t\t\tif (score > highScore) {\n\t\t\t\t\t\t\tbest = k;\n\t\t\t\t\t\t\thighScore = score;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tboard[i][j] = best;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println();\n\t\tfor (int is[] : board) {\n\t\t\tfor (int i : is) {\n\t\t\t\tSystem.out.print(i + \" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\n\t\treturn board;\n\t}", "private int findPosition(int id) {\n\t\t\n\t\tint i = 0;\n\t\tboolean found = false;\n\t\t\n\t\twhile(i < numTiles && !found) {\n\t\t\tif(boardConfig[i] == id) {\n\t\t\t\tfound = true;\n\t\t\t} else {\n\t\t\t\ti++;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn i;\n\t}", "@Override\n\tpublic Room get(int id) {\n\t\tConnection cn = ConnectionPool.getInstance().getConnection();\n\t\ttry {\n\t\t\tStatement st = cn.createStatement();\n\t\t\tResultSet rs = st.executeQuery(\"SELECT * FROM room WHERE id_room = \" + id);\n\t\t\tif(rs.next()) {\n\t\t\t\treturn new Room(rs.getInt(1), rs.getInt(2));\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tConnectionPool.getInstance().closeConnection(cn);\n\t\t}\n\t\treturn new Room();\n\t}", "Piece getPieceAt(int col, int row);", "public char[][] getBoard(Connection c) {\n Statement stmt = null;\n ResultSet rs = null;\n char[][] board = new char[4][3];\n \n try {\n c.setAutoCommit(false);\n System.out.println(\"Database opened successfully\");\n \n stmt = c.createStatement();\n String sql = \"SELECT * FROM GAMEBOARD;\";\n rs = stmt.executeQuery(sql);\n if (!rs.next()) {\n return null;\n }\n int id = rs.getInt(\"PLAYER_ID\");\n int x = rs.getInt(\"COORD_X\");\n int y = rs.getInt(\"COORD_Y\");\n char type = rs.getString(\"PLAYER_TYPE\").charAt(0);\n board[x][y] = type;\n if (id == 1) {\n board[3][0] = type;\n }\n\n while (rs.next()) {\n id = rs.getInt(\"PLAYER_ID\");\n x = rs.getInt(\"COORD_X\");\n y = rs.getInt(\"COORD_Y\");\n type = rs.getString(\"PLAYER_TYPE\").charAt(0);\n board[x][y] = type;\n if (id == 1) {\n board[3][0] = type;\n }\n }\n } catch (Exception e) {\n System.err.println(e.getClass().getName() + \": \" + e.getMessage());\n return null;\n } finally {\n if (stmt != null) {\n try {\n stmt.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }\n if (rs != null) {\n try {\n rs.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }\n }\n \n System.out.println(\"Get Board Succeed.\");\n return board;\n }", "@Override\r\n\tpublic List<CommentVO> commentRead(Integer boardkey) throws Exception {\n\r\n\t\treturn session.selectList(namespace + \".commentRead\", boardkey);\r\n\r\n\t}", "public NoticeBoardVO selectOneBoardByNum(String num){\r\n\t\tString sql=\"select * from board_notice where num=?\";\r\n\t\tNoticeBoardVO vo=null;\r\n\t\tConnection conn=null;\r\n\t\tPreparedStatement pstmt=null;\r\n\t\tResultSet rs=null;\r\n\t\ttry{\r\n\t\t\tconn=DBManager.getConnection();\r\n\t\t\tpstmt=conn.prepareStatement(sql);\r\n\t\t\tpstmt.setString(1,num);\r\n\t\t\trs=pstmt.executeQuery();\r\n\t\t\tif(rs.next()){\r\n\t\t\t\tvo=new NoticeBoardVO();\r\n\t\t\t\tvo.setNum(rs.getInt(\"num\"));\r\n\t\t\t\tvo.setUserid(rs.getString(\"userid\"));\r\n\t\t\t\tvo.setPass(rs.getString(\"pass\"));\r\n\t\t\t\tvo.setTitle(rs.getString(\"title\"));\r\n\t\t\t\tvo.setContent(rs.getString(\"content\"));\r\n\t\t\t\tvo.setWritedate(rs.getTimestamp(\"writedate\"));\r\n\t\t\t\tvo.setFileurl(rs.getString(\"fileurl\"));\r\n\t\t\t\tvo.setReadcount(rs.getInt(\"readcount\"));\r\n\t\t\t}\r\n\t\t}catch(Exception e){\r\n\t\t\te.printStackTrace();\r\n\t\t}finally{\r\n\t\t\tDBManager.close(conn, pstmt, rs);\r\n\t\t}\r\n\t\treturn vo;\r\n\t}", "@Override\r\n\tpublic Libro read(int id) {\n\t\treturn libroRepository.findById(id).get();\r\n\t}", "private void findAndConstructPlayerFromDatabase(int id) throws IOException {\n openPlayerDataFromCSV(); // generate the file reader for the csv\n csvReader.readLine(); // read the first line through because it's just the headers\n String row = csvReader.readLine();\n\n // create a loop that reads until we find the player in the csv file\n while (row != null) {\n List<String> playerData = Arrays.asList(row.split(\",\"));\n playerID = Integer.parseInt(playerData.get(NbaGachaApp.ID_INDEX));\n if (playerID == id) {\n setPlayerData(playerData);\n row = null; // we've created the player so don't need to keep looking\n } else {\n row = csvReader.readLine(); // keep looking until we find the player\n }\n }\n\n }", "private int indexOfBoard(int no) {\n return 0;\n }", "Blog read(int id);", "@Transactional(isolation = Isolation.READ_COMMITTED)\n\t@Override\n\tpublic BoardVO read(Integer b_no) throws Exception {\n\t\tdao.updateViewCnt(b_no);\n\t\treturn dao.read(b_no);\n\t}", "public static Cheque findByID(Integer id) {\r\n\t\tSession session = getSessionFactory().openSession();\r\n\t\tCheque chq = (Cheque) session.load(Cheque.class, id);\r\n\t\tsession.close();\r\n\t\treturn chq;\r\n\t}", "public DistrictBoard(String filename) {\r\n Path file = FileSystems.getDefault().getPath(\"../Gerrymander/data/\", filename);\r\n try (BufferedReader reader = Files.newBufferedReader(file)) {\r\n // get the dimensions from the first line (M N)\r\n String line = reader.readLine();\r\n int[] dim = Arrays.stream(line.split(\" \")).mapToInt(s -> Integer.parseInt(s)).toArray();\r\n boardRows = dim[0];\r\n boardCols = dim[1];\r\n board = new int[boardRows][boardCols];\r\n \r\n // read the remaining lines into the board array\r\n for (int i = 0; i < boardRows; i++) {\r\n line = reader.readLine();\r\n board[i] = Arrays.stream(line.split(\" \")).mapToInt(s -> Integer.parseInt(s)).toArray();\r\n }\r\n } catch (IOException e) {\r\n System.err.format(\"IOException: %s%n\", e);\r\n }\r\n }", "private void getBoard() {\n gameBoard = BoardFactory.makeBoard();\n }", "T readOne(int id);", "@Override\n\tpublic List<Rol> readHola(int id) {\n\t\treturn rolDao.readHola(id);\n\t}", "@Override\n public Board getBoard(String username, String boardname) {\n return boardDataGateway.getBoard(username, boardname);\n }", "@Override\r\n\tpublic Board selectBoardByNumber(int number) {\n\t\treturn session.selectOne(namespace+\"selectBoardByNumber\", number);\r\n\t}", "Data<List<Boards>> getBoards(String fields);", "@Override\r\n\tpublic List<ReturnMessageBean> findbymessageboardid(Integer id) {\n\t\treturn this.getSession().createQuery(\"from ReturnMessageBean where messageboardid = '\" + id + \"'\" , ReturnMessageBean.class)\r\n\t\t\t\t.setMaxResults(50).list();\r\n\t}", "@Test\n public void testGetTile() {\n assertEquals(7, board3by3.getTile(0, 0).getId());\n }", "private int[][] readBoardInput() {\n\t\tint board[][] = new int[BOARD_SIZE][BOARD_SIZE];\n\t\tfor (int i = 0; i < BOARD_SIZE; i++) {\n\t\t\tfor (int j = 0; j < BOARD_SIZE; j++) {\n\t\t\t\tboard[i][j] = in.nextInt();\n\t\t\t}\n\t\t}\n\t\treturn board;\n\t}", "public GameBoard restore() {\n try (Statement stmt = connection.createStatement()) {\n stmt.execute(\"CREATE TABLE IF NOT EXISTS dat (\"\n + \"k VARCHAR PRIMARY KEY,\"\n + \"content TEXT\"\n + \")\");\n try (ResultSet res = stmt.executeQuery(\"SELECT content FROM dat WHERE k = 'gameboard'\")) {\n if (res.next()) {\n String str = res.getString(1);\n Gson gson = new Gson();\n return gson.fromJson(str, GameBoard.class);\n } else {\n return null;\n }\n }\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n return null;\n }\n }", "@Override\n\tpublic Alumno readAlumno(int id) {\n\t\tAlumno alum = new Alumno();\n\t\ttry {\n\t\t\tcx = Conexion.getConexion();\n\t\t\tps =cx.prepareStatement(\"select *from alumno where idalumno=?\");\n\t\t\tps.setInt(1, id);\n\t\t\trs = ps.executeQuery();\n\t\t\twhile(rs.next()) {\t\t\t\t\n\t\t\t\talum.setIdalumno(rs.getInt(\"idalumno\"));\n\t\t\t\talum.setNombres(rs.getString(\"nombres\"));\n\t\t\t\talum.setApellidos(rs.getString(\"apellidos\"));\n\t\t\t\talum.setDni(rs.getString(\"dni\"));\n\t\t\t\talum.setDireccion(rs.getString(\"direccion\"));\n\t\t\t\talum.setTelefono(rs.getString(\"telefono\"));\n\t\t\t\talum.setCorreo(rs.getString(\"correo\"));\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\treturn alum;\n\t}", "public List<Board> getBoardCommentNumber(\n\t\t\tMap<String, Integer> param) {\n\t\treturn dao.boardCommentNumber(param);\n\t}", "SerializableState getTile(Long id, int x, int y) throws RemoteException;", "@Override\r\n\tpublic Categoria read(int id) {\n\t\tCategoria a = new Categoria();\r\n\t\tString SQL = \"select *from rol where categoria_idcategoria=?\";\r\n\t\ttry {\r\n\t\t\tcx = Conexion.getConexion();\r\n\t\t\tps = cx.prepareStatement(SQL);\r\n\t\t\tps.setInt(1, id);\r\n\t\t\trs = ps.executeQuery();\r\n\t\t\twhile (rs.next()) {\t\t\t\t\r\n\t\t\t\ta.setCategoria_idcategoria(rs.getInt(\"categoria_idcategoria\"));\r\n\t\t\t\ta.setNombre(rs.getString(\"nombre\"));\r\n\t\t\t}\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\tSystem.out.println(e);\r\n\t\t}\r\n\t\treturn a;\r\n\t}", "public void displayBoard(){\r\n System.out.println(board.toString());\r\n }", "public Topic readTopic(int topicId);", "public static String readGame(String gameid) {\n String serviceURI = RDFChessConfig.get(\"fuseki\", \"http://localhost:3030/RDFChess/data\");\n try {\n DatasetAccessor dataAccessor = DatasetAccessorFactory.createHTTP(serviceURI);\n Model model = dataAccessor.getModel(gameid);\n if (model == null) {\n System.out.println(\"The game \" + gameid + \" does not exist. Trying to seek for another resource...\");\n String ntriples = readResource(gameid);\n if (ntriples.isEmpty()) {\n return \"The resource \" + gameid + \" does not exist\";\n }\n\n //the requested uri is not a game, but seems to be a valid resource, though. \n Model modelr = ModelFactory.createDefaultModel();\n InputStream stream = new ByteArrayInputStream(ntriples.getBytes(\"UTF-8\"));\n RDFDataMgr.read(modelr, stream, Lang.NTRIPLES);\n modelr = RDFPrefixes.addPrefixesIfNeeded(modelr);\n StringWriter sw = new StringWriter();\n RDFDataMgr.write(sw, modelr, RDFFormat.TURTLE_PRETTY);\n return sw.toString();\n\n }\n StringWriter sw = new StringWriter();\n RDFDataMgr.write(sw, model, RDFFormat.TURTLE_PRETTY);\n return sw.toString();\n\n } catch (Exception e) {\n return \"The game \" + gameid + \" could not be loaded as RDF <BR>\" + e.getMessage();\n }\n }", "public String selectCurMemsList(String boardId) {\n\t\tConnection conn = getConnection();\n\t\tString list = cd.selectCurMemsList(conn, boardId);\n\t\tclose(conn);\n\t\treturn list;\n\t}", "@Override\r\n\tpublic Board1 getByNum(int num) {\n\t\treturn dao.selectByNum(num);\r\n\t}", "public BaseBoard (java.lang.Integer _id) {\n\t\tthis.setId(_id);\n\t\tinitialize();\n\t}", "public int getCurMems(String boardId) {\n\t\tConnection conn = getConnection();\n\t\tint curmem = cd.getCurMems(conn, boardId);\n\t\tclose(conn);\n\t\treturn curmem;\n\t}", "public ArrayList<String> readFromBoard(Position pos){\n\t\treturn boardMatrix[pos.getX()][pos.getY()];\n\t}", "public void mFromDB(int id) {\n\n try {\n DriverManager.registerDriver(new com.mysql.cj.jdbc.Driver());\n con = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/xogames\", \"root\", \"Jrqr541&\");\n //System.out.println(\"con established ya 3m\");\n\n } catch (SQLException ex) {\n System.out.println(\"error connecting to db in toDB fn in ReplayController\");\n }\n\n try {\n PreparedStatement pstmt = con.prepareStatement(\"select * from steps where ID=(?) order by step\");\n pstmt.setInt(1, id);\n ResultSet rs = pstmt.executeQuery();\n\n while (rs.next()) {\n boolean player;\n if (rs.getInt(1) == 1) {\n player = true;\n } else {\n player = false;\n }\n Moves m = new Moves(rs.getInt(2), rs.getInt(3), player);\n m.setStep(rs.getInt(5));\n m.setFinalState(rs.getInt(6));\n ReplayController.getInstance().allMovesGetter().add(m);\n\n System.out.println(\"Populating moves\");\n }\n\n pstmt.close();\n con.close();\n } catch (Exception e) {\n e.printStackTrace();\n System.out.println(\"error fl select \" + e);\n }\n }", "public static void printLog(int id) \n\t\t{\n\t\t\ttry \n\t\t\t{\n\t\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t\t\tConnection connection = \n\t\t\t\t\t\tDriverManager.getConnection(jdbcUrl, jdbcUser, jdbcUserPassword);\n\t\t\t\tStatement statement = connection.createStatement();\n\t\t\t\tString allCustomersQuery = \"SELECT * FROM Logs where userID=\"+id;\n\t\t\t\n\t\t\t\tResultSet resultSet = statement.executeQuery(allCustomersQuery);\n\t\t\t\tint ind =0;\n\t\t\t\twhile(resultSet.next())\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(ind+\") Id: \" + resultSet.getInt(\"UserID\")+\", level: \"+resultSet.getInt(\"levelID\")+\", score: \"+resultSet.getInt(\"score\")+\", moves: \"+resultSet.getInt(\"moves\")+\", time: \"+resultSet.getDate(\"time\"));\n\t\t\t\t\tind++;\n\t\t\t\t}\n\t\t\t\tresultSet.close();\n\t\t\t\tstatement.close();\t\t\n\t\t\t\tconnection.close();\t\t\n\t\t\t}\n\t\t\t\n\t\t\tcatch (SQLException sqle) {\n\t\t\t\tSystem.out.println(\"SQLException: \" + sqle.getMessage());\n\t\t\t\tSystem.out.println(\"Vendor Error: \" + sqle.getErrorCode());\n\t\t\t}\n\t\t\tcatch (ClassNotFoundException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}", "RoomInfo getRoomInfo(int roomId) throws IOException;", "Matrix get(final Serializable id);", "public InputData getData(Integer id) {\n String SQL = \"SELECT * FROM world_bank WHERE idRecord_ID = ?\";\n InputData record = jdbcTemplate.queryForObject(SQL,\n new Object[] { id }, new DataMapper());\n return record;\n }", "public BoardInterface[] getBoards();", "public void readFromSocket(long socketId) {}", "public int[] getBoard() {\n\t return board;\n }", "public Record readRecord(Long id);", "@Override\r\n\tpublic Log get(int id) {\n\t\tConnection con = MysqlDatabase.getInstance().getConnection();\r\n\t\tLog log = null;\r\n\t\ttry {\r\n\t\t\tPreparedStatement ps = con.prepareStatement(GetById);\r\n\t\t\tps.setInt(1, id);\r\n\t\t\tResultSet rs = ps.executeQuery();\r\n\t\t\tif (rs.next()) {\r\n\t\t\t\tlog = generate(rs);\r\n\t\t\t}\r\n\t\t\tcon.close();\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn log;\r\n\t}", "List<Card> findByBoardId(BoardId boardId);", "public Boards getView(Long bno);", "public FloorTile getTileFromTheBoard(int row, int col) {\r\n return board[row][col];\r\n }", "void displayBoard();", "Color get(int col, int row) {\n return _board[row][col]; // FIXED.\n }", "public Aflevering read(String id) {\n Aflevering aflevering= null;\n try\n {\n String sqlQuery = \"SELECT * FROM AFLEVERING WHERE ID=\" + id;\n ResultSet rs = sqlConnection.executeSql(sqlQuery);\n rs.next();\n aflevering = new Aflevering(rs.getString(\"ID\"),\n rs.getString(\"Serie\"),\n rs.getString(\"Seizoen\"),\n rs.getString(\"Titel\"),\n rs.getString(\"Tijdsduur\"));\n }\n catch(Exception e) {\n System.out.println(e);\n }\n return aflevering;\n }", "public void setBoard_id(int Board_id){\n this.Board_id=Board_id;\n }", "@Override\n public Game readGame(Long game_id) {\n return gameDataAccess.findById(game_id).get();\n }", "static public Position read(Context context, int id) {\r\n int[] ids = {id};\r\n ArrayList<Position> list = readList(context, ids);\r\n Position position = list.get(0);\r\n return position;\r\n }", "Piece get(String sq) {\n return get(col(sq), row(sq));\n }", "Piece get(String sq) {\n return get(col(sq), row(sq));\n }", "@Override\n\tpublic Map<String, Object> read(int id) {\n\t\tsimpleJdbcCall = new SimpleJdbcCall(jdbcTemplate)\n\t\t\t\t.withProcedureName(\"pa_mat_produnidadmed_Get\").withCatalogName(\"PKG_ALM_CRUD_PRODUNIDADMED\")\n\t\t\t\t.declareParameters(new SqlOutParameter(\"uni\",OracleTypes.CURSOR,new ColumnMapRowMapper()), new SqlParameter(\"p_idprodunidadmed\", Types.INTEGER));\n\t\tSqlParameterSource in = new MapSqlParameterSource().addValue(\"p_idprodunidadmed\", id);\n\t\treturn simpleJdbcCall.execute(in);\n\t}", "@Override\r\n\tpublic Consumer loadConsumerById(Integer id) {\n\t\tConsumerMapper m=this.getSqlSession().getMapper(ConsumerMapper.class);\r\n\t\treturn m.selectByPrimaryKey(id);\r\n\t}", "public String getPlayer(int id) {\n if(id == -1 || mdb == null) {\n return null;\n }\n \n Set<String> strings = mdb.getKeys(false);\n for (String key : strings) {\n List<Integer> messageids = mdb.getIntegerList(key + \".messageids\");\n if (messageids != null && messageids.contains(id)) {\n return key;\n }\n }\n return null;\n }", "public Porto getPorto(int id){\n Porto porto = null;\n Connection conn = null;\n try{\n conn = config.conectar();\n if (conn == null){\n return null;\n }\n \n PreparedStatement ps = conn.prepareStatement(\"SELECT * FROM Porto WHERE Id_Porto = ?\");\n ps.setInt(1, id); \n ResultSet rs = ps.executeQuery();\n \n if(rs.next()){\n porto = montaPorto(rs);\n }\n conn.close();\n \n } catch (SQLException e){\n System.out.println(e.getMessage());\n }\n return porto;\n }", "Case readCase(int caseID);", "@Override\n\tpublic WdReceiveCard selectById(int id) {\n\t\treturn wdReceiveCardMapper.selectById(id);\n\t}", "public void showBoard() {\n System.out.println(\"The board is\");\n System.out.println(\"| 1 | 2 | 3 |\\n| 4 | 5 | 6 | \\n| 7 | 8 | 9 |\");\n }", "public int[][] getMove()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\twhile (br.ready())\r\n\t\t\t\tSystem.out.println(\"Dumping: \" + br.readLine());\r\n\r\n\t\t\tSystem.out.printf(\"Player %d queried for move%n\", colour);\r\n\t\t\tpw.println(\"4\");\r\n\t\t\tpw.flush();\r\n\t\t}\r\n\t\tcatch (IOException e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\tlong start = System.currentTimeMillis();\r\n\t\tMoveThread m = new MoveThread();\r\n\t\tThread t = new Thread(m);\r\n\r\n\t\tt.start();\r\n\r\n\t\t// Query for a move every 10ms until the timeout is reached or the move\r\n\t\t// is received\r\n\t\twhile (m.getMove() == null\r\n\t\t\t\t&& System.currentTimeMillis() - start < timeOut)\r\n\t\t{\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\tThread.sleep(10);\r\n\t\t\t}\r\n\t\t\tcatch (InterruptedException e)\r\n\t\t\t{\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tm.timeout();\r\n\r\n\t\tint[][] move = m.getMove();\r\n\r\n\t\t// Tell a player of timeout\r\n\t\tif (move == null)\r\n\t\t{\r\n\t\t\tSystem.out.printf(\"Player %d timed out while choosing a move%n\",\r\n\t\t\t\t\tcolour);\r\n\t\t\tpw.println(\"6\");\r\n\t\t\tpw.flush();\r\n\t\t}\r\n\r\n\t\treturn move;\r\n\t}", "String displayMyBoard();", "private Board getBoard() {\n return gameStatus.getBoard();\n }", "public Board<?> makeBoard() throws EscapeException {\n\t\tswitch (bi.getCoordinateId()) {\n\t\t\tcase HEX:\n\t\t\t\treturn makeHexBoard();\n\t\t\tcase ORTHOSQUARE:\n\t\t\t\treturn makeOrthoBoard();\n\t\t\tcase SQUARE:\n\t\t\t\treturn makeSquareBoard();\n\t\t\tdefault:\n\t\t\t\tthrow new EscapeException(\"Board does not exist!\");\n\t\t}\n\t}", "void loadCheckerBoard(int tileSize);", "public Aluguel read(int id) {\n MongoCursor<Document> cursor = collection.find().iterator();\r\n Aluguel aluguel = null;\r\n List<Aluguel> alugueis = new ArrayList<>();\r\n if (cursor.hasNext()) {\r\n aluguel = new Aluguel().fromDocument(cursor.next());\r\n alugueis.add(aluguel);\r\n }\r\n alugueis.forEach(a -> System.out.println(a.getId()));\r\n return aluguel;\r\n }", "public abstract AbstractGenesisModel getRow(String id);" ]
[ "0.68267477", "0.6617112", "0.6466417", "0.62636226", "0.62462413", "0.61631477", "0.61562234", "0.61562234", "0.5903055", "0.58683825", "0.58668786", "0.58637303", "0.58611137", "0.5749545", "0.57133067", "0.5707708", "0.5691934", "0.56786376", "0.5664885", "0.56051105", "0.5584966", "0.55603814", "0.5550226", "0.5549368", "0.554713", "0.55445164", "0.5544174", "0.5531446", "0.5524177", "0.5514693", "0.5513601", "0.5506705", "0.54958797", "0.5484092", "0.54588276", "0.5452618", "0.54385847", "0.5435199", "0.54313236", "0.5413197", "0.54096156", "0.5404612", "0.5397224", "0.5386119", "0.53820074", "0.5381134", "0.53724307", "0.5369198", "0.53609973", "0.5354649", "0.5354432", "0.533208", "0.53291154", "0.5328143", "0.53186864", "0.5311048", "0.53074414", "0.5305209", "0.52878696", "0.52874786", "0.5272983", "0.5265924", "0.52579874", "0.5236843", "0.52358264", "0.5226376", "0.52195096", "0.52088493", "0.51998276", "0.519072", "0.5190272", "0.5189052", "0.5188884", "0.5188755", "0.51840085", "0.51632047", "0.515966", "0.5157186", "0.5152445", "0.51481235", "0.5146105", "0.51460654", "0.5144568", "0.51377463", "0.513764", "0.513764", "0.5134256", "0.5132018", "0.51222146", "0.51214623", "0.51212454", "0.5111788", "0.5106872", "0.5105855", "0.51049626", "0.5100298", "0.50985074", "0.5094788", "0.5090738", "0.5089693" ]
0.6282389
3
/ update a board
@PutMapping("/boards") public ResponseEntity<Board> updateBook(@RequestBody Board board) throws URISyntaxException { if(board.getId() == null){ throw new BadRequestAlertException("Invalid id", ENTITY_NAME, "idnull"); } Board result = boardRepository.save(board); return ResponseEntity.ok() .headers(HeaderUtil.createEntityUpdateAlert(applicationName, false, ENTITY_NAME, board.getId().toString())) .body(result); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateBoard() {\n notifyBoardUpdate(board);\n }", "@Override\r\n\tpublic int updateBoard(Board board) {\n\t\treturn session.update(namespace+\"updateBoard\",board);\r\n\t}", "boolean updateBoard(String currentPlayerTurn, String newBoard);", "public void updateBoard(int[][] board, int piece){\r\n this.board=board;\r\n this.piece=piece;\r\n columns = board.length;\r\n rows = board[0].length;\r\n save = Math.min((size / columns), (size / rows));\r\n this.repaint();\r\n repaint();\r\n }", "public void update() {\n System.out.println(\"\\n\\n Board: \\n\");\n System.out.println(\" \" + pos1 + \" | \" + pos2 + \" | \" + pos3 + \" \");\n System.out.println(\" ---+---+--- \");\n System.out.println(\" \" + pos4 + \" | \" + pos5 + \" | \" + pos6 + \" \");\n System.out.println(\" ---+---+--- \");\n System.out.println(\" \" + pos7 + \" | \" + pos8 + \" | \" + pos9 + \" \");\n }", "public void updateBoard() {\n for(SnakePart s : snakePartList) {\n board[s.getSnakePartRowsOld()][s.getSnakePartCollsOld()] = ' ';\n board[s.getSnakePartRowsNew()][s.getSnakePartCollsNew()] = 'S';\n }\n \n for (SnakeEnemyPart e : snakeEnemyPartList) {\n board[e.getSnakeEnemyPartRowsOld()][e.getSnakeEnemyPartCollsOld()] = ' ';\n board[e.getSnakeEnemyPartRowsNew()][e.getSnakeEnemyPartCollsNew()] = 'E';\n }\n }", "void updateDevBoard(LightDevelopmentBoard board);", "void setBoard(Board board);", "Integer update(BoardCell cell, int newPlayerId);", "public void changeBoard(Board board){\n this.board = board;\n }", "@Override\n\tpublic int updateBoard(int num) {\n\t\treturn 0;\n\t}", "public Tile[][] updateBoard(int startRow, int startColumn, int endRow, int endColumn, Tile[][] board) {\n\t\t/*String[] fileRanks = input.split(\" \");\n\t\tint startRow= 8 -Integer.parseInt(fileRanks[0].substring(1));\n\t\tint startColumn = (fileRanks[0].charAt(0)) -'a';\n\t\tint endRow = 8-Integer.parseInt(fileRanks[1].substring(1));\n\t\tint endColumn = (fileRanks[1].charAt(0))-'a'; */\n\n\t\tboard[endRow][endColumn].setOccupyingPiece(null);\n\t\tboard[endRow][endColumn].setOccupyingPiece(board[startRow][startColumn].getOccupyingPiece());\n\t\tboard[startRow][startColumn].setOccupyingPiece(null);\n\n\t\treturn board;\n\t}", "public void update(int[][] board, int t) {\r\n\t\tthis.board = board;\r\n\t\tturn = t;\r\n\t}", "public void updateBoard(BoardDto dto) {\n\r\n\t\ttry {\r\n\t\t\t//DataSource(커넥션풀)에서 DB와 미리 연결된 Connection 객체를 얻어온다.\r\n\t\t\tcon = ds.getConnection();\r\n\t\t\t\r\n\t\t\t// dto에 있는 데이터를 DB에 수정\r\n\t\t\tString sql = \"update Board set name =?, email =?, subject =?, content =? where num = ?\";\r\n\t\t\t\r\n\t\t\tpstmt = con.prepareStatement(sql);\r\n\t\t\tpstmt.setString(1, dto.getName());\r\n\t\t\tpstmt.setString(2, dto.getEmail());\r\n\t\t\tpstmt.setString(3, dto.getSubject());\r\n\t\t\tpstmt.setString(4, dto.getContent());\r\n\t\t\tpstmt.setInt(5, dto.getNum());\r\n\t\t\t\r\n\t\t\tpstmt.executeUpdate();\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\tSystem.out.println(\"BoardDao클래스의 updateBoard() 메서드의 오류 : \" + e);\r\n\t\t} finally {\r\n\t\t\tfreeResource();\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}", "public void updateBoard(Move move) {\n\t\ttry {\n\t\tint type = board.getBoard()[move.getyOrigin()][move.getxOrigin()];\n\t\t\n\t\t\tboard.getBoard()[move.getyOrigin()][move.getxOrigin()] = 0;\n\t\t\tboard.getBoard()[move.getyMove()][move.getxMove()] = type;\n\t\t} catch (NullPointerException e) {\n\t\t\tSystem.out.println(\"Move invalid\");\n\t\t}\n\t}", "public void updateBoard() {\r\n\t\tfor(int i = 0, k = 0; i < board.getWidth(); i+=3) {\r\n\t\t\tfor(int j = 0; j < board.getHeight(); j+=3) {\r\n\t\t\t\t//Check that there are pieces to display\r\n\t\t\t\tif(k < bag.size()) {\r\n\t\t\t\t\tboard.setTile(bag.get(k), i, j);\r\n\t\t\t\t\tk++;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tboard.fillSpace(GridSquare.Type.EMPTY, i, j);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n\tpublic void updateLog(boardDTO board) throws Exception {\n\t\tsqlSession.update(namespace+\".update_board\", board);\n\t}", "@Override\n\tpublic Integer update(BoardDTO dto) {\n\t\treturn mapper.update(dto);\n\t}", "@Override\r\n\tpublic int update(cms_board_vo cms_board_vo) throws Exception {\n\t\treturn sql.update(\"cms_board.update\", cms_board_vo);\r\n\t}", "@Override\n\tpublic int boardUpdate(BoardDto boardDto) {\n\t\treturn dao.boardUpdate(boardDto);\n\t}", "public void updateFields(MessageUpdate msg) {\n System.out.println(\"Updating board.\");\n\n if (msg.getOrigin().i != msg.getDestination().i || msg.getOrigin().j != msg.getDestination().j) {\n Color color = gameService.getPieceColor(msg.getOrigin().i, msg.getOrigin().j);\n\n gameService.setPieceColor(msg.getDestination().i, msg.getDestination().j, color);\n gameService.setPieceColor(msg.getOrigin().i, msg.getOrigin().j, null);\n\n gameService.repaintPanel();\n System.out.println(\"Board repainted.\");\n }\n\n checkIfMyTurn(msg.isCurrPlayer());\n }", "public void updateBoard(Color color, int i, int y) {\r\n\t\tif (color == Color.yellow) {\r\n\t\t\tboard[i][y] = '1';\r\n\r\n\t\t} else if (color == Color.red) {\r\n\t\t\tboard[i][y] = '2';\r\n\t\t}\r\n\t}", "void notifyBoardChanged(List<Pit> changedPits);", "public void setBoard(Board board){this.board = board;}", "@Override\n\tpublic int boardUpdate(SpringBoardVO bvo) {\n\t\treturn springBoardDAO.boardUpdate(bvo);\n\t}", "public void updateBoard(JsonObject inputMsg) {\n\t\tboard[Integer.parseInt(format(inputMsg.get(\"Row\").toString()))][Integer\n\t\t\t\t.parseInt(format(inputMsg.get(\"Column\").toString()))]\n\t\t\t\t\t\t.setText(format(inputMsg.get(\"Letter\").toString()));\n\t}", "public void updateBoard(int columns, int rows){\r\n board = new int[columns][rows];\r\n for(int c=0; c<board[0].length; c++) {\r\n for(int r=0; r<board.length; r++) {\r\n board[r][c] = -1;\r\n }\r\n }\r\n this.columns = columns;\r\n this.rows = rows;\r\n save = Math.min((size / columns), (size / rows));\r\n this.repaint();\r\n }", "public void printBoard() {\n System.out.println(\"Updated board:\");\n for (int row = 0; row < size; row++) {\n for (int col = 0; col < size; col++) {\n\n System.out.print(grid[row][col] + \" \");\n\n }\n System.out.println(\"\");\n }\n }", "public void updateGame(int rowSelected, int colSelected)\n {\n System.out.println(\"Function: GameMain, updateGame()\");\n game.setBoard(game.updateBoard(rowSelected, colSelected, game.getBoard()));\n game.setCurrentState(game.returnGameState(game.getBoard()));\n\n gameGui.update(game.getBoard(), game.getCurrentState());\n\n if (game.getCurrentState() == GameState.WON)\n {\n cleanBoard();\n }\n }", "@Override\n\tpublic int boardModify(Map param) {\n\t\treturn dao.boardModify(session, param);\n\t}", "public void updateBoard(int[][] array) {\n\n\t\tfor(int i=0; i<array.length; i++) {\n\t\t\tfor(int j=0; j<array.length; j++) {\n\t\t\t\ttry {\n\t\t\t\t\tMyNode node = new MyNode(array[i][j], (j*73+119), (i*73+58), 70, 70);\n\t\t\t\t\troot.getChildren().add(node.display());\n\t\t\t\t\tnode = null;\n\t\t\t\t} catch (FileNotFoundException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tarray = null;\n\t\tisUpdatedB = true;\n\t}", "@Override\r\n\tpublic void boardUpdateOne(BoardVo boardVo) {\n\t\tsqlSession.update(namespace +\"boardUpdateOne\", boardVo );\r\n\t}", "public void refreshBoard()\r\n\t{\r\n\r\n\t\tsetLayout (new GridLayout(1,1));\r\n\t\tthis.setBackground(Color.LIGHT_GRAY);\r\n\t\t//Set updated food cells and snakes for the snake panel object\r\n\t\tsp.setFoodCells(foodCells);\r\n\t\tsp.setSnakes(snakes);\r\n\t\t//Refresh/recreate the board with the updated values of food cells and snakes\r\n\t\tsp.refreshSnakePanel();\r\n\r\n\r\n\t\t// Create an input stream to receive data from the server\r\n\t\ttry {\r\n\t\t\t// Create an output stream to send data to the server\r\n\t\t\toutputToServer = new ObjectOutputStream(socket.getOutputStream());\r\n\r\n\t\t\t//Send updated values of foodcells and Snakes (with updated locations/cells of current snake) to the server\r\n\t\t\tsnakeProtocol.setSnakeIndex(snakeIndex);\r\n\t\t\tsnakeProtocol.setFoodCells(foodCells);\r\n\t\t\tsnakeProtocol.setSnakes(snakes);\r\n\r\n\t\t\toutputToServer.writeObject(snakeProtocol);\r\n\t\t\toutputToServer.flush();\r\n\t\t} catch (IOException e1) {\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\r\n\t\tsetFocusable(true);\r\n\t\tsetFocusTraversalKeysEnabled(true);\r\n\r\n\t\t//paint the panel to refresh the board\r\n\t\tpaintAll(getGraphics()); \r\n\r\n\t\t//Get the player status from server. i.e. isPlayerAlive and hasPlayerWon\r\n\t\tgetPlayerStatusFromServer();\r\n\r\n\t\ttry {\r\n\t\t\t//Stop the game if player is not alive or has won the game.\r\n\t\t\t// And update the status in the frame\r\n\t\t\tif(!isPlayerAlive)\r\n\t\t\t{\r\n\t\t\t\t//remove(sp);\r\n\t\t\t\tt.stop();\r\n\t\t\t\tview.playerLost();\r\n\t\t\t\t//get the final scores and refresh the scorecard \r\n\t\t\t\tgetPlayerScoresFromServer();\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tif(hasPlayerWon)\r\n\t\t\t{\r\n\t\t\t\t//remove(sp);\r\n\t\t\t\tt.stop();\r\n\t\t\t\tview.playerWon();\r\n\t\t\t\t//get the final scores and refresh the scorecard \r\n\t\t\t\tgetPlayerScoresFromServer();\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\t//Else, get latest snakeProtocol data from the server. i.e. \r\n\t\t\t// any updates to the food cells and updated snake cell locations for other snakes\r\n\t\t\tinputFromServer = new ObjectInputStream(socket.getInputStream());\r\n\r\n\t\t\t//TODO\r\n\t\t\t//Loop until the object is received. Sometimes this may take time due to synchronization code on the server.\r\n\t\t\tObject obj = null;\r\n\t\t\t//do\r\n\t\t\t//{\r\n\t\t\tobj = inputFromServer.readObject();\r\n\t\t\t//}while (obj == null);\r\n\r\n\t\t\tsnakeProtocol = (SnakeProtocol)obj;\r\n\t\t\tfoodCells = snakeProtocol.getFoodCells();\r\n\r\n\t\t\tsnakes = null;\r\n\t\t\tsnakes = snakeProtocol.getSnakes();\r\n\t\t\tcurrentDirection = snakes.get(snakeIndex).getSnakeDirection();\r\n\t\t\tcurrentSpeed = snakes.get(snakeIndex).getSnakeSpeed();\r\n\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "void drawBoard(Board board);", "@Override\r\n\tpublic int qaBoardUpdate(QaBoardVO qavo) {\r\n\t\tSystem.out.println(\"QaBoardServiceImpl.qaBoardUpdate SUCCESS >>> : \");\r\n\t\t\r\n\t\treturn qaBoardDao.qaBoardUpdate(qavo);\r\n\t}", "public void setBoard(int row, int col, int value) {\n this.board[row][col] = value;\n }", "@Override\n\tpublic int update(BoardDTO boardDTO) throws Exception {\n\t\treturn 0;\n\t}", "void updateBoard(@TTTConstants.Sign int sign, int row, int column) {\n board[row][column] = sign;\n depth++;\n }", "@Override\n public void update(Observable o, Object arg) {\n boardView.repaint();\n }", "void updateBoard() {\r\n\t\tfor (int x = 0; x < length; x++) {\r\n\t\t\tfor (int y = 0; y < length; y++) {\r\n\t\t\t\tif (filled[x][y]) {\r\n\t\t\t\t\t// Draw filled square\r\n\t\t\t\t\tdouble rand = Math.random();\r\n\t\t\t\t\tColor use = new Color(0, 0, 0);\r\n\t\t\t\t\tif (rand < .25) {\r\n\t\t\t\t\t\tuse = a;\r\n\t\t\t\t\t} else if (rand < .50) {\r\n\t\t\t\t\t\tuse = b;\r\n\t\t\t\t\t} else if (rand < .75) {\r\n\t\t\t\t\t\tuse = c;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tuse = d;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tJSquare element = new JSquare(this.getWidth() / length, this.board.getHeight() / length, use, true);\r\n\t\t\t\t\telement.addMouseListener(this);\r\n\t\t\t\t\tboard.add(element);\r\n\t\t\t\t} else {\r\n\t\t\t\t\t// Draw empty square\r\n\t\t\t\t\tJSquare element = new JSquare(this.getWidth() / length, this.board.getHeight() / length,\r\n\t\t\t\t\t\t\tnew Color(192, 192, 192), false);\r\n\t\t\t\t\telement.addMouseListener(this);\r\n\t\t\t\t\tboard.add(element);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void setBoard(Board board) {\n this.board = board;\n }", "public void setBoard(Board board) {\n this.board = board;\n }", "@Override\n\tpublic void modify(BoardVO board) throws Exception {\n\t\tdao.update(board);\n\t}", "public void update(int row, int column)\n {\n //temporary Toast message\n //Toast.makeText(MainActivity.this,\"update: row is \"+row+\"and column is \"+column, Toast.LENGTH_SHORT).show();\n\n //put an X on the Button that was clicked\n // buttons[row][column].setText(\"X\");\n\n int currentPlayer = game.play(row,column);\n\n if (currentPlayer == 1)\n buttons[row][column].setText(\"X\");\n else if (currentPlayer == 2 )\n buttons[row][column].setText(\"O\");\n\n //check if the game is over\n if (game.isGameOver())\n {\n\n gameStatus.setBackgroundColor(Color.CYAN);\n //disable all the buttons\n enableButtons(false);\n gameStatus.setText(game.result());\n showNewGameDialog();\n }\n }", "public void setBoard(int[][] board) {\n this.board = board;\n }", "@Override\r\n\tpublic void setBoard(Board board) {\n\t\t\r\n\t}", "@Override\r\n\tpublic boolean edit(Board1 b) {\n\t\treturn dao.update(b);\r\n\t}", "public void updateBoard(NoticeBoardVO vo){\r\n\t\tString sql=\"update board_notice set userid=?, pass=?,title=?,content=?, fileurl=? where num=?\";\r\n\t\tConnection conn=null;\r\n\t\tPreparedStatement pstmt=null;\r\n\t\ttry{\r\n\t\t\tconn=DBManager.getConnection();\r\n\t\t\tpstmt=conn.prepareStatement(sql);\r\n\t\t\tpstmt.setString(1,vo.getUserid());\r\n\t\t\tpstmt.setString(2,vo.getPass());\r\n\t\t\tpstmt.setString(3, vo.getTitle());\r\n\t\t\tpstmt.setString(4, vo.getContent());\r\n\t\t\tif(vo.getFileurl()!=null){\r\n\t\t\t\tpstmt.setString(5, vo.getFileurl());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tpstmt.setInt(6, vo.getNum());\r\n\t\t\tpstmt.executeUpdate();\r\n\t\t}catch(Exception e){\r\n\t\t\te.printStackTrace();\r\n\t\t}finally{\r\n\t\t\tDBManager.close(conn,pstmt);\r\n\t\t}\r\n\t}", "private void updateBoard(int column, int turn) {\n rowHeight = cfBoard.rowHeight(column);\n int color = cfBoard.getColor(rowHeight-1, column-1);\n switch(column) {\n case 1:\n if(rowHeight == 1) {\n switch(color) {\n case 1:\n r1c1.setBackground(Color.BLACK);\n break;\n case 2:\n r1c1.setBackground(Color.RED);\n break;\n }\n }\n if(rowHeight == 2) {\n switch(color) {\n case 1:\n r2c1.setBackground(Color.BLACK);\n break;\n case 2:\n r2c1.setBackground(Color.RED);\n break;\n }\n }\n if(rowHeight == 3) {\n switch(color) {\n case 1:\n r3c1.setBackground(Color.BLACK);\n break;\n case 2:\n r3c1.setBackground(Color.RED);\n break;\n }\n }\n if(rowHeight == 4) {\n switch(color) {\n case 1:\n r4c1.setBackground(Color.BLACK);\n break;\n case 2:\n r4c1.setBackground(Color.RED);\n break;\n }\n }\n if(rowHeight == 5) {\n switch(color) {\n case 1:\n r5c1.setBackground(Color.BLACK);\n break;\n case 2:\n r5c1.setBackground(Color.RED);\n break;\n }\n }\n if(rowHeight == 6) {\n switch(color) {\n case 1:\n r6c1.setBackground(Color.BLACK);\n break;\n case 2:\n r6c1.setBackground(Color.RED);\n break;\n }\n }\n break;\n case 2:\n if(rowHeight == 1) {\n switch(color) {\n case 1:\n r1c2.setBackground(Color.BLACK);\n break;\n case 2:\n r1c2.setBackground(Color.RED);\n break;\n }\n }\n if(rowHeight == 2) {\n switch(color) {\n case 1:\n r2c2.setBackground(Color.BLACK);\n break;\n case 2:\n r2c2.setBackground(Color.RED);\n break;\n }\n }\n if(rowHeight == 3) {\n switch(color) {\n case 1:\n r3c2.setBackground(Color.BLACK);\n break;\n case 2:\n r3c2.setBackground(Color.RED);\n break;\n }\n }\n if(rowHeight == 4) {\n switch(color) {\n case 1:\n r4c2.setBackground(Color.BLACK);\n break;\n case 2:\n r4c2.setBackground(Color.RED);\n break;\n }\n }\n if(rowHeight == 5) {\n switch(color) {\n case 1:\n r5c2.setBackground(Color.BLACK);\n break;\n case 2:\n r5c2.setBackground(Color.RED);\n break;\n }\n }\n if(rowHeight == 6) {\n switch(color) {\n case 1:\n r6c2.setBackground(Color.BLACK);\n break;\n case 2:\n r6c2.setBackground(Color.RED);\n break;\n }\n }\n break;\n case 3:\n if(rowHeight == 1) {\n switch(color) {\n case 1:\n r1c3.setBackground(Color.BLACK);\n break;\n case 2:\n r1c3.setBackground(Color.RED);\n break;\n }\n }\n if(rowHeight == 2) {\n switch(color) {\n case 1:\n r2c3.setBackground(Color.BLACK);\n break;\n case 2:\n r2c3.setBackground(Color.RED);\n break;\n }\n }\n if(rowHeight == 3) {\n switch(color) {\n case 1:\n r3c3.setBackground(Color.BLACK);\n break;\n case 2:\n r3c3.setBackground(Color.RED);\n break;\n }\n }\n if(rowHeight == 4) {\n switch(color) {\n case 1:\n r4c3.setBackground(Color.BLACK);\n break;\n case 2:\n r4c3.setBackground(Color.RED);\n break;\n }\n }\n if(rowHeight == 5) {\n switch(color) {\n case 1:\n r5c3.setBackground(Color.BLACK);\n break;\n case 2:\n r5c3.setBackground(Color.RED);\n break;\n }\n }\n if(rowHeight == 6) {\n switch(color) {\n case 1:\n r6c3.setBackground(Color.BLACK);\n break;\n case 2:\n r6c3.setBackground(Color.RED);\n break;\n }\n }\n break;\n case 4:\n if(rowHeight == 1) {\n switch(color) {\n case 1:\n r1c4.setBackground(Color.BLACK);\n break;\n case 2:\n r1c4.setBackground(Color.RED);\n break;\n }\n }\n if(rowHeight == 2) {\n switch(color) {\n case 1:\n r2c4.setBackground(Color.BLACK);\n break;\n case 2:\n r2c4.setBackground(Color.RED);\n break;\n }\n }\n if(rowHeight == 3) {\n switch(color) {\n case 1:\n r3c4.setBackground(Color.BLACK);\n break;\n case 2:\n r3c4.setBackground(Color.RED);\n break;\n }\n }\n if(rowHeight == 4) {\n switch(color) {\n case 1:\n r4c4.setBackground(Color.BLACK);\n break;\n case 2:\n r4c4.setBackground(Color.RED);\n break;\n }\n }\n if(rowHeight == 5) {\n switch(color) {\n case 1:\n r5c4.setBackground(Color.BLACK);\n break;\n case 2:\n r5c4.setBackground(Color.RED);\n break;\n }\n }\n if(rowHeight == 6) {\n switch(color) {\n case 1:\n r6c4.setBackground(Color.BLACK);\n break;\n case 2:\n r6c4.setBackground(Color.RED);\n break;\n }\n }\n break;\n case 5:\n if(rowHeight == 1) {\n switch(color) {\n case 1:\n r1c5.setBackground(Color.BLACK);\n break;\n case 2:\n r1c5.setBackground(Color.RED);\n break;\n }\n }\n if(rowHeight == 2) {\n switch(color) {\n case 1:\n r2c5.setBackground(Color.BLACK);\n break;\n case 2:\n r2c5.setBackground(Color.RED);\n break;\n }\n }\n if(rowHeight == 3) {\n switch(color) {\n case 1:\n r3c5.setBackground(Color.BLACK);\n break;\n case 2:\n r3c5.setBackground(Color.RED);\n break;\n }\n }\n if(rowHeight == 4) {\n switch(color) {\n case 1:\n r4c5.setBackground(Color.BLACK);\n break;\n case 2:\n r4c5.setBackground(Color.RED);\n break;\n }\n }\n if(rowHeight == 5) {\n switch(color) {\n case 1:\n r5c5.setBackground(Color.BLACK);\n break;\n case 2:\n r5c5.setBackground(Color.RED);\n break;\n }\n }\n if(rowHeight == 6) {\n switch(color) {\n case 1:\n r6c5.setBackground(Color.BLACK);\n break;\n case 2:\n r6c5.setBackground(Color.RED);\n break;\n }\n }\n break;\n case 6:\n if(rowHeight == 1) {\n switch(color) {\n case 1:\n r1c6.setBackground(Color.BLACK);\n break;\n case 2:\n r1c6.setBackground(Color.RED);\n break;\n }\n }\n if(rowHeight == 2) {\n switch(color) {\n case 1:\n r2c6.setBackground(Color.BLACK);\n break;\n case 2:\n r2c6.setBackground(Color.RED);\n break;\n }\n }\n if(rowHeight == 3) {\n switch(color) {\n case 1:\n r3c6.setBackground(Color.BLACK);\n break;\n case 2:\n r3c6.setBackground(Color.RED);\n break;\n }\n }\n if(rowHeight == 4) {\n switch(color) {\n case 1:\n r4c6.setBackground(Color.BLACK);\n break;\n case 2:\n r4c6.setBackground(Color.RED);\n break;\n }\n }\n if(rowHeight == 5) {\n switch(color) {\n case 1:\n r5c6.setBackground(Color.BLACK);\n break;\n case 2:\n r5c6.setBackground(Color.RED);\n break;\n }\n }\n if(rowHeight == 6) {\n switch(color) {\n case 1:\n r6c6.setBackground(Color.BLACK);\n break;\n case 2:\n r6c6.setBackground(Color.RED);\n break;\n }\n }\n break;\n case 7:\n if(rowHeight == 1) {\n switch(color) {\n case 1:\n r1c7.setBackground(Color.BLACK);\n break;\n case 2:\n r1c7.setBackground(Color.RED);\n break;\n }\n }\n if(rowHeight == 2) {\n switch(color) {\n case 1:\n r2c7.setBackground(Color.BLACK);\n break;\n case 2:\n r2c7.setBackground(Color.RED);\n break;\n }\n }\n if(rowHeight == 3) {\n switch(color) {\n case 1:\n r3c7.setBackground(Color.BLACK);\n break;\n case 2:\n r3c7.setBackground(Color.RED);\n break;\n }\n }\n if(rowHeight == 4) {\n switch(color) {\n case 1:\n r4c7.setBackground(Color.BLACK);\n break;\n case 2:\n r4c7.setBackground(Color.RED);\n break;\n }\n }\n if(rowHeight == 5) {\n switch(color) {\n case 1:\n r5c7.setBackground(Color.BLACK);\n break;\n case 2:\n r5c7.setBackground(Color.RED);\n break;\n }\n }\n if(rowHeight == 6) {\n switch(color) {\n case 1:\n r6c7.setBackground(Color.BLACK);\n break;\n case 2:\n r6c7.setBackground(Color.RED);\n break;\n }\n }\n break;\n }\n \n if (turn%2 ==1) {\n turnButton.setBackground(Color.RED);\n jTextField1.setText(\"It's Red's turn.\");\n }\n if (turn%2 ==0) {\n turnButton.setBackground(Color.BLACK);\n jTextField1.setText(\"It's Black's turn.\");\n }\n \n }", "public void setOpBoardMove(int row, int col, int oppiece)\n\t{\n\t\tboard[row][col] = oppiece;\n\t}", "protected boolean updateBoard(String input) {\t\t\n\t\tfor(int i = 0; i < 10; i++) {\n\t\t\tfor(int j = 0; j < 10; j++) {\n\t\t\t\tif(radar[i][j].equals(input)) {\n\t\t\t\t\tradar[i][j] = \"X \";\n\t\t\t\t\t//TO DO: update ships\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public void BoardWorkerUpdate() {\n\n notifyWorkerBoardUpdate(board, this.getCurrentTurn().getCurrentPlayer().getNickname());\n }", "public void update(int x,int y,Card card);", "public void setState(int row, int col) throws ArrayIndexOutOfBoundsException {\r\n board[row][col] = currentPlayer;\r\n }", "void updateMarketBoard(LightMarketBoard market);", "public void updateScoreBoard() {\n Player player1 = playerManager.getPlayer(1);\n Player player2 = playerManager.getPlayer(2);\n MainActivity mainActivity = (MainActivity) this.getContext();\n\n mainActivity.updateScoreBoard(player1, player2);\n }", "public void dyupdate(DYBoardDTO dto) {\n\t\tDBConn dbconn = DBConn.getDB();\n\t\tConnection conn=null;\n\t\t\n\t\ttry {\n\t\t\tconn=dbconn.getConn();\n\t\t\tconn.setAutoCommit(false);\n\t\t\t\n\t\t\tDYBoardDAO dao = DYBoardDAO.getdao();\n\t\t\tdao.dyupdate(conn, dto);\n\t\t\t\n\t\t\tconn.commit();\n\t\t}catch(NamingException | SQLException e) {\n\t\t\tSystem.out.println(e);\n\t\t\ttry {conn.rollback();}catch(SQLException e2) {}\n\t\t}finally {\n\t\t\tif(conn!=null)try {conn.close();}catch(SQLException e) {}\n\t\t}\n\t\t\n\t}", "public void redraw(int [][] board)\n\t{\n\t\tfor(int i = 0; i < 20; ++i)\n\t\t{\n\t\t\tfor( int j = 0; j < 10; ++j)\n\t\t\t{\n\t\t\t\tswitch (board[i][j])\n\t\t\t\t{\n\t\t\t\t\t//empty\n\t\t\t\t\tcase 0:\tcolors[i][j] = Color.GRAY; \n\t\t\t\t\t\tbreak;\n\t\t\t\t\t//J - shape\n\t\t\t\t\tcase 1:\tcolors[i][j] = Color.BLUE; \n\t\t\t\t\t\tbreak;\n\t\t\t\t\t//Z shape\n\t\t\t\t\tcase 2:\tcolors[i][j] = Color.RED; \n\t\t\t\t\t\tbreak;\n\t\t\t\t\t//L shape\n\t\t\t\t\tcase 3:\tcolors[i][j] = Color.ORANGE; \n\t\t\t\t\t\tbreak;\n\t\t\t\t\t//S shape\n\t\t\t\t\tcase 4:\tcolors[i][j] = new Color(102,255,102); ;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t//I shape\n\t\t\t\t\tcase 5:\tcolors[i][j] = Color.CYAN; \n\t\t\t\t\t\tbreak;\n\t\t\t\t\t//O shape\n\t\t\t\t\tcase 6:\tcolors[i][j] = Color.YELLOW; \n\t\t\t\t\t\tbreak;\n\t\t\t\t\t//T shape\n\t\t\t\t\tcase 7:\tcolors[i][j] = Color.PINK; \n\t\t\t\t\t\tbreak;\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tview.getInGamePanel().getBoardGamePanel().redraw(colors);\t\n\t}", "public void update(){}", "public void update(){}", "private void updateALUTableScorboard() {\n\t\t// Get a copy of the memory stations\n\t\t// ALUStation[] temp_alu = alu_rs;\n\n\t\t// Update the table with current values for the stations\n\t\tfor (int i = 0; i < _lstFuStatusScorboard2.size(); i++) {\n\t\t\t// generate a meaningfull representation of busy\n\t\t\t// String busy_desc = (temp_alu[i].isBusy() ? \"Yes\" : \"No\" );\n\t\t\t// _FunctionUnitsModel.setColumnIdentifiers( new Object[]{\"Cycle\",\n\t\t\t// \"Name\",\"Busy\", \"Op\", \"Fi\", \"Fj\", \"Fk\", \"Qj\",\"Qk\",\"Rj\",\"Rk\"} );\n\n\t\t\t_FunctionUnitsModelScoreboard.setValueAt(_lstFuStatusScorboard2.get(i).getTime(), i, 0);\n\n\t\t\t_FunctionUnitsModelScoreboard.setValueAt(_lstFuStatusScorboard2.get(i).getFu_name(), i, 1);\n\t\t\t_FunctionUnitsModelScoreboard.setValueAt(_lstFuStatusScorboard2.get(i).getBusy(), i, 2);\n\t\t\t_FunctionUnitsModelScoreboard.setValueAt(_lstFuStatusScorboard2.get(i).getOp(), i, 3);\n\t\t\t_FunctionUnitsModelScoreboard.setValueAt(_lstFuStatusScorboard2.get(i).getFi(), i, 4);\n\t\t\t_FunctionUnitsModelScoreboard.setValueAt(_lstFuStatusScorboard2.get(i).getFj(), i, 5);\n\t\t\t_FunctionUnitsModelScoreboard.setValueAt(_lstFuStatusScorboard2.get(i).getFk(), i, 6);\n\t\t\t_FunctionUnitsModelScoreboard.setValueAt(_lstFuStatusScorboard2.get(i).getQj(), i, 7);\n\t\t\t_FunctionUnitsModelScoreboard.setValueAt(_lstFuStatusScorboard2.get(i).getQk(), i, 8);\n\t\t\t_FunctionUnitsModelScoreboard.setValueAt(_lstFuStatusScorboard2.get(i).getRj(), i, 9);\n\t\t\t_FunctionUnitsModelScoreboard.setValueAt(_lstFuStatusScorboard2.get(i).getRk(), i, 10);\n\t\t}\n\t}", "private void updateShuffleboard()\n {\n }", "public void refreshBoard() {\n\t\tif (_board.checkGameWon()) {\n\t\t\t_blinkList = new ArrayList<TokenGUI>();\n\t\t}\n\t\tfor (SingleColumnGUI e : _allColumnsGUI) {\n\t\t\te.refresh();\n\t\t}\n\t\tif (_board.checkGameWon()) {\n\t\t\tstartBlink();\n\t\t}\n\t\telse if (_timer != null && _timer.isRunning()) {\n\t\t\t_timer.stop();\n\t\t}\n\t\t_mainGameGUI.updateStatus();\n\t}", "private void board() {\r\n\t\tfor (int n = 0; n < ROW; n++) {\r\n\t\t\tfor (int m = 0; m < COL; m++) {\r\n\t\t\t\tboard[n][m] = 'X';\r\n\t\t\t}\r\n\t\t}\r\n\t\tturnRemaining = 42;\r\n\t}", "public void setBoard(){\n \n\t m_Pieces[3][3]= WHITE_PIECE;\n m_Pieces[4][4]= WHITE_PIECE;\n m_Pieces[3][4]= BLACK_PIECE;\n m_Pieces[4][3]= BLACK_PIECE;\n for(int x=0;x<WIDTH;x++){\n for(int y=0;y<HEIGHT;y++){\n if(m_Pieces[x][y]==null){\n m_Pieces[x][y]=NONE_PIECE;\n }\n }\n }\n }", "public void updateComputerBoard()\r\n {\r\n boardpanel.removeAll();\r\n for (int i = 0; i < 3; i++) {\r\n for (int j = 0; j < 3; j++) {\r\n buttons[i][j].setEnabled(false);\r\n boardpanel.add(buttons[i][j]);\r\n }\r\n }\r\n }", "public char[][] updateBoard(char[][] board, int[] click) {\n\t\tint i = click[0];\n\t\tint j = click[1];\n\t\tchar c = board[i][j];\n\t\tif (c == 'M') {\n\t\t\tboard[i][j] = 'X';\n\t\t\treturn board;\n\t\t} else if (c == 'E') {\n\t\t\tint count = 0;\n\t\t\tfor (int[] d : directions) {\n\t\t\t\tint a = i + d[0];\n\t\t\t\tint b = j + d[1];\n\t\t\t\tif (a >= 0 && b >= 0 && a < board.length && b < board[0].length) {\n\t\t\t\t\tif (board[a][b] == 'M') {\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (count == 0) {\n\t\t\t\tboard[i][j] = 'B';\n\t\t\t\tfor (int[] d : directions) {\n\t\t\t\t\tint a = i + d[0];\n\t\t\t\t\tint b = j + d[1];\n\t\t\t\t\tif (a >= 0 && b >= 0 && a < board.length && b < board[0].length) {\n\t\t\t\t\t\tif (board[a][b] == 'E') {\n\t\t\t\t\t\t\tboard = updateBoard(board, new int[] { a, b });\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tboard[i][j] = (count+\"\").charAt(0);\n\t\t\t}\n\n\t\t} else if (c == 'B') {\n\t\t\treturn board;\n\t\t}\n\t\treturn board;\n\n\t}", "public void setBoard(Board board) {\n\t\tthis.board = board;\n\t\t\n\t}", "public void replyBoard(BoardDto dto) {\n\t\t\r\n\t\ttry {\r\n\t\t\t//DataSource(커넥션풀)에서 DB와 미리 연결된 Connection 객체를 얻어온다.\r\n\t\t\tcon = ds.getConnection();\r\n\t\t\t\r\n\t\t\t// 1. 부모 글의 pos 보다 큰 글은 pos를 1씪 증가시켜야 한다.\r\n\t\t\tString sql = \"update Board set pos = pos+1 where pos > (select * from (select pos from Board b where num = ? ) as b)\";\r\n\t\t\tpstmt = con.prepareStatement(sql);\r\n\t\t\tpstmt.setInt(1, dto.getNum()); // 전달 받은 num은 부모의 num\r\n\t\t\tpstmt.executeUpdate();\r\n\r\n\t\t\t// dto에 있는 데이터를 DB에 저장\r\n\t\t\tsql = \"insert into Board(name,email,subject,content,pw,count,regdate,pos,depth) values (?,?,?,?,?,0,now(),?,?)\";\r\n\t\t\t\r\n\t\t\t//Connection객체의 힘을 빌려! insert구문을 DB에 실행할!\r\n\t\t\t//PreparedStatement객체를 얻을 수있는데\r\n\t\t\t//이 PreparedStatement객체를 얻어 올때는????를 제외한 나머지 insert구문을\r\n\t\t\t//PreparedStatement객체에 저장하여!!\r\n\t\t\t//PreparedStatement객체 자제를 리턴받아온다.\r\n\t\t\t//아래의 메소드에서!!\r\n\t\t\tpstmt = con.prepareStatement(sql); //insert구문을 실행할 PreparedStatement객체\r\n\t\t\tpstmt.setString(1, dto.getName());\r\n\t\t\tpstmt.setString(2, dto.getEmail());\r\n\t\t\tpstmt.setString(3, dto.getSubject());\r\n\t\t\tpstmt.setString(4, dto.getContent());\r\n\t\t\tpstmt.setString(5, dto.getPw());\r\n\t\t\tpstmt.setInt(6, dto.getPos()+1); \t// 부모의 pos + 1\r\n\t\t\tpstmt.setInt(7, dto.getDepth()+1); \t// 부모의 depth + 1\r\n\t\t\t\r\n\t\t\tpstmt.executeUpdate();\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\tSystem.out.println(\"BoardDao클래스의 replyBoard() 메서드의 오류 : \" + e);\r\n\t\t} finally {\r\n\t\t\tfreeResource();\r\n\t\t}\r\n\t\t\r\n\t}", "private void displayBoard() {\r\n\r\n for (int r = 0; r < 8; r++) {\r\n for (int c = 0; c < 8; c++) {\r\n if (model.pieceAt(r, c) == null)\r\n board[r][c].setIcon(null);\r\n else if (model.pieceAt(r, c).player() == Player.WHITE) {\r\n if (model.pieceAt(r, c).type().equals(\"Pawn\"))\r\n board[r][c].setIcon(wPawn);\r\n\r\n if (model.pieceAt(r, c).type().equals(\"Rook\"))\r\n board[r][c].setIcon(wRook);\r\n\r\n if (model.pieceAt(r, c).type().equals(\"Knight\"))\r\n board[r][c].setIcon(wKnight);\r\n\r\n if (model.pieceAt(r, c).type().equals(\"Bishop\"))\r\n board[r][c].setIcon(wBishop);\r\n\r\n if (model.pieceAt(r, c).type().equals(\"Queen\"))\r\n board[r][c].setIcon(wQueen);\r\n\r\n if (model.pieceAt(r, c).type().equals(\"King\"))\r\n board[r][c].setIcon(wKing);\r\n } else if (model.pieceAt(r, c).player() == Player.BLACK) {\r\n if (model.pieceAt(r, c).type().equals(\"Pawn\"))\r\n board[r][c].setIcon(bPawn);\r\n\r\n if (model.pieceAt(r, c).type().equals(\"Rook\"))\r\n board[r][c].setIcon(bRook);\r\n\r\n if (model.pieceAt(r, c).type().equals(\"Knight\"))\r\n board[r][c].setIcon(bKnight);\r\n\r\n if (model.pieceAt(r, c).type().equals(\"Bishop\"))\r\n board[r][c].setIcon(bBishop);\r\n\r\n if (model.pieceAt(r, c).type().equals(\"Queen\"))\r\n board[r][c].setIcon(bQueen);\r\n\r\n if (model.pieceAt(r, c).type().equals(\"King\"))\r\n board[r][c].setIcon(bKing);\r\n }\r\n repaint();\r\n }\r\n }\r\n if (model.inCheck(Player.WHITE))\r\n JOptionPane.showMessageDialog(null, \"White King in Check\");\r\n if (model.inCheck(Player.BLACK))\r\n JOptionPane.showMessageDialog(null, \"Black King in Check\");\r\n if (model.movingIntoCheck())\r\n JOptionPane.showMessageDialog(null, \"Cannot move into check\");\r\n if (model.isComplete())\r\n JOptionPane.showMessageDialog(null, \"Checkmate\");\r\n }", "public void update(){\n \n // ADD YOU CODE HERE\n\n // Updating the number of steps label\n nbreOfStepsLabel.setText(\"Number of steps: \" + Integer.toString(gameModel.getNumberOfSteps()));\n \n // Updating the icons\n for (int i=0; i<gameModel.getHeigth(); i++) {\n\n for (int j=0; j<gameModel.getWidth(); j++) {\n\n board[i][j].setIconNumber(getIcon(j,i));\n \n } \n }\n\n pack();\n }", "public void updateDataCell();", "public abstract Scoreboard update(Player player);", "private void completeGameBoard() {\n for (int i = 0; i < row; i++) {\n for (int j = 0; j < column; j++) {\n if (game[i][j].equals(open)) {\n int replaceOpen = getNearbyMines(i, j); //calls to get nearby mines\n game[i][j] = String.valueOf(replaceOpen);\n }\n }\n }\n }", "void update(Room room);", "public void setBoard(GUIBoard board) {\n this.board = board;\n }", "public void update() {\n\t\t//Start updting the image\n\t\timg.loadPixels();\n\t\t\n\t\t//for every cell apply a color\n\t\tGridCell[] cells = grid.getCells();\n\t\tfor(int i = 0 ; i < cells.length; i++) {\n\t\t\timg.pixels[i] = cells[i].getMiniMapColor(ignoreDiscovered);\n\t\t}\n\t\t\n\t\t//Now update the image\n\t\timg.updatePixels();\n\t}", "public void newBoard(LiteBoard board) {\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tmainBoard.commitNewValues();\n\t\t\t}", "public abstract void update(Grid theOldGrid, Grid theNewGrid);", "void displayBoard();", "public void updateCell() {\n alive = !alive;\n simulator.getSimulation().changeState(xPosition, yPosition);\n setColor();\n }", "private void easyMove(Board board) {\n\t\t\r\n\t}", "@Override\n public void update(Move move) {\n System.out.println(\"\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\");\n if (move == null) {\n printBoard();\n System.out.println(\"Opponent Passed\");\n return;\n }\n System.out.println(\"Your turn: \"+player);\n board.update(move, enemy.player);\n printBoard();\n\n }", "private void updateBoard() throws FileNotFoundException {\r\n\t\tSystem.out.println(\"[DEBUG LOG/Game.java] Creating board image\");\r\n\t\tBufferedImage combined = new BufferedImage(GlobalVars.images.get(\"Board1\").getWidth(), GlobalVars.images.get(\"Board1\").getHeight(), BufferedImage.TYPE_INT_ARGB);\r\n\t\t\r\n\t\tGraphics g = combined.getGraphics();\r\n\t\t// Draws board template first\r\n\t\tg.drawImage(GlobalVars.images.get(\"Board1\"), 0, 0, null);\r\n\t\t\r\n\t\t// Loops through contents and adds secrets, artifacts, idols\r\n\t\tfor (int i = 0; i < mapContents.length; i++) {\r\n\t\t\tif (mapContents[i] != null && mapContents[i] != \"heart\") {\r\n\t\t\t\tint offsetX = 4;\r\n\t\t\t\tint offsetY = -1;\r\n\t\t\t\tif (mapContents[i].startsWith(\"Minor\")) {\r\n\t\t\t\t\toffsetX = 7;\r\n\t\t\t\t\toffsetY = 3;\r\n\t\t\t\t}\r\n\t\t\t\t// Specific spots to this map\r\n\t\t\t\tif (i == 18) {\r\n\t\t\t\t\tg.drawImage(GlobalVars.images.get(mapContents[i]), 206, 286, null);\r\n\t\t\t\t} else if (i == 19) {\r\n\t\t\t\t\tg.drawImage(GlobalVars.images.get(mapContents[i]), 299, 287, null);\r\n\t\t\t\t} else if (i == 25) {\r\n\t\t\t\t\tg.drawImage(GlobalVars.images.get(mapContents[i]), 297, 352, null);\r\n\t\t\t\t} else if (i == 28) {\r\n\t\t\t\t\tint num = Integer.parseInt(mapContents[i].substring(10));\r\n\t\t\t\t\tif (num > 0) {\r\n\t\t\t\t\t\tg.drawImage(GlobalVars.images.get(\"MonkeyIdol\"), 28, 369, null);\r\n\t\t\t\t\t\tif (num > 1) {\r\n\t\t\t\t\t\t\tg.drawImage(GlobalVars.images.get(\"MonkeyIdol\"), 28, 395, null);\r\n\t\t\t\t\t\t\tif (num > 2) {\r\n\t\t\t\t\t\t\t\tg.drawImage(GlobalVars.images.get(\"MonkeyIdol\"), 28, 422, null);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tg.drawImage(GlobalVars.images.get(mapContents[i]), GlobalVars.playerCoordsPerRoom[i][0]+offsetX, GlobalVars.playerCoordsPerRoom[i][1]+offsetY, null);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Draws dragons\r\n\t\tif (attackLevel == 0) g.drawImage(GlobalVars.images.get(\"Dragon\"), 395, 548, null);\r\n\t\telse if (attackLevel == 1) g.drawImage(GlobalVars.images.get(\"Dragon\"), 456, 542, null);\r\n\t\telse if (attackLevel == 2) g.drawImage(GlobalVars.images.get(\"Dragon\"), 513, 510, null);\r\n\t\telse if (attackLevel == 3) g.drawImage(GlobalVars.images.get(\"Dragon\"), 549, 462, null);\r\n\t\telse if (attackLevel == 4) g.drawImage(GlobalVars.images.get(\"Dragon\"), 561, 412, null);\r\n\t\telse if (attackLevel == 5) g.drawImage(GlobalVars.images.get(\"Dragon\"), 551, 349, null);\r\n\t\telse {\r\n\t\t\tg.drawImage(GlobalVars.images.get(\"Dragon\"), 552, 287, null);\r\n\t\t}\r\n\t\t\r\n\t\t// Draws characters\r\n\t\tg.drawImage(GlobalVars.images.get(\"RedChar\"), p1.getPiece().getX(), p1.getPiece().getY(), null);\r\n\t\tif (playerCount >= 2) {\r\n\t\t\tg.drawImage(GlobalVars.images.get(\"BlueChar\"), p2.getPiece().getX(), p2.getPiece().getY(), null);\r\n\t\t\tif (playerCount >= 3) {\r\n\t\t\t\tg.drawImage(GlobalVars.images.get(\"YellowChar\"), p3.getPiece().getX(), p3.getPiece().getY(), null);\r\n\t\t\t\tif (playerCount >= 4) {\r\n\t\t\t\t\tg.drawImage(GlobalVars.images.get(\"GreenChar\"), p4.getPiece().getX(), p4.getPiece().getY(), null);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Writes the combined image into a file\r\n\t\ttry {\r\n\t\t\tImageIO.write(combined, \"PNG\", new File(\"newboard.png\"));\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\t// Builds an embed and sends it to the filesChannel\r\n\t\tEmbedBuilder embed = new EmbedBuilder();\r\n\t\tembed.setTitle(gameChannel.getName());\r\n\t\tembed.setColor(Color.GRAY);\r\n\t\tInputStream test = new FileInputStream(\"newboard.png\");\r\n\t\tembed.setImage(\"attachment://newboard.png\");\r\n\t\tMessageBuilder m = new MessageBuilder();\r\n\t\tm.setEmbed(embed.build());\r\n\t\tGlobalVars.filesChannel.sendFile(test, \"newboard.png\", m.build()).queue();\r\n\t}", "public void update(BoardItemVersion object) {\n\n\t}", "public void updateRoom(Room room);", "public void setBoardLocation(int boardLocation) {this.boardLocation = boardLocation;}", "private void overwritePosition(int oldRow, int oldCol, int newRow, int newCol){\n gameBoard[newRow][newCol] = gameBoard[oldRow][oldCol];\n gameBoard[oldRow][oldCol] = new EmptyPiece();\n }", "public void updateFloor(Position pos, Board board) {\n\t\t\tFloor_c curr = (Floor_c)board.get(pos);\n\t\t\t\n\t\t\tif(curr.isFull()) {\n\t\t\t\tcellLabels.get(pos.getColumn(), pos.getRow()).setText(board.get(pos).toString());\n\t\t\t\tcellLabels.get(pos.getColumn(), pos.getRow()).setBackground(Color.blue);\n\t\t\t}else {\n\t\t\t\tcellLabels.get(pos.getColumn(), pos.getRow()).setText(\"\");\n\t\t\t\tcellLabels.get(pos.getColumn(), pos.getRow()).setBackground(Color.gray);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}", "public void setBoard() {\n bestPieceToMove = null;\n bestPieceFound = false;\n bestMoveDirectionX = 0;\n bestMoveDirectionY = 0;\n bestMoveFound = false;\n killAvailable = false;\n lightCounter = 12;\n darkCounter = 12;\n for (int y = 0; y < boardSize; y++) {\n for (int x = 0; x < boardSize; x++) {\n board[y][x] = new Field(x, y);\n if (y < 3 && board[y][x].getPlaceable()) {\n board[y][x].setPiece(new Piece(PieceColor.DARK, PieceType.MEN));\n } else if (y > 4 && board[y][x].getPlaceable()) {\n board[y][x].setPiece(new Piece(PieceColor.LIGHT, PieceType.MEN));\n }\n }\n }\n }", "public void refreshBoard(final ShipType ships[][], final ShotField shots[][]) {\n shotsBoard = shots;\n shipsBoard = ships;\n repaint();\n }", "private void updateCanvas()\r\n\t{\r\n\t\tboardCanvas.repaint();\r\n\t\tdiceCanvas.repaint();\r\n\t}", "public void updateGame(Seed theSeed, int rowSelected, int columnSelected) {\n \n if (hasWon(theSeed, rowSelected, columnSelected)) { // check for win\n currentState = (theSeed == Seed.CROSS) ? GameState.CROSS_WIN : GameState.NOUGHT_WIN;\n \n } else if (isDraw()) { // checks for draw\n currentState = GameState.DRAW;\n }\n // Otherwise, no change to current state (still GameState.PLAYING).\n }", "public void updateScoreboards(String gameId, String levelId) {\n List<Score> highscore = getPersistence().getTopScores(gameId, levelId, 50);\n for (Scoreboard scoreboard : scoreboards.get(Tuple.of(gameId, levelId))) {\n scoreboard.update(highscore);\n }\n }", "@Override\r\n\tpublic void boardUpdateHitsUp(int boardNo) {\n\t\tsqlSession.update(namespace +\"boardUpdateHitsUp\", boardNo);\r\n\t}", "public void refreshDisplay(){\r\n for (int i = 0; i < 6; i++) {\r\n for (int j = 0; j < 7; j++) {\r\n switch (boardRep[i][j]) { //maybe not best style to have default red but whatever (change board\r\n case 0:\r\n boardSquares[i][j].setBackground(Color.WHITE);\r\n break;\r\n case 1:\r\n boardSquares[i][j].setBackground(Color.BLACK);\r\n break;\r\n default:\r\n boardSquares[i][j].setBackground(Color.RED);\r\n break;\r\n }\r\n }\r\n }\r\n \r\n if (blackToPlay){ //change to move squares\r\n for (int i = 0; i < 7; i++) {\r\n moveSelect[i].setBackground(Color.BLACK);\r\n }\r\n } else{\r\n for (int i = 0; i < 7; i++) {\r\n moveSelect[i].setBackground(Color.RED);\r\n }\r\n }\r\n \r\n \r\n }", "public void DisplayBoard(Board bord);", "public static void setBoard(char[][] board) {\n\t\tBoard.board = board;\n\t}", "String drawBoard();" ]
[ "0.8228504", "0.77267486", "0.7551644", "0.7433816", "0.7390509", "0.7364081", "0.7362419", "0.71481115", "0.7136472", "0.71355283", "0.7028588", "0.7007212", "0.6993796", "0.69007564", "0.68649876", "0.6848041", "0.6811383", "0.6805079", "0.67722535", "0.67710453", "0.6740973", "0.6719818", "0.66575587", "0.6648892", "0.66347057", "0.66326606", "0.6559495", "0.65467703", "0.65053195", "0.6500461", "0.64928085", "0.6482992", "0.64507705", "0.6449061", "0.64473367", "0.6442026", "0.6437352", "0.6436127", "0.6435411", "0.64344376", "0.64274657", "0.64274657", "0.63539076", "0.63298744", "0.63272846", "0.6321911", "0.62833154", "0.6282732", "0.6279697", "0.62728095", "0.62599766", "0.62592256", "0.62562436", "0.6243615", "0.6237675", "0.62322676", "0.6222002", "0.6188944", "0.61880183", "0.61880183", "0.6173264", "0.6167606", "0.6163935", "0.61612415", "0.6151067", "0.61499673", "0.61148757", "0.611452", "0.61134726", "0.6112367", "0.61079895", "0.6107162", "0.61016023", "0.6097433", "0.60962325", "0.608588", "0.6085627", "0.6082749", "0.6067551", "0.60565484", "0.60563326", "0.6054796", "0.60527796", "0.6050751", "0.60443497", "0.6040902", "0.60344094", "0.60271174", "0.6025779", "0.60123014", "0.59934205", "0.5984945", "0.5971072", "0.59675676", "0.59641564", "0.5962786", "0.5957048", "0.59537274", "0.5941798", "0.5926952" ]
0.6280421
48
/ delete a board
@DeleteMapping("/boards/{id}") public ResponseEntity<Void> deleteBoard(@PathVariable Long id){ boardRepository.deleteById(id); return ResponseEntity.noContent().headers(HeaderUtil.createEntityDeletionAlert(applicationName, false, ENTITY_NAME, id.toString())).build(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void deleteBoard(long id);", "@Override\n\tpublic int deleteBoard(int num) {\n\t\treturn 0;\n\t}", "@Override\r\n\tpublic int deleteBoard(BoardVO board) {\n\t\treturn 0;\r\n\t}", "public void deleteBoard(int no) {\n\t\t\r\n\t\ttry {\r\n\t\t\tcon = ds.getConnection();\r\n\t\t\t\r\n\t\t\t// no값인 게시글 삭제\r\n\t\t\tString sql = \"delete from Board where num = \" + no;\r\n\t\t\t\r\n\t\t\tpstmt = con.prepareStatement(sql);\r\n\t\t\tpstmt.executeUpdate();\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\tSystem.out.println(\"BoardDao클래스의 deleteBoard() 메서드의 오류 : \" + e);\r\n\t\t} finally {\r\n\t\t\tfreeResource();\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic void boardDelete(int boardNo) {\n\t\tsqlSession.delete(namespace +\"boardDelete\", boardNo);\r\n\t}", "public void deleteBoard(String num){\r\n\t\tString sql=\"delete from board_notice where num=?\";\r\n\t\tConnection conn=null;\r\n\t\tPreparedStatement pstmt=null;\r\n\t\ttry{\r\n\t\t\tconn=DBManager.getConnection();\r\n\t\t\tpstmt=conn.prepareStatement(sql);\r\n\t\t\tpstmt.setString(1, num);\r\n\t\t\tpstmt.executeUpdate();\r\n\t\t}catch(Exception e){\r\n\t\t\te.printStackTrace();\r\n\t\t}finally{\r\n\t\t\tDBManager.close(conn,pstmt);\r\n\t\t}\r\n\t}", "@Override\n\tpublic Integer delete(BoardDTO dto) {\n\t\treturn mapper.delete(dto);\n\t}", "@Override\n\tpublic int boardDelete(SpringBoardVO bvo) {\n\t\treturn springBoardDAO.boardDelete(bvo);\n\t}", "@Override\n\tpublic void likedelete(boardDTO board) throws Exception {\n\t\tsqlSession.delete(namespace+\".likedelete\", board);\n\t}", "@Override\r\n\tpublic int delete(int cms_bno) throws Exception {\n\t\treturn sql.delete(\"cms_board.delete\", cms_bno);\r\n\t}", "@Override\n\tpublic void boardDelete(int boardNum) throws Exception {\n\t\tdao.boardDelete(boardNum);\n\t}", "@Override\n\tpublic int boardLikeDelete(Map param) {\n\t\treturn dao.boardLikeDelete(session, param);\n\t}", "@Override\n\tpublic int boardDelete(int boardId) {\n\t\treturn dao.boardDelete(session, boardId);\n\t}", "@Override\r\n\tpublic int qaBoardDelete(QaBoardVO qavo) {\r\n\t\tSystem.out.println(\"QaBoardServiceImpl.qaBoardDelete SUCCESS >>> : \");\r\n\t\t\r\n\t\treturn qaBoardDao.qaBoardDelete(qavo);\r\n\t}", "@Override\n\tpublic void deleteLog(boardDTO board) throws Exception {\n\t\tsqlSession.delete(namespace+\".log_delete\",board);\n\t\tsqlSession.delete(namespace+\".deleteHashtag\",board);\n\t\tsqlSession.delete(namespace+\".deleteFile\",board);\n\t\tsqlSession.delete(namespace+\".likedelete\",board);\n\t}", "@Override\n\tpublic int admin_remove(BoardVO obj) {\n\t\treturn 0;\n\t}", "@RequestMapping(\"/deleteBoard/{board_id}\")\n public String deleteBoard(@PathVariable(value = \"board_id\") String board_id,\n Authentication auth)\n throws ResourceNotFoundException {\n ResponseEntity<Board> result = boardController.getBoardById(board_id);\n if(result.getStatusCode().is2xxSuccessful() && result.getBody() != null) {\n Board board = result.getBody();\n\n if (board != null && board.getUserId().equals(auth.getName())) {\n boardController.deleteBoard(board_id);\n return \"redirect:/\";\n }\n else\n return \"errorPages/403\";\n }\n\n return \"errorPages/404\";\n }", "@Override\n\tpublic void deleteHashFile(boardDTO board) throws Exception {\n\t\tsqlSession.delete(namespace+\".deleteFile\",board);\n\t\tsqlSession.delete(namespace+\".deleteHashtag\",board);\n\t\tsqlSession.delete(namespace+\".likedelete\",board);\n\t}", "@Override\n\tpublic int boardCommentDelete(Map param) {\n\t\treturn dao.boardCommentDelete(session,param);\n\t}", "public void hitsDeleteWithBoard(int boardNo) {\n\t\tsqlSession.delete(namespace +\"hitsDeleteWithBoard\", boardNo);\r\n\t}", "public void dydelete(int bno) {\n\t\t\n\t\tDBConn dbconn = DBConn.getDB();\n\t\tConnection conn=null;\n\t\ttry {\n\t\t\tconn=dbconn.getConn();\n\t\t\tconn.setAutoCommit(false);\n\t\t\t\n\t\t\tDYBoardDAO dao = DYBoardDAO.getdao();\n\t\t\tdao.dydelete(conn,bno);\n\t\t\t\n\t\t\tconn.commit();\n\t\t}catch(NamingException | SQLException e) {\n\t\t\tSystem.out.println(e);\n\t\t}finally {\n\t\t\tif(conn!=null)try {conn.close();}catch(SQLException e) {}\n\t\t}\n\t}", "public void clearBoard() \n {\n\tfor(int i=0;i<rows;i++)\n\t {\n\t\tfor(int j=0;j<cols;j++)\n\t\t {\n\t\t\tfrontBoard[i][j] = \"00\";\n\t\t\tbackBoard[i][j] = \"00\";\n\t\t }\n\t }\n\tunused = new Piece[pieces.length];\n\tfor(int i=0;i<pieces.length;i++)\n\t {\n\t\t\tunused[i] = pieces[i];\n\t }\n }", "@Override\r\n\tpublic void boardDeleteWithMember(int memberNo) {\n\t\tsqlSession.delete(namespace +\"boardDeleteWithMember\", memberNo);\r\n\t}", "private static void deleteBb() {\n // get the name of the billboard to delete from the Jlist\n String name = (String) list.getSelectedValue();\n // ensure that there is a name selected\n if (name == null || name.equals(\"\")) {\n lbl_message.setText(\"No billboard selected\");\n Log.Confirmation(\"No billboard selected\");\n return;\n }\n // set the action request to the server\n user.setAction(\"Delete Billboard\");\n // Attempt connection to server\n if (AttemptConnect()) {\n try {\n // Send user object to server\n objectStreamer.Send(user);\n // send the name of the billboard to be deleted from the database\n dos.writeUTF(name);\n // check if deleted successfully\n if (dis.readBoolean()) {\n // remove the billboard from the list\n listUserBillboards.userBillboards.remove(name);\n listBillboards.billboards.remove(name);\n if (usersListModel != null) {\n usersListModel.removeElement(name);\n }\n if (billboardListModel != null) {\n billboardListModel.removeElement(name);\n }\n if (allListModel != null) {\n allListModel.removeElement(name);\n } else if (listModel != null) {\n listModel.removeElement(name);\n }\n // display confirmation message to the user and post log confirmation\n lbl_message.setText(\"Billboard deleted\");\n Log.Confirmation(\"Billboard successfully deleted\");\n getSchedulesList();\n scheduleListModel.clear();\n scheduleListModel.addAll(listSchedules.schedules);\n }\n // If billboard not deleted then display message to the user\n else {\n lbl_message.setText(\"Billboard not deleted\");\n Log.Error(\"Error when attempting to delete billboard\");\n }\n }\n // catch any unanticipated exceptions and print to console\n catch (IOException | ClassNotFoundException e) {\n e.printStackTrace();\n Log.Error(\"Failed to delete billboard\");\n }\n // Disconnect from server\n AttemptDisconnect();\n }\n // Post message to user if unable to connect to server\n else {\n Log.Error(\"Unable to connect to server\");\n }\n resetFields();\n fieldsEnabled(false);\n }", "public void remove(int r, int c)\n\t{\n\t\tboard[r][c] = 0;\n\t}", "public static void clearBoard(){\n for(int i = 0; i < Board.X_UPPER_BOUND * Board.Y_UPPER_BOUND ; i++){\n Board.board[i] = null;\n }\n white_player.setpieceList(null);\n black_player.setpieceList(null);\n }", "public void cleanBoard()\n {\n System.out.println(\"Function: GameMain, cleanBoard()\");\n game.setBoard(game.returnRandomBoard(ROWS, COLS));\n }", "@Override\r\n\tpublic int deletBoard(int keyNumber) {\n\t\treturn session.delete(namespace+\"deletBoard\", keyNumber);//mapper에 등록 한 아이디값과 경로(statement),받을값(파라메터지정-인터페이스 키값)\r\n\t}", "public void deleteRoom(Room room);", "public void deleteChatRoom(ChatRoom cr);", "public void postDelete(int post_no) {\n\t\ttry (Connection conn = ConnectionProvider.getConnection()) {\n\t\t\tboardDao.postDelete(conn, post_no);\n\t\t} catch (SQLException e) {\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}", "void getBlowUp(int x, int y) {\n //YOUR CODE HERE\n\t whichBoard.remove(x, y);\n }", "public void dyrepdelete(int repno) {\n\t\tDBConn dbconn = DBConn.getDB();\n\t\tConnection conn = null;\n\t\t\n\t\ttry {\n\t\t\tconn=dbconn.getConn();\n\t\t\tconn.setAutoCommit(false);\n\t\t\t\n\t\t\tDYBoardDAO dao = DYBoardDAO.getdao();\n\t\t\tdao.dyrepdelete(conn,repno);\n\t\t\t\n\t\t\tconn.commit();\n\t\t}catch(NamingException | SQLException e){\n\t\t\tSystem.out.println(e);\n\t\t\ttry {conn.rollback();}catch(SQLException e2) {}\n\t\t}finally {\n\t\t\tif(conn!=null)try {conn.close();}catch(SQLException e) {}\n\t\t}\n\t}", "public MainPage deleteBoard(){\n configTab.click();\n deleteBtn.click();\n confirmDeleteCheckBox.click();\n okBtn.click();\n wait.until(ExpectedConditions.visibilityOf(nothingSelectedLbl));\n return new MainPage();\n }", "public void clearBoardData()\n {\n player_turn = RED;\n total_moves = 0;\n int[][] clear_board = new int[7][6];\n for (int i = 0; i < clear_board.length; i++)\n current_board[i] = clear_board[i].clone();\n }", "public void removeFromCol(int value, int col){\n\tfor(int r = 0; r < 9; r++){\r\n\t if (board[r][col].remove(value) == true) {\r\n\t\tassign (board[r][col].getGuess(), r, col);\r\n\t }\r\n\t}\r\n }", "public void cleanBoard(){\n\n for(PositionInBoard position : positionsThatArePainted){\n int i = position.row();\n int j = position.column();\n if ((i+j)%2==0) {\n board[i][j].setBackground(Color.BLACK);\n }\n else {\n board[i][j].setBackground(Color.WHITE);\n }\n\n board[i][j].setText(null);\n board[i][j].setIcon(null);\n }\n positionsThatArePainted.clear();\n }", "public void clearBoard() {\r\n\t\tbody.removeAll();\r\n\t\tpiece.clear();\r\n\t\t\r\n\t\t// Assign1, Remove 'K' label of all pieces\r\n\t\tfor (int i=0; i<blackPieces.length; i++) {\r\n\t\t\tblackPieces[i].setText(null);\r\n\t\t}\r\n\t\tfor (int i=0; i<whitePieces.length; i++) {\r\n\t\t\twhitePieces[i].setText(null);\r\n\t\t}\r\n\t\tbody.repaint();\r\n\t}", "private void clearBoard() {\n for (int i = 0; i < BOARD_HEIGHT * BOARD_WIDTH; ++i) {\n board[i] = Tetrominoe.NoShape;\n }\n }", "@Test\r\n\tpublic void checkDeleteTest() {\n\t\tassertFalse(boardService.getGameRules().checkDelete(board.field[13][13])); \r\n\t}", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif(!chesses.isEmpty()) {\r\n\t\t\t\t\tChess to_remove = chesses.getLast();\r\n\t\t\t\t\tPoint to_delete = to_remove.getCor();\r\n\t\t\t\t\tisChess[to_delete.x][to_delete.y] = 0;\r\n\t\t\t\t\tchesses.remove(chesses.size() - 1);\r\n\t\t\t\t\tturn = 1 - turn;\t\r\n\t\t\t\t\trepaint();\r\n\t\t\t\t}\r\n\t\t\t}", "public void removePiece(int x, int y)\r\n {\r\n if(isValidSqr(x, y)) board[x][y] = null;\r\n }", "Board() {\n clear();\n }", "Board() {\n clear();\n }", "private void removePiece(int row, int col, int storedRow, int storedCol){\r\n int pieceRow = -1;\r\n int pieceCol = -1;\r\n if(col > storedCol && row > storedRow){\r\n pieceRow = row-1;\r\n pieceCol = col-1;\r\n }\r\n if(col > storedCol && row < storedRow){\r\n pieceRow = row+1;\r\n pieceCol = col-1;\r\n }\r\n if(col < storedCol && row > storedRow){\r\n pieceRow = row-1;\r\n pieceCol = col+1;\r\n }\r\n if(col < storedCol && row < storedRow){\r\n pieceRow = row+1;\r\n pieceCol = col+1;\r\n }\r\n checks[pieceRow][pieceCol] = 0;\r\n if(isGame) nextPlayer.subCheck();\r\n }", "void removeNeighbors();", "public Piece remove (int x, int y){\n\t\tif (x < 0 || x > N || y < 0 || y > N){\n\t\t\tSystem.out.println(\"Off the board! (Out of Bounds)\");\n\t\t\treturn null;\n\t\t}\n\t\telse if (pieceAt(x,y) == null) {\n\t\t\tSystem.out.println(\"There isn't a piece here! (Null)\");\n\t\t\treturn null;\n\t\t}\t\n\t\telse{\n\t\t\tPiece temp = pieceArray[x][y];\n\t\t\tpieceArray[x][y] = null;\n\t\t\t\n\t\t\treturn temp;\n\t\t}\n\t}", "public void deleteForum(Forum forum);", "public void delete(GraphicsContext gc2, int x, int y, int pixels) {\n gc2.setFill(Color.WHITE);\n gc2.setStroke(Color.CYAN);\n gc2.fillRect(x, y, pixels, pixels);\n gc2.strokeRect(x, y, pixels, pixels);\n }", "private void undoPosition() {\r\n String undoingBoard = listOfBoards.pop();\r\n listOfMoves.pop();\r\n for (Square sq : map.keySet()) {\r\n char piece = undoingBoard.charAt(sq.index() + 1);\r\n if (piece == '-') {\r\n map.put(sq, EMPTY);\r\n }\r\n if (piece == 'B') {\r\n map.put(sq, BLACK);\r\n }\r\n if (piece == 'W') {\r\n map.put(sq, WHITE);\r\n }\r\n if (piece == 'K') {\r\n map.put(sq, KING);\r\n }\r\n board[sq.col()][sq.row()] = map.get(sq);\r\n }\r\n _moveCount -= 1;\r\n _turn = _turn.opponent();\r\n _repeated = false;\r\n }", "public void deleteColors();", "public void undoBoard(Move move) {\n\t\t\n\t\tint type = board.getBoard()[move.getyMove()][move.getxMove()];\n\t\t\n\t\tboard.getBoard()[move.getyOrigin()][move.getxOrigin()] = type;\n\t\tboard.getBoard()[move.getyMove()][move.getxMove()] = 0;\n\t\tmodel.undoChecker(move, model.findChecker(move.getxMove(), move.getyMove()));\n\t\t\n\t\t\n\t\n\t}", "private void delete() {\n\n\t}", "public void removeFromRow(int value, int row){\n\tfor (int c = 0; c < 9; c ++){\r\n\t if (board[row][c].remove(value) == true) {\r\n\t\tassign (board[row][c].getGuess(), row, c);\r\n\t }\r\n\t} \r\n }", "@SuppressWarnings(\"static-access\")\r\n\t@Test\r\n\tpublic void crearBillboardTest() {\r\n\r\n\t\tpd.crearBillboard();\r\n\t\tpd.pm.deletePersistent(pd.b1);\r\n\t\tpd.pm.deletePersistent(pd.b2);\r\n\t\tpd.pm.deletePersistent(pd.b3);\r\n\t\tpd.pm.deletePersistent(pd.b4);\r\n\r\n\t}", "private void borrarPieza(PosicionAjedrez pos){\n\t\tint fila= transformar(pos).getFila();\n\t\tint col= transformar(pos).getColumna();\n\n\t\tthis.getChildren().remove(tablero[col][fila]);\n\t\ttablero[col][fila]=new Canvas(CASILLERO_ANCHO,CASILLERO_ALTO);\n\t\ttablero[col][fila].setTranslateX(CASILLERO_ANCHO*col);\n\t\ttablero[col][fila].setTranslateY(CASILLERO_ALTO*fila);\n\n\t\tthis.getChildren().add(tablero[col][fila]);\n\t}", "public E remove(String passw, E dato)\n throws IncorrectPasswordException, InvalidActionException, NullPointerException{\n\n if(passw == null || dato == null) throw new NullPointerException();\n if(!this.MasterPassw.equals(passw)) throw new IncorrectPasswordException(\"Password Errata\");\n if(dato.GetCategory() == null) throw new InvalidActionException(\"Dato non presente nella Board\");\n if(!categories.get(dato.GetCategory()).getDati().contains(dato))\n throw new InvalidActionException(\"Dato non presente nella board\");\n String cat = dato.GetCategory();\n Category<E> aux = categories.get(cat);\n aux.removeDato(dato);\n return dato;\n }", "public void removeLastEntry(){\r\n\t\tboards.remove(boards.size() -1 );\r\n\t}", "public void clear() {\n for (int row = 0; row < 8; ++row) {\n for (int col = 0; col < 8; ++col) {\n board[row][col] = null;\n }\n }\n whitePieces = new LinkedList<Piece>();\n blackPieces = new LinkedList<Piece>();\n }", "@Override\n\tpublic void deleteProjectTeam(ProjectTeamBean bean) {\n\t\t\n\t}", "public void remove(int oldRow, int oldCol)\n {\n Maze.maze[oldRow][oldCol] = ' ';\n }", "@Test\r\n public void testRemoveNodeByRowColumnIndex2() {\r\n System.out.println(\"removeNodeByRowColumnIndex2\");\r\n int row = 0;\r\n int column = 0;\r\n GridPane gridPane = new GridPane();\r\n ImageView img = null;\r\n ChessMain instance = new ChessMain();\r\n instance.removeNodeByRowColumnIndex2(row, column, gridPane);\r\n // TODO review the generated test code and remove the default call to fail.\r\n \r\n }", "public void removePawn(Position position) {\n\t\tboardGrid[position.getRow()][position.getColumn()] = new Empty();\n\t}", "private void eliminatePiece(BoardPiece boardPiece) {\n\t\tPlayer playerOwner = PlayerObserver.getInstance().getPlayerOwner(boardPiece);\n\t\tplayerOwner.killPiece(boardPiece);\n\t\tboardPiece.destroy();\n\t}", "public void eliminarCajeros(int id);", "private void removeALakeTile(Game game) {\n\t\tLakeTile[][] board = game.getPlayArea().getLakeTilesOnBoard();\n\t\tArrayList<Position> positions = new ArrayList<Position>();\n\t\tfor (int y = 0; y < board.length; y++) {\n\t\t\tfor (int x = 0; x < board[y].length; x++) {\n\t\t\t\tLakeTile laketile = board[x][y];\n\t\t\t\tif (laketile != null) {\n\t\t\t\t\tint connect_laketile = 4;\n\t\t\t\t\tif (x + 1 < board.length && board[x + 1][y] == null)\n\t\t\t\t\t\tconnect_laketile -= 1;\n\t\t\t\t\tif (y + 1 < board.length && board[x][y + 1] == null)\n\t\t\t\t\t\tconnect_laketile -= 1;\n\t\t\t\t\tif (x - 1 >= 0 && board[x - 1][y] == null)\n\t\t\t\t\t\tconnect_laketile -= 1;\n\t\t\t\t\tif (y - 1 >= 0 && board[x][y - 1] == null)\n\t\t\t\t\t\tconnect_laketile -= 1;\n\t\t\t\t\tif (connect_laketile == 1) {\n\t\t\t\t\t\tPosition p = new Position(x, y);\n\t\t\t\t\t\tpositions.add(p);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (countLakeTileOnBoard(board) != 0 && positions.size() == 0) {\n\t\t\tpositions = getAllLakeTilePositionOnBoard(board);\n\t\t}\n\t\tCollections.shuffle(positions);\n\t\tPosition pos = positions.get(0);\n\t\tint x = pos.getX();\n\t\tint y = pos.getY();\n\t\tremoved_laketile.add(board[x][y]);\n\t\tremoved_position.add(pos);\n\t\tboard[x][y] = null;\n\t}", "public void cleartbl(View view) {\n\n table.removeAllViews();\n buttons.clear();\n lauta = new int[9];\n moves = 0;\n turn = true;\n create_board();\n victory1 = false;\n victory2 = false;\n }", "@Override\n\tpublic int setDelete(BoardVO boardVO) throws Exception {\n\t\treturn qnaMapper.setDelete(boardVO);\n\t}", "void drawBoard(Board board);", "public void clearCell( int index){\r\n boardCells[ index ].empty();\r\n }", "private void toDelete() {\n if(toCount()==0)\n {\n JOptionPane.showMessageDialog(rootPane,\"No paint detail has been currently added\");\n }\n else\n {\n String[] choices={\"Delete First Row\",\"Delete Last Row\",\"Delete With Index\"};\n int option=JOptionPane.showOptionDialog(rootPane, \"How would you like to delete data?\", \"Delete Data\", WIDTH, HEIGHT,null , choices, NORMAL);\n if(option==0)\n {\n jtModel.removeRow(toCount()-toCount());\n JOptionPane.showMessageDialog(rootPane,\"Successfully deleted first row\");\n }\n else if(option==1)\n {\n jtModel.removeRow(toCount()-1);\n JOptionPane.showMessageDialog(rootPane,\"Successfully deleted last row\");\n }\n else if(option==2)\n {\n toDeletIndex();\n }\n else\n {\n \n }\n }\n }", "@Override\n\tpublic void execute(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tint num = Integer.parseInt(request.getParameter(\"num\"));\n\t\tString boardname=request.getParameter(\"boardname\");\n\t\tSystem.out.println(\"BoardListAction boardname: \" + boardname);\n\t\t\n\t\t\n\t\tBoardDAO boardDAO = BoardDAO.getInstance();\n\t\tboardDAO.deleteBoard(num, boardname);\n\t\t\n\t\trequest.setAttribute(\"boardname\", boardname);\n\t\tnew BoardListAction().execute(request, response);\n\t}", "public void delete() {\n \t\t try(Connection con = DB.sql2o.open()) {\n \t\t\t String sql = \"DELETE FROM sightings where id=:id\";\n\t\t\t con.createQuery(sql)\n\t\t\t.addParameter(\"id\", this.id)\n\t\t\t.executeUpdate();\n\n \t\t }\n \t }", "@Override\n\tpublic void delete(Game game) {\n\t\t\n\t}", "@Override\n\tpublic void delete(Room t) {\n\t\t\n\t}", "@Override\n public void actionPerformed(ActionEvent e) {\n String[] buttons = { \"Yes\", \"No\" };\n int returnValue = JOptionPane.showOptionDialog(frame, \"Are you sure you want to delete this user?\", \"Confirm Deletion\",\n JOptionPane.WARNING_MESSAGE, 0, null, buttons, buttons[1]);\n\n if (returnValue == 0) {\n Billboard billboard = billboardList.get(billboardJList.getSelectedIndex());\n\n Request deleteBillboard = Request.deleteBillboardReq(billboard.getBillboardName(), connector.session);\n\n Response response;\n\n try {\n response = deleteBillboard.Send(connector);\n } catch (IOException excep) {\n JOptionPane.showMessageDialog(null, \"Cannot delete billboard\");\n return;\n }\n\n // check status of response\n boolean status = response.isStatus();\n\n if (!status) {\n String errorMsg = (String) response.getData();\n JOptionPane.showMessageDialog(null, \"Cannot delete billboard. Error: \" + errorMsg);\n }\n\n if (status) {\n billboardList.remove(billboard);\n model.removeElement(billboard.getBillboardName());\n billboardJList.setModel(model);\n JOptionPane.showMessageDialog(null, \"Billboard successfully deleted.\");\n }\n }\n }", "protected void removeChosenCard(Board gameBoard, Card chosenCard) {\n Iterator<Card> it = myCards.iterator();\n Card tempgroundCard= gameBoard.getGroundCard();\n while (it.hasNext()) {\n Card tempCard = it.next();\n if (tempCard.equals(chosenCard)) {\n it.remove();\n // Card tempgroundCard=gameBoard.getGroundCard;\n if (tempgroundCard instanceof WildDrawCard\n || tempgroundCard instanceof ColorChangeCard) {// if the last ground card was Wild set\n // it black again\n gameBoard.getGroundCard().setColor(0);\n }\n gameBoard.setGroundCard(tempCard);\n gameBoard.addToStorage(tempCard);\n if (!(tempCard instanceof DrawCard) && !(tempCard instanceof WildDrawCard)) { // if the Card was't Draw\n gameBoard.resetDraw();\n }\n cardNumber = myCards.size();\n break;\n }\n }\n }", "public void close(){\n this.boardController.close();\n }", "public void removeTile(Tile a_tile){\n for(int i = 0; i < playerHand.size(); i++){\n if(playerHand.get(i).getRight() == a_tile.getRight() && playerHand.get(i).getLeft() == a_tile.getLeft()){\n playerHand.remove(i);\n break;\n }\n }\n }", "public void removeNumber(char[][] board, int r, int c, int num) {\n Set<Integer> s1 = row.getOrDefault(r, new HashSet<>());\n s1.remove(num);\n row.put(r, s1);\n\n Set<Integer> s2 = col.getOrDefault(c, new HashSet<>());\n s2.remove(num);\n col.put(c, s2);\n\n Set<Integer> s3 = block.getOrDefault(getBlock(r, c), new HashSet<>());\n s3.remove(num);\n block.put(getBlock(r, c), s3);\n board[r][c] = '.';\n }", "public void clearMoveData(ChessBoard board){\n\t\twhile(!dependentSpaces.empty())\n\t\t\tdependentSpaces.pop().removeDependentMove(this);\n\t\tcommandSequences.clear();\n\t}", "void oracle(){\n if (this.neighbors < 1){\n if (!isAlive()){\n observer.deleteCell(id);\n }\n }\n }", "void DevClear (int boardID, short addr);", "public void boardMain() {\n\n while(true) {\n\n try {\n\n System.out.println(\"메인 / 게시판 메인-------------------------------\\n\");\n System.out.println(\"1. 게시글 작성\\n2. 게시글 보기\\n3. 게시글 수정\\n4. 게시글 삭제\\n5. 뒤로가기\\n \");\n int inputMenu = Prompt.inputInt(\"입력>\");\n\n if (inputMenu == 1) { // 게시글 작성\n this.add();\n\n }else if (inputMenu == 2) { // 게시글 보기\n this.List();\n\n }else if (inputMenu == 3) { // 게시글 수정\n this.update();\n\n }else if (inputMenu == 4) { // 게시글 삭제\n this.delete();\n\n }else if (inputMenu == 5) {\n break;\n\n }else {\n System.out.println(\"잘못 입력하였습니다.1\");\n }\n } catch(Exception e) {\n System.out.println(\"잘못 입력하였습니다.2\");\n }\n }\n\n }", "public static void clearBoard() {\n\t\tfor(int i = 0; i < display.length; i++){\n\t\t\tfor(int j = 0; j < display[i].length; j++){\n\t\t\t\tdisplay[i][j].setSelected(false);\n\t\t\t\tdisplay[i][j].setIcon(DEFAULT);\n\t\t\t}\n\t\t}\t\n\t\t\n\t}", "public void destory(){\n \n }", "@Test\r\n public void testRemove() {\n Game g = new Game();\r\n g.customDeal(0, 3, 6, 9);\r\n g.remove(2);\r\n assertEquals(0, g.columns.get(2).cards.size());\r\n }", "public void makeClearBoard(int Row, int Col){\n board.makeBoard(Row,Col);\n }", "public void resetBoard(){\n totalmoves = 0;\n this.board = new Cell[3][3];\n //fill the board with \"-\"\n for (int i = 0; i < 3; i++) {\n for (int j = 0; j < 3; j++) {\n this.board[i][j]=new Cell(new Coordinates(i,j), \"-\");\n }\n }\n }", "public ChessPiece removePiece(int row, int col)\n\t{\n\t\tChessPiece piece = m_pieces[row][col];\n\t\t\n\t\tm_pieces[row][col] = null;\n\t\tm_display.displayEmptySquare(m_buttons[row][col], row, col);\n\t\t\n\t\treturn piece;\n\t}", "public void clearBoard()\n {\n for (int i = 0; i < buttons.length; i++)\n {\n buttons[i].setText(\"\");\n }\n }", "void clearCell(int x, int y);", "public void clear(int x, int y){\n board[x][y].setText(\"\");\n }", "public void clearBoard(boolean eraseWins)\n {\n if(eraseWins)\n {\n computerWins = 0;\n humanWins = 0;\n ties = 0;\n }\n mBoard = new char[]{'1', '2', '3', '4', '5', '6', '7', '8', '9'};\n for(int i = 0; i < BOARD_SIZE; i++) {\n mBoardButtons[i].setText(\"\");\n mBoardButtons[i].setEnabled(true);\n\n }\n }", "@Override\n\tpublic void delete(int codigo) {\n\t\tSystem.out.println(\"Borra el empleado con \" + codigo + \" en la BBDD.\");\n\t}", "public void deleteMessage(Integer tid, int rank);", "public void clearCommand() {\r\n _board = new Board();\r\n _playing = false;\r\n }", "@Override\n\tprotected void deActivateBoard() {\n\t\tsuper.deActivateBoard();\n\t}", "@Override\n\tprotected void deActivateBoard() {\n\t\tsuper.deActivateBoard();\n\t}", "public void deleteCard(int cardId)\n {\n dbObj=new dbFlashCards(uid);\n dbObj.deleteCard(cardId, packId);\n \n \n }" ]
[ "0.84714663", "0.7882477", "0.7806124", "0.76576793", "0.75730175", "0.73737997", "0.71138644", "0.71098447", "0.70352054", "0.7034718", "0.69860977", "0.6910501", "0.68931", "0.67177975", "0.66270214", "0.6586703", "0.64991647", "0.6436907", "0.6357478", "0.631559", "0.6241152", "0.62121296", "0.6197411", "0.61721325", "0.6099528", "0.6063145", "0.6005915", "0.59902114", "0.59614515", "0.5956891", "0.59502774", "0.5911306", "0.59032875", "0.5895485", "0.5885242", "0.5880121", "0.5872135", "0.584111", "0.5819899", "0.5773036", "0.5762061", "0.5757978", "0.5750738", "0.5750738", "0.574923", "0.5745768", "0.5745715", "0.57403815", "0.5716743", "0.570835", "0.57081103", "0.57069427", "0.5698491", "0.5698156", "0.5697759", "0.5696252", "0.56886464", "0.56842077", "0.5682817", "0.56818384", "0.5671605", "0.5669637", "0.5668064", "0.5667494", "0.56656873", "0.5658412", "0.5643177", "0.56350356", "0.563272", "0.5627384", "0.5621467", "0.56200993", "0.56183046", "0.5615513", "0.56152505", "0.56034124", "0.55878556", "0.5587153", "0.55851877", "0.5581632", "0.5578179", "0.55753237", "0.5574341", "0.5571794", "0.5569846", "0.55688554", "0.55681676", "0.55608386", "0.555512", "0.5544943", "0.55442464", "0.5543794", "0.5538489", "0.55346787", "0.5531225", "0.5524452", "0.55160224", "0.55083007", "0.55083007", "0.5502996" ]
0.68821394
13
Created by Development on 10/3/2016.
public interface IOutput <T> extends ITickable{ void setInputLocation(BlockPos pos); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n public void perish() {\n \n }", "public final void mo51373a() {\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "public void mo38117a() {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "public void mo4359a() {\n }", "protected MetadataUGWD() {/* intentionally empty block */}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n public void init() {\n\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n public void func_104112_b() {\n \n }", "public void gored() {\n\t\t\n\t}", "@Override\n public int describeContents() { return 0; }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n\n \n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n protected void initialize() \n {\n \n }", "protected boolean func_70814_o() { return true; }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "private void m50366E() {\n }", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@SuppressWarnings(\"unused\")\n\tprivate void version() {\n\n\t}", "@Override\n public void init() {\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "private TMCourse() {\n\t}", "@Override\n void init() {\n }", "public final void mo91715d() {\n }", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n protected void init() {\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n public void init() {}", "public Pitonyak_09_02() {\r\n }", "private void init() {\n\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "private static void cajas() {\n\t\t\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\r\n\tpublic void init() {}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "public void mo12930a() {\n }", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "public void mo21877s() {\n }", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "private MetallicityUtils() {\n\t\t\n\t}", "Petunia() {\r\n\t\t}", "public void mo21779D() {\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "private void poetries() {\n\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "private ReportGenerationUtil() {\n\t\t\n\t}", "public void mo6081a() {\n }", "@Override\n\tpublic void create () {\n\n\t}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\n public void initialize() { \n }", "public void mo21878t() {\n }", "@Override\n public void memoria() {\n \n }" ]
[ "0.613106", "0.60321885", "0.5894217", "0.58785516", "0.5849655", "0.5754965", "0.5708384", "0.5703583", "0.5670307", "0.56622535", "0.56622535", "0.5644392", "0.5619633", "0.5591663", "0.5586646", "0.55859244", "0.55768204", "0.55768204", "0.55768204", "0.55768204", "0.55768204", "0.55768204", "0.5571186", "0.5560417", "0.5556267", "0.55542934", "0.55501527", "0.5541455", "0.5541455", "0.55359894", "0.5533984", "0.552668", "0.55205214", "0.5517994", "0.5517685", "0.5517685", "0.5517685", "0.5517685", "0.5517685", "0.5507196", "0.5503346", "0.5503346", "0.54967743", "0.5495336", "0.5488128", "0.548603", "0.5485703", "0.5479763", "0.547746", "0.5474542", "0.5468019", "0.54624313", "0.5462255", "0.5452686", "0.5449133", "0.5448637", "0.54464126", "0.5443963", "0.5439285", "0.5439285", "0.5439285", "0.5439285", "0.5439285", "0.5439285", "0.5439285", "0.5435616", "0.54350823", "0.54317963", "0.5423591", "0.540223", "0.540223", "0.5399548", "0.5399548", "0.5399548", "0.5399419", "0.5396802", "0.5395455", "0.538788", "0.538788", "0.538788", "0.538448", "0.538448", "0.538448", "0.53830194", "0.53732586", "0.5372971", "0.5366469", "0.53608894", "0.53573567", "0.53573567", "0.5355868", "0.5351809", "0.53454554", "0.53443474", "0.53429466", "0.5342119", "0.5341661", "0.5338442", "0.53380513", "0.53315765", "0.5328937" ]
0.0
-1
/ Generated Methods Method execute
public ActionForward init(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) { HttpSession session = request.getSession(); if (session.getAttribute("admin") == null) { return mapping.findForward("wrong"); } else { MessageService messageService = new MessageService(); List<Message> msglist = messageService.getMessage(); request.setAttribute("msglist", msglist); if (session.getAttribute("message") != null) { request.removeAttribute("message"); } OrderService orderService = new OrderService(); int back = orderService.getOrderCount(); request.setAttribute("count", back); return mapping.findForward("list"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void execute() {}", "protected void execute() {\n \t\n }", "protected void execute() {\n \t\n }", "protected void execute() {\n\t\t\n\t}", "public void execute() {\n\t\t\n\t}", "public void execute(){\n\t\t\n\t}", "public void execute() {\n\t\t\r\n\t}", "public void execute() {\n\t\t\r\n\t}", "public void execute() {\n\t\t\r\n\t}", "protected void execute() {\r\n }", "public void execute();", "public void execute();", "public void execute();", "public void execute();", "public void execute() {\r\n\t\r\n\t}", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n\n\t}", "protected void execute()\n {\n }", "public void execute() {\n\n\t}", "protected void execute()\n\t{\n\t}", "protected abstract void execute();", "public void execute() {\n }", "protected void execute() {\n\t}", "@Override\n\tpublic void execute() {\n\t\t\n\t}", "@Override\r\n\tpublic void execute() {\n }", "@Override\r\n\tprotected void execute() {\r\n\t}", "@Override\n public void execute() {}", "@Override\r\n\tpublic void execute() {\n\t}", "@Override\r\n\tpublic void execute() {\n\t}", "void execute();", "void execute();", "void execute();", "void execute();", "void execute();", "void execute();", "void execute();", "public void execute(){\n\n }", "@Override\r\n\tpublic void execute() throws Exception {\n\t\t\r\n\t}", "protected void execute() {\n\n\n \n }", "public abstract void execute();", "public abstract void execute();", "public abstract void execute();", "@Override\n protected void execute() {\n \n }", "abstract protected void execute();", "@Override\n public void Execute() {\n\n }", "@Override\n\tpublic void execute() {\n\t}", "@Override\n public void execute() {\n }", "@Override\n protected void execute() {\n }", "@Override\n protected void execute() {\n }", "@Override\n protected void execute() {\n }", "@Override\r\n\tpublic void execute() {\n\r\n\t}", "@Override\n protected void execute() {\n\n }", "CommandResult execute();", "public void Execute() {\n\n }", "public int execute();", "public abstract int execute();", "public void execute() {\n // empty\n }", "@Override\n\tpublic String execute() throws Exception {\n\t\treturn super.execute();\n\t}", "@Override\n\tpublic String execute() throws Exception {\n\t\treturn super.execute();\n\t}", "@Override\n\tpublic String execute() throws Exception {\n\t\treturn super.execute();\n\t}", "protected abstract void execute() throws Exception;", "@Override\n\tpublic String execute() throws Exception {\n\t\t\n\t\treturn super.execute();\n\t}", "@SuppressWarnings(\"unchecked\")\n public void execute() {\n execute(null, null);\n }", "@Override\n protected void execute() {\n \n }", "public void execute() {\n execute0();\n }", "public boolean execute();", "void execute() throws Exception;", "abstract public void execute(Parameters p);", "@Override\n public void execute() {\n \n \n }", "@Override\n\tpublic void execute(String[] params) {\n\n\t}", "abstract void execute() throws Exception;", "@Override\r\n\tprotected void processExecute() {\n\r\n\t}", "boolean execute();", "public abstract T execute() throws Exception;", "@Override\n\tpublic Object execute() {\n\n\t\treturn null;\n\t}", "private void executeQuery() {\n }", "@Override\r\n\tpublic String execute() throws Exception {\n\t\treturn null;\r\n\t}", "protected abstract void executeHelper();", "void execute() throws CommandExecutionException;", "protected void execute() {\n \t// literally still do nothing\n }", "ExecutionResult<Void> execute();", "ResponseEntity execute();", "@Override\n\tpublic void execute() {\n\t\tSystem.out.println(\"ServiceImpl execute\");\n\t}", "@Override\n\tpublic void execute() {\n\t\trecevier.doSomething();\n\t}", "@Override\n\tpublic String execute() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String execute() {\n\t\treturn null;\n\t}", "public void execute() throws AeBusinessProcessException;", "@Override\n public void execute() throws EngineException {\n Object target = JavaReflectionUtil.getObject(this.target, \n callStatement.getEntries().subList(1,\n callStatement.getEntries().size() - 1));\n this.getParent().setResult(executeMethod(target, callStatement));\n pop();\n }", "@Override\n\tpublic void execute() {\n\t\tmoteur.couper();\n\t}", "@Override\n public void execute(String[] args) {\n\n }" ]
[ "0.8726473", "0.86474156", "0.86474156", "0.8585333", "0.8541966", "0.85416996", "0.85315204", "0.85315204", "0.85315204", "0.8510395", "0.8505068", "0.8505068", "0.8505068", "0.8505068", "0.8488018", "0.8487717", "0.8487717", "0.8487717", "0.8487717", "0.8487717", "0.8487717", "0.8487717", "0.8487717", "0.8487717", "0.8487717", "0.8487717", "0.8487717", "0.8477741", "0.8458202", "0.8444109", "0.84254897", "0.8385077", "0.838472", "0.8381346", "0.83743453", "0.83026314", "0.82867765", "0.8282261", "0.82700056", "0.82700056", "0.82385", "0.82385", "0.82385", "0.82385", "0.82385", "0.82385", "0.82385", "0.82181823", "0.8214613", "0.8207622", "0.82069695", "0.82069695", "0.82069695", "0.82031715", "0.8188869", "0.8186364", "0.8160771", "0.81543666", "0.81495833", "0.81495833", "0.81495833", "0.8139171", "0.81232584", "0.8060845", "0.79894495", "0.7934114", "0.7889244", "0.78237367", "0.78105783", "0.78105783", "0.78105783", "0.7807419", "0.775347", "0.77266544", "0.77064204", "0.76960313", "0.7621748", "0.7562744", "0.7531473", "0.75118035", "0.7486672", "0.743569", "0.739346", "0.7392903", "0.7391778", "0.7361171", "0.73266256", "0.73121995", "0.73081124", "0.72917867", "0.7266612", "0.7252143", "0.72505736", "0.72476393", "0.72017634", "0.71451217", "0.71451217", "0.7136388", "0.7130011", "0.7103721", "0.70484513" ]
0.0
-1
Generated file Do NOT edit. It will be overwritten at next ServiceBuilder iteration.
public interface UserModel extends BaseModel<User> { public long getUserId(); public void setUserId(long userId); public String getFirstName(); public void setFirstName(String firstName); public String getLastName(); public void setLastName(String lastName); public String getPassword(); public void setPassword(String password); public boolean getActive(); public void setActive(boolean active); public byte[] getImage(); public void setImage(byte[] image); public interface Info extends Serializable { public Date getDob(); public void setDob(Date dob); public interface Address extends Serializable { public String getStreet(); public void setStreet(String street); public int getZip(); public void setZip(int zip); public Map<String, Object> toMap(); } public Address getAddress(); public void setAddress(Address address); public String getPhone(); public void setPhone(String phone); public List<Date> getReminders(); public void setReminders(List<Date> reminders); /** * Appends to the end of List, irrespective of value already existing. * See addToReminders to add without duplicating. */ public void appendToReminders(Date reminders); /** * Appends to the end of List, irrespective of value already existing. * See addToReminders to add without duplicating. */ public void appendToReminders(List<Date> reminders); /** * Adds to the List by treating List as a Set. * Thus adds only if not already exists in the List and avoids duplication. * See appendToReminders to append to List. */ public void addToReminders(Date reminders); /** * Adds to the List by treating List as a Set. * Thus adds only if not already exists in the List and avoids duplication. * See appendToReminders to append to List. */ public void addToReminders(List<Date> reminders); /** * Removes all occurences of value from the List */ public void removeFromReminders(Date reminders); /** * Removes all occurences of all values from the List */ public void removeFromReminders(List<Date> reminders); public Map<String, Object> toMap(); } public Info getInfo(); public void setInfo(Info info); public List<String> getLikedCars(); public void setLikedCars(List<String> likedCars); /** * Appends to the end of List, irrespective of value already existing. * See addToLikedCars to add without duplicating. */ public void appendToLikedCars(String likedCars); /** * Appends to the end of List, irrespective of value already existing. * See addToLikedCars to add without duplicating. */ public void appendToLikedCars(List<String> likedCars); /** * Adds to the List by treating List as a Set. * Thus adds only if not already exists in the List and avoids duplication. * See appendToLikedCars to append to List. */ public void addToLikedCars(String likedCars); /** * Adds to the List by treating List as a Set. * Thus adds only if not already exists in the List and avoids duplication. * See appendToLikedCars to append to List. */ public void addToLikedCars(List<String> likedCars); /** * Removes all occurences of value from the List */ public void removeFromLikedCars(String likedCars); /** * Removes all occurences of all values from the List */ public void removeFromLikedCars(List<String> likedCars); public List<String> getFollowedUsers(); public void setFollowedUsers(List<String> followedUsers); /** * Appends to the end of List, irrespective of value already existing. * See addToFollowedUsers to add without duplicating. */ public void appendToFollowedUsers(String followedUsers); /** * Appends to the end of List, irrespective of value already existing. * See addToFollowedUsers to add without duplicating. */ public void appendToFollowedUsers(List<String> followedUsers); /** * Adds to the List by treating List as a Set. * Thus adds only if not already exists in the List and avoids duplication. * See appendToFollowedUsers to append to List. */ public void addToFollowedUsers(String followedUsers); /** * Adds to the List by treating List as a Set. * Thus adds only if not already exists in the List and avoids duplication. * See appendToFollowedUsers to append to List. */ public void addToFollowedUsers(List<String> followedUsers); /** * Removes all occurences of value from the List */ public void removeFromFollowedUsers(String followedUsers); /** * Removes all occurences of all values from the List */ public void removeFromFollowedUsers(List<String> followedUsers); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "SourceBuilder createService();", "private ServiceGenerator() {\n }", "public interface ConfigurationServiceV1 {\n \n \n /**\n * Auto generated method signature\n * Documentation goes here.\n * @param getBSConfigRequest\n */\n\n \n public nl.tudelft.ewi.st.atlantis.tudelft.v1.services.GetBSConfigResponse getBSConfig\n (\n nl.tudelft.ewi.st.atlantis.tudelft.v1.services.GetBSConfigRequest getBSConfigRequest\n )\n ;\n \n \n /**\n * Auto generated method signature\n * Documentation goes here.\n * @param setServiceLocationRequest\n */\n\n \n public nl.tudelft.ewi.st.atlantis.tudelft.v1.services.SetServiceLocationResponse setServiceLocation\n (\n nl.tudelft.ewi.st.atlantis.tudelft.v1.services.SetServiceLocationRequest setServiceLocationRequest\n )\n ;\n \n \n /**\n * Auto generated method signature\n * Documentation goes here.\n * @param getOPSConfigRequest\n */\n\n \n public nl.tudelft.ewi.st.atlantis.tudelft.v1.services.GetOPSConfigResponse getOPSConfig\n (\n nl.tudelft.ewi.st.atlantis.tudelft.v1.services.GetOPSConfigRequest getOPSConfigRequest\n )\n ;\n \n \n /**\n * Auto generated method signature\n * Documentation goes here.\n * @param getClientConfigRequest\n */\n\n \n public nl.tudelft.ewi.st.atlantis.tudelft.v1.services.GetClientConfigResponse getClientConfig\n (\n nl.tudelft.ewi.st.atlantis.tudelft.v1.services.GetClientConfigRequest getClientConfigRequest\n )\n ;\n \n \n /**\n * Auto generated method signature\n * \n * @param getQSLocationsRequest\n */\n\n \n public nl.tudelft.ewi.st.atlantis.tudelft.v1.services.GetQSLocationsResponse getQSLocations\n (\n nl.tudelft.ewi.st.atlantis.tudelft.v1.services.GetQSLocationsRequest getQSLocationsRequest\n )\n ;\n \n \n /**\n * Auto generated method signature\n * Documentation goes here.\n * @param setClientToBSRequest\n */\n\n \n public nl.tudelft.ewi.st.atlantis.tudelft.v1.services.SetClientToBSResponse setClientToBS\n (\n nl.tudelft.ewi.st.atlantis.tudelft.v1.services.SetClientToBSRequest setClientToBSRequest\n )\n ;\n \n \n /**\n * Auto generated method signature\n * \n * @param getESLocationsRequest\n */\n\n \n public nl.tudelft.ewi.st.atlantis.tudelft.v1.services.GetESLocationsResponse getESLocations\n (\n nl.tudelft.ewi.st.atlantis.tudelft.v1.services.GetESLocationRequest getESLocationsRequest\n )\n ;\n \n \n /**\n * Auto generated method signature\n * Documentation goes here.\n * @param setBSToOPSRequest\n */\n\n \n public nl.tudelft.ewi.st.atlantis.tudelft.v1.services.SetBSToOPSResponse setBSToOPS\n (\n nl.tudelft.ewi.st.atlantis.tudelft.v1.services.SetBSToOPSRequest setBSToOPSRequest\n )\n ;\n \n \n /**\n * Auto generated method signature\n * Documentation goes here.\n * @param getBSLocationsRequest\n */\n\n \n public nl.tudelft.ewi.st.atlantis.tudelft.v1.services.GetBSLocationsResponse getBSLocations\n (\n nl.tudelft.ewi.st.atlantis.tudelft.v1.services.GetBSLocationsRequest getBSLocationsRequest\n )\n ;\n \n \n /**\n * Auto generated method signature\n * \n * @param getOPSLocationsRequest\n */\n\n \n public nl.tudelft.ewi.st.atlantis.tudelft.v1.services.GetOPSLocationsResponse getOPSLocations\n (\n nl.tudelft.ewi.st.atlantis.tudelft.v1.services.GetOPSLocationsRequest getOPSLocationsRequest\n )\n ;\n \n }", "private ServiceGen() {\n }", "private ServiceGenerator() {\n }", "private ServiceGenerator() {\n }", "Fog_Services createFog_Services();", "@Override\n\t\tpublic String buildBasicService() {\n\t\t\treturn bulidService();\n\t\t}", "@Service(name = \"CustomerService\")\n@OpenlegacyDesigntime(editor = \"WebServiceEditor\")\npublic interface CustomerServiceService {\n\n public CustomerServiceOut getCustomerService(CustomerServiceIn customerServiceIn) throws Exception;\n\n @Getter\n @Setter\n public static class CustomerServiceIn {\n \n Integer id3;\n }\n \n @ApiModel(value=\"CustomerServiceOut\", description=\"\")\n @Getter\n @Setter\n public static class CustomerServiceOut {\n \n @ApiModelProperty(value=\"Getuserdetails\")\n Getuserdetails getuserdetails;\n }\n}", "private Service(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private static interface Service {}", "public ServiceCompte() {\n\t\tsuper();\n\t}", "public interface BusDistributorService extends Services<BusDistributor,Long> {\r\n}", "public interface AlarmDataEnvService extends Service<AlarmDataEnv> {\n\n}", "@Override\n protected void reconfigureService() {\n }", "public interface SmartCultureFarmService extends Service<SmartCultureFarm> {\n\n}", "@Override\n public JavaFile generate() {\n String versionCatalogSimpleName = \"VersionFactory\";\n\n // Creates the getCatalog method.\n MethodSpec.Builder getCatalogBuilder =\n MethodSpec.methodBuilder(\"getVersions\")\n .addModifiers(Modifier.PROTECTED, Modifier.STATIC)\n .addException(IllegalAccessException.class)\n .addException(InstantiationException.class)\n .returns(ParameterizedTypeName.get(IMMUTABLE_SET_CLASS_NAME, VERSION_CLASS_NAME))\n .addStatement(\n \"$T.Builder<$T> builder = $T.builder()\",\n IMMUTABLE_SET_CLASS_NAME,\n VERSION_CLASS_NAME,\n IMMUTABLE_SET_CLASS_NAME);\n\n /*\n * <code>\n * builder.add(new Version(\n * \"v123\",\n * new GoogleAdsException.Factory(),\n * GoogleAdsVersion.class,\n * new DefaultMessageProxyProvider(\n * new SearchGoogleAdsStreamResponseMessageProxy())));\n * </code>\n */\n // Creates a Version instance for each version of the API.\n for (Integer version : versions) {\n // Defines the exception factory class name.\n ClassName exceptionFactoryName =\n ClassName.get(\n \"com.google.ads.googleads.v\" + version + \".errors\", \"GoogleAdsException\", \"Factory\");\n // Defines the GoogleAdsVersion class name.\n ClassName versionClassName =\n ClassName.get(\"com.google.ads.googleads.v\" + version + \".services\", \"GoogleAdsVersion\");\n // Adds a Version instance to the builder with the params as defined above.\n getCatalogBuilder.addStatement(\n \"builder.add(new Version(\\n\" + \" $S,\\n\" + \" new $T(),\\n\" + \" $T.class))\",\n \"v\" + version,\n exceptionFactoryName,\n versionClassName);\n }\n\n getCatalogBuilder.addStatement(\"return builder.build()\");\n\n MethodSpec getCatalog = getCatalogBuilder.build();\n\n // Creates and returns the VersionCatalog class.\n TypeSpec versionCatalogGeneratedCode =\n TypeSpec.classBuilder(versionCatalogSimpleName)\n .addAnnotation(Utils.generatedAnnotation())\n .addModifiers(Modifier.PUBLIC)\n .addMethod(getCatalog)\n .build();\n\n JavaFile javaFile =\n Utils.createJavaFile(\"com.google.ads.googleads.lib.catalog\", versionCatalogGeneratedCode);\n Utils.writeGeneratedClassToFile(javaFile, targetDirectory);\n return javaFile;\n }", "public interface FileOperationService extends OperationService<AbstractFileOperationI18nNamedServiceEntity> {\n\n}", "private Service() {}", "@FeignClient(value = \"HELLO-SERVICE\")\npublic interface RefactorHelloService extends online.wangxuan.helloserviceapi.service.HelloService {\n}", "public interface DaIotDictionaryService extends Service<DaIotDictionary> {\n\n}", "Service_Resource createService_Resource();", "@Override\n public String getName() {\n return \"LibVirt Service Factory\";\n }", "interface DefinitionStages {\n /**\n * The first stage of the Search service definition.\n */\n interface Blank\n extends GroupableResource.DefinitionWithRegion<WithGroup> {\n }\n\n /**\n * The stage of the Search service definition allowing to specify the resource group.\n */\n interface WithGroup\n extends GroupableResource.DefinitionStages.WithGroup<DefinitionStages.WithSku> {\n }\n\n /**\n * The stage of the Search service definition allowing to specify the SKU.\n */\n interface WithSku {\n /**\n * Specifies the SKU of the Search service.\n *\n * @param skuName the SKU\n * @return the next stage of the definition\n */\n WithCreate withSku(SkuName skuName);\n\n /**\n * Specifies to use a free SKU type for the Search service.\n *\n * @return the next stage of the definition\n */\n WithCreate withFreeSku();\n\n /**\n * Specifies to use a basic SKU type for the Search service.\n *\n * @return the next stage of the definition\n */\n WithReplicasAndCreate withBasicSku();\n\n /**\n * Specifies to use a standard SKU type for the Search service.\n *\n * @return the next stage of the definition\n */\n WithPartitionsAndCreate withStandardSku();\n }\n\n interface WithReplicasAndCreate extends WithCreate {\n /**\n * Specifies the SKU of the Search service.\n *\n * @param count the number of replicas to be created\n * @return the next stage of the definition\n */\n WithCreate withReplicaCount(int count);\n }\n\n interface WithPartitionsAndCreate extends WithReplicasAndCreate {\n /**\n * Specifies the SKU of the Search service.\n *\n * @param count the number of partitions to be created\n * @return the next stage of the definition\n */\n WithReplicasAndCreate withPartitionCount(int count);\n }\n\n /**\n * The stage of the definition which contains all the minimum required inputs for the resource to be created\n * (via {@link WithCreate#create()}), but also allows for any other optional settings to be specified.\n */\n interface WithCreate extends\n Creatable<SearchService>,\n Resource.DefinitionWithTags<WithCreate> {\n }\n }", "ServiceEndpointPolicy.DefinitionStages.Blank define(String name);", "@Fluent\n@Beta(Beta.SinceVersion.V1_2_0)\npublic interface SearchService extends\n GroupableResource<SearchServiceManager, SearchServiceInner>,\n Refreshable<SearchService>,\n Updatable<SearchService.Update> {\n\n /***********************************************************\n * Getters\n ***********************************************************/\n\n /**\n * The hosting mode value.\n * <p>\n * Applicable only for the standard3 SKU. You can set this property to enable up to 3 high density partitions that\n * allow up to 1000 indexes, which is much higher than the maximum indexes allowed for any other SKU. For the\n * standard3 SKU, the value is either 'default' or 'highDensity'. For all other SKUs, this value must be 'default'.\n *\n * @return the hosting mode value.\n */\n HostingMode hostingMode();\n\n /**\n * @return the number of partitions used by the service\n */\n int partitionCount();\n\n /**\n * The state of the last provisioning operation performed on the Search service.\n * <p>\n * Provisioning is an intermediate state that occurs while service capacity is being established. After capacity\n * is set up, provisioningState changes to either 'succeeded' or 'failed'. Client applications can poll\n * provisioning status (the recommended polling interval is from 30 seconds to one minute) by using the Get Search\n * Service operation to see when an operation is completed. If you are using the free service, this value tends\n * to come back as 'succeeded' directly in the call to Create Search service. This is because the free service uses\n * capacity that is already set up.\n *\n * @return the provisioning state of the resource\n */\n ProvisioningState provisioningState();\n\n /**\n * @return the number of replicas used by the service\n */\n int replicaCount();\n\n /**\n * @return the SKU type of the service\n */\n Sku sku();\n\n /**\n * The status of the Search service.\n * <p>\n * Possible values include:\n * 'running': the Search service is running and no provisioning operations are underway.\n * 'provisioning': the Search service is being provisioned or scaled up or down.\n * 'deleting': the Search service is being deleted.\n * 'degraded': the Search service is degraded. This can occur when the underlying search units are not healthy.\n * The Search service is most likely operational, but performance might be slow and some requests might be dropped.\n * 'disabled': the Search service is disabled. In this state, the service will reject all API requests.\n * 'error': the Search service is in an error state. If your service is in the degraded, disabled, or error states,\n * it means the Azure Search team is actively investigating the underlying issue. Dedicated services in these\n * states are still chargeable based on the number of search units provisioned.\n *\n * @return the status of the service\n */\n SearchServiceStatus status();\n\n /**\n * @return the details of the status.\n */\n String statusDetails();\n\n /**\n * The primary and secondary admin API keys for the specified Azure Search service.\n *\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @throws CloudException thrown if the request is rejected by server\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent\n * @return the AdminKeys object if successful\n */\n AdminKeys getAdminKeys();\n\n /**\n * The primary and secondary admin API keys for the specified Azure Search service.\n *\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @return a representation of the future computation of this call\n */\n Observable<AdminKeys> getAdminKeysAsync();\n\n /**\n * Returns the list of query API keys for the given Azure Search service.\n *\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @throws CloudException thrown if the request is rejected by server\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent\n * @return the List&lt;QueryKey&gt; object if successful\n */\n List<QueryKey> listQueryKeys();\n\n /**\n * Returns the list of query API keys for the given Azure Search service.\n *\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @return the observable to the List&lt;QueryKey&gt; object\n */\n Observable<QueryKey> listQueryKeysAsync();\n\n\n /***********************************************************\n * Actions\n ***********************************************************/\n\n /**\n * Regenerates either the primary or secondary admin API key.\n * <p>\n * You can only regenerate one key at a time.\n *\n * @param keyKind specifies which key to regenerate\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @throws CloudException thrown if the request is rejected by server\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent\n * @return the AdminKeys object if successful\n */\n AdminKeys regenerateAdminKeys(AdminKeyKind keyKind);\n\n /**\n * Regenerates either the primary or secondary admin API key. You can only regenerate one key at a time.\n *\n * @param keyKind Specifies which key to regenerate\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @return a representation of the future computation of this call\n */\n Observable<AdminKeys> regenerateAdminKeysAsync(AdminKeyKind keyKind);\n\n /**\n * Regenerates either the primary or secondary admin API key.\n * <p>\n * You can only regenerate one key at a time.\n *\n * @param name The name of the new query API key.\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @throws CloudException thrown if the request is rejected by server\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent\n * @return the &lt;QueryKey&gt; object if successful\n */\n QueryKey createQueryKey(String name);\n\n /**\n * Regenerates either the primary or secondary admin API key.\n * <p>\n * You can only regenerate one key at a time.\n *\n * @param name The name of the new query API key.\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @return a representation of the future computation of this call\n */\n Observable<QueryKey> createQueryKeyAsync(String name);\n\n /**\n * Deletes the specified query key.\n * <p>\n * Unlike admin keys, query keys are not regenerated. The process for regenerating a query key is to delete and then\n * recreate it.\n *\n * @param key The query key to be deleted. Query keys are identified by value, not by name.\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @throws CloudException thrown if the request is rejected by server\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent\n */\n void deleteQueryKey(String key);\n\n /**\n * Deletes the specified query key.\n * <p>\n * Unlike admin keys, query keys are not regenerated. The process for\n * regenerating a query key is to delete and then recreate it.\n *\n * @param key The query key to be deleted. Query keys are identified by value, not by name.\n * @throws IllegalArgumentException thrown if parameters fail the validation\n * @return a representation of the future computation of this call\n */\n Completable deleteQueryKeyAsync(String key);\n\n\n /**\n * The entirety of the Search service definition.\n */\n interface Definition extends\n DefinitionStages.Blank,\n DefinitionStages.WithGroup,\n DefinitionStages.WithSku,\n DefinitionStages.WithPartitionsAndCreate,\n DefinitionStages.WithReplicasAndCreate,\n DefinitionStages.WithCreate {\n }\n\n /**\n * Grouping of virtual network definition stages.\n */\n interface DefinitionStages {\n /**\n * The first stage of the Search service definition.\n */\n interface Blank\n extends GroupableResource.DefinitionWithRegion<WithGroup> {\n }\n\n /**\n * The stage of the Search service definition allowing to specify the resource group.\n */\n interface WithGroup\n extends GroupableResource.DefinitionStages.WithGroup<DefinitionStages.WithSku> {\n }\n\n /**\n * The stage of the Search service definition allowing to specify the SKU.\n */\n interface WithSku {\n /**\n * Specifies the SKU of the Search service.\n *\n * @param skuName the SKU\n * @return the next stage of the definition\n */\n WithCreate withSku(SkuName skuName);\n\n /**\n * Specifies to use a free SKU type for the Search service.\n *\n * @return the next stage of the definition\n */\n WithCreate withFreeSku();\n\n /**\n * Specifies to use a basic SKU type for the Search service.\n *\n * @return the next stage of the definition\n */\n WithReplicasAndCreate withBasicSku();\n\n /**\n * Specifies to use a standard SKU type for the Search service.\n *\n * @return the next stage of the definition\n */\n WithPartitionsAndCreate withStandardSku();\n }\n\n interface WithReplicasAndCreate extends WithCreate {\n /**\n * Specifies the SKU of the Search service.\n *\n * @param count the number of replicas to be created\n * @return the next stage of the definition\n */\n WithCreate withReplicaCount(int count);\n }\n\n interface WithPartitionsAndCreate extends WithReplicasAndCreate {\n /**\n * Specifies the SKU of the Search service.\n *\n * @param count the number of partitions to be created\n * @return the next stage of the definition\n */\n WithReplicasAndCreate withPartitionCount(int count);\n }\n\n /**\n * The stage of the definition which contains all the minimum required inputs for the resource to be created\n * (via {@link WithCreate#create()}), but also allows for any other optional settings to be specified.\n */\n interface WithCreate extends\n Creatable<SearchService>,\n Resource.DefinitionWithTags<WithCreate> {\n }\n }\n\n /**\n * The template for a Search service update operation, containing all the settings that can be modified.\n */\n interface Update extends\n Appliable<SearchService>,\n Resource.UpdateWithTags<Update>,\n UpdateStages.WithReplicaCount,\n UpdateStages.WithPartitionCount {\n }\n\n /**\n * Grouping of all the Search service update stages.\n */\n interface UpdateStages {\n\n /**\n * The stage of the Search service update allowing to modify the number of replicas used.\n */\n interface WithReplicaCount {\n /**\n * Specifies the replicas count of the Search service.\n *\n * @param count the replicas count; replicas distribute workloads across the service. You need 2 or more to support high availability (applies to Basic and Standard tiers only)\n * @return the next stage of the definition\n */\n Update withReplicaCount(int count);\n }\n\n /**\n * The stage of the Search service update allowing to modify the number of partitions used.\n */\n interface WithPartitionCount {\n /**\n * Specifies the Partitions count of the Search service.\n * @param count the partitions count; Partitions allow for scaling of document counts as well as faster data ingestion by spanning your index over multiple Azure Search Units (applies to Standard tiers only)\n * @return the next stage of the definition\n */\n Update withPartitionCount(int count);\n }\n }\n}", "Service(){\r\n\t\tserviceName =\"x\";\r\n\t\tserviceID = 0;\r\n\t\tserviceFee = 0.0;\r\n\t\tserviceDescrp = \"zztop\";\r\n\t}", "go.micro.runtime.RuntimeOuterClass.ServiceOrBuilder getServiceOrBuilder();", "go.micro.runtime.RuntimeOuterClass.ServiceOrBuilder getServiceOrBuilder();", "go.micro.runtime.RuntimeOuterClass.ServiceOrBuilder getServiceOrBuilder();", "public interface TearcherInfoService extends Service<TearcherInfo> {\n\n}", "public interface PaTaskItemPointViewService extends Service<PaTaskItemPointView> {\n\n}", "public interface GrpcService extends BindableService {\r\n public String getServiceName();\r\n public String getDescription();\r\n}", "public FetchAddressIntentService() {\n super(\"FetchAddressIntentService\");\n }", "public interface IFoodServiceInfoService extends IBaseService<ZlnfFoodServiceInfo, ZlnfFoodServiceInfoExample, Integer>{\n\n}", "interface ServicesService {\n @Headers({ \"Content-Type: application/json; charset=utf-8\", \"x-ms-logging-context: com.microsoft.azure.management.databox.v2019_09_01.Services listAvailableSkus\" })\n @POST(\"subscriptions/{subscriptionId}/providers/Microsoft.DataBox/locations/{location}/availableSkus\")\n Observable<Response<ResponseBody>> listAvailableSkus(@Path(\"subscriptionId\") String subscriptionId, @Path(\"location\") String location, @Query(\"api-version\") String apiVersion, @Body AvailableSkuRequest availableSkuRequest, @Header(\"accept-language\") String acceptLanguage, @Header(\"User-Agent\") String userAgent);\n\n @Headers({ \"Content-Type: application/json; charset=utf-8\", \"x-ms-logging-context: com.microsoft.azure.management.databox.v2019_09_01.Services listAvailableSkusByResourceGroup\" })\n @POST(\"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/locations/{location}/availableSkus\")\n Observable<Response<ResponseBody>> listAvailableSkusByResourceGroup(@Path(\"subscriptionId\") String subscriptionId, @Path(\"resourceGroupName\") String resourceGroupName, @Path(\"location\") String location, @Query(\"api-version\") String apiVersion, @Body AvailableSkuRequest availableSkuRequest, @Header(\"accept-language\") String acceptLanguage, @Header(\"User-Agent\") String userAgent);\n\n @Headers({ \"Content-Type: application/json; charset=utf-8\", \"x-ms-logging-context: com.microsoft.azure.management.databox.v2019_09_01.Services validateAddressMethod\" })\n @POST(\"subscriptions/{subscriptionId}/providers/Microsoft.DataBox/locations/{location}/validateAddress\")\n Observable<Response<ResponseBody>> validateAddressMethod(@Path(\"subscriptionId\") String subscriptionId, @Path(\"location\") String location, @Query(\"api-version\") String apiVersion, @Body ValidateAddress validateAddress, @Header(\"accept-language\") String acceptLanguage, @Header(\"User-Agent\") String userAgent);\n\n @Headers({ \"Content-Type: application/json; charset=utf-8\", \"x-ms-logging-context: com.microsoft.azure.management.databox.v2019_09_01.Services validateInputsByResourceGroup\" })\n @POST(\"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/locations/{location}/validateInputs\")\n Observable<Response<ResponseBody>> validateInputsByResourceGroup(@Path(\"subscriptionId\") String subscriptionId, @Path(\"resourceGroupName\") String resourceGroupName, @Path(\"location\") String location, @Query(\"api-version\") String apiVersion, @Body ValidationRequest validationRequest, @Header(\"accept-language\") String acceptLanguage, @Header(\"User-Agent\") String userAgent);\n\n @Headers({ \"Content-Type: application/json; charset=utf-8\", \"x-ms-logging-context: com.microsoft.azure.management.databox.v2019_09_01.Services validateInputs\" })\n @POST(\"subscriptions/{subscriptionId}/providers/Microsoft.DataBox/locations/{location}/validateInputs\")\n Observable<Response<ResponseBody>> validateInputs(@Path(\"subscriptionId\") String subscriptionId, @Path(\"location\") String location, @Query(\"api-version\") String apiVersion, @Body ValidationRequest validationRequest, @Header(\"accept-language\") String acceptLanguage, @Header(\"User-Agent\") String userAgent);\n\n @Headers({ \"Content-Type: application/json; charset=utf-8\", \"x-ms-logging-context: com.microsoft.azure.management.databox.v2019_09_01.Services regionConfiguration\" })\n @POST(\"subscriptions/{subscriptionId}/providers/Microsoft.DataBox/locations/{location}/regionConfiguration\")\n Observable<Response<ResponseBody>> regionConfiguration(@Path(\"subscriptionId\") String subscriptionId, @Path(\"location\") String location, @Query(\"api-version\") String apiVersion, @Body RegionConfigurationRequest regionConfigurationRequest, @Header(\"accept-language\") String acceptLanguage, @Header(\"User-Agent\") String userAgent);\n\n @Headers({ \"Content-Type: application/json; charset=utf-8\", \"x-ms-logging-context: com.microsoft.azure.management.databox.v2019_09_01.Services listAvailableSkusNext\" })\n @GET\n Observable<Response<ResponseBody>> listAvailableSkusNext(@Url String nextUrl, @Header(\"accept-language\") String acceptLanguage, @Header(\"User-Agent\") String userAgent);\n\n @Headers({ \"Content-Type: application/json; charset=utf-8\", \"x-ms-logging-context: com.microsoft.azure.management.databox.v2019_09_01.Services listAvailableSkusByResourceGroupNext\" })\n @GET\n Observable<Response<ResponseBody>> listAvailableSkusByResourceGroupNext(@Url String nextUrl, @Header(\"accept-language\") String acceptLanguage, @Header(\"User-Agent\") String userAgent);\n\n }", "@ProviderType\npublic interface ServiceUserMapped {\n\n\n /**\n * The name of the osgi property holding the sub service name.\n */\n String SUBSERVICENAME = \"subServiceName\";\n\n}", "@FeignClient(value = \"${noun-id}\", fallback = NounFallback.class)\n@Order(5)\npublic interface NounClient extends WordServicesClient {\n @Override\n default ServiceNameOrder getServiceName(){\n return ServiceNameOrder.noun;\n }\n}", "private CloudEndpointBuilderHelper() {\n }", "public interface OfficialWebsiteHistoryService extends Service<OfficialWebsiteHistory> {\n\n}", "public interface SRiskCardNodeConditionService extends Service<SRiskCardNodeCondition> {\n\n}", "LinkedService.DefinitionStages.Blank define(String name);", "public void service() {\n\t}", "public void service_INIT(){\n }", "public ServiceClient() {\n\t\tsuper();\n\t}", "public interface ProcesoVENService extends Service {\n\n\t/**\n\t * Ejecuta procedimiento generico\n\t * @param nombreExecute\n\t * @param criteria\n\t */\n\tpublic void executeGenerico(String nombreExecute, Map criteria) ;\n\t\n\t/**Actualiza calensarios\n\t * @param calendario\n\t * @param usuario\n\t */\n\tpublic void updateCalendario(Calendario calendario, Usuario usuario);\n\t\n\t/**devuelve lista de calendarios\n\t * @param criteria\n\t * @return\n\t */\n\tpublic List getCalendarios(Map criteria);\n\t\n\t/**\n\t * devuelve el calendario\n\t * @param criteria\n\t * @return\n\t */\n\tpublic Calendario getCalendario(Map criteria);\n\t\n /**\n * devuelve los feriados d euna zona\n * @param criteria\n * @return\n */\n public List getFeriadoZona(Map criteria);\n\t\n\t/**\n\t * Actualiza feriados de una zona\n\t * @param feriadoZona\n\t * @param usuario\n\t */\n\tpublic void updateFeriadoZona(FeriadoZona feriadoZona, Usuario usuario);\n\t\n\t/**\n\t * Inserta los feriados de una zona\n\t * @param feriadoZona\n\t * @param usuario\n\t */\n\tpublic void insertFeriadoZona(FeriadoZona feriadoZona, Usuario usuario);\n\t\n\t/**\n\t * elimina los feriados d euna zona\n\t * @param feriadoZona\n\t * @param usuario\n\t */\n\tpublic void deleteFeriadoZona(FeriadoZona feriadoZona, Usuario usuario);\n\n\t/**\n\t * Metodo que trae las zonas de una region\n\t * @param feriadoRegion\n\t * @return\n\t */\n\tpublic List getZonasRegion(String feriadoRegion);\n\n\t/**\n\t * Retorna el indicador de habilitacion RUV\n\t * @param criteria\n\t * @return\n\t */\n\tpublic String getIndicadorHabilitacionRuv(Map criteria);\n\n\t/**\n\t * Genera la informacion para el reporte RUV\n\t * @param map\n\t */\n\tpublic void executeGeneracionReporteRUV(Map map);\n\t\n\t/**\n\t * Genera los archivos de libro de ventas - detalles SII\n\t * @param map\n\t */\n\tpublic void executeGenerarArchivosLibroVentasDetalleSII(Map map);\n\t\n}", "public void setServiceName(String serviceName){\n this.serviceName = serviceName;\n }", "@FeignClient(name = \"gallery-service\", url = \"http://localhost:8081/\", fallback = StatisticFallbackFactory.class)\npublic interface ServiceFeignClient {\n\n\n // Request. contain way that identical in gallery-service (same signature)\n @RequestLine(\"GET /show\")\n List<Bucket> getAllEmployeesList();\n\n}", "public interface ProductService extends Service {\n\n\t/**\n\t * Example: curl http://localhost:9000/api/product/Alice\n\t */\n\tServiceCall<NotUsed, String> product(String id);\n\n\t/**\n\t * Example: curl -H \"Content-Type: application/json\" -X POST -d '{\"message\":\n\t * \"Hi\"}' http://localhost:9000/api/product/Alice\n\t */\n\tServiceCall<Product, NotUsed> create();\n\n\t@Override\n\tdefault Descriptor descriptor() {\n\t\t// @formatter:off\n\t\treturn named(\"product\")\n\t\t\t\t.withCalls(pathCall(\"/api/product/:id\", this::product), pathCall(\"/api/product\", this::create))\n\t\t\t\t.withAutoAcl(true);\n\t\t// @formatter:on\n\t}\n}", "public String getServiceName(){\n return serviceName;\n }", "public UpdateService() {\n super(\"UpdateService\");\n }", "interface ISampleStoreForwardClient\n{\n /**\n * Service PID for Spillway service\n */\n public final static String SERVICE_PID = \"com.ge.dspmicro.sample.storeforwardclient\"; //$NON-NLS-1$\n\n /** Required Property key for storeforward name */\n public final static String STOREFORWARD = SERVICE_PID + \".storeforward\"; //$NON-NLS-1$\n\n}", "public interface ReviewServiceFactory extends ServiceFactory {\n}", "private ServiceFactory() {}", "public interface ControllcurveService extends Service<Controllcurve> {\n\n}", "public interface Service {\n // Service-specific methods go here\n }", "public ServiceFactoryImpl() {\n\t\tsuper();\n\t}", "public TIdAddPotentialServicesEntity() {\n\t\tsuper();\n }", "public InitService() {\n super(\"InitService\");\n }", "public interface PredictsService extends Service<Predicts> {\n\n}", "InboundServicesType createInboundServicesType();", "GeneratedInterface generate(Class interfaze, String targetNamespace, String wsdlLocation, String serviceName, String portName) throws Fabric3Exception;", "com.icare.eai.schema.om.evSORequest.ListOfServiceElementsComplexType addNewListOfServiceElements();", "@Override\n public void populateServiceNotUpDiagnostics() {\n }", "private void buildServiceMapping(EndpointMetaData endpoint)\n {\n QName origQName = endpoint.getServiceMetaData().getServiceName();\n String serviceInterfaceName = endpoint.getServiceEndpointInterface().getPackage().getName() + \".\" + origQName.getLocalPart();\n QName serviceQName = new QName(origQName.getNamespaceURI(), origQName.getLocalPart(), \"serviceNS\");\n\n ServiceInterfaceMapping serviceMapping = new ServiceInterfaceMapping(javaWsdlMapping);\n serviceMapping.setServiceInterface(serviceInterfaceName);\n serviceMapping.setWsdlServiceName(serviceQName);\n\n String endpointName = endpoint.getPortName().getLocalPart();\n PortMapping portMapping = new PortMapping(serviceMapping);\n portMapping.setJavaPortName(endpointName);\n portMapping.setPortName(endpointName);\n serviceMapping.addPortMapping(portMapping);\n\n javaWsdlMapping.addServiceInterfaceMappings(serviceMapping);\n\n String interfaceName = endpoint.getPortTypeName().getLocalPart();\n ServiceEndpointInterfaceMapping seiMapping = new ServiceEndpointInterfaceMapping(javaWsdlMapping);\n seiMapping.setServiceEndpointInterface(endpoint.getServiceEndpointInterfaceName());\n seiMapping.setWsdlPortType(new QName(wsdl.getTargetNamespace(), interfaceName, \"portTypeNS\"));\n seiMapping.setWsdlBinding(new QName(wsdl.getTargetNamespace(), interfaceName + \"Binding\", \"bindingNS\"));\n for (OperationMetaData operation : endpoint.getOperations())\n {\n ServiceEndpointMethodMapping methodMapping = new ServiceEndpointMethodMapping(seiMapping);\n methodMapping.setJavaMethodName(operation.getJavaName());\n methodMapping.setWsdlOperation(operation.getQName().getLocalPart());\n boolean isWrapped = operation.isDocumentWrapped();\n methodMapping.setWrappedElement(isWrapped);\n int i = 0;\n for (ParameterMetaData param : operation.getParameters())\n {\n if (isWrapped && param.isInHeader() == false)\n {\n List<WrappedParameter> wrappedParameters = param.getWrappedParameters();\n for (WrappedParameter wrapped : wrappedParameters)\n {\n String type = JavaUtils.convertJVMNameToSourceName(wrapped.getType(), endpoint.getClassLoader());\n String name = wrapped.getName().getLocalPart();\n\n buildParamMapping(methodMapping, interfaceName, operation, name, type, \"IN\", false, i++);\n }\n }\n else\n {\n String name = param.getXmlName().getLocalPart();\n String type = JavaUtils.convertJVMNameToSourceName(param.getJavaTypeName(), endpoint.getClassLoader());\n buildParamMapping(methodMapping, interfaceName, operation, name, type, param.getMode().toString(), param.isInHeader(), i++);\n }\n }\n\n ParameterMetaData returnParam = operation.getReturnParameter();\n if (returnParam != null && ((! isWrapped) || (! returnParam.getWrappedParameters().isEmpty())))\n {\n String name, type;\n if (isWrapped)\n {\n WrappedParameter wrappedParameter = returnParam.getWrappedParameters().get(0);\n name = wrappedParameter.getName().getLocalPart();\n type = wrappedParameter.getType();\n }\n else\n {\n name = returnParam.getXmlName().getLocalPart();\n type = returnParam.getJavaTypeName();\n }\n\n type = JavaUtils.convertJVMNameToSourceName(type, endpoint.getClassLoader());\n\n buildReturnParamMapping(methodMapping, interfaceName, operation, name, type);\n }\n seiMapping.addServiceEndpointMethodMapping(methodMapping);\n\n for(FaultMetaData fmd : operation.getFaults())\n {\n JavaXmlTypeMapping typeMapping = mappedTypes.get(fmd.getXmlType());\n if (typeMapping == null)\n continue;\n\n String javaTypeName = fmd.getJavaTypeName();\n if (mappedExceptions.contains(javaTypeName))\n continue;\n\n mappedExceptions.add(javaTypeName);\n\n ExceptionMapping mapping = new ExceptionMapping(javaWsdlMapping);\n\n mapping.setExceptionType(javaTypeName);\n QName name = new QName(wsdl.getTargetNamespace(), fmd.getXmlName().getLocalPart());\n mapping.setWsdlMessage(name);\n\n // Variable mappings generated from SchemaTypesCreater have their order preserved\n for (VariableMapping variableMapping : typeMapping.getVariableMappings())\n mapping.addConstructorParameter(variableMapping.getXmlElementName());\n\n javaWsdlMapping.addExceptionMappings(mapping);\n }\n }\n\n javaWsdlMapping.addServiceEndpointInterfaceMappings(seiMapping);\n\n // Add package mapping for SEI\n String name = endpoint.getServiceEndpointInterface().getPackage().getName();\n String namespace = packageNamespaceMap.get(name);\n if (namespace == null)\n namespace = WSDLUtils.getInstance().getTypeNamespace(name);\n addPackageMapping(name, namespace);\n }", "public interface ServiceFactory {\n \n /**\n * Returns a collection of services to be registered.\n * \n * @return an immutable collection of services; never null\n */\n public Collection<Service> createServices();\n \n}", "private RecipleazBackendService() {\n }", "CdapServiceDescriptor createCdapServiceDescriptor();", "public Service(){\n\t\t\n\t}", "public interface UniversityService extends Service {\n\n String SERVICE_NAME = \"university\";\n\n @SuppressWarnings(\"OptionalUsedAsFieldOrParameterType\")\n ServiceCall<NotUsed, PCollection<StudentData>> getStudents(\n Optional<String> firstName,\n Optional<String> middleName,\n Optional<String> lastName,\n Optional<LocalDate> birthday,\n Optional<String> group\n );\n\n ServiceCall<StudentData, StudentData> createStudent();\n\n @Override\n default Descriptor descriptor() {\n return named(SERVICE_NAME).withCalls(\n restCall(Method.GET,\n \"/api/\" + SERVICE_NAME + \"/students?firstName&middleName&lastName&birthday&group\",\n this::getStudents\n ),\n restCall(Method.POST,\n \"/api/\" + SERVICE_NAME + \"/students\",\n this::createStudent\n ))\n .withAutoAcl(true)\n .withPathParamSerializer(LocalDate.class, new LocalDatePathParamSerializer());\n }\n}", "public interface CommunityPostItemService extends Service<CommunityPostItem> {\n\n}", "public interface ContextBasedServiceBuilderPhase extends RawServiceBuilderPhase {\n ContextBasedServiceBuilderPhase addEndpoint(final String methodName, final String path);\n ContextBasedServiceBuilderPhase addFilterFromContext(final String ctxName, final Class<? extends ServiceFilter> filterType);\n}", "@Override\n public void modifiedService(ServiceReference<ManagedServiceFactory> reference,\n ManagedServiceFactory service) {\n }", "public InternalNameServiceHandler() {\n }", "@Override\n\tpublic void configure(CServiceParameter arg0)\n\t{\n\n\t}", "@Override\n public String getName() {\n return \"Service Stability\";\n }", "public go.micro.runtime.RuntimeOuterClass.Service.Builder addServicesBuilder() {\n return getServicesFieldBuilder().addBuilder(\n go.micro.runtime.RuntimeOuterClass.Service.getDefaultInstance());\n }", "public go.micro.runtime.RuntimeOuterClass.Service.Builder addServicesBuilder() {\n return getServicesFieldBuilder().addBuilder(\n go.micro.runtime.RuntimeOuterClass.Service.getDefaultInstance());\n }", "public Collection<Service> createServices();", "go.micro.runtime.RuntimeOuterClass.Service getService();", "go.micro.runtime.RuntimeOuterClass.Service getService();", "go.micro.runtime.RuntimeOuterClass.Service getService();", "private WebServicesFabrica(){}", "private void populateAxisService() throws org.apache.axis2.AxisFault {\n _service = new org.apache.axis2.description.AxisService(\"SOAPService\" +\n getUniqueSuffix());\n addAnonymousOperations();\n\n //creating the operations\n org.apache.axis2.description.AxisOperation __operation;\n\n _operations = new org.apache.axis2.description.AxisOperation[7];\n\n __operation = new org.apache.axis2.description.OutInAxisOperation();\n\n __operation.setName(new javax.xml.namespace.QName(\n \"http://tempuri.org/\", \"updateAnimal\"));\n _service.addOperation(__operation);\n\n (__operation).getMessage(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_OUT_VALUE)\n .getPolicySubject()\n .attachPolicy(getPolicy(\n \"<wsp:Policy wsu:Id=\\\"BasicHttpsBinding_ISOAPService_policy\\\" xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\" xmlns:wsu=\\\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd\\\"><wsp:ExactlyOne><wsp:All><sp:TransportBinding xmlns:sp=\\\"http://schemas.xmlsoap.org/ws/2005/07/securitypolicy\\\"><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:TransportToken><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:HttpsToken RequireClientCertificate=\\\"false\\\"></sp:HttpsToken></wsp:Policy></sp:TransportToken><sp:AlgorithmSuite><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:Basic256/></wsp:Policy></sp:AlgorithmSuite><sp:Layout><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:Strict/></wsp:Policy></sp:Layout></wsp:Policy></sp:TransportBinding></wsp:All></wsp:ExactlyOne></wsp:Policy>\"));\n\n (__operation).getMessage(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE)\n .getPolicySubject()\n .attachPolicy(getPolicy(\n \"<wsp:Policy wsu:Id=\\\"BasicHttpsBinding_ISOAPService_policy\\\" xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\" xmlns:wsu=\\\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd\\\"><wsp:ExactlyOne><wsp:All><sp:TransportBinding xmlns:sp=\\\"http://schemas.xmlsoap.org/ws/2005/07/securitypolicy\\\"><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:TransportToken><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:HttpsToken RequireClientCertificate=\\\"false\\\"></sp:HttpsToken></wsp:Policy></sp:TransportToken><sp:AlgorithmSuite><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:Basic256/></wsp:Policy></sp:AlgorithmSuite><sp:Layout><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:Strict/></wsp:Policy></sp:Layout></wsp:Policy></sp:TransportBinding></wsp:All></wsp:ExactlyOne></wsp:Policy>\"));\n\n _operations[0] = __operation;\n\n __operation = new org.apache.axis2.description.OutInAxisOperation();\n\n __operation.setName(new javax.xml.namespace.QName(\n \"http://tempuri.org/\", \"login\"));\n _service.addOperation(__operation);\n\n (__operation).getMessage(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_OUT_VALUE)\n .getPolicySubject()\n .attachPolicy(getPolicy(\n \"<wsp:Policy wsu:Id=\\\"BasicHttpsBinding_ISOAPService_policy\\\" xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\" xmlns:wsu=\\\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd\\\"><wsp:ExactlyOne><wsp:All><sp:TransportBinding xmlns:sp=\\\"http://schemas.xmlsoap.org/ws/2005/07/securitypolicy\\\"><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:TransportToken><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:HttpsToken RequireClientCertificate=\\\"false\\\"></sp:HttpsToken></wsp:Policy></sp:TransportToken><sp:AlgorithmSuite><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:Basic256/></wsp:Policy></sp:AlgorithmSuite><sp:Layout><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:Strict/></wsp:Policy></sp:Layout></wsp:Policy></sp:TransportBinding></wsp:All></wsp:ExactlyOne></wsp:Policy>\"));\n\n (__operation).getMessage(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE)\n .getPolicySubject()\n .attachPolicy(getPolicy(\n \"<wsp:Policy wsu:Id=\\\"BasicHttpsBinding_ISOAPService_policy\\\" xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\" xmlns:wsu=\\\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd\\\"><wsp:ExactlyOne><wsp:All><sp:TransportBinding xmlns:sp=\\\"http://schemas.xmlsoap.org/ws/2005/07/securitypolicy\\\"><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:TransportToken><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:HttpsToken RequireClientCertificate=\\\"false\\\"></sp:HttpsToken></wsp:Policy></sp:TransportToken><sp:AlgorithmSuite><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:Basic256/></wsp:Policy></sp:AlgorithmSuite><sp:Layout><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:Strict/></wsp:Policy></sp:Layout></wsp:Policy></sp:TransportBinding></wsp:All></wsp:ExactlyOne></wsp:Policy>\"));\n\n _operations[1] = __operation;\n\n __operation = new org.apache.axis2.description.OutInAxisOperation();\n\n __operation.setName(new javax.xml.namespace.QName(\n \"http://tempuri.org/\", \"updateUser\"));\n _service.addOperation(__operation);\n\n (__operation).getMessage(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_OUT_VALUE)\n .getPolicySubject()\n .attachPolicy(getPolicy(\n \"<wsp:Policy wsu:Id=\\\"BasicHttpsBinding_ISOAPService_policy\\\" xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\" xmlns:wsu=\\\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd\\\"><wsp:ExactlyOne><wsp:All><sp:TransportBinding xmlns:sp=\\\"http://schemas.xmlsoap.org/ws/2005/07/securitypolicy\\\"><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:TransportToken><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:HttpsToken RequireClientCertificate=\\\"false\\\"></sp:HttpsToken></wsp:Policy></sp:TransportToken><sp:AlgorithmSuite><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:Basic256/></wsp:Policy></sp:AlgorithmSuite><sp:Layout><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:Strict/></wsp:Policy></sp:Layout></wsp:Policy></sp:TransportBinding></wsp:All></wsp:ExactlyOne></wsp:Policy>\"));\n\n (__operation).getMessage(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE)\n .getPolicySubject()\n .attachPolicy(getPolicy(\n \"<wsp:Policy wsu:Id=\\\"BasicHttpsBinding_ISOAPService_policy\\\" xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\" xmlns:wsu=\\\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd\\\"><wsp:ExactlyOne><wsp:All><sp:TransportBinding xmlns:sp=\\\"http://schemas.xmlsoap.org/ws/2005/07/securitypolicy\\\"><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:TransportToken><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:HttpsToken RequireClientCertificate=\\\"false\\\"></sp:HttpsToken></wsp:Policy></sp:TransportToken><sp:AlgorithmSuite><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:Basic256/></wsp:Policy></sp:AlgorithmSuite><sp:Layout><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:Strict/></wsp:Policy></sp:Layout></wsp:Policy></sp:TransportBinding></wsp:All></wsp:ExactlyOne></wsp:Policy>\"));\n\n _operations[2] = __operation;\n\n __operation = new org.apache.axis2.description.OutInAxisOperation();\n\n __operation.setName(new javax.xml.namespace.QName(\n \"http://tempuri.org/\", \"createUser\"));\n _service.addOperation(__operation);\n\n (__operation).getMessage(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_OUT_VALUE)\n .getPolicySubject()\n .attachPolicy(getPolicy(\n \"<wsp:Policy wsu:Id=\\\"BasicHttpsBinding_ISOAPService_policy\\\" xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\" xmlns:wsu=\\\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd\\\"><wsp:ExactlyOne><wsp:All><sp:TransportBinding xmlns:sp=\\\"http://schemas.xmlsoap.org/ws/2005/07/securitypolicy\\\"><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:TransportToken><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:HttpsToken RequireClientCertificate=\\\"false\\\"></sp:HttpsToken></wsp:Policy></sp:TransportToken><sp:AlgorithmSuite><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:Basic256/></wsp:Policy></sp:AlgorithmSuite><sp:Layout><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:Strict/></wsp:Policy></sp:Layout></wsp:Policy></sp:TransportBinding></wsp:All></wsp:ExactlyOne></wsp:Policy>\"));\n\n (__operation).getMessage(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE)\n .getPolicySubject()\n .attachPolicy(getPolicy(\n \"<wsp:Policy wsu:Id=\\\"BasicHttpsBinding_ISOAPService_policy\\\" xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\" xmlns:wsu=\\\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd\\\"><wsp:ExactlyOne><wsp:All><sp:TransportBinding xmlns:sp=\\\"http://schemas.xmlsoap.org/ws/2005/07/securitypolicy\\\"><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:TransportToken><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:HttpsToken RequireClientCertificate=\\\"false\\\"></sp:HttpsToken></wsp:Policy></sp:TransportToken><sp:AlgorithmSuite><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:Basic256/></wsp:Policy></sp:AlgorithmSuite><sp:Layout><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:Strict/></wsp:Policy></sp:Layout></wsp:Policy></sp:TransportBinding></wsp:All></wsp:ExactlyOne></wsp:Policy>\"));\n\n _operations[3] = __operation;\n\n __operation = new org.apache.axis2.description.OutInAxisOperation();\n\n __operation.setName(new javax.xml.namespace.QName(\n \"http://tempuri.org/\", \"deleteAnimal\"));\n _service.addOperation(__operation);\n\n (__operation).getMessage(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_OUT_VALUE)\n .getPolicySubject()\n .attachPolicy(getPolicy(\n \"<wsp:Policy wsu:Id=\\\"BasicHttpsBinding_ISOAPService_policy\\\" xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\" xmlns:wsu=\\\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd\\\"><wsp:ExactlyOne><wsp:All><sp:TransportBinding xmlns:sp=\\\"http://schemas.xmlsoap.org/ws/2005/07/securitypolicy\\\"><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:TransportToken><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:HttpsToken RequireClientCertificate=\\\"false\\\"></sp:HttpsToken></wsp:Policy></sp:TransportToken><sp:AlgorithmSuite><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:Basic256/></wsp:Policy></sp:AlgorithmSuite><sp:Layout><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:Strict/></wsp:Policy></sp:Layout></wsp:Policy></sp:TransportBinding></wsp:All></wsp:ExactlyOne></wsp:Policy>\"));\n\n (__operation).getMessage(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE)\n .getPolicySubject()\n .attachPolicy(getPolicy(\n \"<wsp:Policy wsu:Id=\\\"BasicHttpsBinding_ISOAPService_policy\\\" xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\" xmlns:wsu=\\\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd\\\"><wsp:ExactlyOne><wsp:All><sp:TransportBinding xmlns:sp=\\\"http://schemas.xmlsoap.org/ws/2005/07/securitypolicy\\\"><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:TransportToken><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:HttpsToken RequireClientCertificate=\\\"false\\\"></sp:HttpsToken></wsp:Policy></sp:TransportToken><sp:AlgorithmSuite><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:Basic256/></wsp:Policy></sp:AlgorithmSuite><sp:Layout><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:Strict/></wsp:Policy></sp:Layout></wsp:Policy></sp:TransportBinding></wsp:All></wsp:ExactlyOne></wsp:Policy>\"));\n\n _operations[4] = __operation;\n\n __operation = new org.apache.axis2.description.OutInAxisOperation();\n\n __operation.setName(new javax.xml.namespace.QName(\n \"http://tempuri.org/\", \"createAnimal\"));\n _service.addOperation(__operation);\n\n (__operation).getMessage(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_OUT_VALUE)\n .getPolicySubject()\n .attachPolicy(getPolicy(\n \"<wsp:Policy wsu:Id=\\\"BasicHttpsBinding_ISOAPService_policy\\\" xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\" xmlns:wsu=\\\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd\\\"><wsp:ExactlyOne><wsp:All><sp:TransportBinding xmlns:sp=\\\"http://schemas.xmlsoap.org/ws/2005/07/securitypolicy\\\"><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:TransportToken><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:HttpsToken RequireClientCertificate=\\\"false\\\"></sp:HttpsToken></wsp:Policy></sp:TransportToken><sp:AlgorithmSuite><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:Basic256/></wsp:Policy></sp:AlgorithmSuite><sp:Layout><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:Strict/></wsp:Policy></sp:Layout></wsp:Policy></sp:TransportBinding></wsp:All></wsp:ExactlyOne></wsp:Policy>\"));\n\n (__operation).getMessage(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE)\n .getPolicySubject()\n .attachPolicy(getPolicy(\n \"<wsp:Policy wsu:Id=\\\"BasicHttpsBinding_ISOAPService_policy\\\" xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\" xmlns:wsu=\\\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd\\\"><wsp:ExactlyOne><wsp:All><sp:TransportBinding xmlns:sp=\\\"http://schemas.xmlsoap.org/ws/2005/07/securitypolicy\\\"><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:TransportToken><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:HttpsToken RequireClientCertificate=\\\"false\\\"></sp:HttpsToken></wsp:Policy></sp:TransportToken><sp:AlgorithmSuite><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:Basic256/></wsp:Policy></sp:AlgorithmSuite><sp:Layout><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:Strict/></wsp:Policy></sp:Layout></wsp:Policy></sp:TransportBinding></wsp:All></wsp:ExactlyOne></wsp:Policy>\"));\n\n _operations[5] = __operation;\n\n __operation = new org.apache.axis2.description.OutInAxisOperation();\n\n __operation.setName(new javax.xml.namespace.QName(\n \"http://tempuri.org/\", \"getAnimal\"));\n _service.addOperation(__operation);\n\n (__operation).getMessage(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_OUT_VALUE)\n .getPolicySubject()\n .attachPolicy(getPolicy(\n \"<wsp:Policy wsu:Id=\\\"BasicHttpsBinding_ISOAPService_policy\\\" xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\" xmlns:wsu=\\\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd\\\"><wsp:ExactlyOne><wsp:All><sp:TransportBinding xmlns:sp=\\\"http://schemas.xmlsoap.org/ws/2005/07/securitypolicy\\\"><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:TransportToken><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:HttpsToken RequireClientCertificate=\\\"false\\\"></sp:HttpsToken></wsp:Policy></sp:TransportToken><sp:AlgorithmSuite><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:Basic256/></wsp:Policy></sp:AlgorithmSuite><sp:Layout><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:Strict/></wsp:Policy></sp:Layout></wsp:Policy></sp:TransportBinding></wsp:All></wsp:ExactlyOne></wsp:Policy>\"));\n\n (__operation).getMessage(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE)\n .getPolicySubject()\n .attachPolicy(getPolicy(\n \"<wsp:Policy wsu:Id=\\\"BasicHttpsBinding_ISOAPService_policy\\\" xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\" xmlns:wsu=\\\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd\\\"><wsp:ExactlyOne><wsp:All><sp:TransportBinding xmlns:sp=\\\"http://schemas.xmlsoap.org/ws/2005/07/securitypolicy\\\"><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:TransportToken><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:HttpsToken RequireClientCertificate=\\\"false\\\"></sp:HttpsToken></wsp:Policy></sp:TransportToken><sp:AlgorithmSuite><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:Basic256/></wsp:Policy></sp:AlgorithmSuite><sp:Layout><wsp:Policy xmlns:wsp=\\\"http://schemas.xmlsoap.org/ws/2004/09/policy\\\"><sp:Strict/></wsp:Policy></sp:Layout></wsp:Policy></sp:TransportBinding></wsp:All></wsp:ExactlyOne></wsp:Policy>\"));\n\n _operations[6] = __operation;\n }", "public RecordService() {\n super(\"RecordService\");\n }", "public ServiceInfo() {\n }", "public interface ServiceManagerInterface {\n\n /**\n * add a Service\n * @param servicePackage the service package to register\n * @param configuration The configuration of the client\n * @param profile the client profile\n * @return The added service description\n * @throws IOException\n * @throws SoapException\n */\n AGServiceDescription addService(\n AGServicePackageDescription servicePackage,\n AGParameter[] configuration,\n ClientProfile profile)\n throws IOException, SoapException;\n\n /**\n * gets the service manager description\n * @return service manager description\n * @throws IOException\n * @throws SoapException\n */\n AGServiceManagerDescription getDescription()\n throws IOException, SoapException;\n\n /**\n * gets the url of the node service\n * @return url of node service\n * @throws IOException\n * @throws SoapException\n */\n String getNodeServiceUrl()\n throws IOException, SoapException;\n\n /**\n * gets the available services\n * @return a vector of available services\n * @throws IOException\n * @throws SoapException\n */\n AGServiceDescription[] getServices()\n throws IOException, SoapException;\n\n /**\n * test whether the service manager is valid\n * @return the 'valid' state\n * @throws IOException\n * @throws SoapException\n */\n int isValid() throws IOException, SoapException;\n\n /**\n * removes a service from the service manager\n * @param serviceDescription the description of the service to be removed\n * @throws IOException\n * @throws SoapException\n */\n void removeService(AGServiceDescription serviceDescription)\n throws IOException, SoapException;\n\n /**\n * removes all services from the service manager\n * @throws IOException\n * @throws SoapException\n */\n void removeServices() throws IOException, SoapException;\n\n /**\n * sets the url for node service\n * @param nodeServiceUri\n * @throws IOException\n * @throws SoapException\n */\n void setNodeServiceUrl(String nodeServiceUri)\n throws IOException, SoapException;\n\n /**\n * shuts down the service manager\n * @throws IOException\n * @throws SoapException\n */\n void shutdown() throws IOException, SoapException;\n\n /**\n * stops all services on service manager\n * @throws IOException\n * @throws SoapException\n */\n void stopServices() throws IOException, SoapException;\n\n /**\n * gets the version number of the service manager\n * @return string with version of service manager\n * @throws IOException\n * @throws SoapException\n */\n String getVersion() throws IOException, SoapException;\n\n\n /**\n * Requests to join a bridge\n * @param bridgeDescription The description of the bridge\n * @throws IOException\n * @throws SoapException\n */\n void joinBridge(BridgeDescription bridgeDescription)\n throws IOException, SoapException;\n\n /**\n * Sets the streams of this service manager\n *\n * @param streamDescriptionList a vector of stream descriptions\n * @throws IOException\n * @throws SoapException\n */\n void setStreams(StreamDescription[] streamDescriptionList)\n throws IOException, SoapException;\n /**\n * adds a stream\n * @param argname stream description of new stream\n * @throws IOException\n * @throws SoapException\n */\n void addStream(StreamDescription argname)\n throws IOException, SoapException;\n /**\n * Removes a stream\n * @param argname The stream to remove\n * @throws IOException\n * @throws SoapException\n */\n void removeStream(StreamDescription argname)\n throws IOException, SoapException;\n /**\n * Sets the point of reference for network traffic\n * @param url The url of the point of reference server\n * @throws IOException\n * @throws SoapException\n */\n void setPointOfReference(String url)\n throws IOException, SoapException;\n\n /**\n * Sets the encryption\n * @param encryption The encryption\n * @throws IOException\n * @throws SoapException\n */\n void setEncryption(String encryption)\n throws IOException, SoapException;\n /**\n * Instructs the client to run automatic bridging\n * @throws IOException\n * @throws SoapException\n */\n void runAutomaticBridging()\n throws IOException, SoapException;\n\n /**\n * Determines if a service is enabled\n * @param service The service to get the status of\n * @return True if enabled, false otherwise\n * @throws IOException\n * @throws SoapException\n */\n boolean isServiceEnabled(AGServiceDescription service)\n throws IOException, SoapException;\n\n /**\n * Enables or disables a service\n * @param service The service to control\n * @param enabled True to enable, false to disable\n * @throws IOException\n * @throws SoapException\n */\n void enableService(AGServiceDescription service, boolean enabled)\n throws IOException, SoapException;\n\n /**\n * Gets the configuration parameters of a service\n * @param service The service to get the configuration of\n * @return The parameters\n * @throws IOException\n * @throws SoapException\n */\n AGParameter[] getServiceConfiguration(AGServiceDescription service)\n throws IOException, SoapException;\n /**\n * Sets the configuration parameters for a service\n * @param service The service to configure\n * @param config The new parameters\n * @throws IOException\n * @throws SoapException\n */\n void setServiceConfiguration(AGServiceDescription service,\n AGParameter[] config)\n throws IOException, SoapException;\n\n /**\n * Sets the client profile\n * @param profile The new profile\n * @throws IOException\n * @throws SoapException\n */\n void setClientProfile(ClientProfile profile)\n throws IOException, SoapException;\n}", "public UpdateMarkerService() {\n super(\"UpdateMarkerService\");\n }", "@Deprecated\npublic interface OrderCompanyJournalReadRpcService {\n\n\n}", "public interface AsyncService {\n\n /**\n *\n *\n * <pre>\n * Creates a new [AzureClient][google.cloud.gkemulticloud.v1.AzureClient]\n * resource on a given Google Cloud project and region.\n * `AzureClient` resources hold client authentication\n * information needed by the Anthos Multicloud API to manage Azure resources\n * on your Azure subscription on your behalf.\n * If successful, the response contains a newly created\n * [Operation][google.longrunning.Operation] resource that can be\n * described to track the status of the operation.\n * </pre>\n */\n default void createAzureClient(\n com.google.cloud.gkemulticloud.v1.CreateAzureClientRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getCreateAzureClientMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Describes a specific\n * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource.\n * </pre>\n */\n default void getAzureClient(\n com.google.cloud.gkemulticloud.v1.GetAzureClientRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.gkemulticloud.v1.AzureClient>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGetAzureClientMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Lists all [AzureClient][google.cloud.gkemulticloud.v1.AzureClient]\n * resources on a given Google Cloud project and region.\n * </pre>\n */\n default void listAzureClients(\n com.google.cloud.gkemulticloud.v1.ListAzureClientsRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.gkemulticloud.v1.ListAzureClientsResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getListAzureClientsMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Deletes a specific [AzureClient][google.cloud.gkemulticloud.v1.AzureClient]\n * resource.\n * If the client is used by one or more clusters, deletion will\n * fail and a `FAILED_PRECONDITION` error will be returned.\n * If successful, the response contains a newly created\n * [Operation][google.longrunning.Operation] resource that can be\n * described to track the status of the operation.\n * </pre>\n */\n default void deleteAzureClient(\n com.google.cloud.gkemulticloud.v1.DeleteAzureClientRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getDeleteAzureClientMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Creates a new [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]\n * resource on a given Google Cloud Platform project and region.\n * If successful, the response contains a newly created\n * [Operation][google.longrunning.Operation] resource that can be\n * described to track the status of the operation.\n * </pre>\n */\n default void createAzureCluster(\n com.google.cloud.gkemulticloud.v1.CreateAzureClusterRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getCreateAzureClusterMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Updates an [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster].\n * </pre>\n */\n default void updateAzureCluster(\n com.google.cloud.gkemulticloud.v1.UpdateAzureClusterRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getUpdateAzureClusterMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Describes a specific\n * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource.\n * </pre>\n */\n default void getAzureCluster(\n com.google.cloud.gkemulticloud.v1.GetAzureClusterRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.gkemulticloud.v1.AzureCluster>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGetAzureClusterMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Lists all [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]\n * resources on a given Google Cloud project and region.\n * </pre>\n */\n default void listAzureClusters(\n com.google.cloud.gkemulticloud.v1.ListAzureClustersRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.gkemulticloud.v1.ListAzureClustersResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getListAzureClustersMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Deletes a specific\n * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource.\n * Fails if the cluster has one or more associated\n * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources.\n * If successful, the response contains a newly created\n * [Operation][google.longrunning.Operation] resource that can be\n * described to track the status of the operation.\n * </pre>\n */\n default void deleteAzureCluster(\n com.google.cloud.gkemulticloud.v1.DeleteAzureClusterRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getDeleteAzureClusterMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Generates a short-lived access token to authenticate to a given\n * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource.\n * </pre>\n */\n default void generateAzureAccessToken(\n com.google.cloud.gkemulticloud.v1.GenerateAzureAccessTokenRequest request,\n io.grpc.stub.StreamObserver<\n com.google.cloud.gkemulticloud.v1.GenerateAzureAccessTokenResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGenerateAzureAccessTokenMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Creates a new [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool],\n * attached to a given\n * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster].\n * If successful, the response contains a newly created\n * [Operation][google.longrunning.Operation] resource that can be\n * described to track the status of the operation.\n * </pre>\n */\n default void createAzureNodePool(\n com.google.cloud.gkemulticloud.v1.CreateAzureNodePoolRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getCreateAzureNodePoolMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Updates an [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool].\n * </pre>\n */\n default void updateAzureNodePool(\n com.google.cloud.gkemulticloud.v1.UpdateAzureNodePoolRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getUpdateAzureNodePoolMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Describes a specific\n * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource.\n * </pre>\n */\n default void getAzureNodePool(\n com.google.cloud.gkemulticloud.v1.GetAzureNodePoolRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.gkemulticloud.v1.AzureNodePool>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGetAzureNodePoolMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Lists all [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]\n * resources on a given\n * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster].\n * </pre>\n */\n default void listAzureNodePools(\n com.google.cloud.gkemulticloud.v1.ListAzureNodePoolsRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.gkemulticloud.v1.ListAzureNodePoolsResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getListAzureNodePoolsMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Deletes a specific\n * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource.\n * If successful, the response contains a newly created\n * [Operation][google.longrunning.Operation] resource that can be\n * described to track the status of the operation.\n * </pre>\n */\n default void deleteAzureNodePool(\n com.google.cloud.gkemulticloud.v1.DeleteAzureNodePoolRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getDeleteAzureNodePoolMethod(), responseObserver);\n }\n\n /**\n *\n *\n * <pre>\n * Returns information, such as supported Azure regions and Kubernetes\n * versions, on a given Google Cloud location.\n * </pre>\n */\n default void getAzureServerConfig(\n com.google.cloud.gkemulticloud.v1.GetAzureServerConfigRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.gkemulticloud.v1.AzureServerConfig>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGetAzureServerConfigMethod(), responseObserver);\n }\n }", "public interface ISystemUpdateHistoryService extends IBaseService<SystemUpdateHistory> {\n\n}", "ServiceDataResource createServiceDataResource();", "java.lang.String getService();", "java.lang.String getService();", "java.lang.String getService();", "ServicesPackage getServicesPackage();", "public static String _service_create() throws Exception{\nreturn \"\";\n}", "interface Definition extends\n DefinitionStages.Blank,\n DefinitionStages.WithGroup,\n DefinitionStages.WithSku,\n DefinitionStages.WithPartitionsAndCreate,\n DefinitionStages.WithReplicasAndCreate,\n DefinitionStages.WithCreate {\n }", "public void setServiceName(java.lang.String param){\n localServiceNameTracker = true;\n \n this.localServiceName=param;\n \n\n }", "public interface GoodStyleService extends Service<GoodStyle> {\n\n}", "public interface SwaggerDescriptions {\n\n String VIN = \"Identifies a vehicle. This is a required parameter unless year, make, and model are provided as input values.\";\n String COUNTRY = \"Identifies a country. This country could be different than the country in which the vehicle was manufactured.\";\n String USED = \"Identifies whether the vehicle is used. If set to true, you can specify install options for the vehicle using other input values.\";\n String VEHICLE_YEAR = \"Identifies the year in which the vehicle was manufactured. This is an optional parameter unless VIN is not specified.\";\n String VEHICLE_MAKE = \"Identifies the vehicle make. This is an optional parameter unless VIN is not specified.\";\n String VEHICLE_MODEL = \"Identifies the vehicle model. This is an optional parameter unless VIN is not specified.\";\n String VEHICLE_TRIM = \"Identifies the vehicle trim. If you submit a VIN that returns multiple style ids, you can specify a trim to focus the response on one style id.\";\n String VEHICLE_BODY_STYLE = \"Identifies the vehicle body style to install on the vehicle.\";\n String VEHICLE_ENGINE = \"Identifies the vehicle engine code to install on the vehicle.\";\n String VEHICLE_TRANS = \"Identifies the vehicle transmission to install on the vehicle.\";\n String VEHICLE_EXT_COLOR = \"Identifies the vehicle's exterior color to install on the vehicle.\";\n String VEHICLE_INT_COLOR = \"Identifies the vehicle's interior color to install on the vehicle.\";\n String LIST_OPTIONS = \"Identifies a list of vehicle options to install on the vehicle.\";\n String LIST_UNSTRUCTURED = \"Identifies unstructured text that is mapped to the vehicle features you want installed on the vehicle.\";\n\n String INCLUDE_DEBUG_INFO = \"Include debug information in the response object\";\n String INCLUDE_SUPPORT_INFO = \"Include support information in the response object\";\n\n String LANGUAGE = \"Language\";\n\n String GET_WS_VERSION = \"Get the version of the web service\";\n String GET_WS_HEALTH = \"Check the health of the services\";\n String GET_WS_CONNECTION = \"Get the status of micro service connections\";\n\n String WS_RESPONSE_ID = \"Displays a unique identifier of the web service response.\";\n String WS_DATE_TIME = \"Displays the date and time on the server when the request was made.\";\n\n String WS_MESSAGE = \"Displays messages from the server.\";\n String WS_ERROR = \"Identifies whether an error occurred with the request.\";\n String EXECUTION_TIME = \"Displays the execution time of the request in milliseconds.\";\n String WS_DEBUG_INFO = \"Displays debug information.\";\n String WS_SUPPORT_INFO = \"Displays support information.\";\n String WS_RESULT = \"Displays the web service results.\";\n String WS_EXECUTION_DETAILS = \"Displays Akana related billing informations.\";\n String WS_COPYRIGHT = \"Displays the copywrite message.\";\n\n}" ]
[ "0.68357426", "0.63158846", "0.6271252", "0.61748874", "0.6149566", "0.6149566", "0.61429805", "0.6067835", "0.60576725", "0.60509205", "0.6026895", "0.599443", "0.5977199", "0.59720445", "0.5933169", "0.59131753", "0.58940506", "0.58283675", "0.5822467", "0.5818653", "0.5803285", "0.5794709", "0.57502353", "0.5716196", "0.5707728", "0.5689871", "0.5689249", "0.5687043", "0.5687043", "0.5687043", "0.56858504", "0.56818277", "0.56676686", "0.5664428", "0.56588346", "0.5640032", "0.5638225", "0.5636968", "0.5628615", "0.5623205", "0.5619218", "0.56110394", "0.5606913", "0.5599905", "0.5597604", "0.559613", "0.5587784", "0.55820036", "0.5579594", "0.5578335", "0.5570945", "0.55655605", "0.5555462", "0.5553734", "0.5538543", "0.55368114", "0.5530376", "0.55289805", "0.552891", "0.55158216", "0.5514473", "0.55127597", "0.55092967", "0.550521", "0.5497694", "0.5493392", "0.54800195", "0.54792243", "0.54734606", "0.5469452", "0.5469427", "0.5467568", "0.54573643", "0.5457248", "0.54536045", "0.54509676", "0.5449192", "0.5449192", "0.5447986", "0.5446324", "0.5446324", "0.5446324", "0.543936", "0.54367405", "0.54303145", "0.54302865", "0.5425388", "0.54248655", "0.54194725", "0.5417838", "0.54104143", "0.5405229", "0.5405066", "0.5405066", "0.5405066", "0.54034305", "0.5398963", "0.53987664", "0.53972405", "0.53971905", "0.538623" ]
0.0
-1
Appends to the end of List, irrespective of value already existing. See addToReminders to add without duplicating.
public void appendToReminders(Date reminders);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void appendToReminders(List<Date> reminders);", "public void addToReminders(List<Date> reminders);", "private static final <T> List<T> append(List<T> list, T newElement) {\n List<T> newList = Lists.newArrayListWithCapacity(list.size() + 1);\n newList.addAll(list);\n newList.add(newElement);\n return newList;\n }", "public void addToEnd(String value) {\n ListElement current = new ListElement(value);\n if (count == 0) {\n head = current;\n } else {\n tail.connectNext(current);\n }\n tail = current;\n count++;\n }", "public void addLast(T listItem) {\n add(listItem);\n }", "public void addToReminders(Date reminders);", "public void push(E value) {\n list.addLast(value);\n index++;\n }", "public void add(E e) {\n if (n == list.length) { grow(); }\n list[n++] = e;\n }", "public void addLast(Object item) {\r\n\t\tdata.add(item);\r\n\r\n\t}", "@Override\n\tpublic void add(int n) {\n\t\tvalues[size] = n; //add value to the list\n\t\tsize++; //increment size\n\t\tif (size == values.length){ //if the list is full expand it\n\t\t\tresize();\n\t\t}\n\t}", "@Override\n public void add(Object item)\n {\n if (size == list.length)\n {\n Object [] itemInListCurrently = deepCopy();\n list = new Object[size * 2];\n\n System.arraycopy(itemInListCurrently, 0, list, 0, size);\n }\n\n list[size++] = item;\n }", "public void addValues(List newValues) {\n synchronized (values) {\n values.addAll(newValues);\n }\n }", "@Override\n public void addLast(E value) {\n if (value == null) {\n throw new NullPointerException(\"Value can not be null\");\n }\n if (isEmpty()) {\n head = tail = 0;\n dequeue[tail] = value;\n size++;\n return;\n }\n tail = ++tail % dequeue.length;\n dequeue[tail] = value;\n size++;\n if (size == dequeue.length) {\n widen();\n }\n }", "public void append(Object item);", "public RTWLocation append(Object... list);", "public void add(T value) {\n extend();\n this.list[size]=value;\n this.size++;\n }", "public void addReminder(Reminder reminder) {\n reminders.add(reminder);\n }", "@Override\r\n\tpublic void addLast(E e) {\n\t\t\r\n\t}", "public void addLast(E item);", "protected void addToTail(T val)\n\t{\n\t\tListElement<T> newElm = new ListElement<T>(val, null, tail);\n\t\t\n\t\tif(tail != null)\n\t\t\ttail.setNext(newElm);\n\t\telse\n\t\t\t//If list was empty befor addition\n\t\t\thead = newElm;\n\t\t\t\n\t\ttail = newElm;\n\t}", "public void add(Item nextItemToAdd) {\n items.add(nextItemToAdd);\n Collections.sort(items);\n fireIntervalAdded(nextItemToAdd, indexOf(nextItemToAdd), indexOf(nextItemToAdd));\n }", "public void addLast(T item) {\n if (size == 0) {\n array[rear] = item;\n size++;\n return;\n }\n\n this.checkReSizeUp();\n rear++;\n this.updatePointer();\n array[rear] = item;\n size++;\n }", "@Override\n public void addLast(T item) {\n if (size >= array.length) {\n resize(size * 2);\n array[nextLast] = item;\n nextLast = plusOne(nextLast);\n } else {\n array[nextLast] = item;\n nextLast = plusOne(nextLast);\n }\n size += 1;\n }", "public void addLast(Item x);", "@Override\n\tpublic RDFList append( final RDFList list ) throws AccessDeniedException;", "public void add(Object value) {\n verifyModifiable();\n\n elements.add(value);\n }", "@Override\n public boolean add(E value) {\n if (this.values.length == this.index) {\n this.grow();\n }\n this.modCount++;\n this.values[index++] = value;\n return true;\n }", "public void addLast(Item x) {\n if (size == items.length) {\n resize(size * 2);\n }\n items[size] = x;\n size += 1;\n }", "public static <E> void append(List<E> list){\n\n }", "public boolean add (Object o) {return addLast(o);}", "public void addMessageListBeforeLastOne(List<StringAndMessage> messageList){\n if(messageList.isEmpty()){\n //do nothing\n }\n if(this.messageListExpected.isEmpty()){\n this.messageListExpected.addAll(messageList);\n }\n else{\n this.messageListExpected.addAll(this.messageListExpected.size()- 1, messageList);\n }\n\n }", "IList<T> append(IList<T> l);", "public void addNewList(GroceryList list) {\n String key = listsRef.push().getKey();\n Map<String, Object> postValues = list.toMap();\n\n // TODO: lastUpdated\n\n // Set the values\n listsRef.child(key).setValue(postValues);\n }", "public void addLast(Item item){\r\n\t\tif (item == null) throw new NullPointerException();\r\n\t\tif (n == list.length){resize(2*list.length);}\r\n\t\tif(isEmpty()){prior=list.length-1;first=0;last=0;latter=0;}\r\n\t\tlist[latter++]=item;\r\n\t\t last=latter-1;\r\n\t\t if(latter==list.length){latter=0;}\r\n\t\t n++;}", "public void addLast(E item){\r\n }", "public void add(E elem) {\n if (!list.contains(elem))\n list.insertLast(elem);\n }", "public void add(ContentValues values) {\n long startTime = values.getAsLong(DB.FEED.START_TIME);\n long endTime = startTime;\n if (values.containsKey(DB.FEED.DURATION))\n endTime = startTime + values.getAsLong(DB.FEED.DURATION);\n\n int endIndex = findEndIndex(startTime - TIME_MARGIN);\n int startIndex = findStartIndex(endIndex, endTime + TIME_MARGIN);\n\n for (int i = startIndex; i <= endIndex; i++) {\n ContentValues c = currList.get(i);\n if (match(values, c, filterDuplicates)) {\n // Set already contains matching row...skip this\n discarded++;\n return;\n }\n }\n added++;\n addList.add(values); // no match, add this row\n mDB.insert(DB.FEED.TABLE, null, values);\n }", "public IList<T> append(IList<T> l) {\n return l;\n }", "public void addLast(T item) {\n if (isFull()) {\n resize(capacity * 2);\n }\n items[nextLast] = item;\n nextLast = plusOne(nextLast);\n size += 1;\n }", "public void add(T item) {\n if (nextindex >= list.length) {\n resize();\n }\n list[nextindex] = item;\n nextindex++;\n }", "public static void addList() {\n\t}", "public void addToFreeList(V value) {\n this.mFreeList.add(value);\n }", "public void add(T e) {\n\t\tif(!this.isEmpty()) {\n\t\t\tsuper.put(e, new Duet<T>(last, null));\n\t\t\tthis.get(last).setLast(e);\n\t\t\tlast = e;\n\t\t} else {\n\t\t\tsuper.put(e, new Duet<T>(null, null));\n\t\t\tfirst = e;\n\t\t\tlast = e;\n\t\t}\n\t}", "public void appendData(T data){\n Node<T> newEnd = new Node<>(data); // new Node referenced by newEnd\n Node<T> thisNode = this; // grab this Node\n\n // traverse list and append to the tail\n while (thisNode.next != null){\n thisNode = thisNode.next;\n }\n thisNode.next = newEnd;\n }", "public HPTNode<K, V> append(V value) {\n if (values == null) {\n values = new ArrayList<>(2);\n }\n values.add(value);\n return this;\n }", "public void addLast(T t) {\n if (size == elements.length) // checks potential overflow\n ensureCapacity(); // increase capacity\n elements[size] = t; //store element at last position\n size++; // increment size\n }", "public boolean add(Reminder reminder);", "public void addToEnd(T obj) {\r\n \t\t// Check obj is not null\r\n \t\tif(obj == null) {\r\n \t\t\treturn;\r\n \t\t}\r\n \t\t// Check if items is full\r\n \t\tif(numItems == items.length) {\r\n \t\t\tdoubleArrayLength();\r\n \t\t}\r\n \t\titems[numItems++] = obj;\r\n \t}", "public void addValue(String listValue) {\n\t\tthis.listValues.add(listValue);\n\t}", "public void addReminder(String date, String reminder){\n if(reminders.get(date) == null)\n {\n reminders.put(date, new ArrayList<String>());\n }\n reminders.get(date).add(reminder);\n }", "@Override\n public void addLast(E e) throws IllegalStateException {\n checkSize();\n data[size] = e;\n size++;\n }", "private void addFriendList(People value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureFriendListIsMutable();\n friendList_.add(value);\n }", "void add(int value) {\n size++;\n\n int[] newItems = new int[size];\n\n System.arraycopy(items, 0, newItems, 0, items.length);\n\n newItems[newItems.length - 1] = value;\n\n items = newItems;\n }", "@Override\n public void add(LocalDateTime date, List<Gadget> list) {\n orders.put(date, list);\n }", "int appendEntries(final List<LogEntry> entries);", "public void add(Object o){\n list.add(o);\n }", "public void addNewData(List<PublicPollResponseModel.Data> data) {\n //remove footer view\n this.removeFooterView(footer);\n //Add all data into the adapter\n adapter.addAll(data);\n //Notifies the attached observers that the underlying\n // data has been changed and any View reflecting the data set should refresh itself.\n adapter.notifyDataSetChanged();\n isLoading = false;\n }", "public void addLast(E e) { // adds element e to the end of the list\n // TODO\n addFirst(e);\n tail = tail.getNext();\n }", "void addDoneTasks(List<Task> task);", "public void offer(int num){\n if(tail == fixedSize - 1) {\n List<Object> newList = new ArrayList<>();\n newList.add(num);\n //save next new list at tail\n tailList.add(newList);\n tailList = (List<Object>) tailList.get(tail);\n tail = 0;\n }else{ //not in last index,then directly add it;\n tailList.add(num);\n }\n count++;\n tail++;\n }", "public void addReminder(int position, Reminder addedReminder){\n reminderList.add(position, addedReminder);\n notifyItemInserted(position);\n badgeUpdateListener.onBadgeUpdate();\n }", "public void append(Integer data) {\n\t\t// Construct a node tmp and make null as the next pointer:Step1\n\t\tListNode tmp = new ListNode(data, null);\n\n\t\tif (!isEmpty()) {\n\t\t\t// make next pointer of tail as tmp :Step2\n\t\t\t tail.next = tmp;// tmp is new tail\n\t\t\t\n\t\t} else {\n\t\t\t// but if list is empty then the temp is the only element \n\t\t\t//and is new tail as wells as head[see next statement executed]\t\n\t\t\tthis.head = tmp;\n\t\t}\n\t\tthis.tail = tmp; // now make tmp the new tail:Step2\n\t\n\t\tlength++;\n\t}", "public Builder addList(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureListIsMutable();\n list_.add(value);\n onChanged();\n return this;\n }", "public void add(String element){\n\t\tif(!contains(element)){\n\t\t\tlist.addLast(element);\n\t\t}\n\t}", "public void add(List<?> list) {\n list.clear();\n pool.offer(list);\n }", "public void addLast(T element);", "public void appendList(ElementList<E> listToAppend) {\r\n\t\tif (listToAppend.first() != null) {\r\n\t\t\tif (last != null) {\r\n\t\t\t\tlast.next = listToAppend.first();\r\n\t\t\t\tlast = listToAppend.last();\r\n\t\t\t} else {\r\n\t\t\t\theader.next = listToAppend.first();\r\n\t\t\t\tlast = listToAppend.last();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "void checkLastItem() {\n if (!mItems.isEmpty() && !mItems.get(mItems.size() - 1).equals(ADD_NEW_ENTRY)) {\n // add last item again if missing\n mItems.add(ADD_NEW_ENTRY);\n // need to manually call, since this item is not in Db and hence ignored by DiffUtil\n notifyItemInserted(mItems.size() - 1);\n }\n }", "public void addLast(E item) {\n Node<E> n = new Node<>(item);\n size++;\n if(tail == null) {\n // The list was empty\n head = tail = n;\n } else {\n tail.next = n;\n tail = n;\n }\n }", "public void addLast(T value) {\n Node<T> node = new Node<T>(value);\n Node<T> prev = sentinel.prev;\n\n node.prev = prev;\n prev.next = node;\n sentinel.prev = node;\n node.next = sentinel;\n\n size += 1;\n }", "@Override\n public void addLast(Item i) {\n resize();\n items[nextLast] = i;\n size += 1;\n nextLast = moveForward(nextLast, 1);\n }", "public void addLast(TypeHere x) {\n if (size == items.length) {\n resize(size + 1);\n }\n items[size] = x;\n size += 1;\n }", "@Override\n public void add(int index, E value) {\n this.rangeCheck(index);\n if (this.values.length == this.index) {\n this.grow();\n }\n this.modCount++;\n System.arraycopy(this.values, index, this.values, index + 1, this.size() - index);\n this.values[index] = value;\n this.index++;\n }", "public IList<T> append(IList<T> l) {\n if (rest.isEmpty()) {\n rest = l;\n }\n else {\n rest.append(l);\n }\n return this;\n }", "public void add(int index, E e) {\n resize();\n for(int i = size-1; i >= index; i--) {\n list[i+1] = list[i];\n }\n list[index] = e;\n size++;\n }", "public static void push(Object data) {\n list.add(data);\n }", "public void append(int nodeValue)\n {\n ListNode newNode = new ListNode(nodeValue);\n\n // Check if the head is null\n if(this.head == null && this.tail == null)\n {\n this.head = newNode;\n this.tail = newNode;\n } else {\n\n ListNode currNode = this.head;\n ListNode prevNode = this.head;\n\n // Traverse the list\n while(currNode.getNextNode() != null)\n {\n // System.out.println(\"STUCK\");\n // System.out.println(\"CURRENT NODE VALUE: \" + currNode.getValue());\n // System.out.println(\"NEXT NODE FROM CURRENT: \" + currNode.getNextNode().getValue());\n prevNode = currNode;\n currNode = currNode.getNextNode();\n \n }\n\n // Wire the two nodes together\n currNode.setNextNode(newNode);\n newNode.setPrevNode(currNode);\n this.tail = newNode;\n }\n\n this.size = size + 1;\n\n }", "public void appendInPlace (List l) {\n\t\tif (this.isEmpty()) {\n\t\t\tmyHead = l.myHead;\n\t\t\tmySize = l.mySize;\n\t\t\tmyTail = l.myTail;\n\t\t}\n\t\telse if (l.isEmpty()) {\n\t\t\treturn;\n\t\t}\n\t\telse {\n\t\t\tmyTail.myNext = l.myHead;\n\t\t\tmyTail = l.myTail;\n\t\t\tmySize += l.mySize;\n\t\t}\n\t}", "public @Override boolean add(E element) {\n \tappend(element);\n \treturn true;\n }", "public final void add() {\n\t\tif (size > 1) {\n\n\t\t\tdouble topMostValue = pop();\n\t\t\tdouble secondTopMostValue = pop();\n\t\t\tpush(secondTopMostValue + topMostValue);\n\t\t}\n\t}", "public void add(int item) {\r\n if (!contains(item)) {\r\n items[NumItems++] = item;\r\n } else if (NumItems == MAX_LIST) {\r\n throw new ListFullException(\"List is full\");\r\n }\r\n }", "public void add(E e) {\n resize();\n list[size] = e;\n size++;\n }", "public void append(Item value) {\n throw new OurBadException(\" Item '\" + this.serialize() + \"' is not an array.\");\n }", "private static List<Integer> addOnePlus(List<Integer> input) {\n\n\t\tint size = input.size();\n\t\tinput.set(size-1, input.get(size-1)+1);//last element of input is updated/replaced by (original value + 1)\n\n\t\tfor(int i=size-1; i>0 && input.get(i)==10; i--) {\n\t\t\tinput.set(i, 0);\n\t\t\tinput.set(i-1, input.get(i-1)+1);\n\t\t}\n\n\t\tif(input.get(0) == 10) {\n\t\t\tinput.set(0, 0);\n\t\t\tinput.add(0, 1);//add 1 at index0 ,shift all elements after to right\n\t\t}\n\n\t\treturn input;//this modifies the original input\n\t}", "public void addToTaskList(Task task) {\n taskList.add(task);\n }", "public synchronized void addItem(ArrayList<Start.Ingredients> obj) {\r\n\t\t// Only add if the table is empty\r\n\t\twhile (!empty && count < 20) {\r\n\t\t\ttry {\r\n\t\t\t\twait();\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (count >= 20) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// Set the contents and notifyAll()\r\n\t\tcontents = obj;\r\n\t\tempty = false;\r\n\t\tnotifyAll();\r\n\r\n\t}", "public void addAll(List<Activities> list) {\r\n mActivityList.addAll(list);\r\n notifyDataSetChanged();\r\n }", "@Override\n public void appendRecurringDate(TaskOccurrence componentToBeAdded) {\n assert !recurringType.equals(RecurringType.NONE) : \"You cannot append new dates to non recurring tasks\";\n recurringDates.add(componentToBeAdded);\n recurringDates.get(recurringDates.size() - INDEX_OFFSET).setTaskReferrence(this);\n }", "public void enqueue(E e) {\n\t\tlist.addLast(e);\n\t}", "public ImmutableIntList append(int element) {\n if (ints.length == 0) {\n return of(element);\n }\n final int[] newInts = Arrays.copyOf(this.ints, ints.length + 1);\n newInts[ints.length] = element;\n return new ImmutableIntList(newInts);\n }", "@Override\n\tpublic boolean add(E item) {\n\t\tif (this.numberOfElements == this.size) {\n\t\t\tE[] newArrayList = (E[]) new Object[this.size * 2];\n\t\t\tint i = 0;\n\t\t\twhile (i < this.size) {\n\t\t\t\tnewArrayList[i] = this.arrayList[i];\n\t\t\t\ti += 1;\n\t\t\t}\n\t\t\tthis.arrayList = newArrayList;\n\t\t\tthis.size = this.size * 2;\n\t\t}\n\t\tthis.arrayList[this.numberOfElements] = item;\n\t\tthis.numberOfElements += 1;\n\t\treturn true;\n\t}", "public void addToCommentsList(Object newValue);", "public void addToCommentsList(Object newValue);", "public void updateData(List<AddingTopItem> mList){\n mData.clear();\n mData.addAll(mList);\n this.notifyDataSetChanged();\n }", "public void validAdd(String element){\n\t\tlist.addLast(element);\n\t}", "private static List<Integer> addOne(List<Integer> input) {\n\n\t\tList<Integer> copy = new ArrayList<>();\n\t\tcopy.addAll(input);\n\n\t\tint size = copy.size();\n\t\tcopy.set(size-1, input.get(size-1)+1);//last element of input is updated/replaced by (original value + 1)\n\n\t\tfor(int i=size-1; i>0 && copy.get(i)==10; i--) {\n\t\t\tcopy.set(i, 0);\n\t\t\tcopy.set(i-1, copy.get(i-1)+1);\n\t\t}\n\n\t\tif(copy.get(0) == 10) {\n\t\t\tcopy.set(0, 0);\n\t\t\tcopy.add(0, 1);//add 1 at index0 ,shift all elements after to right\n\t\t}\n\n\t\treturn copy;//this NOT modifies the original input\n\t}", "public void push(E o) {\n list.add(o);\n }", "com.microsoft.schemas.crm._2011.contracts.ArrayOfAppointmentsToIgnore addNewAppointmentsToIgnore();", "public void add(E value){\n if (maxIndex != array.length-1){\n array[++maxIndex] = value;\n }else {\n Object[] tmpArray = new Object[array.length+ capacity];\n for (int i = 0; i < array.length; i++) {\n tmpArray[i] = array[i];\n }\n array = tmpArray;\n array[++maxIndex] = value;\n }\n }", "public void addLast(int key)\r\n {\r\n if(numItems < maxSize)\r\n {\r\n mArray[numItems] = key;\r\n numItems++;\r\n }\r\n\r\n }" ]
[ "0.7021554", "0.6839598", "0.6290868", "0.62235326", "0.609829", "0.6077146", "0.6035155", "0.58638793", "0.58541656", "0.58211654", "0.5772183", "0.57244825", "0.5709445", "0.56625134", "0.5651758", "0.5628641", "0.56057054", "0.56056607", "0.5595989", "0.55938184", "0.5590569", "0.5588287", "0.55833304", "0.55596256", "0.5538981", "0.552296", "0.55227715", "0.551815", "0.54983824", "0.54818845", "0.54706573", "0.5461487", "0.54473114", "0.5444112", "0.5443696", "0.5433161", "0.54180115", "0.54158485", "0.5408668", "0.53996074", "0.5377043", "0.53753746", "0.5368591", "0.53632843", "0.5363111", "0.5357594", "0.53568614", "0.5354744", "0.534517", "0.5336381", "0.5326538", "0.53033763", "0.53026235", "0.52984214", "0.52918845", "0.5281609", "0.5276335", "0.52736217", "0.5272002", "0.52687067", "0.5266333", "0.52550805", "0.52472806", "0.5244427", "0.5241428", "0.52187604", "0.52167207", "0.5209094", "0.5207299", "0.5206094", "0.51984155", "0.5198059", "0.5185446", "0.51818377", "0.5181154", "0.5179273", "0.5177258", "0.5176943", "0.51730776", "0.51709026", "0.51707405", "0.5167851", "0.5162961", "0.51599383", "0.5157995", "0.5146421", "0.51452386", "0.5145071", "0.5143986", "0.51423216", "0.51375484", "0.51335305", "0.51335305", "0.51332897", "0.5129977", "0.5119015", "0.51175505", "0.5114472", "0.5113662", "0.51125336" ]
0.6271668
3
Appends to the end of List, irrespective of value already existing. See addToReminders to add without duplicating.
public void appendToReminders(List<Date> reminders);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addToReminders(List<Date> reminders);", "private static final <T> List<T> append(List<T> list, T newElement) {\n List<T> newList = Lists.newArrayListWithCapacity(list.size() + 1);\n newList.addAll(list);\n newList.add(newElement);\n return newList;\n }", "public void appendToReminders(Date reminders);", "public void addToEnd(String value) {\n ListElement current = new ListElement(value);\n if (count == 0) {\n head = current;\n } else {\n tail.connectNext(current);\n }\n tail = current;\n count++;\n }", "public void addLast(T listItem) {\n add(listItem);\n }", "public void addToReminders(Date reminders);", "public void push(E value) {\n list.addLast(value);\n index++;\n }", "public void add(E e) {\n if (n == list.length) { grow(); }\n list[n++] = e;\n }", "public void addLast(Object item) {\r\n\t\tdata.add(item);\r\n\r\n\t}", "@Override\n\tpublic void add(int n) {\n\t\tvalues[size] = n; //add value to the list\n\t\tsize++; //increment size\n\t\tif (size == values.length){ //if the list is full expand it\n\t\t\tresize();\n\t\t}\n\t}", "@Override\n public void add(Object item)\n {\n if (size == list.length)\n {\n Object [] itemInListCurrently = deepCopy();\n list = new Object[size * 2];\n\n System.arraycopy(itemInListCurrently, 0, list, 0, size);\n }\n\n list[size++] = item;\n }", "public void addValues(List newValues) {\n synchronized (values) {\n values.addAll(newValues);\n }\n }", "@Override\n public void addLast(E value) {\n if (value == null) {\n throw new NullPointerException(\"Value can not be null\");\n }\n if (isEmpty()) {\n head = tail = 0;\n dequeue[tail] = value;\n size++;\n return;\n }\n tail = ++tail % dequeue.length;\n dequeue[tail] = value;\n size++;\n if (size == dequeue.length) {\n widen();\n }\n }", "public void append(Object item);", "public RTWLocation append(Object... list);", "public void add(T value) {\n extend();\n this.list[size]=value;\n this.size++;\n }", "public void addReminder(Reminder reminder) {\n reminders.add(reminder);\n }", "@Override\r\n\tpublic void addLast(E e) {\n\t\t\r\n\t}", "public void addLast(E item);", "protected void addToTail(T val)\n\t{\n\t\tListElement<T> newElm = new ListElement<T>(val, null, tail);\n\t\t\n\t\tif(tail != null)\n\t\t\ttail.setNext(newElm);\n\t\telse\n\t\t\t//If list was empty befor addition\n\t\t\thead = newElm;\n\t\t\t\n\t\ttail = newElm;\n\t}", "public void add(Item nextItemToAdd) {\n items.add(nextItemToAdd);\n Collections.sort(items);\n fireIntervalAdded(nextItemToAdd, indexOf(nextItemToAdd), indexOf(nextItemToAdd));\n }", "public void addLast(T item) {\n if (size == 0) {\n array[rear] = item;\n size++;\n return;\n }\n\n this.checkReSizeUp();\n rear++;\n this.updatePointer();\n array[rear] = item;\n size++;\n }", "@Override\n public void addLast(T item) {\n if (size >= array.length) {\n resize(size * 2);\n array[nextLast] = item;\n nextLast = plusOne(nextLast);\n } else {\n array[nextLast] = item;\n nextLast = plusOne(nextLast);\n }\n size += 1;\n }", "public void addLast(Item x);", "@Override\n\tpublic RDFList append( final RDFList list ) throws AccessDeniedException;", "@Override\n public boolean add(E value) {\n if (this.values.length == this.index) {\n this.grow();\n }\n this.modCount++;\n this.values[index++] = value;\n return true;\n }", "public void add(Object value) {\n verifyModifiable();\n\n elements.add(value);\n }", "public void addLast(Item x) {\n if (size == items.length) {\n resize(size * 2);\n }\n items[size] = x;\n size += 1;\n }", "public static <E> void append(List<E> list){\n\n }", "public boolean add (Object o) {return addLast(o);}", "public void addMessageListBeforeLastOne(List<StringAndMessage> messageList){\n if(messageList.isEmpty()){\n //do nothing\n }\n if(this.messageListExpected.isEmpty()){\n this.messageListExpected.addAll(messageList);\n }\n else{\n this.messageListExpected.addAll(this.messageListExpected.size()- 1, messageList);\n }\n\n }", "IList<T> append(IList<T> l);", "public void addNewList(GroceryList list) {\n String key = listsRef.push().getKey();\n Map<String, Object> postValues = list.toMap();\n\n // TODO: lastUpdated\n\n // Set the values\n listsRef.child(key).setValue(postValues);\n }", "public void addLast(E item){\r\n }", "public void addLast(Item item){\r\n\t\tif (item == null) throw new NullPointerException();\r\n\t\tif (n == list.length){resize(2*list.length);}\r\n\t\tif(isEmpty()){prior=list.length-1;first=0;last=0;latter=0;}\r\n\t\tlist[latter++]=item;\r\n\t\t last=latter-1;\r\n\t\t if(latter==list.length){latter=0;}\r\n\t\t n++;}", "public void add(E elem) {\n if (!list.contains(elem))\n list.insertLast(elem);\n }", "public void add(ContentValues values) {\n long startTime = values.getAsLong(DB.FEED.START_TIME);\n long endTime = startTime;\n if (values.containsKey(DB.FEED.DURATION))\n endTime = startTime + values.getAsLong(DB.FEED.DURATION);\n\n int endIndex = findEndIndex(startTime - TIME_MARGIN);\n int startIndex = findStartIndex(endIndex, endTime + TIME_MARGIN);\n\n for (int i = startIndex; i <= endIndex; i++) {\n ContentValues c = currList.get(i);\n if (match(values, c, filterDuplicates)) {\n // Set already contains matching row...skip this\n discarded++;\n return;\n }\n }\n added++;\n addList.add(values); // no match, add this row\n mDB.insert(DB.FEED.TABLE, null, values);\n }", "public IList<T> append(IList<T> l) {\n return l;\n }", "public void addLast(T item) {\n if (isFull()) {\n resize(capacity * 2);\n }\n items[nextLast] = item;\n nextLast = plusOne(nextLast);\n size += 1;\n }", "public void add(T item) {\n if (nextindex >= list.length) {\n resize();\n }\n list[nextindex] = item;\n nextindex++;\n }", "public static void addList() {\n\t}", "public void addToFreeList(V value) {\n this.mFreeList.add(value);\n }", "public void add(T e) {\n\t\tif(!this.isEmpty()) {\n\t\t\tsuper.put(e, new Duet<T>(last, null));\n\t\t\tthis.get(last).setLast(e);\n\t\t\tlast = e;\n\t\t} else {\n\t\t\tsuper.put(e, new Duet<T>(null, null));\n\t\t\tfirst = e;\n\t\t\tlast = e;\n\t\t}\n\t}", "public void appendData(T data){\n Node<T> newEnd = new Node<>(data); // new Node referenced by newEnd\n Node<T> thisNode = this; // grab this Node\n\n // traverse list and append to the tail\n while (thisNode.next != null){\n thisNode = thisNode.next;\n }\n thisNode.next = newEnd;\n }", "public HPTNode<K, V> append(V value) {\n if (values == null) {\n values = new ArrayList<>(2);\n }\n values.add(value);\n return this;\n }", "public boolean add(Reminder reminder);", "public void addLast(T t) {\n if (size == elements.length) // checks potential overflow\n ensureCapacity(); // increase capacity\n elements[size] = t; //store element at last position\n size++; // increment size\n }", "public void addToEnd(T obj) {\r\n \t\t// Check obj is not null\r\n \t\tif(obj == null) {\r\n \t\t\treturn;\r\n \t\t}\r\n \t\t// Check if items is full\r\n \t\tif(numItems == items.length) {\r\n \t\t\tdoubleArrayLength();\r\n \t\t}\r\n \t\titems[numItems++] = obj;\r\n \t}", "public void addValue(String listValue) {\n\t\tthis.listValues.add(listValue);\n\t}", "public void addReminder(String date, String reminder){\n if(reminders.get(date) == null)\n {\n reminders.put(date, new ArrayList<String>());\n }\n reminders.get(date).add(reminder);\n }", "@Override\n public void addLast(E e) throws IllegalStateException {\n checkSize();\n data[size] = e;\n size++;\n }", "private void addFriendList(People value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureFriendListIsMutable();\n friendList_.add(value);\n }", "void add(int value) {\n size++;\n\n int[] newItems = new int[size];\n\n System.arraycopy(items, 0, newItems, 0, items.length);\n\n newItems[newItems.length - 1] = value;\n\n items = newItems;\n }", "@Override\n public void add(LocalDateTime date, List<Gadget> list) {\n orders.put(date, list);\n }", "int appendEntries(final List<LogEntry> entries);", "public void add(Object o){\n list.add(o);\n }", "public void addNewData(List<PublicPollResponseModel.Data> data) {\n //remove footer view\n this.removeFooterView(footer);\n //Add all data into the adapter\n adapter.addAll(data);\n //Notifies the attached observers that the underlying\n // data has been changed and any View reflecting the data set should refresh itself.\n adapter.notifyDataSetChanged();\n isLoading = false;\n }", "public void addLast(E e) { // adds element e to the end of the list\n // TODO\n addFirst(e);\n tail = tail.getNext();\n }", "void addDoneTasks(List<Task> task);", "public void offer(int num){\n if(tail == fixedSize - 1) {\n List<Object> newList = new ArrayList<>();\n newList.add(num);\n //save next new list at tail\n tailList.add(newList);\n tailList = (List<Object>) tailList.get(tail);\n tail = 0;\n }else{ //not in last index,then directly add it;\n tailList.add(num);\n }\n count++;\n tail++;\n }", "public void addReminder(int position, Reminder addedReminder){\n reminderList.add(position, addedReminder);\n notifyItemInserted(position);\n badgeUpdateListener.onBadgeUpdate();\n }", "public void append(Integer data) {\n\t\t// Construct a node tmp and make null as the next pointer:Step1\n\t\tListNode tmp = new ListNode(data, null);\n\n\t\tif (!isEmpty()) {\n\t\t\t// make next pointer of tail as tmp :Step2\n\t\t\t tail.next = tmp;// tmp is new tail\n\t\t\t\n\t\t} else {\n\t\t\t// but if list is empty then the temp is the only element \n\t\t\t//and is new tail as wells as head[see next statement executed]\t\n\t\t\tthis.head = tmp;\n\t\t}\n\t\tthis.tail = tmp; // now make tmp the new tail:Step2\n\t\n\t\tlength++;\n\t}", "public Builder addList(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureListIsMutable();\n list_.add(value);\n onChanged();\n return this;\n }", "public void add(String element){\n\t\tif(!contains(element)){\n\t\t\tlist.addLast(element);\n\t\t}\n\t}", "public void add(List<?> list) {\n list.clear();\n pool.offer(list);\n }", "public void addLast(T element);", "public void appendList(ElementList<E> listToAppend) {\r\n\t\tif (listToAppend.first() != null) {\r\n\t\t\tif (last != null) {\r\n\t\t\t\tlast.next = listToAppend.first();\r\n\t\t\t\tlast = listToAppend.last();\r\n\t\t\t} else {\r\n\t\t\t\theader.next = listToAppend.first();\r\n\t\t\t\tlast = listToAppend.last();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "void checkLastItem() {\n if (!mItems.isEmpty() && !mItems.get(mItems.size() - 1).equals(ADD_NEW_ENTRY)) {\n // add last item again if missing\n mItems.add(ADD_NEW_ENTRY);\n // need to manually call, since this item is not in Db and hence ignored by DiffUtil\n notifyItemInserted(mItems.size() - 1);\n }\n }", "public void addLast(E item) {\n Node<E> n = new Node<>(item);\n size++;\n if(tail == null) {\n // The list was empty\n head = tail = n;\n } else {\n tail.next = n;\n tail = n;\n }\n }", "public void addLast(T value) {\n Node<T> node = new Node<T>(value);\n Node<T> prev = sentinel.prev;\n\n node.prev = prev;\n prev.next = node;\n sentinel.prev = node;\n node.next = sentinel;\n\n size += 1;\n }", "public void addLast(TypeHere x) {\n if (size == items.length) {\n resize(size + 1);\n }\n items[size] = x;\n size += 1;\n }", "@Override\n public void addLast(Item i) {\n resize();\n items[nextLast] = i;\n size += 1;\n nextLast = moveForward(nextLast, 1);\n }", "@Override\n public void add(int index, E value) {\n this.rangeCheck(index);\n if (this.values.length == this.index) {\n this.grow();\n }\n this.modCount++;\n System.arraycopy(this.values, index, this.values, index + 1, this.size() - index);\n this.values[index] = value;\n this.index++;\n }", "public IList<T> append(IList<T> l) {\n if (rest.isEmpty()) {\n rest = l;\n }\n else {\n rest.append(l);\n }\n return this;\n }", "public void add(int index, E e) {\n resize();\n for(int i = size-1; i >= index; i--) {\n list[i+1] = list[i];\n }\n list[index] = e;\n size++;\n }", "public static void push(Object data) {\n list.add(data);\n }", "public void appendInPlace (List l) {\n\t\tif (this.isEmpty()) {\n\t\t\tmyHead = l.myHead;\n\t\t\tmySize = l.mySize;\n\t\t\tmyTail = l.myTail;\n\t\t}\n\t\telse if (l.isEmpty()) {\n\t\t\treturn;\n\t\t}\n\t\telse {\n\t\t\tmyTail.myNext = l.myHead;\n\t\t\tmyTail = l.myTail;\n\t\t\tmySize += l.mySize;\n\t\t}\n\t}", "public void append(int nodeValue)\n {\n ListNode newNode = new ListNode(nodeValue);\n\n // Check if the head is null\n if(this.head == null && this.tail == null)\n {\n this.head = newNode;\n this.tail = newNode;\n } else {\n\n ListNode currNode = this.head;\n ListNode prevNode = this.head;\n\n // Traverse the list\n while(currNode.getNextNode() != null)\n {\n // System.out.println(\"STUCK\");\n // System.out.println(\"CURRENT NODE VALUE: \" + currNode.getValue());\n // System.out.println(\"NEXT NODE FROM CURRENT: \" + currNode.getNextNode().getValue());\n prevNode = currNode;\n currNode = currNode.getNextNode();\n \n }\n\n // Wire the two nodes together\n currNode.setNextNode(newNode);\n newNode.setPrevNode(currNode);\n this.tail = newNode;\n }\n\n this.size = size + 1;\n\n }", "public @Override boolean add(E element) {\n \tappend(element);\n \treturn true;\n }", "public final void add() {\n\t\tif (size > 1) {\n\n\t\t\tdouble topMostValue = pop();\n\t\t\tdouble secondTopMostValue = pop();\n\t\t\tpush(secondTopMostValue + topMostValue);\n\t\t}\n\t}", "public void add(int item) {\r\n if (!contains(item)) {\r\n items[NumItems++] = item;\r\n } else if (NumItems == MAX_LIST) {\r\n throw new ListFullException(\"List is full\");\r\n }\r\n }", "public void add(E e) {\n resize();\n list[size] = e;\n size++;\n }", "public void append(Item value) {\n throw new OurBadException(\" Item '\" + this.serialize() + \"' is not an array.\");\n }", "private static List<Integer> addOnePlus(List<Integer> input) {\n\n\t\tint size = input.size();\n\t\tinput.set(size-1, input.get(size-1)+1);//last element of input is updated/replaced by (original value + 1)\n\n\t\tfor(int i=size-1; i>0 && input.get(i)==10; i--) {\n\t\t\tinput.set(i, 0);\n\t\t\tinput.set(i-1, input.get(i-1)+1);\n\t\t}\n\n\t\tif(input.get(0) == 10) {\n\t\t\tinput.set(0, 0);\n\t\t\tinput.add(0, 1);//add 1 at index0 ,shift all elements after to right\n\t\t}\n\n\t\treturn input;//this modifies the original input\n\t}", "public void addToTaskList(Task task) {\n taskList.add(task);\n }", "public synchronized void addItem(ArrayList<Start.Ingredients> obj) {\r\n\t\t// Only add if the table is empty\r\n\t\twhile (!empty && count < 20) {\r\n\t\t\ttry {\r\n\t\t\t\twait();\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (count >= 20) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// Set the contents and notifyAll()\r\n\t\tcontents = obj;\r\n\t\tempty = false;\r\n\t\tnotifyAll();\r\n\r\n\t}", "@Override\n public void appendRecurringDate(TaskOccurrence componentToBeAdded) {\n assert !recurringType.equals(RecurringType.NONE) : \"You cannot append new dates to non recurring tasks\";\n recurringDates.add(componentToBeAdded);\n recurringDates.get(recurringDates.size() - INDEX_OFFSET).setTaskReferrence(this);\n }", "public void enqueue(E e) {\n\t\tlist.addLast(e);\n\t}", "public void addAll(List<Activities> list) {\r\n mActivityList.addAll(list);\r\n notifyDataSetChanged();\r\n }", "public ImmutableIntList append(int element) {\n if (ints.length == 0) {\n return of(element);\n }\n final int[] newInts = Arrays.copyOf(this.ints, ints.length + 1);\n newInts[ints.length] = element;\n return new ImmutableIntList(newInts);\n }", "@Override\n\tpublic boolean add(E item) {\n\t\tif (this.numberOfElements == this.size) {\n\t\t\tE[] newArrayList = (E[]) new Object[this.size * 2];\n\t\t\tint i = 0;\n\t\t\twhile (i < this.size) {\n\t\t\t\tnewArrayList[i] = this.arrayList[i];\n\t\t\t\ti += 1;\n\t\t\t}\n\t\t\tthis.arrayList = newArrayList;\n\t\t\tthis.size = this.size * 2;\n\t\t}\n\t\tthis.arrayList[this.numberOfElements] = item;\n\t\tthis.numberOfElements += 1;\n\t\treturn true;\n\t}", "public void updateData(List<AddingTopItem> mList){\n mData.clear();\n mData.addAll(mList);\n this.notifyDataSetChanged();\n }", "public void addToCommentsList(Object newValue);", "public void addToCommentsList(Object newValue);", "public void validAdd(String element){\n\t\tlist.addLast(element);\n\t}", "private static List<Integer> addOne(List<Integer> input) {\n\n\t\tList<Integer> copy = new ArrayList<>();\n\t\tcopy.addAll(input);\n\n\t\tint size = copy.size();\n\t\tcopy.set(size-1, input.get(size-1)+1);//last element of input is updated/replaced by (original value + 1)\n\n\t\tfor(int i=size-1; i>0 && copy.get(i)==10; i--) {\n\t\t\tcopy.set(i, 0);\n\t\t\tcopy.set(i-1, copy.get(i-1)+1);\n\t\t}\n\n\t\tif(copy.get(0) == 10) {\n\t\t\tcopy.set(0, 0);\n\t\t\tcopy.add(0, 1);//add 1 at index0 ,shift all elements after to right\n\t\t}\n\n\t\treturn copy;//this NOT modifies the original input\n\t}", "public void push(E o) {\n list.add(o);\n }", "com.microsoft.schemas.crm._2011.contracts.ArrayOfAppointmentsToIgnore addNewAppointmentsToIgnore();", "public void add(E value){\n if (maxIndex != array.length-1){\n array[++maxIndex] = value;\n }else {\n Object[] tmpArray = new Object[array.length+ capacity];\n for (int i = 0; i < array.length; i++) {\n tmpArray[i] = array[i];\n }\n array = tmpArray;\n array[++maxIndex] = value;\n }\n }", "public void addLast(int key)\r\n {\r\n if(numItems < maxSize)\r\n {\r\n mArray[numItems] = key;\r\n numItems++;\r\n }\r\n\r\n }" ]
[ "0.6841179", "0.62894505", "0.62732893", "0.622251", "0.60990995", "0.6078062", "0.60336494", "0.5863031", "0.5854998", "0.58211935", "0.5770839", "0.5723431", "0.57094866", "0.56615967", "0.56511337", "0.56266683", "0.5606705", "0.5606108", "0.5597009", "0.5592905", "0.5588908", "0.558843", "0.5583683", "0.55602694", "0.55387115", "0.5521389", "0.55207604", "0.551817", "0.549762", "0.54812515", "0.54721314", "0.5459751", "0.5445918", "0.5444979", "0.5444565", "0.5432513", "0.54166853", "0.5414475", "0.5408832", "0.5398479", "0.5375633", "0.5373686", "0.5369036", "0.5363214", "0.5360261", "0.53580415", "0.5357803", "0.5355558", "0.53442085", "0.5338159", "0.53269506", "0.53021425", "0.5300192", "0.52982616", "0.5291963", "0.5280262", "0.52759045", "0.5273841", "0.52724975", "0.5268622", "0.5267082", "0.52548015", "0.52454644", "0.52437854", "0.52396816", "0.5219797", "0.521577", "0.5210705", "0.5207514", "0.52054214", "0.51989204", "0.51985484", "0.5184157", "0.51806504", "0.5180472", "0.5177995", "0.51766276", "0.5175763", "0.51715124", "0.51695776", "0.51694673", "0.5167269", "0.5161786", "0.51602954", "0.5156251", "0.5146834", "0.5145715", "0.5143878", "0.51424146", "0.51411736", "0.51370215", "0.5133959", "0.51336807", "0.51336807", "0.51304424", "0.51199156", "0.51167053", "0.51144296", "0.51120615", "0.511193" ]
0.7023691
0
Adds to the List by treating List as a Set. Thus adds only if not already exists in the List and avoids duplication. See appendToReminders to append to List.
public void addToReminders(Date reminders);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addToReminders(List<Date> reminders);", "@SuppressWarnings(\"unchecked\")\n public static void addIfNotContained(List list, Object object) {\n if (!list.contains(object)) {\n list.add(object);\n }\n }", "public static <T> void addWithoutDuplicates(List<T> addedTo, T toBeAdded) {\n if (!addedTo.contains(toBeAdded))\n addedTo.add(toBeAdded);\n }", "public void add(List<?> list) {\n list.clear();\n pool.offer(list);\n }", "public void appendToReminders(List<Date> reminders);", "public boolean add(List<T> e) {\n\t\treturn lists.add(e);\n\t}", "public static void addList() {\n\t}", "@Override\n public boolean add(Set<E> e) {\n throw new UnsupportedOperationException(\"Add not supported\");\n }", "set.addAll(Arrays.asList(a));", "@Override\n\tpublic void addEntry(E entry) {\n\n\t\t// Determine if the entry already exists in the list\n\t\tE current = this.getHead();\n\t\twhile (current != null) {\n\t\t\tif (this.isEqual(current, entry)) {\n\t\t\t\t// Already in list\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tcurrent = current.getNext();\n\t\t}\n\n\t\t// Not in list, so add the entry\n\t\tsuper.addEntry(entry);\n\t}", "public static void main(String[] args) {\n\n Integer[] integers = new Integer[] {1,2,3,4,5};\n List<Integer>list = new ArrayList<>(Arrays.asList(integers)); // correct one\n System.out.println(\"Converted from Array to List = \" + list);\n\n // this will be a fixed-size list- you can not use add method.\n List<Integer>fixedSizeList = Arrays.asList(integers); // bunu da yapabiliriz ama element ekleme yapamayiz.\n //fixedSizeList.add(6); bunda hata verecek. cunku fixedsize olarak convert ettik. \"unsupported operation exception\" uyarisi verir\n\n\n //Converting list to Array\n Integer[] convertedFromList =list.toArray(new Integer[0]); // sifir yerine herhangi bi sey yazilabilir. ama 0 yazmada fayda var.\n System.out.println(\"Converted from List to Array = \"+ Arrays.toString(convertedFromList));\n\n //Converting an Array to set\n Set<Integer>set = new HashSet<>(Arrays.asList(integers));\n System.out.println(\"Converted from Array to Set = \" + set);\n\n // Converting Set to Array\n Integer[] convertedFromSet = set.toArray(new Integer[0]);\n System.out.println(\"Converted from Set to Array = \" + Arrays.toString(convertedFromSet));\n\n // converting List to Set\n Set<Integer>setFromList = new HashSet<>(list); // bu en cok , ayni value varsa isimize yarar. cunku set'de duplicate yok\n System.out.println(\"Converted list to Set = \" + setFromList);\n\n // Converting Set to List\n List<Integer>listFromSet = new ArrayList<>(setFromList);\n listFromSet.add(9); // en sona ekler\n System.out.println(\"Converted Set to List = \" + listFromSet);\n\n }", "public void add(int number) {\n for(int num : list) set.add(num + number);\n list.add(number);\n }", "public void setListOfTimes(ArrayList<Long> list)\r\n {\r\n //Check if the new list times is empty before setting the new list of times\r\n if(list.isEmpty())\r\n {\r\n //Outputs a warning message \r\n System.out.println(\"WARNING: You cannot assign a empty list of times\");\r\n }\r\n else \r\n {\r\n if(this.listOfTimes.isEmpty())\r\n {\r\n this.listOfTimes.addAll(list);\r\n }\r\n else \r\n {\r\n this.listOfTimes.clear();\r\n this.listOfTimes.addAll(0, list);\r\n }//end if \r\n }//end if\r\n }", "public static <T> void addWithoutDuplicates(List<T> addedTo, List<T> toBeAdded) {\n if (addedTo == null | toBeAdded == null)\n return;\n outer:\n for (int i = 0; i < toBeAdded.size(); i++) {\n T item = toBeAdded.get(i);\n for (int j = 0; j < addedTo.size(); j++) {\n if (addedTo.get(j).equals(item))\n continue outer;\n }\n addedTo.add(item);\n }\n }", "private static final <T> List<T> append(List<T> list, T newElement) {\n List<T> newList = Lists.newArrayListWithCapacity(list.size() + 1);\n newList.addAll(list);\n newList.add(newElement);\n return newList;\n }", "@Test\n public void find_redundant_interaction() {\n list1.add(1);\n list1.add(2);\n verify(list1, Mockito.times(2)).add(Mockito.anyInt());\n verifyNoMoreInteractions(list1);\n\n //List<Integer> list2 = Mockito.mock(List.class);\n list2.add(1);\n list2.add(2);\n verify(list2, Mockito.times(2)).add(Mockito.anyInt());\n verify(list2, Mockito.never()).add(3);\n verifyNoMoreInteractions(list2);\n }", "private void addWithoutDuplicate(ArrayList<WordDocument> addTo, ArrayList<WordDocument> addFrom) {\n for (WordDocument x : addFrom)\n if (!addTo.contains(x))\n addTo.add(x);\n }", "public TempList<T> add(T elem) {\n chk();\n list.add(elem);\n return this;\n }", "public void addEventInventoryList (List<Inventory> eventInventoryList) {\n requireNonNull(eventInventoryList);\n\n for (Inventory item : eventInventoryList) {\n\n Optional<Inventory> optional = this.list.stream().filter(item::isSameInventory).findAny();\n\n if (optional.isPresent()) {\n\n Inventory existingItem = optional.get();\n\n\n //This item is already in a different event\n if (existingItem.getEventInstances() > 0) {\n existingItem.setEventInstances(existingItem.getEventInstances() + 1);\n } else {\n existingItem.setIsRemovable(false);\n existingItem.setEventInstances(1);\n }\n\n } else {\n item.setIsRemovable(false);\n item.setEventInstances(1);\n this.list.add(item);\n }\n\n }\n }", "public boolean add(Reminder reminder);", "public static <T> List<T> mergeWith(final List<T> extendee, final List<T> list2) {\n for (final T obj : list2) {\n if (!(extendee.contains(obj))) {\n extendee.add(obj);\n }\n }\n return extendee;\n }", "protected abstract Set<String> _addToSet(String key, Collection<String> str);", "public void add(List list) throws PropException {\n if (!contains(list.obtainTitle())) lists.put(list.obtainTitle(), list);\n else throw new PropException(ErrorString.EXISTING_LIST);\n }", "public void addItem(Object item) throws SetException {\n\t\tif (member(item))\n\t\t\tthrow new SetException(\"Item already in set.\");\n\n\t\tlist.add(item);\n\t}", "@Test\n public void initializeByAddAll() {\n List<Integer> lst1 = new ArrayList<>();\n\n // Add all from Java 9+ List.of\n lst1.addAll(List.of(3, 1, 2));\n\n // Add all from Arrays.asList\n lst1.addAll(Arrays.asList(5, 4, 6));\n\n // Add all from Java 9+ Set.of\n lst1.addAll(Set.of(8, 7, 9));\n\n assertThat(lst1).hasSize(9);\n\n // Add all from an existing collection\n List<Integer> lst2 = new ArrayList<>();\n lst2.addAll(lst1);\n assertThat(lst2).hasSize(9);\n }", "@Override\n public void add(LocalDateTime date, List<Gadget> list) {\n orders.put(date, list);\n }", "public void add(Preference toAdd) throws DuplicatePreferenceException {\n requireNonNull(toAdd);\n if (contains(toAdd)) {\n throw new DuplicatePreferenceException();\n }\n internalList.add(toAdd);\n\n assert CollectionUtil.elementsAreUnique(internalList);\n }", "public void add(E elem) {\n if (!list.contains(elem))\n list.insertLast(elem);\n }", "public void add(List<SermCit> citList){\n //Add one by one\n for (SermCit x : citList){\n add(x);\n }\n }", "public Set() {\n\t\tlist = new LinkedList<Object>();\n\t}", "public void m65918a(List<SearchTrack> list) {\n SpotifyTrackSearchTarget spotifyTrackSearchTarget = (SpotifyTrackSearchTarget) this.f56358a.H();\n if (spotifyTrackSearchTarget != null) {\n this.f56358a.f56363e = true;\n spotifyTrackSearchTarget.addTracks(list);\n this.f56358a.f56361c = this.f56358a.f56361c + 1;\n }\n }", "public synchronized void addList(int[] list) {\r\n listsOfSorted.offer(list);\r\n }", "public synchronized void addObject(E obj) {\n\t\twrappedSet.add((E) obj);\n\t}", "public static List<NewPatient> checkrepeatition(List<NewPatient> patientsList, NewPatient selectedPatient) {\n\n if (!isPatientExist(patientsList, selectedPatient)) {\n patientsList.add(selectedPatient);\n }\n\n return patientsList;\n }", "@Override\r\n\tpublic void add(T element) {\n\t\tthis._list.add(element);\r\n\t}", "synchronized void crawledList_add(HashSet _crawledList, String url)\n {\n _crawledList.add(url);\n System.out.println(\"Added\"+\"\\t\"+url);\n }", "private void addUsers(List<String> userList, SubscriptionList subscriptionList, SubscriptionEventType eventType) {\n\t\tSubscription subscription = null;\n\t\t\n\t\tfor (Subscription s : subscriptionList.getSubscription()) {\n\t\t\tif (s.getEventType() == eventType) {\n\t\t\t\tsubscription = s;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (subscription != null) {\n\t\t\tfor (String userId : subscription.getUser()) {\n\t\t\t\tif (!userList.contains( userId )) {\n\t\t\t\t\tuserList.add( userId );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Override\n public boolean addItem(T item) {\n //Make sure the Set does not already contain the item\n if(!this.contains(item)) {\n //Make sure there is enough room for the item. If there isn't\n //resize the array\n if(numItems == arr.length)\n this.ensureCap();\n //Add the item to the end and increment numItems\n arr[numItems++] = item;\n //return true\n return true;\n }\n //if item was already in set, return false\n return false;\n }", "@SuppressWarnings (\"unchecked\") public void addAll(ItemList list){\n items.addAll(list.items);\n }", "public void mergeFrom(UniquePreferenceList from) {\n final Set<Preference> alreadyInside = this.toSet();\n from.internalList.stream()\n .filter(preferenceTag -> !alreadyInside.contains(preferenceTag))\n .forEach(internalList::add);\n\n assert CollectionUtil.elementsAreUnique(internalList);\n }", "private void update_auxlist(ArrayList<Line> auxlist, Line workingSet) {\n\t\tLine new_working_set = new Line(workingSet);\n\n\t\t// Add the working set copy to the set of maximal lines\n\t\tauxlist.add(new_working_set);\n\t}", "public void addAll(List<Activities> list) {\r\n mActivityList.addAll(list);\r\n notifyDataSetChanged();\r\n }", "@Test\n\tpublic void testAdd1() {\n\n\t\tint[] arr = { 1, 2, 3, 7, 8 }; // this list\n\t\tSLLSet listObj2 = new SLLSet(arr);\n\n\t\tint notadd = 3;\n\n\t\tString expectedObj2 = \"1, 2, 3, 7, 8\";\n\t\tint expectedObj2Size = 5;\n\n\t\tlistObj2.add(notadd);\n\t\tassertEquals(expectedObj2Size, listObj2.getSize());\n\t\tassertEquals(expectedObj2, listObj2.toString());\n\n\t}", "private void addFriendList(People value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureFriendListIsMutable();\n friendList_.add(value);\n }", "public void m65917a(List<SearchTrack> list) {\n SpotifyTrackSearchTarget spotifyTrackSearchTarget = (SpotifyTrackSearchTarget) this.f56357a.H();\n if (spotifyTrackSearchTarget != null) {\n spotifyTrackSearchTarget.addTracks(list);\n }\n }", "public static void removeDuplicate(ArrayList<Integer>list) {\n \n //create a temporary arraylist\n ArrayList<Integer> tempList = new ArrayList<>();\n \n //loop thru the list and check if list contains the same integer/number/value as tempList\n for (int i = 0; i < list.size(); i++) {\n if (!tempList.contains(list.get(i))) {\n tempList.add(list.get(i));\n }\n }\n \n //clear the list\n list.clear();\n \n //add all integers/numbers/value from tempList into list\n list.addAll(tempList);\n \n }", "MultiSet<X> add(X x);", "public void addAll (InventoryList listToAdd) throws DuplicateInventoryException {\n requireNonNull(listToAdd);\n\n for (Inventory item : listToAdd.getList()) {\n try {\n add(item);\n } catch (DuplicateInventoryException e) {\n continue;\n }\n }\n\n }", "public void add(Object o){\n list.add(o);\n }", "public void addList(ShoppingList list) {\n\n lists.add(0, list);\n list.save();\n notifyItemInserted(0);\n\n }", "@Override\n public boolean add(List<Buyer> buyers) {\n return false;\n }", "public void itemListAdd(ArrayList<String> list) {\n\t\titemList.addAll(list);\n\t}", "public void mergeFrom(UniqueGroupList from) {\n final Set<Group> alreadyInside = this.toSet();\n from.internalList.stream()\n .filter(group -> !alreadyInside.contains(group))\n .forEach(internalList::add);\n\n assert CollectionUtil.elementsAreUnique(internalList);\n }", "public void addFriendList(FriendList list);", "private static void test1() {\n HashSet<Contact> contacts = new HashSet<>();\n\n Contact contact1 = new Contact(123, \"Vasiliy\", \"+380681234136\");\n\n contacts.add(contact1);\n\n\n //------------------------------------------\n\n\n Contact contact2 = new Contact(123, \"Vasiliy\", \"+380689876543\");\n\n contacts.remove(contact2);\n contacts.add(contact2);\n\n printCollection(contacts);\n }", "@Test\r\n\tpublic void testAddAll() {\r\n\t\tDoubleList sample = new DoubleList(new Munitions(2, 4, \"ferrum\"));\r\n\t\tsample.addAll(list);\r\n\t\tAssert.assertEquals(16, sample.size());\r\n\t\tAssert.assertTrue(sample.get(0).equals(new Munitions(2, 4, \"ferrum\")));\r\n\t\tAssert.assertTrue(sample.get(1).equals(list.get(0)));\r\n\t\tAssert.assertTrue(sample.get(15).equals(list.get(14)));\r\n\t}", "public void addReminder(Reminder reminder) {\n reminders.add(reminder);\n }", "@Test\n public void addToIncreaseCount() {\n testList.add(42);\n assertEquals(1, testList.count());\n }", "private void helper(List<Integer> tempList,ArrayList<Integer> list) {\n //stopping condition\n if(list.size()==0) {\n ans.add(new ArrayList<>(tempList)); // add a copy of tempList\n }\n else {\n for(int i=0;i<list.size();i++) {\n if(i==0 || list.get(i-1) != list.get(i)) // avoid duplication\n {\n ArrayList<Integer> newlist = new ArrayList<>(list);\n tempList.add(list.get(i));\n newlist.remove(i);\n helper(tempList,newlist);\n tempList.remove(tempList.size()-1);\n }\n\n }\n }\n }", "@Override\r\n public ListADT<T> toMutable() {\r\n return new ListADTImpl<T>(this.head);\r\n }", "private List<ItemModel> addList() {\n List<ItemModel> items = new ArrayList<>();\n\n managerlist = new ArrayList(strangerList);\n for(int i = 0; i < managerlist.size(); i++)\n if(managerlist.get(i).getId().equals(mPI.getId())) {\n managerlist.remove(i);\n break;\n }\n for(PersonalInformation i : managerlist){\n items.add(new ItemModel(i.getGraph(), i.getName(), i.getCity(), i.getAge()));\n }\n return items;\n }", "public OrderedSet (List l) {\n initialize();\n for ( ; l!=null; l=l.getNext())\n addLast(l.getInfo());\n }", "@Test\r\n public void addAll() throws Exception {\r\n TreeSet<Integer> check = new TreeSet<>();\r\n ArrayList<Integer> l = new ArrayList<>();\r\n l.add(7);\r\n l.add(9);\r\n check.addAll(l);\r\n assertTrue(check.containsAll(l));\r\n }", "public void updateData(List<AddingTopItem> mList){\n mData.clear();\n mData.addAll(mList);\n this.notifyDataSetChanged();\n }", "public void addAll(List<Tweet> list) {\n tweetList.addAll(list);\n notifyDataSetChanged();\n }", "private void updateMemberList(Set<ChatRoomUser> chatRoomUserSet,\n boolean removeMember)\n {\n Iterator<ChatRoomUser> it = chatRoomUserSet.iterator();\n\n while (it.hasNext())\n {\n ChatRoomUser user = it.next();\n String uid = user.getScreenname().getFormatted();\n\n // we want to add a member and he/she is not in our member list\n if (!removeMember && !participants.containsKey(uid)\n && !uid.equals(provider.getAccountID().getUserID()))\n {\n OperationSetPersistentPresenceIcqImpl presenceOpSet =\n (OperationSetPersistentPresenceIcqImpl) getParentProvider()\n .getOperationSet(OperationSetPersistentPresence.class);\n\n Contact participant =\n presenceOpSet.getServerStoredContactList()\n .findContactByScreenName(uid);\n\n participants.put(uid, participant);\n\n fireParticipantPresenceEvent(participant,\n AdHocChatRoomParticipantPresenceChangeEvent.CONTACT_JOINED,\n null);\n }\n // we want to remove a member and found him/her in our member list\n if (removeMember && participants.containsKey(uid))\n {\n Contact participant = participants.get(uid);\n\n participants.remove(uid);\n\n fireParticipantPresenceEvent(participant,\n AdHocChatRoomParticipantPresenceChangeEvent.CONTACT_LEFT,\n null);\n }\n }\n }", "@Override // java.util.Collection\n public final /* synthetic */ boolean add(C0472aH aHVar) {\n throw new UnsupportedOperationException(\"Operation is not supported for read-only collection\");\n }", "IList<T> append(IList<T> l);", "public void addNewList(GroceryList list) {\n String key = listsRef.push().getKey();\n Map<String, Object> postValues = list.toMap();\n\n // TODO: lastUpdated\n\n // Set the values\n listsRef.child(key).setValue(postValues);\n }", "public interface Set<Type> {\r\n\r\n\t/**\r\n\t * Ensures that this set contains the specified item.\r\n\t * \r\n\t * @param item\r\n\t * - the item whose presence is ensured in this set\r\n\t * @return true if this set changed as a result of this method call (that\r\n\t * is, if the input item was actually inserted); otherwise, returns\r\n\t * false\r\n\t */\r\n\tpublic boolean add(Type item);\r\n\r\n\t/**\r\n\t * Ensures that this set contains all items in the specified collection.\r\n\t * \r\n\t * @param items\r\n\t * - the collection of items whose presence is ensured in this\r\n\t * set\r\n\t * @return true if this set changed as a result of this method call (that\r\n\t * is, if any item in the input collection was actually inserted);\r\n\t * otherwise, returns false\r\n\t */\r\n\tpublic boolean addAll(Collection<? extends Type> items);\r\n\r\n\t/**\r\n\t * Removes all items from this set. The set will be empty after this method\r\n\t * call.\r\n\t */\r\n\tpublic void clear();\r\n\r\n\t/**\r\n\t * Determines if there is an item in this set that is equal to the specified\r\n\t * item.\r\n\t * \r\n\t * @param item\r\n\t * - the item sought in this set\r\n\t * @return true if there is an item in this set that is equal to the input\r\n\t * item; otherwise, returns false\r\n\t */\r\n\tpublic boolean contains(Type item);\r\n\r\n\t/**\r\n\t * Determines if for each item in the specified collection, there is an item\r\n\t * in this set that is equal to it.\r\n\t * \r\n\t * @param items\r\n\t * - the collection of items sought in this set\r\n\t * @return true if for each item in the specified collection, there is an\r\n\t * item in this set that is equal to it; otherwise, returns false\r\n\t */\r\n\tpublic boolean containsAll(Collection<? extends Type> items);\r\n\r\n\t/**\r\n\t * Returns true if this set contains no items.\r\n\t */\r\n\tpublic boolean isEmpty();\r\n\r\n\t/**\r\n\t * Returns the number of items in this set.\r\n\t */\r\n\tpublic int size();\r\n}", "public void add(ContentValues values) {\n long startTime = values.getAsLong(DB.FEED.START_TIME);\n long endTime = startTime;\n if (values.containsKey(DB.FEED.DURATION))\n endTime = startTime + values.getAsLong(DB.FEED.DURATION);\n\n int endIndex = findEndIndex(startTime - TIME_MARGIN);\n int startIndex = findStartIndex(endIndex, endTime + TIME_MARGIN);\n\n for (int i = startIndex; i <= endIndex; i++) {\n ContentValues c = currList.get(i);\n if (match(values, c, filterDuplicates)) {\n // Set already contains matching row...skip this\n discarded++;\n return;\n }\n }\n added++;\n addList.add(values); // no match, add this row\n mDB.insert(DB.FEED.TABLE, null, values);\n }", "public boolean add (T obj) {\r\n\t\tboolean result = _list.add (obj);\r\n\t\tHeapSet.siftUp (this, _list.size () - 1);\r\n\t\treturn result;\r\n\t}", "public void vampireAdd(){\n //Will permit to know if every vampires are different\n Set<Being> swap = new HashSet();\n\n //Iterate till the set is equal to the number of vampire we need\n while(swap.size() != this.vampires){\n //Create a new vampire\n Vampire vamp = vampireSet();\n //Test if the vampire is unique\n if(swap.add(vamp)){\n //Add the vampire to the real list if it's unique\n this.beings.add(vamp);\n }\n }\n //Clear the set, I guess it's optional\n swap.clear();\n }", "@Override\n public void add(Object item)\n {\n if (size == list.length)\n {\n Object [] itemInListCurrently = deepCopy();\n list = new Object[size * 2];\n\n System.arraycopy(itemInListCurrently, 0, list, 0, size);\n }\n\n list[size++] = item;\n }", "public Builder addList(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureListIsMutable();\n list_.add(value);\n onChanged();\n return this;\n }", "@Test\r\n\tpublic void testAdd() {\r\n\t\tlist.add(new Munitions(23, 24, \"cuprum\"));\r\n\t\tAssert.assertEquals(16, list.size());\r\n\t\tAssert.assertTrue(list.get(15).equals(new Munitions(23, 24, \"cuprum\")));\r\n\t}", "public void addAll(List<Tweet> list) {\n mTweets.addAll(list);\n notifyDataSetChanged();\n }", "public void addAll(List<Tweet> list) {\n mTweets.addAll(list);\n notifyDataSetChanged();\n }", "public void addAll(MyList<? extends E> list);", "public void addAll(List<Comment> list) {\n comments.addAll(list);\n notifyDataSetChanged();\n }", "public void addAll (SetADT<T> set);", "public boolean add(T item) {\n\t\treturn list.add(item);\n\t}", "public void addAll(List<NYT> tweetList) {\n nyts.addAll(tweetList);\n notifyDataSetChanged();\n }", "public void add(Item toAdd) throws DuplicateItemException {\n assert toAdd != null;\n if (contains(toAdd)) {\n throw new DuplicateItemException();\n }\n internalList.add(toAdd);\n }", "public void add(Object value) {\n verifyModifiable();\n\n elements.add(value);\n }", "public void setListSynchronsprecher( List<Person> listSynchronsprecher ) {\n\t\tthis.listSynchronsprecher.clear();\n\t\tthis.listSynchronsprecher.addAll( listSynchronsprecher );\n\t}", "com.microsoft.schemas.crm._2011.contracts.ArrayOfAppointmentsToIgnore addNewAppointmentsToIgnore();", "void addList(ShoppingList _ShoppingList);", "public void add(){\n list.add(smart);\n list.add(mega);\n list.add(smartMini);\n list.add(absolute);\n\n clientsList.add(client1);\n clientsList.add(client2);\n clientsList.add(client3);\n clientsList.add(client4);\n clientsList.add(client5);\n }", "interface Set\n{\n boolean contains(String s);\n void add(String s); // notice that void means Set will be mutated. \n // => no longer functional. \n}", "public ListADTImpl(ImmutableListADTImpl<T> listToMakeMutable) {\r\n this.head = new GenericEmptyNode();\r\n for (int i = 0; i < listToMakeMutable.getSize(); i++) {\r\n T value = listToMakeMutable.get(i);\r\n this.head = this.head.addBack(value);\r\n }\r\n }", "public void add(String element){\n\t\tif(!contains(element)){\n\t\t\tlist.addLast(element);\n\t\t}\n\t}", "public boolean add (Object o) {return addLast(o);}", "public void addReminder(String date, String reminder){\n if(reminders.get(date) == null)\n {\n reminders.put(date, new ArrayList<String>());\n }\n reminders.get(date).add(reminder);\n }", "public static <T> ArrayList<T> removeDuplicates(ArrayList<T> list)\n {\n\n // Create a new ArrayList\n ArrayList<T> newList = new ArrayList<T>();\n\n // Traverse through the first list\n for (T element : list) {\n\n // If this element is not present in newList\n // then add it\n if (!newList.contains(element)) {\n\n newList.add(element);\n }\n }\n\n // return the new list\n return newList;\n }", "public void add(final int item) {\n if (!contains(item)) {\n set[size] = item;\n size += 1;\n }\n }", "@Override\n public void addCacheList(ArrayList<String> cacheList) {\n scanList = cacheList;\n }", "@Override\n public void setTracks(List<Track> trackList, String paramsKey) {\n Log.i(getClass().getName(), \"[PARAMS_KEY]\" + paramsKey);\n try (Realm r = Realm.getDefaultInstance()) {\n r.executeTransaction(realm -> {\n //create track map\n TrackMap trackMap = realm.createObject(TrackMap.class, paramsKey);\n //adding new items\n trackMap.getTrackList().addAll(realm.copyToRealmOrUpdate(trackList));\n });\n }\n }", "public void addToFollowedUsers(List<String> followedUsers);", "@Test\r\n\tpublic void testContainsAll() {\r\n\t\tDoubleList sample = new DoubleList(new Munitions(2, 3, \"iron\"));\r\n\t\tAssert.assertTrue(list.containsAll(sample));\r\n\t\tsample.add(new Munitions(2, 2, \"iron\"));\r\n\t\tAssert.assertFalse(list.containsAll(sample));\r\n\t}" ]
[ "0.62397975", "0.56892645", "0.56024957", "0.5600687", "0.55234253", "0.5488476", "0.5478637", "0.5457563", "0.5454455", "0.54141694", "0.5359345", "0.5357492", "0.53417724", "0.5340514", "0.5320823", "0.5298024", "0.527885", "0.5256128", "0.5255245", "0.5242399", "0.52278185", "0.5217433", "0.51992726", "0.5196186", "0.51908314", "0.5188054", "0.51843345", "0.5182067", "0.5161562", "0.5147384", "0.5145046", "0.5142125", "0.5138908", "0.5131685", "0.51204926", "0.5118025", "0.51070577", "0.50987524", "0.50796586", "0.5070681", "0.5057261", "0.5056644", "0.5051879", "0.5044389", "0.5036594", "0.5034857", "0.50270665", "0.5008911", "0.49955976", "0.4984967", "0.49805993", "0.49803406", "0.4971686", "0.49687496", "0.4967924", "0.49675888", "0.49628899", "0.4962865", "0.4955338", "0.49530396", "0.49428296", "0.49407828", "0.49396205", "0.4931905", "0.4931784", "0.49251872", "0.49202958", "0.49189332", "0.4918", "0.49179927", "0.49147162", "0.49107936", "0.49069968", "0.49050623", "0.49011582", "0.48993748", "0.4897617", "0.4897617", "0.4897106", "0.4892101", "0.48838225", "0.4881867", "0.4881237", "0.48761517", "0.4875104", "0.48729825", "0.48674428", "0.4863827", "0.48636898", "0.48511782", "0.4850484", "0.48491997", "0.48455662", "0.4831962", "0.48318067", "0.48314145", "0.4827323", "0.48273113", "0.48261657", "0.48251736" ]
0.5464745
7
Adds to the List by treating List as a Set. Thus adds only if not already exists in the List and avoids duplication. See appendToReminders to append to List.
public void addToReminders(List<Date> reminders);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"unchecked\")\n public static void addIfNotContained(List list, Object object) {\n if (!list.contains(object)) {\n list.add(object);\n }\n }", "public static <T> void addWithoutDuplicates(List<T> addedTo, T toBeAdded) {\n if (!addedTo.contains(toBeAdded))\n addedTo.add(toBeAdded);\n }", "public void add(List<?> list) {\n list.clear();\n pool.offer(list);\n }", "public void appendToReminders(List<Date> reminders);", "public boolean add(List<T> e) {\n\t\treturn lists.add(e);\n\t}", "public static void addList() {\n\t}", "public void addToReminders(Date reminders);", "@Override\n public boolean add(Set<E> e) {\n throw new UnsupportedOperationException(\"Add not supported\");\n }", "set.addAll(Arrays.asList(a));", "@Override\n\tpublic void addEntry(E entry) {\n\n\t\t// Determine if the entry already exists in the list\n\t\tE current = this.getHead();\n\t\twhile (current != null) {\n\t\t\tif (this.isEqual(current, entry)) {\n\t\t\t\t// Already in list\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tcurrent = current.getNext();\n\t\t}\n\n\t\t// Not in list, so add the entry\n\t\tsuper.addEntry(entry);\n\t}", "public static void main(String[] args) {\n\n Integer[] integers = new Integer[] {1,2,3,4,5};\n List<Integer>list = new ArrayList<>(Arrays.asList(integers)); // correct one\n System.out.println(\"Converted from Array to List = \" + list);\n\n // this will be a fixed-size list- you can not use add method.\n List<Integer>fixedSizeList = Arrays.asList(integers); // bunu da yapabiliriz ama element ekleme yapamayiz.\n //fixedSizeList.add(6); bunda hata verecek. cunku fixedsize olarak convert ettik. \"unsupported operation exception\" uyarisi verir\n\n\n //Converting list to Array\n Integer[] convertedFromList =list.toArray(new Integer[0]); // sifir yerine herhangi bi sey yazilabilir. ama 0 yazmada fayda var.\n System.out.println(\"Converted from List to Array = \"+ Arrays.toString(convertedFromList));\n\n //Converting an Array to set\n Set<Integer>set = new HashSet<>(Arrays.asList(integers));\n System.out.println(\"Converted from Array to Set = \" + set);\n\n // Converting Set to Array\n Integer[] convertedFromSet = set.toArray(new Integer[0]);\n System.out.println(\"Converted from Set to Array = \" + Arrays.toString(convertedFromSet));\n\n // converting List to Set\n Set<Integer>setFromList = new HashSet<>(list); // bu en cok , ayni value varsa isimize yarar. cunku set'de duplicate yok\n System.out.println(\"Converted list to Set = \" + setFromList);\n\n // Converting Set to List\n List<Integer>listFromSet = new ArrayList<>(setFromList);\n listFromSet.add(9); // en sona ekler\n System.out.println(\"Converted Set to List = \" + listFromSet);\n\n }", "public void add(int number) {\n for(int num : list) set.add(num + number);\n list.add(number);\n }", "public void setListOfTimes(ArrayList<Long> list)\r\n {\r\n //Check if the new list times is empty before setting the new list of times\r\n if(list.isEmpty())\r\n {\r\n //Outputs a warning message \r\n System.out.println(\"WARNING: You cannot assign a empty list of times\");\r\n }\r\n else \r\n {\r\n if(this.listOfTimes.isEmpty())\r\n {\r\n this.listOfTimes.addAll(list);\r\n }\r\n else \r\n {\r\n this.listOfTimes.clear();\r\n this.listOfTimes.addAll(0, list);\r\n }//end if \r\n }//end if\r\n }", "public static <T> void addWithoutDuplicates(List<T> addedTo, List<T> toBeAdded) {\n if (addedTo == null | toBeAdded == null)\n return;\n outer:\n for (int i = 0; i < toBeAdded.size(); i++) {\n T item = toBeAdded.get(i);\n for (int j = 0; j < addedTo.size(); j++) {\n if (addedTo.get(j).equals(item))\n continue outer;\n }\n addedTo.add(item);\n }\n }", "private static final <T> List<T> append(List<T> list, T newElement) {\n List<T> newList = Lists.newArrayListWithCapacity(list.size() + 1);\n newList.addAll(list);\n newList.add(newElement);\n return newList;\n }", "@Test\n public void find_redundant_interaction() {\n list1.add(1);\n list1.add(2);\n verify(list1, Mockito.times(2)).add(Mockito.anyInt());\n verifyNoMoreInteractions(list1);\n\n //List<Integer> list2 = Mockito.mock(List.class);\n list2.add(1);\n list2.add(2);\n verify(list2, Mockito.times(2)).add(Mockito.anyInt());\n verify(list2, Mockito.never()).add(3);\n verifyNoMoreInteractions(list2);\n }", "private void addWithoutDuplicate(ArrayList<WordDocument> addTo, ArrayList<WordDocument> addFrom) {\n for (WordDocument x : addFrom)\n if (!addTo.contains(x))\n addTo.add(x);\n }", "public void addEventInventoryList (List<Inventory> eventInventoryList) {\n requireNonNull(eventInventoryList);\n\n for (Inventory item : eventInventoryList) {\n\n Optional<Inventory> optional = this.list.stream().filter(item::isSameInventory).findAny();\n\n if (optional.isPresent()) {\n\n Inventory existingItem = optional.get();\n\n\n //This item is already in a different event\n if (existingItem.getEventInstances() > 0) {\n existingItem.setEventInstances(existingItem.getEventInstances() + 1);\n } else {\n existingItem.setIsRemovable(false);\n existingItem.setEventInstances(1);\n }\n\n } else {\n item.setIsRemovable(false);\n item.setEventInstances(1);\n this.list.add(item);\n }\n\n }\n }", "public TempList<T> add(T elem) {\n chk();\n list.add(elem);\n return this;\n }", "public boolean add(Reminder reminder);", "public static <T> List<T> mergeWith(final List<T> extendee, final List<T> list2) {\n for (final T obj : list2) {\n if (!(extendee.contains(obj))) {\n extendee.add(obj);\n }\n }\n return extendee;\n }", "protected abstract Set<String> _addToSet(String key, Collection<String> str);", "public void add(List list) throws PropException {\n if (!contains(list.obtainTitle())) lists.put(list.obtainTitle(), list);\n else throw new PropException(ErrorString.EXISTING_LIST);\n }", "public void addItem(Object item) throws SetException {\n\t\tif (member(item))\n\t\t\tthrow new SetException(\"Item already in set.\");\n\n\t\tlist.add(item);\n\t}", "@Test\n public void initializeByAddAll() {\n List<Integer> lst1 = new ArrayList<>();\n\n // Add all from Java 9+ List.of\n lst1.addAll(List.of(3, 1, 2));\n\n // Add all from Arrays.asList\n lst1.addAll(Arrays.asList(5, 4, 6));\n\n // Add all from Java 9+ Set.of\n lst1.addAll(Set.of(8, 7, 9));\n\n assertThat(lst1).hasSize(9);\n\n // Add all from an existing collection\n List<Integer> lst2 = new ArrayList<>();\n lst2.addAll(lst1);\n assertThat(lst2).hasSize(9);\n }", "@Override\n public void add(LocalDateTime date, List<Gadget> list) {\n orders.put(date, list);\n }", "public void add(Preference toAdd) throws DuplicatePreferenceException {\n requireNonNull(toAdd);\n if (contains(toAdd)) {\n throw new DuplicatePreferenceException();\n }\n internalList.add(toAdd);\n\n assert CollectionUtil.elementsAreUnique(internalList);\n }", "public void add(E elem) {\n if (!list.contains(elem))\n list.insertLast(elem);\n }", "public void add(List<SermCit> citList){\n //Add one by one\n for (SermCit x : citList){\n add(x);\n }\n }", "public Set() {\n\t\tlist = new LinkedList<Object>();\n\t}", "public void m65918a(List<SearchTrack> list) {\n SpotifyTrackSearchTarget spotifyTrackSearchTarget = (SpotifyTrackSearchTarget) this.f56358a.H();\n if (spotifyTrackSearchTarget != null) {\n this.f56358a.f56363e = true;\n spotifyTrackSearchTarget.addTracks(list);\n this.f56358a.f56361c = this.f56358a.f56361c + 1;\n }\n }", "public synchronized void addObject(E obj) {\n\t\twrappedSet.add((E) obj);\n\t}", "public synchronized void addList(int[] list) {\r\n listsOfSorted.offer(list);\r\n }", "public static List<NewPatient> checkrepeatition(List<NewPatient> patientsList, NewPatient selectedPatient) {\n\n if (!isPatientExist(patientsList, selectedPatient)) {\n patientsList.add(selectedPatient);\n }\n\n return patientsList;\n }", "@Override\r\n\tpublic void add(T element) {\n\t\tthis._list.add(element);\r\n\t}", "synchronized void crawledList_add(HashSet _crawledList, String url)\n {\n _crawledList.add(url);\n System.out.println(\"Added\"+\"\\t\"+url);\n }", "private void addUsers(List<String> userList, SubscriptionList subscriptionList, SubscriptionEventType eventType) {\n\t\tSubscription subscription = null;\n\t\t\n\t\tfor (Subscription s : subscriptionList.getSubscription()) {\n\t\t\tif (s.getEventType() == eventType) {\n\t\t\t\tsubscription = s;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (subscription != null) {\n\t\t\tfor (String userId : subscription.getUser()) {\n\t\t\t\tif (!userList.contains( userId )) {\n\t\t\t\t\tuserList.add( userId );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Override\n public boolean addItem(T item) {\n //Make sure the Set does not already contain the item\n if(!this.contains(item)) {\n //Make sure there is enough room for the item. If there isn't\n //resize the array\n if(numItems == arr.length)\n this.ensureCap();\n //Add the item to the end and increment numItems\n arr[numItems++] = item;\n //return true\n return true;\n }\n //if item was already in set, return false\n return false;\n }", "@SuppressWarnings (\"unchecked\") public void addAll(ItemList list){\n items.addAll(list.items);\n }", "public void mergeFrom(UniquePreferenceList from) {\n final Set<Preference> alreadyInside = this.toSet();\n from.internalList.stream()\n .filter(preferenceTag -> !alreadyInside.contains(preferenceTag))\n .forEach(internalList::add);\n\n assert CollectionUtil.elementsAreUnique(internalList);\n }", "private void update_auxlist(ArrayList<Line> auxlist, Line workingSet) {\n\t\tLine new_working_set = new Line(workingSet);\n\n\t\t// Add the working set copy to the set of maximal lines\n\t\tauxlist.add(new_working_set);\n\t}", "public void addAll(List<Activities> list) {\r\n mActivityList.addAll(list);\r\n notifyDataSetChanged();\r\n }", "@Test\n\tpublic void testAdd1() {\n\n\t\tint[] arr = { 1, 2, 3, 7, 8 }; // this list\n\t\tSLLSet listObj2 = new SLLSet(arr);\n\n\t\tint notadd = 3;\n\n\t\tString expectedObj2 = \"1, 2, 3, 7, 8\";\n\t\tint expectedObj2Size = 5;\n\n\t\tlistObj2.add(notadd);\n\t\tassertEquals(expectedObj2Size, listObj2.getSize());\n\t\tassertEquals(expectedObj2, listObj2.toString());\n\n\t}", "private void addFriendList(People value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureFriendListIsMutable();\n friendList_.add(value);\n }", "public void m65917a(List<SearchTrack> list) {\n SpotifyTrackSearchTarget spotifyTrackSearchTarget = (SpotifyTrackSearchTarget) this.f56357a.H();\n if (spotifyTrackSearchTarget != null) {\n spotifyTrackSearchTarget.addTracks(list);\n }\n }", "public static void removeDuplicate(ArrayList<Integer>list) {\n \n //create a temporary arraylist\n ArrayList<Integer> tempList = new ArrayList<>();\n \n //loop thru the list and check if list contains the same integer/number/value as tempList\n for (int i = 0; i < list.size(); i++) {\n if (!tempList.contains(list.get(i))) {\n tempList.add(list.get(i));\n }\n }\n \n //clear the list\n list.clear();\n \n //add all integers/numbers/value from tempList into list\n list.addAll(tempList);\n \n }", "MultiSet<X> add(X x);", "public void addAll (InventoryList listToAdd) throws DuplicateInventoryException {\n requireNonNull(listToAdd);\n\n for (Inventory item : listToAdd.getList()) {\n try {\n add(item);\n } catch (DuplicateInventoryException e) {\n continue;\n }\n }\n\n }", "public void add(Object o){\n list.add(o);\n }", "public void addList(ShoppingList list) {\n\n lists.add(0, list);\n list.save();\n notifyItemInserted(0);\n\n }", "@Override\n public boolean add(List<Buyer> buyers) {\n return false;\n }", "public void itemListAdd(ArrayList<String> list) {\n\t\titemList.addAll(list);\n\t}", "public void mergeFrom(UniqueGroupList from) {\n final Set<Group> alreadyInside = this.toSet();\n from.internalList.stream()\n .filter(group -> !alreadyInside.contains(group))\n .forEach(internalList::add);\n\n assert CollectionUtil.elementsAreUnique(internalList);\n }", "private static void test1() {\n HashSet<Contact> contacts = new HashSet<>();\n\n Contact contact1 = new Contact(123, \"Vasiliy\", \"+380681234136\");\n\n contacts.add(contact1);\n\n\n //------------------------------------------\n\n\n Contact contact2 = new Contact(123, \"Vasiliy\", \"+380689876543\");\n\n contacts.remove(contact2);\n contacts.add(contact2);\n\n printCollection(contacts);\n }", "public void addFriendList(FriendList list);", "@Test\r\n\tpublic void testAddAll() {\r\n\t\tDoubleList sample = new DoubleList(new Munitions(2, 4, \"ferrum\"));\r\n\t\tsample.addAll(list);\r\n\t\tAssert.assertEquals(16, sample.size());\r\n\t\tAssert.assertTrue(sample.get(0).equals(new Munitions(2, 4, \"ferrum\")));\r\n\t\tAssert.assertTrue(sample.get(1).equals(list.get(0)));\r\n\t\tAssert.assertTrue(sample.get(15).equals(list.get(14)));\r\n\t}", "public void addReminder(Reminder reminder) {\n reminders.add(reminder);\n }", "@Test\n public void addToIncreaseCount() {\n testList.add(42);\n assertEquals(1, testList.count());\n }", "private void helper(List<Integer> tempList,ArrayList<Integer> list) {\n //stopping condition\n if(list.size()==0) {\n ans.add(new ArrayList<>(tempList)); // add a copy of tempList\n }\n else {\n for(int i=0;i<list.size();i++) {\n if(i==0 || list.get(i-1) != list.get(i)) // avoid duplication\n {\n ArrayList<Integer> newlist = new ArrayList<>(list);\n tempList.add(list.get(i));\n newlist.remove(i);\n helper(tempList,newlist);\n tempList.remove(tempList.size()-1);\n }\n\n }\n }\n }", "@Override\r\n public ListADT<T> toMutable() {\r\n return new ListADTImpl<T>(this.head);\r\n }", "private List<ItemModel> addList() {\n List<ItemModel> items = new ArrayList<>();\n\n managerlist = new ArrayList(strangerList);\n for(int i = 0; i < managerlist.size(); i++)\n if(managerlist.get(i).getId().equals(mPI.getId())) {\n managerlist.remove(i);\n break;\n }\n for(PersonalInformation i : managerlist){\n items.add(new ItemModel(i.getGraph(), i.getName(), i.getCity(), i.getAge()));\n }\n return items;\n }", "public OrderedSet (List l) {\n initialize();\n for ( ; l!=null; l=l.getNext())\n addLast(l.getInfo());\n }", "@Test\r\n public void addAll() throws Exception {\r\n TreeSet<Integer> check = new TreeSet<>();\r\n ArrayList<Integer> l = new ArrayList<>();\r\n l.add(7);\r\n l.add(9);\r\n check.addAll(l);\r\n assertTrue(check.containsAll(l));\r\n }", "public void updateData(List<AddingTopItem> mList){\n mData.clear();\n mData.addAll(mList);\n this.notifyDataSetChanged();\n }", "public void addAll(List<Tweet> list) {\n tweetList.addAll(list);\n notifyDataSetChanged();\n }", "private void updateMemberList(Set<ChatRoomUser> chatRoomUserSet,\n boolean removeMember)\n {\n Iterator<ChatRoomUser> it = chatRoomUserSet.iterator();\n\n while (it.hasNext())\n {\n ChatRoomUser user = it.next();\n String uid = user.getScreenname().getFormatted();\n\n // we want to add a member and he/she is not in our member list\n if (!removeMember && !participants.containsKey(uid)\n && !uid.equals(provider.getAccountID().getUserID()))\n {\n OperationSetPersistentPresenceIcqImpl presenceOpSet =\n (OperationSetPersistentPresenceIcqImpl) getParentProvider()\n .getOperationSet(OperationSetPersistentPresence.class);\n\n Contact participant =\n presenceOpSet.getServerStoredContactList()\n .findContactByScreenName(uid);\n\n participants.put(uid, participant);\n\n fireParticipantPresenceEvent(participant,\n AdHocChatRoomParticipantPresenceChangeEvent.CONTACT_JOINED,\n null);\n }\n // we want to remove a member and found him/her in our member list\n if (removeMember && participants.containsKey(uid))\n {\n Contact participant = participants.get(uid);\n\n participants.remove(uid);\n\n fireParticipantPresenceEvent(participant,\n AdHocChatRoomParticipantPresenceChangeEvent.CONTACT_LEFT,\n null);\n }\n }\n }", "@Override // java.util.Collection\n public final /* synthetic */ boolean add(C0472aH aHVar) {\n throw new UnsupportedOperationException(\"Operation is not supported for read-only collection\");\n }", "public interface Set<Type> {\r\n\r\n\t/**\r\n\t * Ensures that this set contains the specified item.\r\n\t * \r\n\t * @param item\r\n\t * - the item whose presence is ensured in this set\r\n\t * @return true if this set changed as a result of this method call (that\r\n\t * is, if the input item was actually inserted); otherwise, returns\r\n\t * false\r\n\t */\r\n\tpublic boolean add(Type item);\r\n\r\n\t/**\r\n\t * Ensures that this set contains all items in the specified collection.\r\n\t * \r\n\t * @param items\r\n\t * - the collection of items whose presence is ensured in this\r\n\t * set\r\n\t * @return true if this set changed as a result of this method call (that\r\n\t * is, if any item in the input collection was actually inserted);\r\n\t * otherwise, returns false\r\n\t */\r\n\tpublic boolean addAll(Collection<? extends Type> items);\r\n\r\n\t/**\r\n\t * Removes all items from this set. The set will be empty after this method\r\n\t * call.\r\n\t */\r\n\tpublic void clear();\r\n\r\n\t/**\r\n\t * Determines if there is an item in this set that is equal to the specified\r\n\t * item.\r\n\t * \r\n\t * @param item\r\n\t * - the item sought in this set\r\n\t * @return true if there is an item in this set that is equal to the input\r\n\t * item; otherwise, returns false\r\n\t */\r\n\tpublic boolean contains(Type item);\r\n\r\n\t/**\r\n\t * Determines if for each item in the specified collection, there is an item\r\n\t * in this set that is equal to it.\r\n\t * \r\n\t * @param items\r\n\t * - the collection of items sought in this set\r\n\t * @return true if for each item in the specified collection, there is an\r\n\t * item in this set that is equal to it; otherwise, returns false\r\n\t */\r\n\tpublic boolean containsAll(Collection<? extends Type> items);\r\n\r\n\t/**\r\n\t * Returns true if this set contains no items.\r\n\t */\r\n\tpublic boolean isEmpty();\r\n\r\n\t/**\r\n\t * Returns the number of items in this set.\r\n\t */\r\n\tpublic int size();\r\n}", "public void addNewList(GroceryList list) {\n String key = listsRef.push().getKey();\n Map<String, Object> postValues = list.toMap();\n\n // TODO: lastUpdated\n\n // Set the values\n listsRef.child(key).setValue(postValues);\n }", "IList<T> append(IList<T> l);", "public void add(ContentValues values) {\n long startTime = values.getAsLong(DB.FEED.START_TIME);\n long endTime = startTime;\n if (values.containsKey(DB.FEED.DURATION))\n endTime = startTime + values.getAsLong(DB.FEED.DURATION);\n\n int endIndex = findEndIndex(startTime - TIME_MARGIN);\n int startIndex = findStartIndex(endIndex, endTime + TIME_MARGIN);\n\n for (int i = startIndex; i <= endIndex; i++) {\n ContentValues c = currList.get(i);\n if (match(values, c, filterDuplicates)) {\n // Set already contains matching row...skip this\n discarded++;\n return;\n }\n }\n added++;\n addList.add(values); // no match, add this row\n mDB.insert(DB.FEED.TABLE, null, values);\n }", "public boolean add (T obj) {\r\n\t\tboolean result = _list.add (obj);\r\n\t\tHeapSet.siftUp (this, _list.size () - 1);\r\n\t\treturn result;\r\n\t}", "public void vampireAdd(){\n //Will permit to know if every vampires are different\n Set<Being> swap = new HashSet();\n\n //Iterate till the set is equal to the number of vampire we need\n while(swap.size() != this.vampires){\n //Create a new vampire\n Vampire vamp = vampireSet();\n //Test if the vampire is unique\n if(swap.add(vamp)){\n //Add the vampire to the real list if it's unique\n this.beings.add(vamp);\n }\n }\n //Clear the set, I guess it's optional\n swap.clear();\n }", "@Override\n public void add(Object item)\n {\n if (size == list.length)\n {\n Object [] itemInListCurrently = deepCopy();\n list = new Object[size * 2];\n\n System.arraycopy(itemInListCurrently, 0, list, 0, size);\n }\n\n list[size++] = item;\n }", "@Test\r\n\tpublic void testAdd() {\r\n\t\tlist.add(new Munitions(23, 24, \"cuprum\"));\r\n\t\tAssert.assertEquals(16, list.size());\r\n\t\tAssert.assertTrue(list.get(15).equals(new Munitions(23, 24, \"cuprum\")));\r\n\t}", "public Builder addList(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureListIsMutable();\n list_.add(value);\n onChanged();\n return this;\n }", "public void addAll(List<Tweet> list) {\n mTweets.addAll(list);\n notifyDataSetChanged();\n }", "public void addAll(List<Tweet> list) {\n mTweets.addAll(list);\n notifyDataSetChanged();\n }", "public void addAll(MyList<? extends E> list);", "public void addAll(List<Comment> list) {\n comments.addAll(list);\n notifyDataSetChanged();\n }", "public void addAll (SetADT<T> set);", "public void addAll(List<NYT> tweetList) {\n nyts.addAll(tweetList);\n notifyDataSetChanged();\n }", "public boolean add(T item) {\n\t\treturn list.add(item);\n\t}", "public void setListSynchronsprecher( List<Person> listSynchronsprecher ) {\n\t\tthis.listSynchronsprecher.clear();\n\t\tthis.listSynchronsprecher.addAll( listSynchronsprecher );\n\t}", "public void add(Object value) {\n verifyModifiable();\n\n elements.add(value);\n }", "public void add(Item toAdd) throws DuplicateItemException {\n assert toAdd != null;\n if (contains(toAdd)) {\n throw new DuplicateItemException();\n }\n internalList.add(toAdd);\n }", "com.microsoft.schemas.crm._2011.contracts.ArrayOfAppointmentsToIgnore addNewAppointmentsToIgnore();", "void addList(ShoppingList _ShoppingList);", "public void add(){\n list.add(smart);\n list.add(mega);\n list.add(smartMini);\n list.add(absolute);\n\n clientsList.add(client1);\n clientsList.add(client2);\n clientsList.add(client3);\n clientsList.add(client4);\n clientsList.add(client5);\n }", "interface Set\n{\n boolean contains(String s);\n void add(String s); // notice that void means Set will be mutated. \n // => no longer functional. \n}", "public ListADTImpl(ImmutableListADTImpl<T> listToMakeMutable) {\r\n this.head = new GenericEmptyNode();\r\n for (int i = 0; i < listToMakeMutable.getSize(); i++) {\r\n T value = listToMakeMutable.get(i);\r\n this.head = this.head.addBack(value);\r\n }\r\n }", "public void add(String element){\n\t\tif(!contains(element)){\n\t\t\tlist.addLast(element);\n\t\t}\n\t}", "public boolean add (Object o) {return addLast(o);}", "public void addReminder(String date, String reminder){\n if(reminders.get(date) == null)\n {\n reminders.put(date, new ArrayList<String>());\n }\n reminders.get(date).add(reminder);\n }", "public void add(final int item) {\n if (!contains(item)) {\n set[size] = item;\n size += 1;\n }\n }", "public static <T> ArrayList<T> removeDuplicates(ArrayList<T> list)\n {\n\n // Create a new ArrayList\n ArrayList<T> newList = new ArrayList<T>();\n\n // Traverse through the first list\n for (T element : list) {\n\n // If this element is not present in newList\n // then add it\n if (!newList.contains(element)) {\n\n newList.add(element);\n }\n }\n\n // return the new list\n return newList;\n }", "@Override\n public void setTracks(List<Track> trackList, String paramsKey) {\n Log.i(getClass().getName(), \"[PARAMS_KEY]\" + paramsKey);\n try (Realm r = Realm.getDefaultInstance()) {\n r.executeTransaction(realm -> {\n //create track map\n TrackMap trackMap = realm.createObject(TrackMap.class, paramsKey);\n //adding new items\n trackMap.getTrackList().addAll(realm.copyToRealmOrUpdate(trackList));\n });\n }\n }", "public void addToFollowedUsers(List<String> followedUsers);", "@Override\n public void addCacheList(ArrayList<String> cacheList) {\n scanList = cacheList;\n }", "@Test\r\n\tpublic void testContainsAll() {\r\n\t\tDoubleList sample = new DoubleList(new Munitions(2, 3, \"iron\"));\r\n\t\tAssert.assertTrue(list.containsAll(sample));\r\n\t\tsample.add(new Munitions(2, 2, \"iron\"));\r\n\t\tAssert.assertFalse(list.containsAll(sample));\r\n\t}" ]
[ "0.56876063", "0.5600921", "0.5598963", "0.55279535", "0.5484295", "0.5476159", "0.5469233", "0.5457268", "0.5454579", "0.5412375", "0.5359932", "0.5355137", "0.53431714", "0.53387266", "0.5318357", "0.52990955", "0.5276994", "0.5253919", "0.5253538", "0.5246291", "0.5225919", "0.5218391", "0.51953226", "0.5194836", "0.51898354", "0.51882815", "0.5182162", "0.51793766", "0.51604193", "0.5148694", "0.5145119", "0.51396173", "0.5139523", "0.5132585", "0.5118363", "0.51166826", "0.51065", "0.50968647", "0.507714", "0.50703615", "0.5057363", "0.5053903", "0.5050929", "0.5043727", "0.5036124", "0.5032948", "0.5026527", "0.50051636", "0.4993582", "0.4981624", "0.49788252", "0.49768528", "0.49709928", "0.49695817", "0.4968247", "0.49672103", "0.4966813", "0.49611786", "0.4954187", "0.49520814", "0.49410567", "0.49403745", "0.49389702", "0.49303657", "0.4929386", "0.49266335", "0.49186918", "0.49182633", "0.49167296", "0.4916487", "0.49149743", "0.4908815", "0.49065998", "0.49021366", "0.48992148", "0.48988345", "0.48952112", "0.48952112", "0.48948348", "0.48893157", "0.48838335", "0.48792675", "0.48787355", "0.4873769", "0.4873741", "0.48721883", "0.4869208", "0.48620594", "0.48617667", "0.48508894", "0.48501304", "0.4848348", "0.48440614", "0.48360106", "0.48298925", "0.48294508", "0.48280662", "0.48269147", "0.48265815", "0.48256508" ]
0.6244137
0
Removes all occurences of value from the List
public void removeFromReminders(Date reminders);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void removeAllWithValue(v val) {\n\t\tfor (int i = 0; i < buckets.length; i++) {\n\t\t\tNode<k,v> curr = buckets[i];\n\t\t\tNode<k,v> previous = null;\n\t\t\t\n\t\t\twhile (curr != null) {\n\t\t\t\tif (curr.getValue().equals(val)) {\n\t\t\t\t\t\n\t\t\t\t\tif (previous == null) {\n\t\t\t\t\t\tbuckets[i] = curr.getNext(); // if removing first item, set the next as first\t\t\n\t\t\t\t\t} else {\n\t\t\t\t\t\tprevious.setNext(curr.getNext()); // else set the previous' next to curr's next\n\t\t\t\t\t}\t\n\t\t\t\t} else {\t\t\t\t\t\t\t// if match wasn't found, set previous to current before moving on\n\t\t\t\t\tprevious = curr;\n\t\t\t\t}\t\n\t\t\t\tcurr = curr.getNext(); \t\t\t\t// move in SLL\n\t\t\t}\t\n\t\t}\n\t}", "public void removeValue(Object value)\n\t{\n\t\tif (values.contains(value))\n\t\t{\n\t\t\tvalues.remove(value + \"\");\n\t\t}\n\t}", "void remove(int v){\n if(isEmpty()!=1){\n for(int i=0;i<size;i++){\n if(values[i]==v){\n int j = i;\n while((j+1)!=size){\n values[j] = values[j+1];\n j++;\n\n }\n values[j] = (-1);\n break;\n }\n }\n }\n }", "@Override\n public void removeAllValues() {\n Map<String, ?> map = preferences.getAll();\n Iterator<String> iterator = map.keySet().iterator();\n while (iterator.hasNext()) {\n removeValue(iterator.next());\n }\n }", "@Override\n public boolean removeByValue(int value) {\n Entry tmp = first;\n for (int i = 0; i < size; i++) {\n if (tmp.value == value) {\n tmp.previous.next = tmp.next;\n tmp.next.previous = tmp.previous;\n size--;\n return true;\n }\n tmp = tmp.next;\n }\n return false;\n }", "private void removePressed() {\n\t\ts = allMedia.getSelectedValuesList();\n\t\t// now remove all the value that are in the list from the default list model\n\t\tfor(Object o : s){\n\t\t\tif(l.contains(o)){\n\t\t\t\tl.removeElement(o);\n\t\t\t}\n\t\t}\n\t}", "public void removeDuplication() {\r\n\t\t//checks if the array contains any elements\r\n\t\tif (!isEmpty()) {\t//contains elements\r\n\t\t\t//loop to execute for every element in the array\r\n\t\t\tfor (int i=0;i<size-1;i++) {\r\n\t\t\t\tObject element=list[i];\t//to store value of element in array\r\n\t\t\t\t//loop to execute for every element after the current element in the list\r\n\t\t\t\tfor (int j=i+1;j<size;j++) {\r\n\t\t\t\t\t//checks if there is are 2 elements in the list with the same value\r\n\t\t\t\t\tif (element==list[j]) {\r\n\t\t\t\t\t\tremove(j);\t//calls function to remove that element from array\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\t//contains 0 elements\r\n\t\t\tSystem.out.println(\"List is empty!\");\r\n\t\t}\r\n\t}", "@Override\n public Collection<V> removeAll( K key ) {\n List<V> result = new ArrayList<V>(currentCountFor(key));\n ValueIterator values = new ValueIterator(key);\n while (values.hasNext()) {\n result.add(values.next());\n values.remove();\n }\n return result;\n }", "private ArrayList<Equity> getUnwatchedEquities(ArrayList<Equity> list) {\n ArrayList<Equity> temp = new ArrayList<>();\n temp.addAll(list);\n ArrayList<WatchedEquity> watched = controller.getUser().watchedEquities;\n for (Equity e : list) {\n for (WatchedEquity we : watched) {\n if (e.getTickerSymbol().equals(we.getSymbol())) {\n temp.remove(e);\n break;\n }\n }\n }\n return temp;\n }", "public void remove(int v) {\n Lista iter = new Lista(this);\n if (iter.x != v) {\n while (iter.next.x != v) {\n if (iter.next != null) {\n iter = iter.next;\n }\n }\n }\n if (iter.next.x == v) {\n iter.next = iter.next.next;\n }\n }", "public static void removeDuplicate(ArrayList<Integer>list) {\n \n //create a temporary arraylist\n ArrayList<Integer> tempList = new ArrayList<>();\n \n //loop thru the list and check if list contains the same integer/number/value as tempList\n for (int i = 0; i < list.size(); i++) {\n if (!tempList.contains(list.get(i))) {\n tempList.add(list.get(i));\n }\n }\n \n //clear the list\n list.clear();\n \n //add all integers/numbers/value from tempList into list\n list.addAll(tempList);\n \n }", "private void removeLargeValues(ArrayList<Integer> myList)\n {\n // sort list to make removing values easy\n Collections.sort(myList);\n\n while (myList.size() > 1)\n {\n if (myList.get(myList.size() - 1) > 21)\n myList.remove(myList.size() - 1);\n else\n break;\n }\n }", "protected void resetValues() {\n synchronized (values) {\n values.removeAll(new ArrayList(values));\n }\n }", "public static void main(String[] args) {\n\n ArrayList<Integer> arrayList=new ArrayList<>();\n\n arrayList.add(1);\n arrayList.add(1);\n arrayList.add(2);\n arrayList.add(5);\n\n\n System.out.println(arrayList);\n System.out.println(arrayList.remove(1));\n System.out.println(arrayList);\n\n }", "private static ListNode removeElements(ListNode head, int val) {\n ListNode dummy = new ListNode(0);\n dummy.next = head;\n ListNode curr = dummy;\n // Iterate till current.next is null. Keep checking next with value\n while (curr.next != null) {\n // next element is a match so skip pointing to next element.\n if (curr.next.value == val) {\n curr.next = curr.next.next;\n } else {\n curr = curr.next; // else keep moving ahead.\n }\n }\n return dummy.next; \n }", "public void remove(int num) {\n // find the index of num\n for (int i = 0; i < count; i++) {\n if (list[i] == num) {\n // shift the elements leftward and decrement count\n for (int j = 0; j < count - 1; j++) {\n list[i+j] = list[i+j+1];\n }\n count--;\n return;\n }\n }\n }", "private void removeFromList(Visit visit){\n\t\tfor (int i=0; i<searchResults.size(); i++) {\n\t\t\tif(searchResults.get(i).getClientRegNo().equals(visit.getClientRegNo())\n\t\t\t\t\t&& searchResults.get(i).getPropertyRegNo().equals(visit.getPropertyRegNo())\n\t\t\t\t\t&& searchResults.get(i).getDate().equals(visit.getDate())){\n\t\t\t\tsearchResults.remove(i);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\t\n\t\t}\n\t}", "public void removeAllElementInsertionMaps()\n {\n list.removeAllElements();\n }", "@Override\n\tpublic void deleteAll(int pValueToDelete) {\n\t\twhile (find(pValueToDelete) != -1) {\n\t\t\tdelete(pValueToDelete);\n\t\t}\n\n//\t\tif (duplicatesAllowed == false) {\n//\t\t\tdelete(pValueToDelete);\n//\t\t} else {\n//\t\t\tfor (int n = 0; n < pointer; n++) {\n//\t\t\t\tif (values[n] == pValueToDelete) {\n//\t\t\t\t}\n//\t\t\t}\n//\t\t}\n\t}", "public void clearListNotIndex(){\n for(int z=0; z<list.length; z++){\n list [z] = 0;\n }\n }", "public void remove() {\n if (count == 0) {\n return;\n }\n \n Random rand = new Random();\n int index = rand.nextInt(count);\n for (int i = index; i < count - 1; i++) {\n list[i] = list[i+1];\n }\n count--; \n }", "protected void removeDuplicates() {\n log.trace(\"Removing duplicated\");\n long startTime = System.currentTimeMillis();\n int initial = size();\n E last = null;\n int index = 0;\n while (index < size()) {\n E current = get(index);\n if (last != null && last.equals(current)) {\n if (log.isTraceEnabled()) {\n log.trace(\"Removing duplicate '\" + current + \"'\");\n }\n remove(index);\n } else {\n index++;\n }\n last = current;\n }\n log.debug(String.format(\"Removed %d duplicates from a total of %d values in %dms\",\n initial - size(), initial, System.currentTimeMillis() - startTime));\n }", "void removeValue(String key);", "public void removeAll(String c) {\r\n int[] elements = new int[(c.length() / 2) + 1];\r\n if (containsAll(c)) {\r\n for (int i = 0; i < elements.length; i++) {\r\n elements[i] = Integer.parseInt(c.substring(0, c.indexOf(\",\")));\r\n c = c.substring((c.indexOf(\",\") + 1));\r\n remove(elements[i]);\r\n }\r\n } else {\r\n throw new RuntimeException(\"some or all elements dont exist in List.\");\r\n }\r\n }", "@Override\n\tpublic boolean remove(Object value) {\n\t\tint index = indexOf(value);\n\n\t\tif (index == -1) {\n\t\t\treturn false;\n\t\t}\n\n\t\tremove(index);\n\t\treturn true;\n\t}", "private Node removeDuplicate() {\n ArrayList<Integer> values = new ArrayList<Integer>();\n int len = this.getlength();\n Node result = this;\n\n if (len == 1) {\n System.out.println(\"only one element can't duplicate\");\n return result;\n } else {\n Node current = result;\n\n for (int i = 0; i < len; i++) {\n if (values.contains(current.value)) {\n result = result.remove(i);\n len = result.getlength();\n i--; // reset the loop back\n current = current.nextNode;\n } else {\n values.add(current.value);\n current = current.nextNode;\n }\n }\n return result;\n }\n }", "public void removeMatched(String v) {\n\t\t\tElementDPtr p = head;\n\t\t\tSystem.out.println(\" Value 1 \"+ v);\n\t\t\tif (head == null) \n\t\t\t\treturn;\n\t\t\tif (p.getValue().equals(v)) { \n\t\t\t\tSystem.out.println(\" Value 2 \"+ p.getValue());\n\t\t\t\thead = head.getNext(); \n\t\t\t\tif (head == null)\n\t\t\t\t\ttail = null;\n\t\t\t\tlength--;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse { p = head.getNext(); \n\t\t\t System.out.println(\" Value 3 \"+ p.getValue());\n\t\t\t while(p != null) {\n\t\t\t\t if (p.getValue().equals(v)) {\n\t\t\t\t\tSystem.out.println(\" Value \"+ p.getValue()\n\t\t\t\t\t+ p.getPrev().toString() );\n\t\t\t\t\tp.getPrev().setNext(p.getNext());\n\t\t\t\t\tp.getNext().setPrev(p.getPrev());\n\t\t\t\t\t\n\t\t\t\t\tlength--;\n\t\t\t\t\treturn;\n\t\t\t\t } \n\t\t\t\telse p = p.getNext();\n\t\t\t}\n\t\t\t}\n\t\t}", "@Override\n public int remove() {\n isEmptyList();\n int result = first.value;\n first = first.next;\n first.previous = null;\n size--;\n return result;\n }", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "@Override\r\n public void removeFilterValue(String value) {\n }", "@Override\r\n\tpublic void remove(List<GroupMember> list) {\n\t\tfor(int i = 0;i<list.size();i++)\r\n\t\t\tremove(list.get(i));\r\n\t}", "public void remove(int key) {\n int index = key % n;\n MapNode node = keys[index];\n for (int i =0; i < node.list.size(); ++i) {\n if (node.list.get(i) == key) {\n node.list.remove(i);\n vals[index].list.remove(i);\n }\n }\n }", "static List<String> removeDuplicates(List<String> list) {\n // Store unique items in result.\n List<String> result = new ArrayList<String>();\n // Loop over argument list.\n for (String token : list) {\n if (result.indexOf(token) == -1) { \n result.add(token);\n }\n }\n return result;\n }", "private ArrayList<Integer> remove_duplicates(ArrayList<Integer> l) {\n ArrayList<Integer> res = new ArrayList<Integer>();\n for (int i=0; i< l.size(); i++) {\n if (!(in(l.get(i), res))) {\n res.add(l.get(i));\n }\n }\n return res;\n }", "private DeleteByValue() {}", "private DeleteByValue() {}", "public void removeAll(Object element);", "public void\t\tremoveAll();", "@Override\n public void remove(T t) {\n for (int i = 0; i < elementsInArray; i++) {\n if(t.equals(arrayList[i])) {\n arrayList[i] = null;\n elementsInArray--;\n return;\n }\n }\n }", "@Test\n public void testRemoveAll() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n\n Collection c = Arrays.asList(2, 3);\n boolean expectedResult = true;\n boolean result = instance.removeAll(c);\n\n assertEquals(expectedResult, result);\n\n }", "public void removeAll() {\n this.arrayList = null;\n this.arrayList = new ArrayList<>();\n }", "public void RemoveValue(int value)\n {\n // Check if the value already exists\n if(_valuesToPut.contains(value))\n {\n _valuesToPut.remove(value);\n }\n }", "@Test\n public void testRemoveAll_Not_Empty() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(1);\n instance.add(2);\n\n Collection c = Arrays.asList(2, 3);\n instance.removeAll(c);\n\n int expectedResult = 1;\n assertEquals(expectedResult, instance.size());\n\n }", "public void removeAllElements();", "public void remove()\r\n { Exceptions.unmodifiable(\"list\"); }", "private List<Coordinate> trim(List<Coordinate> list) {\n\n List<Coordinate> temp = new ArrayList<>();\n if (list.size() == 0) {\n return temp;\n }\n temp.add(list.get(0));\n for (int i = 1; i < list.size(); i++) {\n if (list.get(i - 1).equals(list.get(i))) {\n continue;\n }\n temp.add(list.get(i));\n }\n return temp;\n }", "public void removeAllItems ();", "public T remove(T value){\n\t return value;\n\t}", "public boolean remove(int val) {\n if(!map.containsKey(val)) return false;\n int index = map.get(val);\n int size = list.size();\n int tmp = list.get(size-1);\n list.set(size-1, list.get(index));\n list.set(index, tmp);\n list.remove(size-1);\n map.put(tmp, index);\n map.remove(val);\n return true;\n }", "public void removeWritten(byte[] value) {\n\n writeSetLock.lock();\n \n Set<TimestampValuePair> temp = (HashSet<TimestampValuePair>) writeSet.clone();\n \n for (TimestampValuePair rv : temp) {\n\n if (Arrays.equals(rv.getValue(), value)) writeSet.remove(rv);\n }\n writeSetLock.unlock();\n\n }", "@Override\n\tpublic boolean remove(Object value) {\n\t\ttry {\n\t\t\tremove(indexOf(value));\n\t\t}catch(IndexOutOfBoundsException e){\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "@Test\n public void testRemoveAll_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n\n Collection c = Arrays.asList(2, 3);\n boolean expectedResult = true;\n boolean result = instance.removeAll(c);\n\n assertEquals(expectedResult, result);\n\n }", "public boolean remove(int val) {\r\n\r\n\t\tint pos = get_pos(val);\r\n\t\tif (bucket[pos] != null) {\r\n\t\t\tNode n = bucket[pos].list;\r\n\t\t\tNode p = n;\r\n\t\t\twhile (n != null) {\r\n\t\t\t\tif (n.val == val) {\r\n\t\t\t\t\tif (p == bucket[pos].list) {\r\n\t\t\t\t\t\tbucket[pos].list = n.next;\r\n\t\t\t\t\t\tbucket[pos].size--;\r\n\t\t\t\t\t\tif (bucket[pos].list == null)\r\n\t\t\t\t\t\t\tbucket[pos] = null;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tp.next = n.next;\r\n\t\t\t\t\t\tbucket[pos].size--;\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t\tp = n;\r\n\t\t\t\tn = n.next;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn false;\r\n\t}", "public ListNode removeElements(ListNode head, int val) {\n ListNode dummyNode = new ListNode(-1);\n dummyNode.next = head;\n ListNode pre = dummyNode;\n ListNode cur = pre.next;\n while(cur != null){\n if(cur.val == val){\n cur = cur.next;\n pre.next = cur;\n }else{\n pre = pre.next;\n cur = cur.next;\n }\n }\n return dummyNode.next;\n }", "@Test\n public void testRemoveAll_Not_Empty_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(1);\n instance.add(2);\n\n Collection c = Arrays.asList(2, 3);\n instance.removeAll(c);\n\n int expectedResult = 1;\n assertEquals(expectedResult, instance.size());\n\n }", "void removeAllEntries();", "private void arrayRemove(MyArrayList myArrayList, Results results, int value) {\r\n int old_size = myArrayList.size();\r\n myArrayList.removeValue(value);\r\n int new_size = myArrayList.size();\r\n if(old_size == new_size + 1) {\r\n results.storeNewResult(\"ArrayRemove test case: FAILED\");\r\n }\r\n else {\r\n results.storeNewResult(\"ArrayRemove test case: PASSED\");\r\n }\r\n }", "void removeAll();", "void removeAll();", "public final void remove(@NotNull T value) {\n\t\tObject priorValue;\n\t\tboolean replaced;\n\t\tdo {\n\t\t\tpriorValue = this.value.get();\n\t\t\tObject newValue = remove(priorValue, value);\n\t\t\treplaced = this.value.compareAndSet(priorValue, newValue);\n\t\t} while (!replaced);\n\t}", "void clear(int list) {\n\t\tint last = getLast(list);\n\t\twhile (last != nullNode()) {\n\t\t\tint n = last;\n\t\t\tlast = getPrev(n);\n\t\t\tfreeNode_(n);\n\t\t}\n\t\tm_lists.setField(list, 0, -1);\n\t\tm_lists.setField(list, 1, -1);\n\t\tsetListSize_(list, 0);\n\t}", "void clear() {\n\t\tfor (int list = getFirstList(); list != -1;) {\n\t\t\tlist = deleteList(list);\n\t\t}\n\t}", "public static ArrayList<String> complement(ArrayList<String> universe, ArrayList<String> value) {\n\t\tArrayList<String> result = new ArrayList<String>();\n\t\tfor(String element : universe) {\n\t\t\tif(!value.contains(element)) {\n\t\t\t\tresult.add(element);\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "public void removeValue(int i)\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(VALUE$0, i);\n }\n }", "public boolean remove(int val) {\n boolean contains = map.containsKey(val);\n if(!contains) return false;\n int pos = map.get(val);\n if (pos < nums.size() - 1) { // if not the last one, then swap the last one with this val\n int last = nums.get(nums.size() - 1); // arraylist get() O(1), basically a value in an array\n nums.set(pos, last); // set the element at \"pos\" position to be last element in the list , set like assign value in an array element\n map.put(last, pos); // put the last element in the list with the pos position\n }\n map.remove(val); // hashmap remove() It is O(1) only when removing the last element by index.\n // O(1); map remove(obj)\n //O(1+k/n) where k is the no. of collision elements\n // added to the same LinkedList (k elements had same hashCode)\n nums.remove(nums.size() - 1);\n return true;\n }", "public ListNode removeElements(ListNode head, int val) {\n ListNode fakeHead = new ListNode(0);\n fakeHead.next = head;\n head = fakeHead;\n while (head != null && head.next != null)\n {\n if (head.next.val == val)\n head.next = head.next.next;\n else {\n head = head.next;\n }\n }\n return fakeHead.next;\n }", "public void clear(){\n\n \tlist = new ArrayList();\n\n }", "@Override\n\tpublic V remove(K key) {\n\t\tint h = Math.abs(key.hashCode()) % nrb;// calculam hash-ul asociat cheii\n\n\t\tfor (int i = 0; i < b.get(h).getEntries().size(); i++) {\n\t\t\t// parcurgerea listei de elemente pentru a gasi cheia ceruta si\n\t\t\t// stergerea acesteiu din lista\n\t\t\tif (b.get(h).getEntries().get(i).getKey().equals(key)) {\n\t\t\t\tV x = b.get(h).getEntries().get(i).getValue();\n\t\t\t\tb.get(h).e.remove(i);\n\t\t\t\treturn x;\n\t\t\t}\n\t\t}\n\n\t\treturn null;\n\t}", "public boolean remove(int val) {\n if(map.containsKey(val)){\n \tif(map.get(val).size() == 1){\n \t\tint last = list.get(list.size()-1);\n \t\tint mvindex = map.get(val).iterator().next();\n \t\tmap.get(last).remove(list.size()-1);\n \t\tmap.get(last).add(mvindex);\n \t\tlist.set(mvindex,list.get(list.size()-1));\n \t\tlist.remove(list.size()-1);\n \t\tmap.remove(val);\n \t}else {\n \t\tint last = list.get(list.size()-1);\n \t\tint mvindex = map.get(val).iterator().next();\n \t\tmap.get(last).remove(list.size()-1);\n \t\tmap.get(last).add(mvindex);\n \t\tlist.set(mvindex, list.get(list.size()-1));\n \t\tlist.remove(list.size()-1);\n \t\tif(last != val)\n \t\t\tmap.get(val).remove(mvindex);\n\t\t\t} \t\n \treturn true;\n }else {\n\t\t\treturn false;\n\t\t}\n }", "@Test\r\n\tpublic void testRemoveAll() {\r\n\t\tDoubleList sample = new DoubleList(new Munitions(2, 3, \"iron\"));\r\n\t\tsample.add(new Munitions(new Munitions(3, 4, \"iron\")));\r\n\t\tAssert.assertTrue(list.removeAll(sample));\r\n\t\tAssert.assertFalse(list.removeAll(sample));\r\n\t\tAssert.assertEquals(13, list.size());\r\n\t}", "public void clear() {\n synchronized (LOCK) {\n myValues.clear();\n }\n }", "public void removeInterpretedBy( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.remove(this.model, this.getResource(), INTERPRETEDBY, value);\r\n\t}", "private List<String> removeEmptyLines(List<String> list) {\n for (int k1 = 0; k1 < list.size(); ++k1)\n {\n if (list.get(k1).isEmpty()) {\n list.remove(k1);\n }\n }\n return list;\n }", "public static List<String> noX(List<String> list) {\n\t\treturn list.stream().map(s -> s.replace(\"x\", \"\"))\n\t\t\t\t\t\t\t.collect(Collectors.toList());\n\t}", "public void removeAllWithKey(k key) {\n\t\t\n\t\tint b = hash(key);\n\t\tNode<k,v> curr = buckets[b];\n\t\tNode<k,v> previous = null;\n\t\t\n\t\twhile (curr != null) {\n\t\t\tif (key.equals(curr.getKey())) { // check if keys match\n\t\t\t\n\t\t\t\tif (previous == null) {\n\t\t\t\t\tbuckets[b] = curr.getNext(); // if removing first item, set the next as first\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\tprevious.setNext(curr.getNext()); // else set the previous' next to curr's next\n\t\t\t\t}\t\t\n\t\t\t} else {\n\t\t\t\tprevious = curr; // if match wasn't found, set previous to current before moving on\n\t\t\t}\n\t\t\tcurr = curr.getNext(); // move in SLL\n\t\t}\n\t}", "void unsetListOfServiceElements();", "private static <T> Object remove(Object baseValue, T value) {\n\t\tif (baseValue == value || baseValue == null) {\n\t\t\treturn null;\n\t\t}\n\n\t\tif (!(baseValue instanceof Object[])) {\n\t\t\t// baseValue is a single element not equal to value\n\t\t\treturn baseValue;\n\t\t}\n\n\t\tObject[] oldArray = (Object[])baseValue;\n\t\tfor (int i = 0; i < oldArray.length; i++) {\n\t\t\tif (oldArray[i] == value) {\n\t\t\t\tif (oldArray.length == 2) {\n\t\t\t\t\treturn oldArray[i == 0 ? 1 : 0];\n\t\t\t\t}\n\n\t\t\t\t// Shift remaining elements and return\n\t\t\t\tfor (int j = i + 1; j < oldArray.length; j++) {\n\t\t\t\t\toldArray[j - 1] = oldArray[j];\n\t\t\t\t}\n\n\t\t\t\treturn Arrays.copyOf(oldArray, oldArray.length - 1);\n\t\t\t}\n\t\t}\n\n\t\treturn baseValue;\n\t}", "public List<Integer> removeNumber(List<Integer> numbers) {\n List<Integer> result = new ArrayList<>();\n for (int number : numbers) {\n if (number != 7) {\n result.add(number);\n }\n }\n return result;\n }", "private void clearAll(byte value) {\n for (int i = 0; i < size; i++) {\n data[i] = (byte) (value & 0xff);\n }\n }", "public static void main(String[] args) {\n\n ArrayList<String> strArray = new ArrayList<>();\n strArray.add(\"man\");\n strArray.add(\"hi\");\n strArray.add(\"yo\");\n strArray.add(\"hi\");\n String strToBeRemoved =\"hi\";\n\n removeAll(strArray, strToBeRemoved);\n\n\n }", "@Override\n public E deleteMin()\n {\n return list.removeFirst();\n }", "private void removeEvicted() {\n Map<K,CacheableObject> removeMap = new HashMap<K,CacheableObject>(valueMap.size()/2);\n List<CacheListener<K>> tempListeners = new ArrayList<CacheListener<K>>();\n\n // Retrieve a list of everything that's to be removed\n synchronized(theLock) {\n removeMap.putAll(toEvictMap);\n toEvictMap.clear();\n tempListeners.addAll(listeners);\n }\n\n // Remove the entries one-at-a-time, notifying the listener[s] in the process\n for (Map.Entry<K,CacheableObject> entry : removeMap.entrySet()) {\n synchronized(theLock) {\n currentCacheSize -= entry.getValue().containmentCount;\n valueMap.remove(entry.getKey());\n }\n Thread.yield();\n\n for (CacheListener<K> listener : tempListeners) {\n listener.evictedElement(entry.getKey());\n }\n }\n }", "@Override\n\tpublic void removeValue(String arg0) {\n\t}", "public static void main(String[] args) {\r\n\t\t\r\n\tList<Integer> myList = new ArrayList<>();\r\n\tmyList.add(0);\r\n\tmyList.add(1);\r\n\tmyList.add(5);\r\n\tmyList.add(115);\r\n\tmyList.add(100);\r\n\tmyList.add(26);\r\n\tmyList.add(5555);\r\n\tmyList.add(-12);\r\n\t\r\n\tSystem.out.println(myList);\r\n\t\r\n\tfor(int i = 0; i<myList.size(); i++) {\r\n\t\tif(myList.get(i) > 100 || myList.get(i) < 1) {\r\n\t\t\tmyList.remove(i);\r\n\t\t\ti--;\r\n\t\t}\r\n\t}\r\n\t\r\n\tSystem.out.println(myList);\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t}", "public static void removeEvens(ArrayList<Integer> list)\n {\n /*\n * size method returns the number of elements in the list\n */\n //int size = list.size();//valid way to ge the size\n \n for(int i = 0; i < list.size(); )\n {\n /*\n * get method return the value of the elemtne at the index\n * list get smaller, elements are \"shifted left\"\n */\n int value = list.get(i);\n if( value %2 == 0)\n {\n /*\n * remove method deletes the element at the specified index\n */\n list.remove(i);\n //i--;// if remove move index back one to compensate\n }\n else//only increase i if you don't remove\n {\n i++;\n }\n }\n }", "public void removeAllItem() {\n orderList.clear();\n }", "public boolean remove(int val) {\n return list.remove(val);\n }", "Set<Card> remove();", "@Override\npublic void removeAll(Collection<Integer> collection) {\n\t\n}", "public void reduce(List<T> list) {\n\t\tfor(int i = 1; i < list.size(); i++) {\n\t\t\tif(list.get(i) == null || list.get(i-1) == null) continue;\n\t\t\tint hash = list.get(i-1).hashCode();\n\t\t\tif(!rule.containsKey(hash)) continue;\n\t\t\tif(rule.get(hash).contains(list.get(i))) {\n\t\t\t\tlist.remove(i);\ti--;\n\t\t\t}\n\t\t}\n\t}" ]
[ "0.6947017", "0.6750947", "0.66021454", "0.6526514", "0.64638007", "0.64427745", "0.6360537", "0.61673343", "0.61351264", "0.6115447", "0.6097846", "0.606517", "0.60465765", "0.60458964", "0.6008555", "0.5999753", "0.59915566", "0.5950291", "0.5942454", "0.59411395", "0.59388345", "0.59088904", "0.590399", "0.5885903", "0.58834165", "0.58724225", "0.58695257", "0.586607", "0.58599985", "0.58599985", "0.58599985", "0.58599985", "0.58599985", "0.58599985", "0.58599985", "0.58599985", "0.58599985", "0.58599985", "0.58599985", "0.58599985", "0.5852383", "0.58486944", "0.583045", "0.5826441", "0.5824425", "0.5823913", "0.5823913", "0.5803889", "0.57997966", "0.57955396", "0.5788623", "0.5784611", "0.5774934", "0.57708824", "0.57690513", "0.57688135", "0.57453823", "0.57425135", "0.5737609", "0.57338476", "0.5729495", "0.5718661", "0.5712207", "0.57103527", "0.56978333", "0.5695428", "0.56943774", "0.56850517", "0.5684148", "0.5684148", "0.5681002", "0.56655794", "0.5662828", "0.56558144", "0.5645435", "0.5642113", "0.56401336", "0.56356096", "0.56328636", "0.5630793", "0.5627128", "0.56252474", "0.5612094", "0.5602405", "0.55970675", "0.5595786", "0.55931664", "0.5592006", "0.55886793", "0.5572317", "0.55563223", "0.55554086", "0.5529794", "0.5526323", "0.55232835", "0.55191946", "0.55179125", "0.55168444", "0.55134463", "0.55103993", "0.5510021" ]
0.0
-1
Removes all occurences of all values from the List
public void removeFromReminders(List<Date> reminders);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void removeAllValues() {\n Map<String, ?> map = preferences.getAll();\n Iterator<String> iterator = map.keySet().iterator();\n while (iterator.hasNext()) {\n removeValue(iterator.next());\n }\n }", "protected void resetValues() {\n synchronized (values) {\n values.removeAll(new ArrayList(values));\n }\n }", "static List<String> removeDuplicates(List<String> list) {\n // Store unique items in result.\n List<String> result = new ArrayList<String>();\n // Loop over argument list.\n for (String token : list) {\n if (result.indexOf(token) == -1) { \n result.add(token);\n }\n }\n return result;\n }", "public void removeAllWithValue(v val) {\n\t\tfor (int i = 0; i < buckets.length; i++) {\n\t\t\tNode<k,v> curr = buckets[i];\n\t\t\tNode<k,v> previous = null;\n\t\t\t\n\t\t\twhile (curr != null) {\n\t\t\t\tif (curr.getValue().equals(val)) {\n\t\t\t\t\t\n\t\t\t\t\tif (previous == null) {\n\t\t\t\t\t\tbuckets[i] = curr.getNext(); // if removing first item, set the next as first\t\t\n\t\t\t\t\t} else {\n\t\t\t\t\t\tprevious.setNext(curr.getNext()); // else set the previous' next to curr's next\n\t\t\t\t\t}\t\n\t\t\t\t} else {\t\t\t\t\t\t\t// if match wasn't found, set previous to current before moving on\n\t\t\t\t\tprevious = curr;\n\t\t\t\t}\t\n\t\t\t\tcurr = curr.getNext(); \t\t\t\t// move in SLL\n\t\t\t}\t\n\t\t}\n\t}", "private ArrayList<Equity> getUnwatchedEquities(ArrayList<Equity> list) {\n ArrayList<Equity> temp = new ArrayList<>();\n temp.addAll(list);\n ArrayList<WatchedEquity> watched = controller.getUser().watchedEquities;\n for (Equity e : list) {\n for (WatchedEquity we : watched) {\n if (e.getTickerSymbol().equals(we.getSymbol())) {\n temp.remove(e);\n break;\n }\n }\n }\n return temp;\n }", "private ArrayList<Integer> remove_duplicates(ArrayList<Integer> l) {\n ArrayList<Integer> res = new ArrayList<Integer>();\n for (int i=0; i< l.size(); i++) {\n if (!(in(l.get(i), res))) {\n res.add(l.get(i));\n }\n }\n return res;\n }", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAllElementInsertionMaps()\n {\n list.removeAllElements();\n }", "public static void removeDuplicate(ArrayList<Integer>list) {\n \n //create a temporary arraylist\n ArrayList<Integer> tempList = new ArrayList<>();\n \n //loop thru the list and check if list contains the same integer/number/value as tempList\n for (int i = 0; i < list.size(); i++) {\n if (!tempList.contains(list.get(i))) {\n tempList.add(list.get(i));\n }\n }\n \n //clear the list\n list.clear();\n \n //add all integers/numbers/value from tempList into list\n list.addAll(tempList);\n \n }", "public void removeDuplication() {\r\n\t\t//checks if the array contains any elements\r\n\t\tif (!isEmpty()) {\t//contains elements\r\n\t\t\t//loop to execute for every element in the array\r\n\t\t\tfor (int i=0;i<size-1;i++) {\r\n\t\t\t\tObject element=list[i];\t//to store value of element in array\r\n\t\t\t\t//loop to execute for every element after the current element in the list\r\n\t\t\t\tfor (int j=i+1;j<size;j++) {\r\n\t\t\t\t\t//checks if there is are 2 elements in the list with the same value\r\n\t\t\t\t\tif (element==list[j]) {\r\n\t\t\t\t\t\tremove(j);\t//calls function to remove that element from array\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\t//contains 0 elements\r\n\t\t\tSystem.out.println(\"List is empty!\");\r\n\t\t}\r\n\t}", "public void removeAll(String c) {\r\n int[] elements = new int[(c.length() / 2) + 1];\r\n if (containsAll(c)) {\r\n for (int i = 0; i < elements.length; i++) {\r\n elements[i] = Integer.parseInt(c.substring(0, c.indexOf(\",\")));\r\n c = c.substring((c.indexOf(\",\") + 1));\r\n remove(elements[i]);\r\n }\r\n } else {\r\n throw new RuntimeException(\"some or all elements dont exist in List.\");\r\n }\r\n }", "public void removeAll() {\n this.arrayList = null;\n this.arrayList = new ArrayList<>();\n }", "@Override\n public Collection<V> removeAll( K key ) {\n List<V> result = new ArrayList<V>(currentCountFor(key));\n ValueIterator values = new ValueIterator(key);\n while (values.hasNext()) {\n result.add(values.next());\n values.remove();\n }\n return result;\n }", "public void clearListNotIndex(){\n for(int z=0; z<list.length; z++){\n list [z] = 0;\n }\n }", "protected void removeDuplicates() {\n log.trace(\"Removing duplicated\");\n long startTime = System.currentTimeMillis();\n int initial = size();\n E last = null;\n int index = 0;\n while (index < size()) {\n E current = get(index);\n if (last != null && last.equals(current)) {\n if (log.isTraceEnabled()) {\n log.trace(\"Removing duplicate '\" + current + \"'\");\n }\n remove(index);\n } else {\n index++;\n }\n last = current;\n }\n log.debug(String.format(\"Removed %d duplicates from a total of %d values in %dms\",\n initial - size(), initial, System.currentTimeMillis() - startTime));\n }", "void clear() {\n\t\tfor (int list = getFirstList(); list != -1;) {\n\t\t\tlist = deleteList(list);\n\t\t}\n\t}", "public void\t\tremoveAll();", "private void removeLargeValues(ArrayList<Integer> myList)\n {\n // sort list to make removing values easy\n Collections.sort(myList);\n\n while (myList.size() > 1)\n {\n if (myList.get(myList.size() - 1) > 21)\n myList.remove(myList.size() - 1);\n else\n break;\n }\n }", "void removeAll();", "void removeAll();", "public void delAll(List list);", "public void removeAllElements();", "private List<String> removeEmptyLines(List<String> list) {\n for (int k1 = 0; k1 < list.size(); ++k1)\n {\n if (list.get(k1).isEmpty()) {\n list.remove(k1);\n }\n }\n return list;\n }", "private List<Coordinate> trim(List<Coordinate> list) {\n\n List<Coordinate> temp = new ArrayList<>();\n if (list.size() == 0) {\n return temp;\n }\n temp.add(list.get(0));\n for (int i = 1; i < list.size(); i++) {\n if (list.get(i - 1).equals(list.get(i))) {\n continue;\n }\n temp.add(list.get(i));\n }\n return temp;\n }", "void removeAllEntries();", "public void reduce(List<T> list) {\n\t\tfor(int i = 1; i < list.size(); i++) {\n\t\t\tif(list.get(i) == null || list.get(i-1) == null) continue;\n\t\t\tint hash = list.get(i-1).hashCode();\n\t\t\tif(!rule.containsKey(hash)) continue;\n\t\t\tif(rule.get(hash).contains(list.get(i))) {\n\t\t\t\tlist.remove(i);\ti--;\n\t\t\t}\n\t\t}\n\t}", "private static void clearValues(final ArrayList<Integer[]> arrays)\n {\n arrays.clear();\n\n for (int x = 0; x < NUM_FILTERS; x++)\n {\n final Integer[] array = new Integer[NUM_STATISTICS];\n Arrays.fill(array, 0);\n arrays.add(array);\n }\n }", "void clear(int list) {\n\t\tint last = getLast(list);\n\t\twhile (last != nullNode()) {\n\t\t\tint n = last;\n\t\t\tlast = getPrev(n);\n\t\t\tfreeNode_(n);\n\t\t}\n\t\tm_lists.setField(list, 0, -1);\n\t\tm_lists.setField(list, 1, -1);\n\t\tsetListSize_(list, 0);\n\t}", "@Test\n public void testRemoveAll_Not_Empty() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(1);\n instance.add(2);\n\n Collection c = Arrays.asList(2, 3);\n instance.removeAll(c);\n\n int expectedResult = 1;\n assertEquals(expectedResult, instance.size());\n\n }", "void remove(int v){\n if(isEmpty()!=1){\n for(int i=0;i<size;i++){\n if(values[i]==v){\n int j = i;\n while((j+1)!=size){\n values[j] = values[j+1];\n j++;\n\n }\n values[j] = (-1);\n break;\n }\n }\n }\n }", "public static List<String> noX(List<String> list) {\n\t\treturn list.stream().map(s -> s.replace(\"x\", \"\"))\n\t\t\t\t\t\t\t.collect(Collectors.toList());\n\t}", "public void removeAll() {\n _hash = new Hashtable();\n _first = null;\n _last = null;\n }", "@Test\n public void testRemoveAll_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n\n Collection c = Arrays.asList(2, 3);\n boolean expectedResult = true;\n boolean result = instance.removeAll(c);\n\n assertEquals(expectedResult, result);\n\n }", "@Test\n public void testRemoveAll_Not_Empty_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(1);\n instance.add(2);\n\n Collection c = Arrays.asList(2, 3);\n instance.removeAll(c);\n\n int expectedResult = 1;\n assertEquals(expectedResult, instance.size());\n\n }", "@Test\r\n\tpublic void testRemoveAll() {\r\n\t\tDoubleList sample = new DoubleList(new Munitions(2, 3, \"iron\"));\r\n\t\tsample.add(new Munitions(new Munitions(3, 4, \"iron\")));\r\n\t\tAssert.assertTrue(list.removeAll(sample));\r\n\t\tAssert.assertFalse(list.removeAll(sample));\r\n\t\tAssert.assertEquals(13, list.size());\r\n\t}", "@Test\n public void testRemoveAll() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n\n Collection c = Arrays.asList(2, 3);\n boolean expectedResult = true;\n boolean result = instance.removeAll(c);\n\n assertEquals(expectedResult, result);\n\n }", "private void removeEmptyTokens(ArrayList<String> tokens) {\n Iterator<String> it = tokens.iterator();\n while (it.hasNext()) {\n if (it.next().equals(\"\")) {\n it.remove();\n }\n }\n }", "public void removeAll(Object element);", "public void clear() {\n duplicates.clear();\n }", "public void clear() {\n synchronized (LOCK) {\n myValues.clear();\n }\n }", "public void removeAllItems ();", "private void removePressed() {\n\t\ts = allMedia.getSelectedValuesList();\n\t\t// now remove all the value that are in the list from the default list model\n\t\tfor(Object o : s){\n\t\t\tif(l.contains(o)){\n\t\t\t\tl.removeElement(o);\n\t\t\t}\n\t\t}\n\t}", "@Override\n public void clear() {\n for (E e : this) {\n remove(e);\n }\n }", "public void removeAll() {\n\t\tsynchronized (mNpcs) {\n\t\t\tmNpcs = Collections.synchronizedList(new ArrayList<Npc>());\n\t\t\tmDemonCount = 0;\n\t\t\tmHumanCount = 0;\n\t\t}\n\t}", "@Test\n public void testList(){\n ArrayList<Integer> integers = Lists.newArrayList(1, 2, 3, 4);\n ArrayList<Integer> integers2 = Lists.newArrayList(1, 2, 3, 4, 5);\n// integers2.removeAll(integers);\n// System.out.println(integers2);\n integers2.retainAll(integers);\n System.out.println(integers2);\n }", "void unsetListOfServiceElements();", "abstract public void removeAll();", "private List<MutateOperation> removeAll() {\n return removeDescendantsAndFilter(rootResourceName);\n }", "public void clear() {\n values.clear();\n }", "private void removeFromList(Visit visit){\n\t\tfor (int i=0; i<searchResults.size(); i++) {\n\t\t\tif(searchResults.get(i).getClientRegNo().equals(visit.getClientRegNo())\n\t\t\t\t\t&& searchResults.get(i).getPropertyRegNo().equals(visit.getPropertyRegNo())\n\t\t\t\t\t&& searchResults.get(i).getDate().equals(visit.getDate())){\n\t\t\t\tsearchResults.remove(i);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\t\n\t\t}\n\t}", "@Override\r\n\tpublic void remove(List<GroupMember> list) {\n\t\tfor(int i = 0;i<list.size();i++)\r\n\t\t\tremove(list.get(i));\r\n\t}", "public static void collapseDuplicates( ArrayList<Integer> L ) { \n\tfor (int i = 1; i < L.size();) {\n\t if (L.get(i).equals(L.get(i - 1))) {\n\t\tL.remove(i - 1);\n\t } else {\n\t\ti++;\n\t }\n\t}\n }", "@Override\npublic void removeAll(Collection<Integer> collection) {\n\t\n}", "public static void removeEvens(ArrayList<Integer> list)\n {\n /*\n * size method returns the number of elements in the list\n */\n //int size = list.size();//valid way to ge the size\n \n for(int i = 0; i < list.size(); )\n {\n /*\n * get method return the value of the elemtne at the index\n * list get smaller, elements are \"shifted left\"\n */\n int value = list.get(i);\n if( value %2 == 0)\n {\n /*\n * remove method deletes the element at the specified index\n */\n list.remove(i);\n //i--;// if remove move index back one to compensate\n }\n else//only increase i if you don't remove\n {\n i++;\n }\n }\n }", "private void clearAll( )\n {\n for( Vertex v : vertexMap.values( ) )\n v.reset( );\n }", "public void removeAllEntries() {\n }", "public void clear() {\n \tIterator<E> iterateSet = this.iterator();\n \t\n \twhile(iterateSet.hasNext()) {\n \t\t// iterate through and remove all elements\n \t\titerateSet.next();\n \t\titerateSet.remove();\n \t}\n }", "public static <T> List<T> eliminateDuplicates(final List<T> list) {\n return list.stream().distinct().collect(Collectors.toList());\n }", "public void clear(){\n\n \tlist = new ArrayList();\n\n }", "private Node removeDuplicate() {\n ArrayList<Integer> values = new ArrayList<Integer>();\n int len = this.getlength();\n Node result = this;\n\n if (len == 1) {\n System.out.println(\"only one element can't duplicate\");\n return result;\n } else {\n Node current = result;\n\n for (int i = 0; i < len; i++) {\n if (values.contains(current.value)) {\n result = result.remove(i);\n len = result.getlength();\n i--; // reset the loop back\n current = current.nextNode;\n } else {\n values.add(current.value);\n current = current.nextNode;\n }\n }\n return result;\n }\n }", "public void removeAll(ArrayList<Integer> ruleNrs){\n\t\tList<Rule> toRemove = new ArrayList<Rule>();\n\t\tfor(int i=0;i<ruleNrs.size();i++){\n\t\t\ttoRemove.add(rules.get(ruleNrs.get(i) - 1));\n\t\t}\n\t\tremoveAll(toRemove);\n\t}", "@Override\n\tpublic void deleteAll(int pValueToDelete) {\n\t\twhile (find(pValueToDelete) != -1) {\n\t\t\tdelete(pValueToDelete);\n\t\t}\n\n//\t\tif (duplicatesAllowed == false) {\n//\t\t\tdelete(pValueToDelete);\n//\t\t} else {\n//\t\t\tfor (int n = 0; n < pointer; n++) {\n//\t\t\t\tif (values[n] == pValueToDelete) {\n//\t\t\t\t}\n//\t\t\t}\n//\t\t}\n\t}", "void unsetMultiple();", "public void clear() {\n list = new Object[MIN_CAPACITY];\n n = 0;\n }", "@Test\r\n public void removeAll() throws Exception {\r\n\r\n TreeSet<Integer> check = new TreeSet<>();\r\n check.addAll(sInt);\r\n ArrayList<Integer> l = new ArrayList<>();\r\n l.add(4);\r\n l.add(2);\r\n check.removeAll(l);\r\n assertFalse(check.containsAll(l));\r\n assertFalse(check.contains(2));\r\n assertFalse(check.contains(4));\r\n assertTrue(check.contains(1));\r\n assertTrue(check.contains(3));\r\n assertTrue(check.contains(5));\r\n }", "@Test\n public void testRemoveAll_Size() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n\n Collection c = Arrays.asList(2, 3);\n instance.removeAll(c);\n\n int expectedResult = 0;\n assertEquals(expectedResult, instance.size());\n\n }", "@Test\n public void testRemoveAll_Size_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n\n Collection c = Arrays.asList(2, 3);\n instance.removeAll(c);\n\n int expectedResult = 0;\n assertEquals(expectedResult, instance.size());\n\n }", "public void removeDuplitcate(List<Integer> a)\n\t{\n\t\tif(a==null ||a.size()==0 ) return ;\n\t\t\n\t\tHashMap<Integer, Integer> hm = new HashMap<Integer, Integer>();\n\t\t\n\t\tfor(int i=a.size()-1;i>=0;i--)\n\t\t{\n\t\t\tif(hm.containsKey(a.get(i)))\n\t\t\t{\n\t\t\t\ta.remove(i);\n\t\t\t}\n\t\t\telse hm.put(a.get(i), 1);\n\t\t}\n\t}", "public void remove() {\n if (count == 0) {\n return;\n }\n \n Random rand = new Random();\n int index = rand.nextInt(count);\n for (int i = index; i < count - 1; i++) {\n list[i] = list[i+1];\n }\n count--; \n }", "public List<VaccineDetails> removeDuplicates(final List<VaccineDetails> list)\n {\n\n Set<VaccineDetails> carSet = new HashSet<VaccineDetails>();\n for (VaccineDetails car : list) {\n carSet.add(car);\n }\n List<VaccineDetails> withoutDuplicates = new ArrayList<VaccineDetails>(carSet);\n\n return withoutDuplicates;\n }", "public void removeAllElements() {\n for (int i = 0; i < OLast; i++) O[i] = null;\n ON = OLast = 0;\n Gap = -1;\n }", "@Override\n\tpublic void clear() {\n\t\t\n\t\tsuperset.removeRange(lower, upper, fromInclusive, toInclusive);\n\t\t\n\t\t//Alternative direct implementation:\n\t\t//while (pollFirst() != null) {\n\t\t//}\n\t\t\n\t}", "public void removeAll(String s) {\n for (int i = 0; i < size; i++) {\n if (elements[i] == s) {\n elements[i] = null;\n }\n }\n }", "private List<AxiomTreeNode> reduceNodeList(List<AxiomTreeNode> list, int remove) {\n\n List<AxiomTreeNode> reduced = new ArrayList<AxiomTreeNode>(list);\n\n reduced.remove(remove);\n\n return reduced;\n }", "public static void removeDuplicatesWithoutBuffer(LinkedList list)\n\t{\n\t\t//**Needs only two pointers**//\n\t\tNode current = list.getHead();\n\t\twhile(current != null && current.getNext() != null)\n\t\t{\n\t\t\tNode temp = current;\n\t\t\twhile(temp.getNext() != null)\n\t\t\t{\n\t\t\t\tif(current.getData() == temp.getNext().getData())\n\t\t\t\t{\n\t\t\t\t\ttemp.setNext(temp.getNext());\n\t\t\t\t\ttemp.setNext(temp.getNext().getNext());;\n\t\t\t\t} \n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\ttemp = temp.getNext();\n\t\t\t\t}\n\t\t\t}\n\t\t\tcurrent = current.getNext();\n\t\t}\n\t}", "public void clear()\n {\n int llSize = ll.getSize();\n for(int i=0; i<llSize; i++){\n ll.remove(0);\n }\n }", "public void removeAll() {\n start = null;\n _size = 0;\n }", "private void clean() {\n //use iterator\n Iterator<Long> it = nodes.keySet().iterator();\n while (it.hasNext()) {\n Long node = it.next();\n if (nodes.get(node).adjs.isEmpty()) {\n it.remove();\n }\n }\n }", "public void removeAll()\n {\n this.front = null;\n this.rear = null;\n }", "private static void removeCurrentColors(){\n\t\tIterator<ArrayList<Peg>> itr = possibleCombinations.iterator();\n\t\twhile(itr.hasNext()){\n\t\t\tArrayList <Peg> victim=itr.next();\n\t\t\tfor(int i=0; i<aiGuess.size(); i++){\n\t\t\t\t\n\t\t\t\tif(victim.contains(aiGuess.get(i))){\n\t\t\t\t\titr.remove();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public List<Integer> removeNumber(List<Integer> numbers) {\n List<Integer> result = new ArrayList<>();\n for (int number : numbers) {\n if (number != 7) {\n result.add(number);\n }\n }\n return result;\n }", "public static void main(String[] args) {\n\n ArrayList<Integer> arrayList=new ArrayList<>();\n\n arrayList.add(1);\n arrayList.add(1);\n arrayList.add(2);\n arrayList.add(5);\n\n\n System.out.println(arrayList);\n System.out.println(arrayList.remove(1));\n System.out.println(arrayList);\n\n }", "public static void clearList(ArrayList<Student> sList){\n\t\tsList.clear();\n\t}", "void unsetUnordered();", "public void clearConcertList(){\n concertList.clear();\n }", "@Override\n public void clear() {\n for (LinkedList<Entry<K,V>> list : table) {\n list = null;\n }\n }", "private void clearLists(){\r\n\t\tfor(int i=0; i<potentialFriends.length; i++){\r\n\t\t\tpotentialFriends[i] = null;\r\n\t\t}\r\n\t\tfor(int i=0; i<mutualNum.length; i++){\r\n\t\t\tmutualNum[i] = -1;\r\n\t\t}\r\n\t}", "public void clearAll();", "public void clearAll();", "@Override\n public void Clear() {\n for (int i = 0; i < array.size(); i++) {\n array.remove(i);\n\n }//Fin del for\n }" ]
[ "0.6639631", "0.6507789", "0.63582087", "0.6356254", "0.63504463", "0.6336836", "0.6314781", "0.6314781", "0.6314781", "0.6314781", "0.6314781", "0.6314781", "0.6314781", "0.6314781", "0.6314781", "0.6314781", "0.6314781", "0.6314781", "0.6300363", "0.62967914", "0.6266169", "0.6252558", "0.6244538", "0.6217716", "0.6198025", "0.6197544", "0.6173073", "0.61092085", "0.61025745", "0.61019784", "0.61019784", "0.61015314", "0.60805917", "0.6063905", "0.6047287", "0.6028718", "0.6028135", "0.6002352", "0.5971931", "0.5954388", "0.5932308", "0.5923547", "0.59098345", "0.59001064", "0.589608", "0.5889608", "0.5888936", "0.58605033", "0.58550555", "0.584127", "0.5818456", "0.58144575", "0.5808223", "0.5794559", "0.5777957", "0.57716954", "0.57693475", "0.57658416", "0.5762956", "0.5750961", "0.5750635", "0.57457113", "0.5738768", "0.57284164", "0.57199854", "0.5715491", "0.56949204", "0.5684455", "0.56822056", "0.56546754", "0.5652842", "0.565025", "0.5646175", "0.5643076", "0.56419814", "0.5639403", "0.5637593", "0.56344193", "0.56241447", "0.56238705", "0.5616291", "0.56121695", "0.5609997", "0.5608377", "0.56047875", "0.560089", "0.55992925", "0.5597926", "0.5589928", "0.55871147", "0.5586741", "0.5584221", "0.5566814", "0.5555628", "0.55523896", "0.55409855", "0.55318445", "0.55316854", "0.55248374", "0.55248374", "0.5521337" ]
0.0
-1
Appends to the end of List, irrespective of value already existing. See addToLikedCars to add without duplicating.
public void appendToLikedCars(String likedCars);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void appendToLikedCars(List<String> likedCars);", "public void addToLikedCars(List<String> likedCars);", "public void addToLikedCars(String likedCars);", "public void addCar(Car c) {\n\t\tNode newNode = new Node(c);\n\t\t\n\t\t//if list is empty\n\t\tif (head == null) {\n\t\t\thead = newNode;\n\t\t\tcount++;\n\t\t}\n\n\t\t//if list has one item\n\t\telse if (head.getNext() == null) {\n\t\t\tif (c.compareTo(head.getCar()) < 0) {\n\t\t\t\tnewNode.setNext(head);\n\t\t\t\thead = newNode;\n\t\t\t} else {\n\t\t\t\thead.setNext(newNode);\n\t\t\t}\n\t\t\tcount++;\n\t\t}\n\n\t\telse {\n\t\t\tNode previous = head;\n\t\t\tNode next = head.getNext();\n\n\t\t\twhile ((next != null) && (c.compareTo(next.getCar()) > 0)) {\n\t\t\t\tprevious = next;\n\t\t\t\tnext = next.getNext();\n\t\t\t}\n\t\t\tnewNode.setNext(next);\n\t\t\tprevious.setNext(newNode);\n\t\t\tcount++;\n\t\t}\n\t}", "@Override\n public void add(T car) {\n carsInGarage.add(car);\n }", "private static final <T> List<T> append(List<T> list, T newElement) {\n List<T> newList = Lists.newArrayListWithCapacity(list.size() + 1);\n newList.addAll(list);\n newList.add(newElement);\n return newList;\n }", "public void addToEnd(String value) {\n ListElement current = new ListElement(value);\n if (count == 0) {\n head = current;\n } else {\n tail.connectNext(current);\n }\n tail = current;\n count++;\n }", "public void addListItem(Car c, int position){\n mList.add(c);\n notifyItemInserted(position);\n }", "@Override\n public void add(Object item)\n {\n if (size == list.length)\n {\n Object [] itemInListCurrently = deepCopy();\n list = new Object[size * 2];\n\n System.arraycopy(itemInListCurrently, 0, list, 0, size);\n }\n\n list[size++] = item;\n }", "public void appendInPlace (List l) {\n\t\tif (this.isEmpty()) {\n\t\t\tmyHead = l.myHead;\n\t\t\tmySize = l.mySize;\n\t\t\tmyTail = l.myTail;\n\t\t}\n\t\telse if (l.isEmpty()) {\n\t\t\treturn;\n\t\t}\n\t\telse {\n\t\t\tmyTail.myNext = l.myHead;\n\t\t\tmyTail = l.myTail;\n\t\t\tmySize += l.mySize;\n\t\t}\n\t}", "public void addToBottom(Card card){\r\n cards.add(card);\r\n deckSize++;\r\n }", "public void push(E value) {\n list.addLast(value);\n index++;\n }", "public ScoreList append(ScoreContribution contribution)\n\t{\n\t\t// Won't stop all modifications to EMPTY, but helps.\n\t\t\n\t\tif (this == EMPTY)\n\t\t\tthrow new UnsupportedOperationException();\n\t\t\n\t\tsuper.add(contribution);\n\t\t\n\t\treturn this;\n\t}", "private void addFriendList(People value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureFriendListIsMutable();\n friendList_.add(value);\n }", "public void addToBottom(List<Card> cardList) {\n downStack.addAll(cardList);\n }", "public void append(Object item);", "public void addCars(List<Car> cars2) {\n\t\tfor (Car c : cars2){\n\t\t\tc.setTrain(this);\n\t\t}\n\t\tthis.cars.addAll(cars2);\n\t}", "public boolean add (Object o) {return addLast(o);}", "public void addLast(T listItem) {\n add(listItem);\n }", "IList<T> append(IList<T> l);", "BookList append(Node book){\n BookList target = new BookList(book);\n\n if (this.book == null){\n this.book = target.book;\n this.next = target.next;\n return this;\n }\n else{\n target = this;\n while (target.next != null){\n \n target = target.next;\n \n }\n target.next = new BookList(book);\n\n }\n return target;\n }", "public void add(K key,V value) {\n DictionaryPair pair = new DictionaryPair(key,value);\n int index = findPosition(key);\n\n if (index!=DsConst.NOT_FOUND) {\n list.set(index,pair);\n } else {\n list.addLast(pair);\n this.count++;\n }\n }", "public void append(CPoint cpoint) {\n\tcplist.add(cpoint);\n }", "public void addLast(Object item) {\r\n\t\tdata.add(item);\r\n\r\n\t}", "public HPTNode<K, V> append(V value) {\n if (values == null) {\n values = new ArrayList<>(2);\n }\n values.add(value);\n return this;\n }", "public void add (Car car){\n\t\t}", "public void add(Card c) {\n\t\t\t// TODO\n\t\t\t// No loops allowed!\n\t\t\t// Make sure to test invariant at start and before returning.\n\t\t\tassert wellFormed() : \"invariant false on entry to add()\";\n\t\t\tif(c == null) throw new IllegalArgumentException(\"C is null\");\n\t\t\t\n\t\t\tif(c.group != null) throw new IllegalArgumentException(\"c.group is not null\");\n\n\n\t\t\tif(this.isEmpty()) {\n\t\t\t\tthis.first = c;\n\t\t\t\tthis.last = c;\n\t\t\t}else {\n\t\t\t\tCard temp = this.last;\n\t\t\t\ttemp.next = c;\n\t\t\t\tc.prev = temp;\n\t\t\t\tthis.last = c;\n\t\t\t}\n\n\t\t\tc.group = this;\n\t\t\t++this.size;\n\n\t\t\tassert wellFormed() : \"invariant false on return to add()\";\n\n\t\t}", "public void append(E it) {\r\n\t\ttail = tail.setNext(new Link<E>(it, null));\r\n\t\tcnt++;\r\n\t}", "public void addToHand(ArrayList<PlayingCard> cardsToAdd)\n\t{\n\t\tcurrentHand.addAll(cardsToAdd);\n\t}", "public void addCarToCarRental(InterfaceAbstractCar car) {\r\n\t\tcompanyCars.add(car);\r\n\t}", "public IList<T> append(IList<T> l) {\n return l;\n }", "protected void addToTail(T val)\n\t{\n\t\tListElement<T> newElm = new ListElement<T>(val, null, tail);\n\t\t\n\t\tif(tail != null)\n\t\t\ttail.setNext(newElm);\n\t\telse\n\t\t\t//If list was empty befor addition\n\t\t\thead = newElm;\n\t\t\t\n\t\ttail = newElm;\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic boolean addRollingStock(RollingStock car)\n\t{\n\t\tif(this.cars.add(car))\n\t\t{\n\t\t\tcar.setInChain(this.getId()); \n\t\t\treturn true; \n\t\t}\n\t\treturn false; \n\t}", "public void add(Object o){\n list.add(o);\n }", "public void addCar(Car usedCar) {\n if (usedCar == null) {\n return;\n }\n // if price is 0 or negative, reject car\n if (usedCar.getPrice() <= 0) {\n System.out.println(\"Does not have price; cannot be added.\");\n return;\n }\n // if VIN is not unique, reject car\n if (!isUniqueVin(usedCar.getVin())) {\n System.out.println(\"Does not have unique VIN; cannot be added.\");\n return;\n }\n // car can be added\n cars.add(usedCar);\n totalValue += usedCar.getPrice();\n }", "public void addCard(Card card) {\n myCards.add(card);\n cardNumber = myCards.size();// reset the number of cards\n }", "public void addLast(Item x);", "public void add(E elem) {\n if (!list.contains(elem))\n list.insertLast(elem);\n }", "public void addListOfCards(Deck newCards){\r\n for(Card i : newCards.cards){\r\n this.cards.add(i);\r\n }\r\n deckSize += cards.size();\r\n }", "public void addLast(Item x) {\n if (size == items.length) {\n resize(size * 2);\n }\n items[size] = x;\n size += 1;\n }", "public @Override boolean add(E element) {\n \tappend(element);\n \treturn true;\n }", "public void addAll(List<Book> bookList) {\n this.mBook.clear();\n this.mBook.addAll(bookList);\n notifyDataSetChanged();\n\n }", "private void addRewardToList(double[] playVector, double reward) \n\t{\n\t\t\n\t\tint index = deepContainsArray(valueArrayList,playVector);\n\t\tif (index != -1)\t\t\t\t\t\t//if it's already been added before, append the reward\n\t\t{\t\n\t\t\tdouble[] rewards = rewardList.get(index);\n\t\t\trewards = Arrays.copyOf(rewards,rewards.length+1);\n\t\t\trewards[rewards.length-1] = reward;\n\t\t\trewardList.set(index, rewards);\n\t\t}\n\t\telse\t\t\t\t\t\t\t\t//if it isn't, add both the vector and the reward\n\t\t{\n\t\t\tvalueArrayList.add(playVector); //add to ArrayList too!\n\t\t\tdouble [] rewardArray = {reward};\n\t\t\trewardList.add(rewardArray);\n\t\t}\n\t\t\n\t}", "public static <T> ConstList<T> append(List<T> list, T element) {\n TempList<T> ans = new TempList<T>(list.size() + 1);\n ans.addAll(list).add(element);\n return ans.makeConst();\n }", "public void add(E e) {\n if (n == list.length) { grow(); }\n list[n++] = e;\n }", "public void addLast(T item) {\n if (size == 0) {\n array[rear] = item;\n size++;\n return;\n }\n\n this.checkReSizeUp();\n rear++;\n this.updatePointer();\n array[rear] = item;\n size++;\n }", "public void agregarCarrito(Carrito carrito){\n\t\tthis.listaCarritos.add(carrito);\n\t}", "private void addActiveCourseListToCourseList() {\n courseList.addCoursesToList(activeCourseList);\n activeCourseList = new ArrayList<>();\n System.out.println(\"Added and Cleared!\");\n }", "public void addLast(GroupChannel channel) {\n this.mChannelList.add(channel);\n notifyDataSetChanged();\n }", "public void append(int nodeValue)\n {\n ListNode newNode = new ListNode(nodeValue);\n\n // Check if the head is null\n if(this.head == null && this.tail == null)\n {\n this.head = newNode;\n this.tail = newNode;\n } else {\n\n ListNode currNode = this.head;\n ListNode prevNode = this.head;\n\n // Traverse the list\n while(currNode.getNextNode() != null)\n {\n // System.out.println(\"STUCK\");\n // System.out.println(\"CURRENT NODE VALUE: \" + currNode.getValue());\n // System.out.println(\"NEXT NODE FROM CURRENT: \" + currNode.getNextNode().getValue());\n prevNode = currNode;\n currNode = currNode.getNextNode();\n \n }\n\n // Wire the two nodes together\n currNode.setNextNode(newNode);\n newNode.setPrevNode(currNode);\n this.tail = newNode;\n }\n\n this.size = size + 1;\n\n }", "public void append(Item item) {\n Node newNode = new Node();\n newNode.item = item;\n Node lastNode = findNode(size);\n newNode.next = head;\n lastNode.next = newNode;\n size++;\n }", "public void add(T value) {\n extend();\n this.list[size]=value;\n this.size++;\n }", "private static void populateList(List<UsedCar> carList) {\n carList.add(new UsedCar(\"Ford\", \"Fiesta ST\", 2016, 25000.00));\n carList.add(new UsedCar(\"Ford\", \"Focus RS\", 2017, 40000.00));\n carList.add(new UsedCar(\"Ariel\", \"Atom\", 2018, 65000.00));\n carList.add(new UsedCar(\"Ford\", \"Pinto\", 1985, 1.00, 500.1));\n carList.add(new UsedCar(\"DMC\", \"DeLorean\", 1985, 20000.00, 50.0));\n carList.add(new UsedCar(\"Lamborghini\", \"Spyder\", 2006, 95995.00, 42.4));\n }", "public void addLast(Item item) {\n this.doublyLinkedList.addLast(item);\n\n }", "public void addToCollected(PlayingCard card){\n\t\tcollected.add(card);\t\t\n\t}", "private void addToChatList(Chat[] newChats){\n if ( newChats == null || newChats.length == 0 ) {\n return;\n }\n if ( chatList.size() == 0 ) { // no chat history loaded yet\n for ( Chat chat : newChats ) {\n chatList.offer(chat);\n }\n headIndex = newChats[0].id; // update the tail index\n tailIndex = newChats[newChats.length-1].id; // update the tail index\n } else if ( newChats[newChats.length-1].id < chatList.get(0).id ) { // new.tail is prior to current.head\n // prepend the new chats to the head of the current chat\n int selection = lv_chat.getFirstVisiblePosition();\n selection += newChats.length;\n for ( int i = newChats.length-1; i >= 0; i-- ) {\n chatList.push(newChats[i]);\n }\n lv_chat.setSelection(selection);\n adapter.notifyDataSetChanged();\n Log.d(TAG,\"select:\"+selection);\n headIndex = newChats[0].id; // update the headIndex\n } else if ( newChats[0].id > chatList.get(chatList.size()-1).id ) { // new.head is after current.tail\n // append the new chats to the tail of the current chat\n for ( Chat chat : newChats ) {\n chatList.offer(chat);\n }\n tailIndex = newChats[newChats.length-1].id; // update the tail index\n } else {\n Log.e(TAG,\"Loaded duplicated chat!\");\n }\n }", "public void reAdd(RCheckout handoff) {\n for(int i = 0; i < checkouts.size(); i++) {\n if(checkouts.get(i) == null) continue;\n\n if(checkouts.get(i).getID() == handoff.getID()) {\n checkouts.remove(i);\n checkouts.add(i, handoff);\n break;\n }\n }\n notifyDataSetChanged();\n }", "public RTWLocation append(Object... list);", "public Book addBook(Book b){\n list.add(b);\n return b;\n }", "public void addToEnd(Connector element) {\n\n\t\tConnector<T> newConnector = element;\n\n\t\tif (head != null) {\n\t\t\ttail.setNext(newConnector);\n\t\t\ttail = newConnector;\n\t\t}\n\t\t// if list is empty sets both tail and head to be the given connector\n\t\telse {\n\t\t\thead = tail = newConnector;\n\t\t}\n\t}", "public void addCard(Card c){\n cards.add(c);\n }", "public void append(Object element)\n {\n if(head==tail){\n head=tail=new SLListNode(element,null);\n return;\n }\n tail=tail.next=new SLListNode(element,null);\n }", "private void addCardValue(ArrayList<Integer> myList, int value)\n {\n for (int i = 0; i < myList.size(); i++)\n myList.set(i, myList.get(i) + value);\n }", "public FplList append(FplList list) {\n\t\tif (list == null || list.isEmpty()) {\n\t\t\treturn this;\n\t\t}\n\t\tif (isEmpty()) {\n\t\t\treturn list;\n\t\t}\n\t\tint totalSize = size() + list.size();\n\t\tint totalBuckets = shape.length + list.shape.length;\n\n\t\tFplValue[] lastBucket = shape[shape.length - 1];\n\t\tFplValue[] listFirstBucket = list.shape[0];\n\n\t\tif (lastBucket.length + listFirstBucket.length <= BASE_SIZE) {\n\t\t\tif (needsReshaping(totalBuckets - 1, totalSize)) {\n\t\t\t\treturn new FplList(mergedShape(shape, list.shape, totalSize));\n\t\t\t} else {\n\t\t\t\tFplValue[][] buckets = copyOf(shape, shape.length + list.shape.length - 1);\n\t\t\t\tFplValue[] bucket = copyOf(lastBucket, lastBucket.length + listFirstBucket.length);\n\t\t\t\tarraycopy(listFirstBucket, 0, bucket, lastBucket.length, listFirstBucket.length);\n\t\t\t\tbuckets[shape.length - 1] = bucket;\n\t\t\t\tarraycopy(list.shape, 1, buckets, shape.length, list.shape.length - 1);\n\t\t\t\treturn new FplList(buckets);\n\t\t\t}\n\t\t} else {\n\t\t\tif (needsReshaping(totalBuckets, totalSize)) {\n\t\t\t\treturn new FplList(mergedShape(shape, list.shape, totalSize));\n\t\t\t} else {\n\t\t\t\tFplValue[][] buckets = copyOf(shape, shape.length + list.shape.length);\n\t\t\t\tarraycopy(list.shape, 0, buckets, shape.length, list.shape.length);\n\t\t\t\treturn new FplList(buckets);\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic RDFList append( final RDFList list ) throws AccessDeniedException;", "public void add(Object value) {\n verifyModifiable();\n\n elements.add(value);\n }", "public void addLast(Item item){\r\n\t\tif (item == null) throw new NullPointerException();\r\n\t\tif (n == list.length){resize(2*list.length);}\r\n\t\tif(isEmpty()){prior=list.length-1;first=0;last=0;latter=0;}\r\n\t\tlist[latter++]=item;\r\n\t\t last=latter-1;\r\n\t\t if(latter==list.length){latter=0;}\r\n\t\t n++;}", "public void offer(int num){\n if(tail == fixedSize - 1) {\n List<Object> newList = new ArrayList<>();\n newList.add(num);\n //save next new list at tail\n tailList.add(newList);\n tailList = (List<Object>) tailList.get(tail);\n tail = 0;\n }else{ //not in last index,then directly add it;\n tailList.add(num);\n }\n count++;\n tail++;\n }", "public FplList addAtEnd(FplValue value) {\n\t\tint bucketIdx = shape.length - 1;\n\t\tint carrySize = 1;\n\t\tint maxSize = BASE_SIZE;\n\t\tint lastSize = 0;\n\t\twhile (bucketIdx >= 0) {\n\t\t\tint bucketSize = shape[bucketIdx].length;\n\n\t\t\tif (bucketSize < lastSize) {\n\t\t\t\t// Buckets are getting smaller, insert carry behind\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (carrySize + bucketSize < maxSize) {\n\t\t\t\t// There is enough space in the current bucket,\n\t\t\t\t// use it by pointing bucketIdx just before it.\n\t\t\t\tbucketIdx--;\n\t\t\t\tcarrySize += bucketSize;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (bucketSize >= maxSize) {\n\t\t\t\t// The current bucket is too big, insert carry before\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tlastSize = bucketSize;\n\n\t\t\tbucketIdx--;\n\t\t\tcarrySize += bucketSize;\n\t\t\tmaxSize *= FACTOR;\n\t\t}\n\t\t// buckedIdx points to the first bucket which is NOT part of the carry\n\t\t// Copy buckets (before carry)\n\t\tFplValue[][] bucketsDst = copyOf(shape, bucketIdx + 2);\n\n\t\t// Collect carry\n\t\tFplValue[] carry = new FplValue[carrySize];\n\t\tbucketsDst[bucketsDst.length - 1] = carry;\n\t\tcarry[carry.length - 1] = value;\n\t\tfor (int i = bucketIdx + 1, dst = 0; i < shape.length; i++) {\n\t\t\tarraycopy(shape[i], 0, carry, dst, shape[i].length);\n\t\t\tdst += shape[i].length;\n\t\t}\n\t\treturn new FplList(bucketsDst);\n\t}", "public IList<T> append(IList<T> l) {\n if (rest.isEmpty()) {\n rest = l;\n }\n else {\n rest.append(l);\n }\n return this;\n }", "void append(E data) {\n Node<E> node = new Node<>(data);\n if (isNull(head)) {\n head = node;\n return;\n }\n\n Node<E> last = head;\n while (nonNull(last.next)) {\n last = last.next;\n }\n\n last.next = node;\n node.previous = last;\n }", "public static void addList() {\n\t}", "public void add(String element){\n\t\tif(!contains(element)){\n\t\t\tlist.addLast(element);\n\t\t}\n\t}", "public void addCard(Card c)\n {\n cards.add(c);\n }", "public final void add() {\n\t\tif (size > 1) {\n\n\t\t\tdouble topMostValue = pop();\n\t\t\tdouble secondTopMostValue = pop();\n\t\t\tpush(secondTopMostValue + topMostValue);\n\t\t}\n\t}", "public OccList add( Occ occ )\n {\n final int oldCapacity = data.length;\n if ( size >= oldCapacity ) {\n final Occ[] oldData = data;\n final int newCapacity = Calcul.nextSquare( oldCapacity );\n data = new Occ[ newCapacity ];\n System.arraycopy( oldData, 0, data, 0, oldCapacity );\n // add occ \n for (int i=oldCapacity; i < newCapacity; i++) data[i] = new Occ();\n }\n data[size].set( occ );\n // connect occurrencies, maybe used for toString()\n if ( size > 0 ) {\n data[ size-1 ].next( data[ size ] );\n data[ size ].prev( data[ size-1 ] );\n }\n size++;\n return this;\n }", "@Override\n\tpublic void add(Object value) {\n\t\tinsert(value, size);\n\t}", "@Override\n public void addLast(T item) {\n if (size >= array.length) {\n resize(size * 2);\n array[nextLast] = item;\n nextLast = plusOne(nextLast);\n } else {\n array[nextLast] = item;\n nextLast = plusOne(nextLast);\n }\n size += 1;\n }", "@Override\n public void addLast(Item i) {\n resize();\n items[nextLast] = i;\n size += 1;\n nextLast = moveForward(nextLast, 1);\n }", "@Override\n public ListNode<T> append(T e) {\n \treturn new ListNode<T>(e,this);\n }", "public void append(Item value) {\n throw new OurBadException(\" Item '\" + this.serialize() + \"' is not an array.\");\n }", "public void addLast(T item) {\n if (isFull()) {\n resize(capacity * 2);\n }\n items[nextLast] = item;\n nextLast = plusOne(nextLast);\n size += 1;\n }", "public void append(final T data) {\n Node<T> newNode = new Node<>(data);\n if (head == null) {\n head = newNode;\n } else {\n Node<T> iterator = head;\n while (iterator.getNext() != null) {\n iterator = iterator.getNext();\n }\n iterator.setNext(newNode);\n }\n numElement++;\n }", "protected void addToHead(T val)\n\t{\n\t\tListElement<T> newElm = new ListElement<T>(val, head);\n\t\t\n\t\tif(head != null)\n\t\t\thead.setPrev(newElm);\n\t\telse\n\t\t\t//If list was empty befor addition\n\t\t\ttail = newElm;\n\t\t\t\n\t\thead = newElm;\n\t}", "public void addListObject(List<Student> list2)\r\n\t{\r\n\t\tlist2.add(s7);\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"after adding\");\r\n\t\tfor(Student e:list2)\r\n\t\t{\r\n\t\t\tSystem.out.println(e);\r\n\t\t}\r\n\t}", "public void addValues(List newValues) {\n synchronized (values) {\n values.addAll(newValues);\n }\n }", "@Override\n public boolean add(E value) {\n if (this.values.length == this.index) {\n this.grow();\n }\n this.modCount++;\n this.values[index++] = value;\n return true;\n }", "@Override\r\n\tpublic void add(T element) {\n\t\tthis._list.add(element);\r\n\t}", "@Override\n\tpublic void add(int n) {\n\t\tvalues[size] = n; //add value to the list\n\t\tsize++; //increment size\n\t\tif (size == values.length){ //if the list is full expand it\n\t\t\tresize();\n\t\t}\n\t}", "public /*@ non_null @*/ JMLListEqualsNode<E> append(E item) {\n // To avoid full recursion, we build the reverse of what we want in\n // revret, then reverse it. To make sure we only clone once,\n // we let reverse do the cloning\n JMLListEqualsNode<E> ptr = this;\n JMLListEqualsNode<E> revret = null;\n //@ maintaining (* reverse(revret) concatenated with ptr equals this *);\n while (ptr != null) {\n revret = new JMLListEqualsNode<E>(ptr.val, revret); // don't clone yet\n ptr = ptr.next;\n }\n return (new JMLListEqualsNode<E>(item, revret)).reverse();\n }", "public void append(Integer data) {\n\t\t// Construct a node tmp and make null as the next pointer:Step1\n\t\tListNode tmp = new ListNode(data, null);\n\n\t\tif (!isEmpty()) {\n\t\t\t// make next pointer of tail as tmp :Step2\n\t\t\t tail.next = tmp;// tmp is new tail\n\t\t\t\n\t\t} else {\n\t\t\t// but if list is empty then the temp is the only element \n\t\t\t//and is new tail as wells as head[see next statement executed]\t\n\t\t\tthis.head = tmp;\n\t\t}\n\t\tthis.tail = tmp; // now make tmp the new tail:Step2\n\t\n\t\tlength++;\n\t}", "public void addCardsToDrawPile(List<Card> cards) {\r\n drawPile.addAll(cards);\r\n }", "public static void push(Object data) {\n list.add(data);\n }", "public void addCar(Vehicle v) {\n\t\tif (this.mVehicles.size() < this.mCapacity) {\n\t\t\tCarAndTime carA = new CarAndTime(v, mTravelingTime);\n\t\t\tmVehicles.addFirst(carA);\n\t\t}\n\t}", "public void appendTvShows(List<TvShowModel> tvShowList) {\n //Remove pagination loading item\n removePaginationLoading();\n mTvShows.addAll(tvShowList);\n notifyDataSetChanged();\n }", "@Override\n\tpublic void add(Component component) {\n\t\tlist.add(component);\n\t}", "public void addBook(Book book) {\n this.bookList.add(book);\n }", "public void append(int data) {\r\n ListNode temp = head;\r\n while(temp.next !=null) {\r\n temp = temp.next;\r\n }\r\n ListNode new_node = new ListNode(data);\r\n temp.next=new_node;\r\n }", "public void addLast(E item);", "public void addToBottom(Card card) {\n\t\tint cardX = stackX;\n\t\tint cardY = stackY - overlap * cards.size();\n\t\tcard.setXY(cardX, cardY);\n\t\tfor (Card c : cards) {\n\t\t\tc.addToXY(0, overlap);\n\t\t}\n\t\tcard.setCardFlip(true);\n\t\tcards.add(0,card);\n\t\t//keep track of number of completed cards (Target: 4 by default base game)\n\t\tcompletedCards++;\n\t}" ]
[ "0.6853713", "0.6790973", "0.62140197", "0.61237854", "0.6024272", "0.6005788", "0.5894917", "0.57918096", "0.57049054", "0.56900024", "0.56504077", "0.56442875", "0.5608386", "0.5585014", "0.55838114", "0.5577134", "0.55602825", "0.54894066", "0.548872", "0.5483906", "0.54830897", "0.54775256", "0.5474955", "0.5474174", "0.5437564", "0.54265404", "0.5386741", "0.5382766", "0.53783", "0.5374543", "0.53732413", "0.53623646", "0.53549695", "0.5351337", "0.5348855", "0.53475434", "0.534257", "0.5330109", "0.5313784", "0.5309171", "0.52977115", "0.5296538", "0.5280399", "0.5248688", "0.52476454", "0.52451634", "0.52397794", "0.5233732", "0.5232011", "0.5218784", "0.5204571", "0.5199659", "0.519004", "0.51882595", "0.5187186", "0.51864046", "0.5180045", "0.5177938", "0.5170827", "0.51671994", "0.516701", "0.5163527", "0.5163484", "0.51604736", "0.5153407", "0.5146105", "0.5145396", "0.51441824", "0.5131396", "0.5121932", "0.5113156", "0.5112416", "0.5111025", "0.51079", "0.51014096", "0.5093307", "0.5093004", "0.5092048", "0.5087023", "0.50861305", "0.50777256", "0.5073235", "0.5071552", "0.5067561", "0.5065913", "0.50575215", "0.50557154", "0.50553095", "0.50476587", "0.5046125", "0.504565", "0.5043205", "0.50404775", "0.5035454", "0.50305194", "0.50299597", "0.502863", "0.5013396", "0.5012179", "0.5011431" ]
0.6155575
3
Appends to the end of List, irrespective of value already existing. See addToLikedCars to add without duplicating.
public void appendToLikedCars(List<String> likedCars);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addToLikedCars(List<String> likedCars);", "public void addToLikedCars(String likedCars);", "public void appendToLikedCars(String likedCars);", "public void addCar(Car c) {\n\t\tNode newNode = new Node(c);\n\t\t\n\t\t//if list is empty\n\t\tif (head == null) {\n\t\t\thead = newNode;\n\t\t\tcount++;\n\t\t}\n\n\t\t//if list has one item\n\t\telse if (head.getNext() == null) {\n\t\t\tif (c.compareTo(head.getCar()) < 0) {\n\t\t\t\tnewNode.setNext(head);\n\t\t\t\thead = newNode;\n\t\t\t} else {\n\t\t\t\thead.setNext(newNode);\n\t\t\t}\n\t\t\tcount++;\n\t\t}\n\n\t\telse {\n\t\t\tNode previous = head;\n\t\t\tNode next = head.getNext();\n\n\t\t\twhile ((next != null) && (c.compareTo(next.getCar()) > 0)) {\n\t\t\t\tprevious = next;\n\t\t\t\tnext = next.getNext();\n\t\t\t}\n\t\t\tnewNode.setNext(next);\n\t\t\tprevious.setNext(newNode);\n\t\t\tcount++;\n\t\t}\n\t}", "@Override\n public void add(T car) {\n carsInGarage.add(car);\n }", "private static final <T> List<T> append(List<T> list, T newElement) {\n List<T> newList = Lists.newArrayListWithCapacity(list.size() + 1);\n newList.addAll(list);\n newList.add(newElement);\n return newList;\n }", "public void addToEnd(String value) {\n ListElement current = new ListElement(value);\n if (count == 0) {\n head = current;\n } else {\n tail.connectNext(current);\n }\n tail = current;\n count++;\n }", "public void addListItem(Car c, int position){\n mList.add(c);\n notifyItemInserted(position);\n }", "@Override\n public void add(Object item)\n {\n if (size == list.length)\n {\n Object [] itemInListCurrently = deepCopy();\n list = new Object[size * 2];\n\n System.arraycopy(itemInListCurrently, 0, list, 0, size);\n }\n\n list[size++] = item;\n }", "public void appendInPlace (List l) {\n\t\tif (this.isEmpty()) {\n\t\t\tmyHead = l.myHead;\n\t\t\tmySize = l.mySize;\n\t\t\tmyTail = l.myTail;\n\t\t}\n\t\telse if (l.isEmpty()) {\n\t\t\treturn;\n\t\t}\n\t\telse {\n\t\t\tmyTail.myNext = l.myHead;\n\t\t\tmyTail = l.myTail;\n\t\t\tmySize += l.mySize;\n\t\t}\n\t}", "public void addToBottom(Card card){\r\n cards.add(card);\r\n deckSize++;\r\n }", "public void push(E value) {\n list.addLast(value);\n index++;\n }", "public ScoreList append(ScoreContribution contribution)\n\t{\n\t\t// Won't stop all modifications to EMPTY, but helps.\n\t\t\n\t\tif (this == EMPTY)\n\t\t\tthrow new UnsupportedOperationException();\n\t\t\n\t\tsuper.add(contribution);\n\t\t\n\t\treturn this;\n\t}", "private void addFriendList(People value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureFriendListIsMutable();\n friendList_.add(value);\n }", "public void addToBottom(List<Card> cardList) {\n downStack.addAll(cardList);\n }", "public void append(Object item);", "public void addCars(List<Car> cars2) {\n\t\tfor (Car c : cars2){\n\t\t\tc.setTrain(this);\n\t\t}\n\t\tthis.cars.addAll(cars2);\n\t}", "public boolean add (Object o) {return addLast(o);}", "public void addLast(T listItem) {\n add(listItem);\n }", "BookList append(Node book){\n BookList target = new BookList(book);\n\n if (this.book == null){\n this.book = target.book;\n this.next = target.next;\n return this;\n }\n else{\n target = this;\n while (target.next != null){\n \n target = target.next;\n \n }\n target.next = new BookList(book);\n\n }\n return target;\n }", "IList<T> append(IList<T> l);", "public void add(K key,V value) {\n DictionaryPair pair = new DictionaryPair(key,value);\n int index = findPosition(key);\n\n if (index!=DsConst.NOT_FOUND) {\n list.set(index,pair);\n } else {\n list.addLast(pair);\n this.count++;\n }\n }", "public void addLast(Object item) {\r\n\t\tdata.add(item);\r\n\r\n\t}", "public void append(CPoint cpoint) {\n\tcplist.add(cpoint);\n }", "public HPTNode<K, V> append(V value) {\n if (values == null) {\n values = new ArrayList<>(2);\n }\n values.add(value);\n return this;\n }", "public void add (Car car){\n\t\t}", "public void add(Card c) {\n\t\t\t// TODO\n\t\t\t// No loops allowed!\n\t\t\t// Make sure to test invariant at start and before returning.\n\t\t\tassert wellFormed() : \"invariant false on entry to add()\";\n\t\t\tif(c == null) throw new IllegalArgumentException(\"C is null\");\n\t\t\t\n\t\t\tif(c.group != null) throw new IllegalArgumentException(\"c.group is not null\");\n\n\n\t\t\tif(this.isEmpty()) {\n\t\t\t\tthis.first = c;\n\t\t\t\tthis.last = c;\n\t\t\t}else {\n\t\t\t\tCard temp = this.last;\n\t\t\t\ttemp.next = c;\n\t\t\t\tc.prev = temp;\n\t\t\t\tthis.last = c;\n\t\t\t}\n\n\t\t\tc.group = this;\n\t\t\t++this.size;\n\n\t\t\tassert wellFormed() : \"invariant false on return to add()\";\n\n\t\t}", "public void append(E it) {\r\n\t\ttail = tail.setNext(new Link<E>(it, null));\r\n\t\tcnt++;\r\n\t}", "public void addCarToCarRental(InterfaceAbstractCar car) {\r\n\t\tcompanyCars.add(car);\r\n\t}", "public void addToHand(ArrayList<PlayingCard> cardsToAdd)\n\t{\n\t\tcurrentHand.addAll(cardsToAdd);\n\t}", "public IList<T> append(IList<T> l) {\n return l;\n }", "protected void addToTail(T val)\n\t{\n\t\tListElement<T> newElm = new ListElement<T>(val, null, tail);\n\t\t\n\t\tif(tail != null)\n\t\t\ttail.setNext(newElm);\n\t\telse\n\t\t\t//If list was empty befor addition\n\t\t\thead = newElm;\n\t\t\t\n\t\ttail = newElm;\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic boolean addRollingStock(RollingStock car)\n\t{\n\t\tif(this.cars.add(car))\n\t\t{\n\t\t\tcar.setInChain(this.getId()); \n\t\t\treturn true; \n\t\t}\n\t\treturn false; \n\t}", "public void addCar(Car usedCar) {\n if (usedCar == null) {\n return;\n }\n // if price is 0 or negative, reject car\n if (usedCar.getPrice() <= 0) {\n System.out.println(\"Does not have price; cannot be added.\");\n return;\n }\n // if VIN is not unique, reject car\n if (!isUniqueVin(usedCar.getVin())) {\n System.out.println(\"Does not have unique VIN; cannot be added.\");\n return;\n }\n // car can be added\n cars.add(usedCar);\n totalValue += usedCar.getPrice();\n }", "public void add(Object o){\n list.add(o);\n }", "public void addCard(Card card) {\n myCards.add(card);\n cardNumber = myCards.size();// reset the number of cards\n }", "public void addLast(Item x);", "public void add(E elem) {\n if (!list.contains(elem))\n list.insertLast(elem);\n }", "public void addListOfCards(Deck newCards){\r\n for(Card i : newCards.cards){\r\n this.cards.add(i);\r\n }\r\n deckSize += cards.size();\r\n }", "public void addLast(Item x) {\n if (size == items.length) {\n resize(size * 2);\n }\n items[size] = x;\n size += 1;\n }", "public @Override boolean add(E element) {\n \tappend(element);\n \treturn true;\n }", "public void addAll(List<Book> bookList) {\n this.mBook.clear();\n this.mBook.addAll(bookList);\n notifyDataSetChanged();\n\n }", "private void addRewardToList(double[] playVector, double reward) \n\t{\n\t\t\n\t\tint index = deepContainsArray(valueArrayList,playVector);\n\t\tif (index != -1)\t\t\t\t\t\t//if it's already been added before, append the reward\n\t\t{\t\n\t\t\tdouble[] rewards = rewardList.get(index);\n\t\t\trewards = Arrays.copyOf(rewards,rewards.length+1);\n\t\t\trewards[rewards.length-1] = reward;\n\t\t\trewardList.set(index, rewards);\n\t\t}\n\t\telse\t\t\t\t\t\t\t\t//if it isn't, add both the vector and the reward\n\t\t{\n\t\t\tvalueArrayList.add(playVector); //add to ArrayList too!\n\t\t\tdouble [] rewardArray = {reward};\n\t\t\trewardList.add(rewardArray);\n\t\t}\n\t\t\n\t}", "public void addLast(T item) {\n if (size == 0) {\n array[rear] = item;\n size++;\n return;\n }\n\n this.checkReSizeUp();\n rear++;\n this.updatePointer();\n array[rear] = item;\n size++;\n }", "public void add(E e) {\n if (n == list.length) { grow(); }\n list[n++] = e;\n }", "public static <T> ConstList<T> append(List<T> list, T element) {\n TempList<T> ans = new TempList<T>(list.size() + 1);\n ans.addAll(list).add(element);\n return ans.makeConst();\n }", "public void agregarCarrito(Carrito carrito){\n\t\tthis.listaCarritos.add(carrito);\n\t}", "public void addLast(GroupChannel channel) {\n this.mChannelList.add(channel);\n notifyDataSetChanged();\n }", "private void addActiveCourseListToCourseList() {\n courseList.addCoursesToList(activeCourseList);\n activeCourseList = new ArrayList<>();\n System.out.println(\"Added and Cleared!\");\n }", "public void append(int nodeValue)\n {\n ListNode newNode = new ListNode(nodeValue);\n\n // Check if the head is null\n if(this.head == null && this.tail == null)\n {\n this.head = newNode;\n this.tail = newNode;\n } else {\n\n ListNode currNode = this.head;\n ListNode prevNode = this.head;\n\n // Traverse the list\n while(currNode.getNextNode() != null)\n {\n // System.out.println(\"STUCK\");\n // System.out.println(\"CURRENT NODE VALUE: \" + currNode.getValue());\n // System.out.println(\"NEXT NODE FROM CURRENT: \" + currNode.getNextNode().getValue());\n prevNode = currNode;\n currNode = currNode.getNextNode();\n \n }\n\n // Wire the two nodes together\n currNode.setNextNode(newNode);\n newNode.setPrevNode(currNode);\n this.tail = newNode;\n }\n\n this.size = size + 1;\n\n }", "public void append(Item item) {\n Node newNode = new Node();\n newNode.item = item;\n Node lastNode = findNode(size);\n newNode.next = head;\n lastNode.next = newNode;\n size++;\n }", "public void add(T value) {\n extend();\n this.list[size]=value;\n this.size++;\n }", "public void addLast(Item item) {\n this.doublyLinkedList.addLast(item);\n\n }", "private static void populateList(List<UsedCar> carList) {\n carList.add(new UsedCar(\"Ford\", \"Fiesta ST\", 2016, 25000.00));\n carList.add(new UsedCar(\"Ford\", \"Focus RS\", 2017, 40000.00));\n carList.add(new UsedCar(\"Ariel\", \"Atom\", 2018, 65000.00));\n carList.add(new UsedCar(\"Ford\", \"Pinto\", 1985, 1.00, 500.1));\n carList.add(new UsedCar(\"DMC\", \"DeLorean\", 1985, 20000.00, 50.0));\n carList.add(new UsedCar(\"Lamborghini\", \"Spyder\", 2006, 95995.00, 42.4));\n }", "public void addToCollected(PlayingCard card){\n\t\tcollected.add(card);\t\t\n\t}", "private void addToChatList(Chat[] newChats){\n if ( newChats == null || newChats.length == 0 ) {\n return;\n }\n if ( chatList.size() == 0 ) { // no chat history loaded yet\n for ( Chat chat : newChats ) {\n chatList.offer(chat);\n }\n headIndex = newChats[0].id; // update the tail index\n tailIndex = newChats[newChats.length-1].id; // update the tail index\n } else if ( newChats[newChats.length-1].id < chatList.get(0).id ) { // new.tail is prior to current.head\n // prepend the new chats to the head of the current chat\n int selection = lv_chat.getFirstVisiblePosition();\n selection += newChats.length;\n for ( int i = newChats.length-1; i >= 0; i-- ) {\n chatList.push(newChats[i]);\n }\n lv_chat.setSelection(selection);\n adapter.notifyDataSetChanged();\n Log.d(TAG,\"select:\"+selection);\n headIndex = newChats[0].id; // update the headIndex\n } else if ( newChats[0].id > chatList.get(chatList.size()-1).id ) { // new.head is after current.tail\n // append the new chats to the tail of the current chat\n for ( Chat chat : newChats ) {\n chatList.offer(chat);\n }\n tailIndex = newChats[newChats.length-1].id; // update the tail index\n } else {\n Log.e(TAG,\"Loaded duplicated chat!\");\n }\n }", "public void reAdd(RCheckout handoff) {\n for(int i = 0; i < checkouts.size(); i++) {\n if(checkouts.get(i) == null) continue;\n\n if(checkouts.get(i).getID() == handoff.getID()) {\n checkouts.remove(i);\n checkouts.add(i, handoff);\n break;\n }\n }\n notifyDataSetChanged();\n }", "public RTWLocation append(Object... list);", "public Book addBook(Book b){\n list.add(b);\n return b;\n }", "public void addToEnd(Connector element) {\n\n\t\tConnector<T> newConnector = element;\n\n\t\tif (head != null) {\n\t\t\ttail.setNext(newConnector);\n\t\t\ttail = newConnector;\n\t\t}\n\t\t// if list is empty sets both tail and head to be the given connector\n\t\telse {\n\t\t\thead = tail = newConnector;\n\t\t}\n\t}", "public void addCard(Card c){\n cards.add(c);\n }", "public void append(Object element)\n {\n if(head==tail){\n head=tail=new SLListNode(element,null);\n return;\n }\n tail=tail.next=new SLListNode(element,null);\n }", "private void addCardValue(ArrayList<Integer> myList, int value)\n {\n for (int i = 0; i < myList.size(); i++)\n myList.set(i, myList.get(i) + value);\n }", "public FplList append(FplList list) {\n\t\tif (list == null || list.isEmpty()) {\n\t\t\treturn this;\n\t\t}\n\t\tif (isEmpty()) {\n\t\t\treturn list;\n\t\t}\n\t\tint totalSize = size() + list.size();\n\t\tint totalBuckets = shape.length + list.shape.length;\n\n\t\tFplValue[] lastBucket = shape[shape.length - 1];\n\t\tFplValue[] listFirstBucket = list.shape[0];\n\n\t\tif (lastBucket.length + listFirstBucket.length <= BASE_SIZE) {\n\t\t\tif (needsReshaping(totalBuckets - 1, totalSize)) {\n\t\t\t\treturn new FplList(mergedShape(shape, list.shape, totalSize));\n\t\t\t} else {\n\t\t\t\tFplValue[][] buckets = copyOf(shape, shape.length + list.shape.length - 1);\n\t\t\t\tFplValue[] bucket = copyOf(lastBucket, lastBucket.length + listFirstBucket.length);\n\t\t\t\tarraycopy(listFirstBucket, 0, bucket, lastBucket.length, listFirstBucket.length);\n\t\t\t\tbuckets[shape.length - 1] = bucket;\n\t\t\t\tarraycopy(list.shape, 1, buckets, shape.length, list.shape.length - 1);\n\t\t\t\treturn new FplList(buckets);\n\t\t\t}\n\t\t} else {\n\t\t\tif (needsReshaping(totalBuckets, totalSize)) {\n\t\t\t\treturn new FplList(mergedShape(shape, list.shape, totalSize));\n\t\t\t} else {\n\t\t\t\tFplValue[][] buckets = copyOf(shape, shape.length + list.shape.length);\n\t\t\t\tarraycopy(list.shape, 0, buckets, shape.length, list.shape.length);\n\t\t\t\treturn new FplList(buckets);\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic RDFList append( final RDFList list ) throws AccessDeniedException;", "public void addLast(Item item){\r\n\t\tif (item == null) throw new NullPointerException();\r\n\t\tif (n == list.length){resize(2*list.length);}\r\n\t\tif(isEmpty()){prior=list.length-1;first=0;last=0;latter=0;}\r\n\t\tlist[latter++]=item;\r\n\t\t last=latter-1;\r\n\t\t if(latter==list.length){latter=0;}\r\n\t\t n++;}", "public void offer(int num){\n if(tail == fixedSize - 1) {\n List<Object> newList = new ArrayList<>();\n newList.add(num);\n //save next new list at tail\n tailList.add(newList);\n tailList = (List<Object>) tailList.get(tail);\n tail = 0;\n }else{ //not in last index,then directly add it;\n tailList.add(num);\n }\n count++;\n tail++;\n }", "public void add(Object value) {\n verifyModifiable();\n\n elements.add(value);\n }", "public FplList addAtEnd(FplValue value) {\n\t\tint bucketIdx = shape.length - 1;\n\t\tint carrySize = 1;\n\t\tint maxSize = BASE_SIZE;\n\t\tint lastSize = 0;\n\t\twhile (bucketIdx >= 0) {\n\t\t\tint bucketSize = shape[bucketIdx].length;\n\n\t\t\tif (bucketSize < lastSize) {\n\t\t\t\t// Buckets are getting smaller, insert carry behind\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (carrySize + bucketSize < maxSize) {\n\t\t\t\t// There is enough space in the current bucket,\n\t\t\t\t// use it by pointing bucketIdx just before it.\n\t\t\t\tbucketIdx--;\n\t\t\t\tcarrySize += bucketSize;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (bucketSize >= maxSize) {\n\t\t\t\t// The current bucket is too big, insert carry before\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tlastSize = bucketSize;\n\n\t\t\tbucketIdx--;\n\t\t\tcarrySize += bucketSize;\n\t\t\tmaxSize *= FACTOR;\n\t\t}\n\t\t// buckedIdx points to the first bucket which is NOT part of the carry\n\t\t// Copy buckets (before carry)\n\t\tFplValue[][] bucketsDst = copyOf(shape, bucketIdx + 2);\n\n\t\t// Collect carry\n\t\tFplValue[] carry = new FplValue[carrySize];\n\t\tbucketsDst[bucketsDst.length - 1] = carry;\n\t\tcarry[carry.length - 1] = value;\n\t\tfor (int i = bucketIdx + 1, dst = 0; i < shape.length; i++) {\n\t\t\tarraycopy(shape[i], 0, carry, dst, shape[i].length);\n\t\t\tdst += shape[i].length;\n\t\t}\n\t\treturn new FplList(bucketsDst);\n\t}", "public IList<T> append(IList<T> l) {\n if (rest.isEmpty()) {\n rest = l;\n }\n else {\n rest.append(l);\n }\n return this;\n }", "void append(E data) {\n Node<E> node = new Node<>(data);\n if (isNull(head)) {\n head = node;\n return;\n }\n\n Node<E> last = head;\n while (nonNull(last.next)) {\n last = last.next;\n }\n\n last.next = node;\n node.previous = last;\n }", "public void add(String element){\n\t\tif(!contains(element)){\n\t\t\tlist.addLast(element);\n\t\t}\n\t}", "public static void addList() {\n\t}", "public void addCard(Card c)\n {\n cards.add(c);\n }", "public final void add() {\n\t\tif (size > 1) {\n\n\t\t\tdouble topMostValue = pop();\n\t\t\tdouble secondTopMostValue = pop();\n\t\t\tpush(secondTopMostValue + topMostValue);\n\t\t}\n\t}", "@Override\n public void addLast(T item) {\n if (size >= array.length) {\n resize(size * 2);\n array[nextLast] = item;\n nextLast = plusOne(nextLast);\n } else {\n array[nextLast] = item;\n nextLast = plusOne(nextLast);\n }\n size += 1;\n }", "@Override\n\tpublic void add(Object value) {\n\t\tinsert(value, size);\n\t}", "public OccList add( Occ occ )\n {\n final int oldCapacity = data.length;\n if ( size >= oldCapacity ) {\n final Occ[] oldData = data;\n final int newCapacity = Calcul.nextSquare( oldCapacity );\n data = new Occ[ newCapacity ];\n System.arraycopy( oldData, 0, data, 0, oldCapacity );\n // add occ \n for (int i=oldCapacity; i < newCapacity; i++) data[i] = new Occ();\n }\n data[size].set( occ );\n // connect occurrencies, maybe used for toString()\n if ( size > 0 ) {\n data[ size-1 ].next( data[ size ] );\n data[ size ].prev( data[ size-1 ] );\n }\n size++;\n return this;\n }", "@Override\n public void addLast(Item i) {\n resize();\n items[nextLast] = i;\n size += 1;\n nextLast = moveForward(nextLast, 1);\n }", "@Override\n public ListNode<T> append(T e) {\n \treturn new ListNode<T>(e,this);\n }", "public void append(Item value) {\n throw new OurBadException(\" Item '\" + this.serialize() + \"' is not an array.\");\n }", "public void addLast(T item) {\n if (isFull()) {\n resize(capacity * 2);\n }\n items[nextLast] = item;\n nextLast = plusOne(nextLast);\n size += 1;\n }", "public void append(final T data) {\n Node<T> newNode = new Node<>(data);\n if (head == null) {\n head = newNode;\n } else {\n Node<T> iterator = head;\n while (iterator.getNext() != null) {\n iterator = iterator.getNext();\n }\n iterator.setNext(newNode);\n }\n numElement++;\n }", "protected void addToHead(T val)\n\t{\n\t\tListElement<T> newElm = new ListElement<T>(val, head);\n\t\t\n\t\tif(head != null)\n\t\t\thead.setPrev(newElm);\n\t\telse\n\t\t\t//If list was empty befor addition\n\t\t\ttail = newElm;\n\t\t\t\n\t\thead = newElm;\n\t}", "public void addListObject(List<Student> list2)\r\n\t{\r\n\t\tlist2.add(s7);\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"after adding\");\r\n\t\tfor(Student e:list2)\r\n\t\t{\r\n\t\t\tSystem.out.println(e);\r\n\t\t}\r\n\t}", "public void addValues(List newValues) {\n synchronized (values) {\n values.addAll(newValues);\n }\n }", "@Override\n public boolean add(E value) {\n if (this.values.length == this.index) {\n this.grow();\n }\n this.modCount++;\n this.values[index++] = value;\n return true;\n }", "@Override\r\n\tpublic void add(T element) {\n\t\tthis._list.add(element);\r\n\t}", "@Override\n\tpublic void add(int n) {\n\t\tvalues[size] = n; //add value to the list\n\t\tsize++; //increment size\n\t\tif (size == values.length){ //if the list is full expand it\n\t\t\tresize();\n\t\t}\n\t}", "public /*@ non_null @*/ JMLListEqualsNode<E> append(E item) {\n // To avoid full recursion, we build the reverse of what we want in\n // revret, then reverse it. To make sure we only clone once,\n // we let reverse do the cloning\n JMLListEqualsNode<E> ptr = this;\n JMLListEqualsNode<E> revret = null;\n //@ maintaining (* reverse(revret) concatenated with ptr equals this *);\n while (ptr != null) {\n revret = new JMLListEqualsNode<E>(ptr.val, revret); // don't clone yet\n ptr = ptr.next;\n }\n return (new JMLListEqualsNode<E>(item, revret)).reverse();\n }", "public void append(Integer data) {\n\t\t// Construct a node tmp and make null as the next pointer:Step1\n\t\tListNode tmp = new ListNode(data, null);\n\n\t\tif (!isEmpty()) {\n\t\t\t// make next pointer of tail as tmp :Step2\n\t\t\t tail.next = tmp;// tmp is new tail\n\t\t\t\n\t\t} else {\n\t\t\t// but if list is empty then the temp is the only element \n\t\t\t//and is new tail as wells as head[see next statement executed]\t\n\t\t\tthis.head = tmp;\n\t\t}\n\t\tthis.tail = tmp; // now make tmp the new tail:Step2\n\t\n\t\tlength++;\n\t}", "public void addCardsToDrawPile(List<Card> cards) {\r\n drawPile.addAll(cards);\r\n }", "public static void push(Object data) {\n list.add(data);\n }", "public void addCar(Vehicle v) {\n\t\tif (this.mVehicles.size() < this.mCapacity) {\n\t\t\tCarAndTime carA = new CarAndTime(v, mTravelingTime);\n\t\t\tmVehicles.addFirst(carA);\n\t\t}\n\t}", "public void addBook(Book book) {\n this.bookList.add(book);\n }", "@Override\n\tpublic void add(Component component) {\n\t\tlist.add(component);\n\t}", "public void appendTvShows(List<TvShowModel> tvShowList) {\n //Remove pagination loading item\n removePaginationLoading();\n mTvShows.addAll(tvShowList);\n notifyDataSetChanged();\n }", "public void addLast(E item);", "public void append(int data) {\r\n ListNode temp = head;\r\n while(temp.next !=null) {\r\n temp = temp.next;\r\n }\r\n ListNode new_node = new ListNode(data);\r\n temp.next=new_node;\r\n }", "public void addToBottom(Card card) {\n\t\tint cardX = stackX;\n\t\tint cardY = stackY - overlap * cards.size();\n\t\tcard.setXY(cardX, cardY);\n\t\tfor (Card c : cards) {\n\t\t\tc.addToXY(0, overlap);\n\t\t}\n\t\tcard.setCardFlip(true);\n\t\tcards.add(0,card);\n\t\t//keep track of number of completed cards (Target: 4 by default base game)\n\t\tcompletedCards++;\n\t}" ]
[ "0.679116", "0.6215653", "0.6156824", "0.61248845", "0.6026339", "0.60031563", "0.5894522", "0.57918435", "0.5703571", "0.5686951", "0.5650092", "0.56438994", "0.5606573", "0.5582151", "0.5581498", "0.5576222", "0.5560757", "0.5489593", "0.54882497", "0.54825336", "0.54818726", "0.5476516", "0.5475092", "0.5473122", "0.54350245", "0.5427844", "0.5386382", "0.5382143", "0.53768575", "0.5376804", "0.5370073", "0.53612274", "0.5356728", "0.5350584", "0.53492457", "0.5347313", "0.53442866", "0.5330367", "0.53122884", "0.53103685", "0.529658", "0.5294693", "0.52778864", "0.52466196", "0.52462476", "0.52457845", "0.5240977", "0.5233869", "0.52313334", "0.5217192", "0.5204412", "0.5197386", "0.5189502", "0.5188547", "0.518739", "0.5185629", "0.5180549", "0.5174529", "0.51699036", "0.51678497", "0.5165792", "0.51629645", "0.51608896", "0.51563615", "0.51495105", "0.5146233", "0.51440746", "0.5144052", "0.5130746", "0.51191324", "0.5112685", "0.5111399", "0.5108678", "0.51067203", "0.5100219", "0.50935745", "0.5091895", "0.5091384", "0.5088046", "0.50844306", "0.5076703", "0.50745964", "0.50708514", "0.5066241", "0.5062827", "0.50550634", "0.50542086", "0.5054054", "0.5045747", "0.5045183", "0.5044663", "0.504161", "0.50395167", "0.50371045", "0.50286144", "0.5028445", "0.50278896", "0.5013912", "0.50125355", "0.5011016" ]
0.6853487
0
Adds to the List by treating List as a Set. Thus adds only if not already exists in the List and avoids duplication. See appendToLikedCars to append to List.
public void addToLikedCars(String likedCars);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addToLikedCars(List<String> likedCars);", "@Override\n public void add(T car) {\n carsInGarage.add(car);\n }", "void add(Set<Card> cards);", "public void appendToLikedCars(List<String> likedCars);", "private static void populateList(List<UsedCar> carList) {\n carList.add(new UsedCar(\"Ford\", \"Fiesta ST\", 2016, 25000.00));\n carList.add(new UsedCar(\"Ford\", \"Focus RS\", 2017, 40000.00));\n carList.add(new UsedCar(\"Ariel\", \"Atom\", 2018, 65000.00));\n carList.add(new UsedCar(\"Ford\", \"Pinto\", 1985, 1.00, 500.1));\n carList.add(new UsedCar(\"DMC\", \"DeLorean\", 1985, 20000.00, 50.0));\n carList.add(new UsedCar(\"Lamborghini\", \"Spyder\", 2006, 95995.00, 42.4));\n }", "public List<VaccineDetails> removeDuplicates(final List<VaccineDetails> list)\n {\n\n Set<VaccineDetails> carSet = new HashSet<VaccineDetails>();\n for (VaccineDetails car : list) {\n carSet.add(car);\n }\n List<VaccineDetails> withoutDuplicates = new ArrayList<VaccineDetails>(carSet);\n\n return withoutDuplicates;\n }", "synchronized void crawledList_add(HashSet _crawledList, String url)\n {\n _crawledList.add(url);\n System.out.println(\"Added\"+\"\\t\"+url);\n }", "@SuppressWarnings(\"unchecked\")\n public static void addIfNotContained(List list, Object object) {\n if (!list.contains(object)) {\n list.add(object);\n }\n }", "@Override\n public boolean add(List<Buyer> buyers) {\n return false;\n }", "void add(Cluster c){\n Set<Cluster> tempC = new TreeSet<Cluster>();\n for(Cluster i: C)\n tempC.add(i);\n tempC.add(c);\n C = tempC;\n }", "public void vampireAdd(){\n //Will permit to know if every vampires are different\n Set<Being> swap = new HashSet();\n\n //Iterate till the set is equal to the number of vampire we need\n while(swap.size() != this.vampires){\n //Create a new vampire\n Vampire vamp = vampireSet();\n //Test if the vampire is unique\n if(swap.add(vamp)){\n //Add the vampire to the real list if it's unique\n this.beings.add(vamp);\n }\n }\n //Clear the set, I guess it's optional\n swap.clear();\n }", "public void addCars(List<Car> cars2) {\n\t\tfor (Car c : cars2){\n\t\t\tc.setTrain(this);\n\t\t}\n\t\tthis.cars.addAll(cars2);\n\t}", "public void addAll(List<Book> bookList) {\n this.mBook.clear();\n this.mBook.addAll(bookList);\n notifyDataSetChanged();\n\n }", "@Override\n public boolean add(Set<E> e) {\n throw new UnsupportedOperationException(\"Add not supported\");\n }", "public void addCar(Car usedCar) {\n if (usedCar == null) {\n return;\n }\n // if price is 0 or negative, reject car\n if (usedCar.getPrice() <= 0) {\n System.out.println(\"Does not have price; cannot be added.\");\n return;\n }\n // if VIN is not unique, reject car\n if (!isUniqueVin(usedCar.getVin())) {\n System.out.println(\"Does not have unique VIN; cannot be added.\");\n return;\n }\n // car can be added\n cars.add(usedCar);\n totalValue += usedCar.getPrice();\n }", "MultiSet<X> add(X x);", "set.addAll(Arrays.asList(a));", "@Override\n public boolean hasDuplicates() {\n ArrayList<String> itemList = new ArrayList(Arrays.asList(\"\"));\n Node currNode = this.head;\n while(true){\n if(itemList.contains(currNode.getItem())){ // need to edit\n return true;\n }else{\n itemList.add(currNode.getItem());\n }\n if(currNode.getNextNode() == null){\n break;\n }\n currNode = currNode.getNextNode();\n }\n return false;\n }", "private void addWithoutDuplicate(ArrayList<WordDocument> addTo, ArrayList<WordDocument> addFrom) {\n for (WordDocument x : addFrom)\n if (!addTo.contains(x))\n addTo.add(x);\n }", "protected abstract Set<String> _addToSet(String key, Collection<String> str);", "static void findDuplicate()\n\t{\n\n\t\tList<String> oList = null;\n\t\tSet<String> oSet = null;\n\t\ttry {\n\t\t\toList = new ArrayList<String>();\n\t\t\toList.add(\"Apple\");\n\t\t\toList.add(\"Boy\");\n\t\t\toList.add(\"Frog\");\n\t\t\toList.add(\"Dog\");\n\t\t\toList.add(\"Eagle\");\n\t\t\toList.add(\"Frog\");\n\t\t\toList.add(\"Apple\");\n\t\t\toList.add(\"Boy\");\n\t\t\toList.add(\"Apple\");\n\t\t\toList.add(\"Boy\");\n\t\t\tSystem.out.println(oList);\n\t\t\t\n\t\t\toSet = new TreeSet<>();\n\t\t\t\n\t\t\tString s = \"\";\n\t\t\tfor(int i=0;i<oList.size();i++)\n\t\t\t{\n\t\t\t\tif((oSet.add(oList.get(i))==false) && (!s.contains(oList.get(i))))\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"Duplicate: \"+oList.get(i));\n\t\t\t\t\ts+=oList.get(i);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}catch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfinally {\n\t\t\toList = null;\n\t\t\toSet = null;\n\t\t}\n\t}", "public void addCar(Car c) {\n\t\tNode newNode = new Node(c);\n\t\t\n\t\t//if list is empty\n\t\tif (head == null) {\n\t\t\thead = newNode;\n\t\t\tcount++;\n\t\t}\n\n\t\t//if list has one item\n\t\telse if (head.getNext() == null) {\n\t\t\tif (c.compareTo(head.getCar()) < 0) {\n\t\t\t\tnewNode.setNext(head);\n\t\t\t\thead = newNode;\n\t\t\t} else {\n\t\t\t\thead.setNext(newNode);\n\t\t\t}\n\t\t\tcount++;\n\t\t}\n\n\t\telse {\n\t\t\tNode previous = head;\n\t\t\tNode next = head.getNext();\n\n\t\t\twhile ((next != null) && (c.compareTo(next.getCar()) > 0)) {\n\t\t\t\tprevious = next;\n\t\t\t\tnext = next.getNext();\n\t\t\t}\n\t\t\tnewNode.setNext(next);\n\t\t\tprevious.setNext(newNode);\n\t\t\tcount++;\n\t\t}\n\t}", "public void add(List<SermCit> citList){\n //Add one by one\n for (SermCit x : citList){\n add(x);\n }\n }", "public void addItem(Object item) throws SetException {\n\t\tif (member(item))\n\t\t\tthrow new SetException(\"Item already in set.\");\n\n\t\tlist.add(item);\n\t}", "@Override\n\tpublic void addEntry(E entry) {\n\n\t\t// Determine if the entry already exists in the list\n\t\tE current = this.getHead();\n\t\twhile (current != null) {\n\t\t\tif (this.isEqual(current, entry)) {\n\t\t\t\t// Already in list\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tcurrent = current.getNext();\n\t\t}\n\n\t\t// Not in list, so add the entry\n\t\tsuper.addEntry(entry);\n\t}", "private void addFriendList(People value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureFriendListIsMutable();\n friendList_.add(value);\n }", "synchronized void toCrawlList_addAll(LinkedHashSet _toCrawlList, ArrayList _links)\n {\n _toCrawlList.addAll(_links);\n }", "public static <T> void addWithoutDuplicates(List<T> addedTo, T toBeAdded) {\n if (!addedTo.contains(toBeAdded))\n addedTo.add(toBeAdded);\n }", "void addList(ShoppingList _ShoppingList);", "public void removeFromLikedCars(List<String> likedCars);", "public boolean add(List<T> e) {\n\t\treturn lists.add(e);\n\t}", "public void addCarInsideIntersection(Car car) {\n if (carsInsideIntersection.contains(car)) {\n Logger.getInstance().logWarning(getName(), car.getName() + \" is already inside intersection \" + getName());\n throw new IllegalStateException(\"car already in intersection\");\n }\n carsInsideIntersection.add(car);\n }", "public static void addList() {\n\t}", "public static <T> void addWithoutDuplicates(List<T> addedTo, List<T> toBeAdded) {\n if (addedTo == null | toBeAdded == null)\n return;\n outer:\n for (int i = 0; i < toBeAdded.size(); i++) {\n T item = toBeAdded.get(i);\n for (int j = 0; j < addedTo.size(); j++) {\n if (addedTo.get(j).equals(item))\n continue outer;\n }\n addedTo.add(item);\n }\n }", "public void add(int number) {\n for(int num : list) set.add(num + number);\n list.add(number);\n }", "public void addFriendList(FriendList list);", "public void setCars(List<Car> cars) {\n\t\tthis.cars = new CopyOnWriteArrayList<Car>(cars);\n\t}", "public void store(final Collection<HPListGraph<NodeType, EdgeType>> set) {\n\t\tset.add(getHPlistGraph());\n\t}", "public static void main(String[] args) {\n\n Integer[] integers = new Integer[] {1,2,3,4,5};\n List<Integer>list = new ArrayList<>(Arrays.asList(integers)); // correct one\n System.out.println(\"Converted from Array to List = \" + list);\n\n // this will be a fixed-size list- you can not use add method.\n List<Integer>fixedSizeList = Arrays.asList(integers); // bunu da yapabiliriz ama element ekleme yapamayiz.\n //fixedSizeList.add(6); bunda hata verecek. cunku fixedsize olarak convert ettik. \"unsupported operation exception\" uyarisi verir\n\n\n //Converting list to Array\n Integer[] convertedFromList =list.toArray(new Integer[0]); // sifir yerine herhangi bi sey yazilabilir. ama 0 yazmada fayda var.\n System.out.println(\"Converted from List to Array = \"+ Arrays.toString(convertedFromList));\n\n //Converting an Array to set\n Set<Integer>set = new HashSet<>(Arrays.asList(integers));\n System.out.println(\"Converted from Array to Set = \" + set);\n\n // Converting Set to Array\n Integer[] convertedFromSet = set.toArray(new Integer[0]);\n System.out.println(\"Converted from Set to Array = \" + Arrays.toString(convertedFromSet));\n\n // converting List to Set\n Set<Integer>setFromList = new HashSet<>(list); // bu en cok , ayni value varsa isimize yarar. cunku set'de duplicate yok\n System.out.println(\"Converted list to Set = \" + setFromList);\n\n // Converting Set to List\n List<Integer>listFromSet = new ArrayList<>(setFromList);\n listFromSet.add(9); // en sona ekler\n System.out.println(\"Converted Set to List = \" + listFromSet);\n\n }", "public void add(List<?> list) {\n list.clear();\n pool.offer(list);\n }", "public void add(Preference toAdd) throws DuplicatePreferenceException {\n requireNonNull(toAdd);\n if (contains(toAdd)) {\n throw new DuplicatePreferenceException();\n }\n internalList.add(toAdd);\n\n assert CollectionUtil.elementsAreUnique(internalList);\n }", "public OrderedSet (List l) {\n initialize();\n for ( ; l!=null; l=l.getNext())\n addLast(l.getInfo());\n }", "public void addBook(Book book) {\n \tset.add(book);\n }", "public void add (Car car){\n\t\t}", "public static void main(String[] args) {\n ArrayList<Integer> nums = new ArrayList<>();\n nums.addAll( Arrays.asList(100, 2000, 50, 50, 100, 200, 300, 50));\n nums=new ArrayList<>(new TreeSet<>(nums));\n System.out.println(nums);\n\n String str1 = \"babababC\";\n str1 = new TreeSet<>( Arrays.asList(str1.split(\"\")) ).toString();\n System.out.println(str1);\n\n\n System.out.println(\"=========================================================================================\");\n\n /**\n * - 2. Write a program that can REMOVE THE DUPLICATES from an ArrayList. DO NOT change the ORDER\n * -> LinkedHashSet -> Remove Duplicates and Keeps the Insertion Order\n */\n ArrayList<Integer> list = new ArrayList<>(Arrays.asList(6,6,6,6,5,5,5,4,4,4,4));\n list=new ArrayList<>(new LinkedHashSet<>(list));\n System.out.println(list);\n\n\n /**\n * - 1. Write a program that can remove the duplicated characters from String and store them into variable\n */\n String str = \"ABABABCDEF\";\n String[] arr = str.split(\"\");\n str = new LinkedHashSet<>(Arrays.asList(arr)).toString().replace(\", \", \"\");\n System.out.println(str);\n\n\n System.out.println(\"=========================================================================================\");\n\n /**\n * -> Does not accept duplicates, and sort the objects\n * -> HashSet accepts null\n * -> HashSet is faster than TreeSet\n */\n HashSet<Integer> numbers = new HashSet<>(Arrays.asList(10,9,10, 9, 8, 7, 8, 7, 6, 5, 6, 1));\n System.out.println(numbers ); // -> [1, 5, 6, 7, 8, 9, 10]\n\n\n System.out.println(\"=========================================================================================\");\n\n /**\n * - ITERATOR: -> is the only way to remove duplicates from collection\n * - removeIf -> removes numbers because it is uses the iterator interface internally. Iterator implicitly\n *\n * - hasNext() method only can go forward cant go backward. it stars from next index\n * - when we use it our loop hasNext() iterates from the next index\n * - iterator(); - hasNext(); - next(); - remove();\n */\n ArrayList<Integer> list2 = new ArrayList<>(Arrays.asList(1,1,2,2,3,3,4,4,5,5));\n list2.removeIf( p -> p < 4 );\n System.out.println(list2);\n\n\n ArrayList<Integer> list3 = new ArrayList<>(Arrays.asList(1,1,2,2,3,3,4,4,5,5));\n Iterator<Integer> it =list3.iterator(); // - this method will return iterator\n while( it.hasNext() ){ // - iterator explicitly. While loop only accept boolean\n if( it.next() < 4 ){\n it.remove();\n }\n }\n System.out.println(list3);\n\n\n ArrayList<Integer> list4 = new ArrayList<>(Arrays.asList(1,1,2,3,3,4,4,5,5));\n // - hasNext(); will iterate all the indexes. We do not need extra iterator in the loop\n for(Iterator<Integer> I = list4.iterator(); I.hasNext(); ){\n if( I.next() < 4) {\n I.remove();\n }\n }\n System.out.println(list4);\n\n\n\n LinkedHashSet<String> names = new LinkedHashSet<>();\n names.addAll(Arrays.asList( \"Mehmet\",\"Mohammed\",\"Yucel\",\"Sha\",\"Ozgur\", \"Ahmet\",\"Osmanj\",\"Ozgur\",\"Ozgur\",\"Irina\"));\n System.out.println(names);\n Iterator<String> it3 = names.iterator();\n while( it3.hasNext() ){\n String s = it3.next();\n if(s.contains(\"m\") || s.contains(\"M\")){ // - s.toLowerCase.contains(\"m\")\n it3.remove();\n }\n }\n System.out.println(names);\n\n /*\n ===============================================================\n for(Iterator<String> it3 = names.iterator(); it3.hasNext() ; ){\n String s = it3.next();\n if(s.toLowerCase().contains(\"m\")){\n it3.remove();\n }\n }\n ================================================================\n names.removeIf( s -> s.contains(\"m\") || s.contains(\"M\") );\n ================================================================\n names.removeAll( Arrays.asList( \"Mehmet\", \"Ozgur\", \"Mohammed\" ));\n ================================================================\n names.retainAll( Arrays.asList( \"Yucel\", \"Sha\", \"Ahmet\" ) );\n ================================================================\n boolean result = list.containsAll( Arrays.asList(5, 6, 9, 8, 11 ));\n */\n\n\n\n\n\n\n\n System.out.println(\"=========================================================================================\");\n\n\n\n\n\n }", "public List<Person> addPeople(List<Person> personList) {\t\t\n\t\tList<Person> ret = new ArrayList<>();\n\t\t\n\t\tPerson temp = null;\t\t\n\t\tfor(Person p : personList) {\n\t\t\tif(pRepo.existsByPersonLOD(p.getPersonLOD())) {\n\t\t\t\ttemp = pRepo.findByPersonLOD(p.getPersonLOD());\n\t\t\t}\n\t\t\telse{\n\t\t\t\t//Enforces default gender\n\t\t\t\tif(p.getGender() == null) {\n\t\t\t\t\tp.setGender('U');\n\t\t\t\t}\n\t\t\t\ttemp = pRepo.save(p);\n\t\t\t}\n\t\t\t//We just want to know if it is in the database\n\t\t\tret.add(temp);\n\t\t}\n\t\t\n\t\treturn ret;\n\t}", "@Test\n public void testAddCity_City03() {\n\n System.out.println(\"addCity\");\n City cityTest = new City(new Pair(41.243345, -8.674084), \"city0\", 28);\n Set<City> expResult = new HashSet<>();\n\n expResult.add(new City(new Pair(41.243345, -8.674084), \"city0\", 28));\n expResult.add(new City(new Pair(41.237364, -8.846746), \"city1\", 72));\n expResult.add(new City(new Pair(40.519841, -8.085113), \"city2\", 81));\n expResult.add(new City(new Pair(41.118700, -8.589700), \"city3\", 42));\n expResult.add(new City(new Pair(41.467407, -8.964340), \"city4\", 64));\n expResult.add(new City(new Pair(41.337408, -8.291943), \"city5\", 74));\n expResult.add(new City(new Pair(41.314965, -8.423371), \"city6\", 80));\n expResult.add(new City(new Pair(40.822244, -8.794953), \"city7\", 11));\n expResult.add(new City(new Pair(40.781886, -8.697502), \"city8\", 7));\n expResult.add(new City(new Pair(40.851360, -8.136585), \"city9\", 65));\n\n sn10.addCity(cityTest);\n Set<City> result = sn10.getCitiesList();\n assertEquals(expResult, result);\n }", "public void add(Visit toAdd) {\n requireNonNull(toAdd);\n if (contains(toAdd)) {\n throw new DuplicateVisitException();\n }\n internalList.add(toAdd);\n }", "public void add(List list) throws PropException {\n if (!contains(list.obtainTitle())) lists.put(list.obtainTitle(), list);\n else throw new PropException(ErrorString.EXISTING_LIST);\n }", "public SetTest()\r\n {\r\n List< String > list = Arrays.asList( colors );\r\n System.out.printf( \"ArrayList: %s\\n\", list );\r\n printNonDuplicates( list );\r\n }", "public void addToHand(ArrayList<PlayingCard> cardsToAdd)\n\t{\n\t\tcurrentHand.addAll(cardsToAdd);\n\t}", "public PixelSet(PixelList pixelList) {\n\t\tthis.pixelSet = new LinkedHashSet<Pixel>();\n\t\tfor (Pixel pixel : pixelList) {\n\t\t\tadd(pixel);\n\t\t}\n\t}", "public void addAll(SelectionSet newSet)\n {\n elements.addAll(newSet.elements);\n }", "public void add(E elem) {\n if (!list.contains(elem))\n list.insertLast(elem);\n }", "public Set() {\n\t\tlist = new LinkedList<Object>();\n\t}", "public boolean addList(ArrayList<Npcinfo> NpcinfoList);", "public synchronized static void toCrawlList_add(ArrayList<String> _toCrawlList,String url)\n\t{\n\n\t\tif(!(arrayList_contain(_toCrawlList,url)) && _toCrawlList.size() < ARRAYLIST_SIZE)\n\t\t\t_toCrawlList.add(url);\n\t}", "public void putIfAbsent(T item) {\n synchronized(this) {\n _treeSet.add(item);\n }\n }", "@Override\n public boolean addItem(T item) {\n //Make sure the Set does not already contain the item\n if(!this.contains(item)) {\n //Make sure there is enough room for the item. If there isn't\n //resize the array\n if(numItems == arr.length)\n this.ensureCap();\n //Add the item to the end and increment numItems\n arr[numItems++] = item;\n //return true\n return true;\n }\n //if item was already in set, return false\n return false;\n }", "public void m65917a(List<SearchTrack> list) {\n SpotifyTrackSearchTarget spotifyTrackSearchTarget = (SpotifyTrackSearchTarget) this.f56357a.H();\n if (spotifyTrackSearchTarget != null) {\n spotifyTrackSearchTarget.addTracks(list);\n }\n }", "public void mergeFrom(UniquePreferenceList from) {\n final Set<Preference> alreadyInside = this.toSet();\n from.internalList.stream()\n .filter(preferenceTag -> !alreadyInside.contains(preferenceTag))\n .forEach(internalList::add);\n\n assert CollectionUtil.elementsAreUnique(internalList);\n }", "public void add(Object o){\n list.add(o);\n }", "public void addAll (SetADT<T> set);", "public static ArrayList<String> saveDuplicates(ArrayList<String> arlList) {\n // this functions save all duplicated in an Array.\n\n Set<String> set = new HashSet<String>();\n List<String> newList = new ArrayList<String>();\n List<String> newListDuplicates = new ArrayList<String>();\n for (Iterator<String> iter = arlList.iterator(); iter.hasNext();) {\n String element = iter.next();\n if (set.add(element))\n newList.add(element);\n else {\n newListDuplicates.add(element);\n }\n }\n arlList.clear();\n arlList.addAll(newListDuplicates);\n return arlList;\n }", "public void testFindDuplicates() {\r\n System.out.println(\"findDuplicates\");\r\n \r\n List<String> elements = new ArrayList<>();\r\n elements.add(\"foo\");\r\n elements.add(\"bar\");\r\n elements.add(\"abc\");\r\n elements.add(\"foo\");\r\n elements.add(\"cde\");\r\n elements.add(\"cde\");\r\n elements.add(\"efg\");\r\n elements.add(\"cde\");\r\n \r\n Set<String> expResult = new LinkedHashSet<>();\r\n expResult.add(\"foo\");\r\n \r\n LexicalChecker instance = new LexicalChecker();\r\n Set<String> result = instance.findDuplicates(elements);\r\n \r\n assertNotSame(expResult, result);\r\n \r\n expResult.add(\"cde\");\r\n assertEquals(expResult, result);\r\n }", "public MyHashSet() {\n s = new ArrayList<>();\n }", "public void addProductToList(Product aProduct){\n listOfProduct.add(aProduct);\n }", "public boolean addAll(ISet<E> otherSet) {\n\t\tif (otherSet == null)\n\t\t\tthrow new IllegalArgumentException(\"The given set is null.\");\n\t\tboolean result = false;\n\t\tfor (E obj: otherSet) {\n\t\t\tif (!this.contains(obj)) {\n\t\t\t\tthis.add(obj);\n\t\t\t\tresult = true;\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "public void setCarList(List<VehicleVO> carList) {\n this.carList = carList;\n }", "@Override public boolean add(final VueMetadataElement vme)\n {\n if (DEBUG.Enabled) {\n if (DEBUG.CASTOR||DEBUG.XML||DEBUG.DATA||DEBUG.PAIN) Log.debug(Util.tag(this) + \":add: \" + Util.tags(vme));\n }\n\n if (vme.type == VME_EMPTY_IGNORE) { \n if (!unmarshalling) Log.info(\"ignoring \" + vme);\n return true;\n }\n \n if (vme.getObject() == null) {\n if (DEBUG_LOCAL) Log.debug(\"VME object is null, (re)setting type...\" + vme.getType());\n vme.setType(vme.getType()); // ick ick ick\n }\n \n if(DEBUG_LOCAL) \n Log.debug(\"categoryFirstList add - catEnd,ontEnd,size(): \"\n + categoryEndIndex + \",\" + ontologyEndIndex + \",\" + size());\n \n if (vme.type == VueMetadataElement.ONTO_TYPE && vme.getObject() instanceof OntType) {\n otherEndIndex++;\n super.add(ontologyEndIndex++, vme);\n }\n else if (vme.type == VueMetadataElement.RESOURCE_CATEGORY && vme.getObject() instanceof String[]) {\n ontologyEndIndex++;\n categoryEndIndex++;\n otherEndIndex++;\n super.add(rCategoryEndIndex++, vme);\n if(DEBUG_LOCAL) Log.debug(\"rCategoryIndex is now: \" + rCategoryEndIndex);\n }\n else if (vme.type == VueMetadataElement.CATEGORY && vme.getObject() instanceof String[]) {\n ontologyEndIndex++;\n otherEndIndex++;\n super.add(categoryEndIndex++, vme);\n }\n else {\n // WARNING: checks for getObject mean possible for a NON-OTHER type to wind up in other sub-list\n super.add(otherEndIndex++, vme);\n }\n\n // MAJOR ISSUE: THIS WAS FIRING DURING DESERIALIZATION, TO A GLOBALLY *STATIC* LIST OF\n // LISTENERS, WHICH MEANS CALLS TO AWT CODE FOR EVERY SINGLE VME IN ANY NODE IN ANY\n // MAP. Including one of the worse AWT calls: revalidate(). This could also sometimes\n // cause AWT hangs, often in somewhere down in cursor code(?) We've now reduced all\n // MDL update events to diagnostics only -- turns out there's no place in VUE where\n // there are AWT components watching meta-data that may change outside the UI changing\n // them.\n fireListChanged(\"CFL-add\");\n return true;\n }", "public static void main(String[] args) {\n Set<Integer> S1 = new TreeSet<>();\r\n // add objects\r\n S1.add(65); S1.add(36); S1.add(24); S1.add(36);\r\n \r\n // show the content and assert they are sorted and no duplications\r\n System.out.println(\"set = \" + S1); \r\n //remove elements\r\n S1.remove(36); S1.remove(24);\r\n System.out.println(S1); //assert set = 65\r\n S1.add(15); S1.add(24); S1.add(80); // add 15, 24, 80\r\n System.out.println(\"set = \" +S1); //assert set = 15, 24, 65, 80\r\n \r\n System.out.println(\"Does S1 contain 10?\"\r\n + S1.contains(10)); // assert false\r\n System.out.println(\"S1 has \" + S1.size() +\" objects\"); // assert 4\r\n\r\n // create another Set object implemented using HashSet\r\n Set<Integer> S2 = new HashSet<>();\r\n // add all objects in S1 to S2\r\n S2.addAll(S1);\r\n System.out.println(\"hashset = \" +S2); //assert they may not be ordered\r\n\r\n // create another Set object implemented using LinkedHashSet\r\n Set<Integer> S3 = new LinkedHashSet<>();\r\n S3.add(150); // add 150\r\n S3.addAll(S1);// add all objects in S1 to S2\r\n System.out.println(\"LinkedHashSet = \" +S3);//assert s3=[150,15,24,65,80]\r\n \r\n S3.removeAll(S3); // remove all items\r\n System.out.println(\"LinkedHashSet = \" +S3);//assert s3=[]\r\n }", "private static void test1() {\n HashSet<Contact> contacts = new HashSet<>();\n\n Contact contact1 = new Contact(123, \"Vasiliy\", \"+380681234136\");\n\n contacts.add(contact1);\n\n\n //------------------------------------------\n\n\n Contact contact2 = new Contact(123, \"Vasiliy\", \"+380689876543\");\n\n contacts.remove(contact2);\n contacts.add(contact2);\n\n printCollection(contacts);\n }", "public void checkNewAdded(Instance add) {\n List<Instance> keySet = new LinkedList<Instance>();\n keySet.addAll(backRelation.keySet());\n Boolean added = false;\n for (Instance inst : keySet) {\n if (inst.getName().equals(add.getName()) || inst.getMd5().equals(add.getMd5())) {\n added = true;\n ArrayList<Instance> tmp = backRelation.get(inst);\n tmp.add(add);\n backRelation.remove(inst);\n backRelation.put(inst, tmp);\n if (relatedInstances.containsKey(inst)) {\n ArrayList<Instance> tmpRI = relatedInstances.get(add);\n tmpRI.add(inst);\n relatedInstances.remove(add);\n relatedInstances.put(add, tmpRI);\n\n } else {\n ArrayList<Instance> tmpRI = new ArrayList<Instance>();\n tmpRI.add(inst);\n relatedInstances.put(add, tmpRI);\n }\n\n }\n }\n if (added) {\n instances.add(add);\n }\n }", "@Override\r\n\tpublic void add(T element) {\n\t\tthis._list.add(element);\r\n\t}", "@Override\n public boolean addItem(T item) {\n //Make sure the item is not already in the set\n if(!this.contains(item)){\n //create a new node with the item, and the current first node\n Node n = new Node(item, first);\n //update first node reference\n first = n;\n //increment numItems\n numItems++;\n return true;\n }\n //if item is already in the set return false\n return false;\n }", "public void addListObject(List<Student> list2)\r\n\t{\r\n\t\tlist2.add(s7);\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"after adding\");\r\n\t\tfor(Student e:list2)\r\n\t\t{\r\n\t\t\tSystem.out.println(e);\r\n\t\t}\r\n\t}", "public void addCarToCarRental(InterfaceAbstractCar car) {\r\n\t\tcompanyCars.add(car);\r\n\t}", "private void update_auxlist(ArrayList<Line> auxlist, Line workingSet) {\n\t\tLine new_working_set = new Line(workingSet);\n\n\t\t// Add the working set copy to the set of maximal lines\n\t\tauxlist.add(new_working_set);\n\t}", "@Test\n\tpublic void testRepeatedInsert() {\n\t\tSetADT<String> items = new JavaSet<>();\n\t\titems.insert(\"A\");\n\t\titems.insert(\"B\");\n\t\titems.insert(\"C\");\n\t\titems.insert(\"C\");\n\t\t\n\t\t// No matter what, \"C\" can't be added twice.\n\t\titems.insert(\"C\");\n\t\tassertEquals(3, items.size());\n\t\t\n\t\t//double checking - same as for loop\n\t\titems.insert(\"C\");\n\t\tassertEquals(3, items.size());\n\t\t\n\t\tassertEquals(3, items.size());\n\t\tassertEquals(true, items.contains(\"A\"));\n\t\tassertEquals(true, items.contains(\"B\"));\n\t\tassertEquals(true, items.contains(\"C\"));\n\t\t\n\t}", "@SuppressWarnings (\"unchecked\") public void addAll(ItemList list){\n items.addAll(list.items);\n }", "public static void main(String[] args) {\n HashSet<String> food = new HashSet<>();\n food.add(\"Sushi\");\n food.add(\"Sashimi\");\n food.add(\"Pizza\");\n food.add(\"Japadog\");\n food.add(\"Sushi\");\n System.out.println(food.size());\n\n HashSet<String> food2 = new HashSet<>();\n food2.add(\"Pizza\");\n food2.add(\"Pasta\");\n food2.add(\"Sushi\");\n food2.add(\"Taco\");\n food2.add(\"Burrito\");\n food2.add(\"Nachos\");\n food2.add(\"Feijoada\");\n food2.add(\"Coxinha\");\n// food.addAll(food2);\n// food.retainAll(food2); // common\n\n System.out.println(food);\n System.out.println(food.contains(\"Sushi\"));\n }", "public static void main(String[] args) {\nLinkedHashSet<String> name_set=new LinkedHashSet<String>();\nname_set.add(\"John\");\nname_set.add(\"Fletcher\");\nname_set.add(\"Kirill\");\nname_set.add(\"Kowing\");\n//Adding same Record again to Linked Hash Set , will not add duplicate record\nname_set.add(\"John\");\nSystem.out.println(\" Record Set\"+name_set);\nSystem.out.println(\"Size of the Set: \"+name_set.size());\nSystem.out.println(\"Set Contains Kirill: \"+name_set.contains(\"Kirill\"));\nSystem.out.println(\"Set Contains Johncena : \"+name_set.contains(\"Johncena\"));\nname_set.remove(\"Kowing\");\nSystem.out.println(\"-----------------------------------------------\");\n\nSystem.out.println(\"Updated Record Set: \"+name_set);\nSystem.out.println(\"Size of the Set: \"+name_set.size());\nSystem.out.println(\"Set Contains Kirill: \"+name_set.contains(\"Kirill\"));\nSystem.out.println(\"Set Contains Kowing : \"+name_set.contains(\"Kowing\"));\n\n\t}", "public void add( T obj )\n {\n // Any distinct object causes creation of a new tree-set.\n // We count any such sets as we go.\n if (!contains( obj ))\n {\n nodes.put(obj, new Node(obj));\n numSets++;\n }\n }", "public static <T> Set<T> duplicatedElementsOf(List<T> input) {\n int count = input.size();\n if (count < 2) {\n return ImmutableSet.of();\n }\n Set<T> duplicates = null;\n Set<T> elementSet = CompactHashSet.createWithExpectedSize(count);\n for (T el : input) {\n if (!elementSet.add(el)) {\n if (duplicates == null) {\n duplicates = new HashSet<>();\n }\n duplicates.add(el);\n }\n }\n return duplicates == null ? ImmutableSet.of() : duplicates;\n }", "protected /*@ non_null @*/ JMLObjectSet<E> fast_insert(E elem) {\n return new JMLObjectSet<E>( // cons() clones if necessary\n JMLListObjectNode.cons(elem, the_list),\n size+1);\n }", "private static final <T> List<T> append(List<T> list, T newElement) {\n List<T> newList = Lists.newArrayListWithCapacity(list.size() + 1);\n newList.addAll(list);\n newList.add(newElement);\n return newList;\n }", "@Override\n public boolean add(X x) {\n if (!allowElementsWithoutIdentification)\n throw new IllegalArgumentException(\"It is not allowed to put Elements without Identification in this Set\");\n\n return map.put(x, placeholder) == null;\n }", "public static void main(String[] args) {\n\t\t\n\t\t\n\t\t//create a list type and add\n\t\tList<Integer> jack = new ArrayList<Integer>();\n\t\t\n\t\tSystem.out.print(\"Adding to list [jack]: \");\n\t\t//do this twice to create duplicates\n\t\tfor(int i = 0; i < 10; i++) {\n\t\t\tSystem.out.print(i + \" \");\n\t\t\tjack.add(i);\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < 10; i++) {\n\t\t\tSystem.out.print(i + \" \");\n\t\t\tjack.add(i);\n\t\t}\n\t\t\n\t\tSystem.out.println(\"\\n\\nDone. Notice there are two of each integer in the ArrayList jack now.\");\n\t\t\n\t\t\n\t\t\n\t\t//user set to identify unique elements\n\t\t\n\t\tSystem.out.println(\"\\nUsing a set, we can identify unique values, if we try to add all elements from the ArrayList.\");\n\t\tHashSet<Integer> jackSet = new HashSet<Integer>();\n\t\tfor(int i = 0; i < jack.size(); i++) {\n\t\t\tjackSet.add(jack.get(i));\n\t\t}\n\t\t\n\t\tSystem.out.println(jackSet);\n\t\t\n\t\tSystem.out.println(\"This is a unique feature of Sets\");\n\t\t\n\t\t//hashmap\n\t\tHashMap<String, String> jackHash = new HashMap<String, String>();\n\t\t//populate hashmap\n\t\tString[] myNames = {\"Jack\", \"Brent\", \"Ethan\", \"Levi\"};\n\t\tfor(String s : myNames) {\n\t\t\tjackHash.put(s, \"Person\");\n\t\t}\n\t\t\n\t\t//treemap\n\t\tTreeMap<String, String> jackTree = new TreeMap<String, String>();\n\t\t//populate treemap\n\t\tfor(String s : myNames) {\n\t\t\tjackTree.put(s, \"Person\");\n\t\t}\n\t\t\n\t\t//now we have idenitical hashmap and treemap.\n\t\t\n\t\t//lets try to print them\n\t\t\n\t\t//remember the order names were added:\n\t\tSystem.out.println(\"\\nThis is the original order:\");\n\t\tfor(String s : myNames) {\n\t\t\tSystem.out.println(s);\n\t\t}\n\t\t\n\t\tSystem.out.println(\"\\nHere is the hashmap:\");\n\t\tfor(String h : jackHash.keySet()) {\n\t\t\tSystem.out.println(h);\n\t\t}\n\t\t\n\t\t\n\t\tSystem.out.println(\"\\nHere is the treemap:\");\n\t\tfor(String t : jackTree.keySet()) {\n\t\t\tSystem.out.println(t);\n\t\t}\n\t\t\n\t\tSystem.out.println(\"\\nNow, add another name to both collections\");\n\t\t\n\t\tjackTree.put(\"Carter\", \"Person\");\n\t\tjackHash.put(\"Carter\", \"Person\");\n\t\t\n\t\tSystem.out.println(\"\\nHas the order changed?\");\n\t\tSystem.out.println(\"\\nHere is the hashmap:\");\n\t\tfor(String h : jackHash.keySet()) {\n\t\t\tSystem.out.println(h);\n\t\t}\n\t\t\n\t\t\n\t\tSystem.out.println(\"\\nHere is the treemap:\");\n\t\tfor(String t : jackTree.keySet()) {\n\t\t\tSystem.out.println(t);\n\t\t}\n\t\t\n\t\t\n\t\tSystem.out.println(\"\\nTo guarantee (some type of order), use a TreeSet\");\n\t\tSystem.out.println(\"Notice how it is in alphabetical order.\");\n\t\t\n\t}", "public static void main(String[] args) {\n ArrayList<String> cars = new ArrayList<>();\n cars.add(\"Volvo\");\n cars.add(\"BMW\");\n cars.add(\"Ford\");\n cars.add(\"Mazda\");\n cars.add(\"Chevrolet\");\n cars.add(\"Kia\");\n\n ArrayList<String> cars2 = new ArrayList<>();\n cars2.add(\"Lamborghini\");\n cars2.add(\"Bugatti\");\n\n //1. Adding methods to the list\n //1.1 Add specified element to the end of the list\n cars.add(\"Nissan\");\n //1.2 Add specified element at the specified position\n //could be any position should be inside the length of the list, avoid out of bounds positions\n cars.add(1,\"Smart\");\n //1.3 Add all the elements a list to the another list\n cars.addAll(cars2);\n\n //2. Getting the size of the list\n int size = cars.size();\n System.out.println(\"Size of the list: \" + size);\n\n //3. Removing elements from the list\n //3.1 Remove the specified object from the list, by object or index\n cars.remove(\"Chevrolet\");\n cars.remove(7);\n //3.2 Remove all the elements from the list\n ArrayList<String> cars3 = new ArrayList<String>(cars);\n cars3.clear();\n //3.3 Remove elements from an specific range\n ArrayList<String> cars4 = new ArrayList<String>(cars);\n cars4.subList(4,6).clear();\n\n //4. Searching elements in the List\n //4.1 Search the specified element, return false if the specified element is not found\n cars.contains(\"Fiat\");\n //4.2 Returns the index of the first occurrence of the specified element\n cars.indexOf(\"BMW\");\n\n //5. Replaces the element at the specified position with the new element\n cars.set(3,\"Nissan\");\n }", "public void m65918a(List<SearchTrack> list) {\n SpotifyTrackSearchTarget spotifyTrackSearchTarget = (SpotifyTrackSearchTarget) this.f56358a.H();\n if (spotifyTrackSearchTarget != null) {\n this.f56358a.f56363e = true;\n spotifyTrackSearchTarget.addTracks(list);\n this.f56358a.f56361c = this.f56358a.f56361c + 1;\n }\n }", "public ListSet() {\n lists = new TernarySearchTree<>();\n }", "public boolean addToPlayList(int trackNumber, LinkedList<Song> playList){\n\n Song checkedSong = this.songArrayList.findSong(trackNumber);\n if (checkedSong != null){\n playList.add(checkedSong);\n return true;\n }\n System.out.println(\"This album does not have a track \" +trackNumber);\n return false;\n }", "public void isAllRecommended() {\n //Get ScoredId\n for(int i = 0; i < originalList.size(); i++) {\n Boolean isPresent = true;\n\n ScoredId sc = originalList.get(i);\n\n long m = sc.getId();\n\n //Check if it is present in all other lists\n for(Map.Entry<Long, List<ScoredId>> entry : recMap.entrySet()) {\n List<ScoredId> sco = entry.getValue();\n\n HashSet moovies = new HashSet<>();\n\n for(int j=0; j < sco.size(); j++) {\n ScoredId mov = sco.get(j);\n\n long moo = mov.getId();\n\n moovies.add(moo);\n }\n\n if(!moovies.contains(m)){\n isPresent = false;\n }\n }\n\n //Movie should be added to list here, after all lists examined\n if(isPresent) {\n commonRec.add(sc);\n }\n }\n\n //Commenting out as was used for testing purposes.\n //System.out.println(commonRec);\n\n obtainFinalRecs();\n }", "void addPerson(Person person) throws UniquePersonList.DuplicatePersonException;", "public void add(Item toAdd) throws DuplicateItemException {\n assert toAdd != null;\n if (contains(toAdd)) {\n throw new DuplicateItemException();\n }\n internalList.add(toAdd);\n }", "public void addMySmartDevicesItemsToList(List<SmartDevice> mySmartDevices) {\n mySmartDevicesObservableArrayList.clear();\n mySmartDevicesObservableArrayList.addAll(mySmartDevices);\n }", "void addWordToCandidatesSet(String word) {\n candidates.add(word);\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic boolean addRollingStock(RollingStock car)\n\t{\n\t\tif(this.cars.add(car))\n\t\t{\n\t\t\tcar.setInChain(this.getId()); \n\t\t\treturn true; \n\t\t}\n\t\treturn false; \n\t}", "@Test\n public void find_redundant_interaction() {\n list1.add(1);\n list1.add(2);\n verify(list1, Mockito.times(2)).add(Mockito.anyInt());\n verifyNoMoreInteractions(list1);\n\n //List<Integer> list2 = Mockito.mock(List.class);\n list2.add(1);\n list2.add(2);\n verify(list2, Mockito.times(2)).add(Mockito.anyInt());\n verify(list2, Mockito.never()).add(3);\n verifyNoMoreInteractions(list2);\n }", "public void addList(ShoppingList list) {\n\n lists.add(0, list);\n list.save();\n notifyItemInserted(0);\n\n }" ]
[ "0.6465435", "0.5640678", "0.56199235", "0.55425715", "0.5541955", "0.5417418", "0.54094416", "0.53839874", "0.5309362", "0.5290005", "0.5288912", "0.5242084", "0.521322", "0.5191481", "0.5178043", "0.51663846", "0.5162123", "0.51590776", "0.51586765", "0.51529235", "0.5142757", "0.5126548", "0.51151615", "0.5109726", "0.5095991", "0.5085548", "0.50680476", "0.5047266", "0.50318444", "0.5025848", "0.50209045", "0.5017309", "0.49956155", "0.49924424", "0.49833587", "0.4972629", "0.49693248", "0.49655357", "0.49596977", "0.49445802", "0.49210563", "0.4917535", "0.49134114", "0.4910273", "0.49033928", "0.48998612", "0.4889328", "0.48845255", "0.48813885", "0.48800808", "0.48769087", "0.48760185", "0.486348", "0.48550615", "0.4852909", "0.4847815", "0.48461947", "0.48358896", "0.48274064", "0.4823793", "0.48166394", "0.4815668", "0.48128647", "0.48108977", "0.48034373", "0.48014265", "0.4783617", "0.4782699", "0.47716534", "0.4771576", "0.47700217", "0.47690123", "0.47661114", "0.47643572", "0.47569084", "0.4753531", "0.47533038", "0.47464195", "0.47441748", "0.47438776", "0.47428143", "0.4740985", "0.47405156", "0.47390172", "0.47262836", "0.47203422", "0.47138706", "0.47126883", "0.47094357", "0.47091687", "0.47039023", "0.47015646", "0.4701174", "0.46988204", "0.46945366", "0.46914244", "0.4688889", "0.468819", "0.46871626", "0.46861562" ]
0.55788505
3
Adds to the List by treating List as a Set. Thus adds only if not already exists in the List and avoids duplication. See appendToLikedCars to append to List.
public void addToLikedCars(List<String> likedCars);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void add(T car) {\n carsInGarage.add(car);\n }", "void add(Set<Card> cards);", "public void addToLikedCars(String likedCars);", "private static void populateList(List<UsedCar> carList) {\n carList.add(new UsedCar(\"Ford\", \"Fiesta ST\", 2016, 25000.00));\n carList.add(new UsedCar(\"Ford\", \"Focus RS\", 2017, 40000.00));\n carList.add(new UsedCar(\"Ariel\", \"Atom\", 2018, 65000.00));\n carList.add(new UsedCar(\"Ford\", \"Pinto\", 1985, 1.00, 500.1));\n carList.add(new UsedCar(\"DMC\", \"DeLorean\", 1985, 20000.00, 50.0));\n carList.add(new UsedCar(\"Lamborghini\", \"Spyder\", 2006, 95995.00, 42.4));\n }", "public void appendToLikedCars(List<String> likedCars);", "public List<VaccineDetails> removeDuplicates(final List<VaccineDetails> list)\n {\n\n Set<VaccineDetails> carSet = new HashSet<VaccineDetails>();\n for (VaccineDetails car : list) {\n carSet.add(car);\n }\n List<VaccineDetails> withoutDuplicates = new ArrayList<VaccineDetails>(carSet);\n\n return withoutDuplicates;\n }", "synchronized void crawledList_add(HashSet _crawledList, String url)\n {\n _crawledList.add(url);\n System.out.println(\"Added\"+\"\\t\"+url);\n }", "@SuppressWarnings(\"unchecked\")\n public static void addIfNotContained(List list, Object object) {\n if (!list.contains(object)) {\n list.add(object);\n }\n }", "@Override\n public boolean add(List<Buyer> buyers) {\n return false;\n }", "void add(Cluster c){\n Set<Cluster> tempC = new TreeSet<Cluster>();\n for(Cluster i: C)\n tempC.add(i);\n tempC.add(c);\n C = tempC;\n }", "public void vampireAdd(){\n //Will permit to know if every vampires are different\n Set<Being> swap = new HashSet();\n\n //Iterate till the set is equal to the number of vampire we need\n while(swap.size() != this.vampires){\n //Create a new vampire\n Vampire vamp = vampireSet();\n //Test if the vampire is unique\n if(swap.add(vamp)){\n //Add the vampire to the real list if it's unique\n this.beings.add(vamp);\n }\n }\n //Clear the set, I guess it's optional\n swap.clear();\n }", "public void addCars(List<Car> cars2) {\n\t\tfor (Car c : cars2){\n\t\t\tc.setTrain(this);\n\t\t}\n\t\tthis.cars.addAll(cars2);\n\t}", "public void addAll(List<Book> bookList) {\n this.mBook.clear();\n this.mBook.addAll(bookList);\n notifyDataSetChanged();\n\n }", "@Override\n public boolean add(Set<E> e) {\n throw new UnsupportedOperationException(\"Add not supported\");\n }", "public void addCar(Car usedCar) {\n if (usedCar == null) {\n return;\n }\n // if price is 0 or negative, reject car\n if (usedCar.getPrice() <= 0) {\n System.out.println(\"Does not have price; cannot be added.\");\n return;\n }\n // if VIN is not unique, reject car\n if (!isUniqueVin(usedCar.getVin())) {\n System.out.println(\"Does not have unique VIN; cannot be added.\");\n return;\n }\n // car can be added\n cars.add(usedCar);\n totalValue += usedCar.getPrice();\n }", "MultiSet<X> add(X x);", "set.addAll(Arrays.asList(a));", "private void addWithoutDuplicate(ArrayList<WordDocument> addTo, ArrayList<WordDocument> addFrom) {\n for (WordDocument x : addFrom)\n if (!addTo.contains(x))\n addTo.add(x);\n }", "@Override\n public boolean hasDuplicates() {\n ArrayList<String> itemList = new ArrayList(Arrays.asList(\"\"));\n Node currNode = this.head;\n while(true){\n if(itemList.contains(currNode.getItem())){ // need to edit\n return true;\n }else{\n itemList.add(currNode.getItem());\n }\n if(currNode.getNextNode() == null){\n break;\n }\n currNode = currNode.getNextNode();\n }\n return false;\n }", "protected abstract Set<String> _addToSet(String key, Collection<String> str);", "static void findDuplicate()\n\t{\n\n\t\tList<String> oList = null;\n\t\tSet<String> oSet = null;\n\t\ttry {\n\t\t\toList = new ArrayList<String>();\n\t\t\toList.add(\"Apple\");\n\t\t\toList.add(\"Boy\");\n\t\t\toList.add(\"Frog\");\n\t\t\toList.add(\"Dog\");\n\t\t\toList.add(\"Eagle\");\n\t\t\toList.add(\"Frog\");\n\t\t\toList.add(\"Apple\");\n\t\t\toList.add(\"Boy\");\n\t\t\toList.add(\"Apple\");\n\t\t\toList.add(\"Boy\");\n\t\t\tSystem.out.println(oList);\n\t\t\t\n\t\t\toSet = new TreeSet<>();\n\t\t\t\n\t\t\tString s = \"\";\n\t\t\tfor(int i=0;i<oList.size();i++)\n\t\t\t{\n\t\t\t\tif((oSet.add(oList.get(i))==false) && (!s.contains(oList.get(i))))\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"Duplicate: \"+oList.get(i));\n\t\t\t\t\ts+=oList.get(i);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}catch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfinally {\n\t\t\toList = null;\n\t\t\toSet = null;\n\t\t}\n\t}", "public void addCar(Car c) {\n\t\tNode newNode = new Node(c);\n\t\t\n\t\t//if list is empty\n\t\tif (head == null) {\n\t\t\thead = newNode;\n\t\t\tcount++;\n\t\t}\n\n\t\t//if list has one item\n\t\telse if (head.getNext() == null) {\n\t\t\tif (c.compareTo(head.getCar()) < 0) {\n\t\t\t\tnewNode.setNext(head);\n\t\t\t\thead = newNode;\n\t\t\t} else {\n\t\t\t\thead.setNext(newNode);\n\t\t\t}\n\t\t\tcount++;\n\t\t}\n\n\t\telse {\n\t\t\tNode previous = head;\n\t\t\tNode next = head.getNext();\n\n\t\t\twhile ((next != null) && (c.compareTo(next.getCar()) > 0)) {\n\t\t\t\tprevious = next;\n\t\t\t\tnext = next.getNext();\n\t\t\t}\n\t\t\tnewNode.setNext(next);\n\t\t\tprevious.setNext(newNode);\n\t\t\tcount++;\n\t\t}\n\t}", "public void add(List<SermCit> citList){\n //Add one by one\n for (SermCit x : citList){\n add(x);\n }\n }", "public void addItem(Object item) throws SetException {\n\t\tif (member(item))\n\t\t\tthrow new SetException(\"Item already in set.\");\n\n\t\tlist.add(item);\n\t}", "@Override\n\tpublic void addEntry(E entry) {\n\n\t\t// Determine if the entry already exists in the list\n\t\tE current = this.getHead();\n\t\twhile (current != null) {\n\t\t\tif (this.isEqual(current, entry)) {\n\t\t\t\t// Already in list\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tcurrent = current.getNext();\n\t\t}\n\n\t\t// Not in list, so add the entry\n\t\tsuper.addEntry(entry);\n\t}", "private void addFriendList(People value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureFriendListIsMutable();\n friendList_.add(value);\n }", "synchronized void toCrawlList_addAll(LinkedHashSet _toCrawlList, ArrayList _links)\n {\n _toCrawlList.addAll(_links);\n }", "public static <T> void addWithoutDuplicates(List<T> addedTo, T toBeAdded) {\n if (!addedTo.contains(toBeAdded))\n addedTo.add(toBeAdded);\n }", "void addList(ShoppingList _ShoppingList);", "public void removeFromLikedCars(List<String> likedCars);", "public boolean add(List<T> e) {\n\t\treturn lists.add(e);\n\t}", "public void addCarInsideIntersection(Car car) {\n if (carsInsideIntersection.contains(car)) {\n Logger.getInstance().logWarning(getName(), car.getName() + \" is already inside intersection \" + getName());\n throw new IllegalStateException(\"car already in intersection\");\n }\n carsInsideIntersection.add(car);\n }", "public static void addList() {\n\t}", "public static <T> void addWithoutDuplicates(List<T> addedTo, List<T> toBeAdded) {\n if (addedTo == null | toBeAdded == null)\n return;\n outer:\n for (int i = 0; i < toBeAdded.size(); i++) {\n T item = toBeAdded.get(i);\n for (int j = 0; j < addedTo.size(); j++) {\n if (addedTo.get(j).equals(item))\n continue outer;\n }\n addedTo.add(item);\n }\n }", "public void add(int number) {\n for(int num : list) set.add(num + number);\n list.add(number);\n }", "public void addFriendList(FriendList list);", "public void setCars(List<Car> cars) {\n\t\tthis.cars = new CopyOnWriteArrayList<Car>(cars);\n\t}", "public void store(final Collection<HPListGraph<NodeType, EdgeType>> set) {\n\t\tset.add(getHPlistGraph());\n\t}", "public static void main(String[] args) {\n\n Integer[] integers = new Integer[] {1,2,3,4,5};\n List<Integer>list = new ArrayList<>(Arrays.asList(integers)); // correct one\n System.out.println(\"Converted from Array to List = \" + list);\n\n // this will be a fixed-size list- you can not use add method.\n List<Integer>fixedSizeList = Arrays.asList(integers); // bunu da yapabiliriz ama element ekleme yapamayiz.\n //fixedSizeList.add(6); bunda hata verecek. cunku fixedsize olarak convert ettik. \"unsupported operation exception\" uyarisi verir\n\n\n //Converting list to Array\n Integer[] convertedFromList =list.toArray(new Integer[0]); // sifir yerine herhangi bi sey yazilabilir. ama 0 yazmada fayda var.\n System.out.println(\"Converted from List to Array = \"+ Arrays.toString(convertedFromList));\n\n //Converting an Array to set\n Set<Integer>set = new HashSet<>(Arrays.asList(integers));\n System.out.println(\"Converted from Array to Set = \" + set);\n\n // Converting Set to Array\n Integer[] convertedFromSet = set.toArray(new Integer[0]);\n System.out.println(\"Converted from Set to Array = \" + Arrays.toString(convertedFromSet));\n\n // converting List to Set\n Set<Integer>setFromList = new HashSet<>(list); // bu en cok , ayni value varsa isimize yarar. cunku set'de duplicate yok\n System.out.println(\"Converted list to Set = \" + setFromList);\n\n // Converting Set to List\n List<Integer>listFromSet = new ArrayList<>(setFromList);\n listFromSet.add(9); // en sona ekler\n System.out.println(\"Converted Set to List = \" + listFromSet);\n\n }", "public void add(List<?> list) {\n list.clear();\n pool.offer(list);\n }", "public void add(Preference toAdd) throws DuplicatePreferenceException {\n requireNonNull(toAdd);\n if (contains(toAdd)) {\n throw new DuplicatePreferenceException();\n }\n internalList.add(toAdd);\n\n assert CollectionUtil.elementsAreUnique(internalList);\n }", "public OrderedSet (List l) {\n initialize();\n for ( ; l!=null; l=l.getNext())\n addLast(l.getInfo());\n }", "public void addBook(Book book) {\n \tset.add(book);\n }", "public void add (Car car){\n\t\t}", "public static void main(String[] args) {\n ArrayList<Integer> nums = new ArrayList<>();\n nums.addAll( Arrays.asList(100, 2000, 50, 50, 100, 200, 300, 50));\n nums=new ArrayList<>(new TreeSet<>(nums));\n System.out.println(nums);\n\n String str1 = \"babababC\";\n str1 = new TreeSet<>( Arrays.asList(str1.split(\"\")) ).toString();\n System.out.println(str1);\n\n\n System.out.println(\"=========================================================================================\");\n\n /**\n * - 2. Write a program that can REMOVE THE DUPLICATES from an ArrayList. DO NOT change the ORDER\n * -> LinkedHashSet -> Remove Duplicates and Keeps the Insertion Order\n */\n ArrayList<Integer> list = new ArrayList<>(Arrays.asList(6,6,6,6,5,5,5,4,4,4,4));\n list=new ArrayList<>(new LinkedHashSet<>(list));\n System.out.println(list);\n\n\n /**\n * - 1. Write a program that can remove the duplicated characters from String and store them into variable\n */\n String str = \"ABABABCDEF\";\n String[] arr = str.split(\"\");\n str = new LinkedHashSet<>(Arrays.asList(arr)).toString().replace(\", \", \"\");\n System.out.println(str);\n\n\n System.out.println(\"=========================================================================================\");\n\n /**\n * -> Does not accept duplicates, and sort the objects\n * -> HashSet accepts null\n * -> HashSet is faster than TreeSet\n */\n HashSet<Integer> numbers = new HashSet<>(Arrays.asList(10,9,10, 9, 8, 7, 8, 7, 6, 5, 6, 1));\n System.out.println(numbers ); // -> [1, 5, 6, 7, 8, 9, 10]\n\n\n System.out.println(\"=========================================================================================\");\n\n /**\n * - ITERATOR: -> is the only way to remove duplicates from collection\n * - removeIf -> removes numbers because it is uses the iterator interface internally. Iterator implicitly\n *\n * - hasNext() method only can go forward cant go backward. it stars from next index\n * - when we use it our loop hasNext() iterates from the next index\n * - iterator(); - hasNext(); - next(); - remove();\n */\n ArrayList<Integer> list2 = new ArrayList<>(Arrays.asList(1,1,2,2,3,3,4,4,5,5));\n list2.removeIf( p -> p < 4 );\n System.out.println(list2);\n\n\n ArrayList<Integer> list3 = new ArrayList<>(Arrays.asList(1,1,2,2,3,3,4,4,5,5));\n Iterator<Integer> it =list3.iterator(); // - this method will return iterator\n while( it.hasNext() ){ // - iterator explicitly. While loop only accept boolean\n if( it.next() < 4 ){\n it.remove();\n }\n }\n System.out.println(list3);\n\n\n ArrayList<Integer> list4 = new ArrayList<>(Arrays.asList(1,1,2,3,3,4,4,5,5));\n // - hasNext(); will iterate all the indexes. We do not need extra iterator in the loop\n for(Iterator<Integer> I = list4.iterator(); I.hasNext(); ){\n if( I.next() < 4) {\n I.remove();\n }\n }\n System.out.println(list4);\n\n\n\n LinkedHashSet<String> names = new LinkedHashSet<>();\n names.addAll(Arrays.asList( \"Mehmet\",\"Mohammed\",\"Yucel\",\"Sha\",\"Ozgur\", \"Ahmet\",\"Osmanj\",\"Ozgur\",\"Ozgur\",\"Irina\"));\n System.out.println(names);\n Iterator<String> it3 = names.iterator();\n while( it3.hasNext() ){\n String s = it3.next();\n if(s.contains(\"m\") || s.contains(\"M\")){ // - s.toLowerCase.contains(\"m\")\n it3.remove();\n }\n }\n System.out.println(names);\n\n /*\n ===============================================================\n for(Iterator<String> it3 = names.iterator(); it3.hasNext() ; ){\n String s = it3.next();\n if(s.toLowerCase().contains(\"m\")){\n it3.remove();\n }\n }\n ================================================================\n names.removeIf( s -> s.contains(\"m\") || s.contains(\"M\") );\n ================================================================\n names.removeAll( Arrays.asList( \"Mehmet\", \"Ozgur\", \"Mohammed\" ));\n ================================================================\n names.retainAll( Arrays.asList( \"Yucel\", \"Sha\", \"Ahmet\" ) );\n ================================================================\n boolean result = list.containsAll( Arrays.asList(5, 6, 9, 8, 11 ));\n */\n\n\n\n\n\n\n\n System.out.println(\"=========================================================================================\");\n\n\n\n\n\n }", "public List<Person> addPeople(List<Person> personList) {\t\t\n\t\tList<Person> ret = new ArrayList<>();\n\t\t\n\t\tPerson temp = null;\t\t\n\t\tfor(Person p : personList) {\n\t\t\tif(pRepo.existsByPersonLOD(p.getPersonLOD())) {\n\t\t\t\ttemp = pRepo.findByPersonLOD(p.getPersonLOD());\n\t\t\t}\n\t\t\telse{\n\t\t\t\t//Enforces default gender\n\t\t\t\tif(p.getGender() == null) {\n\t\t\t\t\tp.setGender('U');\n\t\t\t\t}\n\t\t\t\ttemp = pRepo.save(p);\n\t\t\t}\n\t\t\t//We just want to know if it is in the database\n\t\t\tret.add(temp);\n\t\t}\n\t\t\n\t\treturn ret;\n\t}", "@Test\n public void testAddCity_City03() {\n\n System.out.println(\"addCity\");\n City cityTest = new City(new Pair(41.243345, -8.674084), \"city0\", 28);\n Set<City> expResult = new HashSet<>();\n\n expResult.add(new City(new Pair(41.243345, -8.674084), \"city0\", 28));\n expResult.add(new City(new Pair(41.237364, -8.846746), \"city1\", 72));\n expResult.add(new City(new Pair(40.519841, -8.085113), \"city2\", 81));\n expResult.add(new City(new Pair(41.118700, -8.589700), \"city3\", 42));\n expResult.add(new City(new Pair(41.467407, -8.964340), \"city4\", 64));\n expResult.add(new City(new Pair(41.337408, -8.291943), \"city5\", 74));\n expResult.add(new City(new Pair(41.314965, -8.423371), \"city6\", 80));\n expResult.add(new City(new Pair(40.822244, -8.794953), \"city7\", 11));\n expResult.add(new City(new Pair(40.781886, -8.697502), \"city8\", 7));\n expResult.add(new City(new Pair(40.851360, -8.136585), \"city9\", 65));\n\n sn10.addCity(cityTest);\n Set<City> result = sn10.getCitiesList();\n assertEquals(expResult, result);\n }", "public void add(List list) throws PropException {\n if (!contains(list.obtainTitle())) lists.put(list.obtainTitle(), list);\n else throw new PropException(ErrorString.EXISTING_LIST);\n }", "public void add(Visit toAdd) {\n requireNonNull(toAdd);\n if (contains(toAdd)) {\n throw new DuplicateVisitException();\n }\n internalList.add(toAdd);\n }", "public SetTest()\r\n {\r\n List< String > list = Arrays.asList( colors );\r\n System.out.printf( \"ArrayList: %s\\n\", list );\r\n printNonDuplicates( list );\r\n }", "public void addToHand(ArrayList<PlayingCard> cardsToAdd)\n\t{\n\t\tcurrentHand.addAll(cardsToAdd);\n\t}", "public PixelSet(PixelList pixelList) {\n\t\tthis.pixelSet = new LinkedHashSet<Pixel>();\n\t\tfor (Pixel pixel : pixelList) {\n\t\t\tadd(pixel);\n\t\t}\n\t}", "public void addAll(SelectionSet newSet)\n {\n elements.addAll(newSet.elements);\n }", "public void add(E elem) {\n if (!list.contains(elem))\n list.insertLast(elem);\n }", "public Set() {\n\t\tlist = new LinkedList<Object>();\n\t}", "public boolean addList(ArrayList<Npcinfo> NpcinfoList);", "public synchronized static void toCrawlList_add(ArrayList<String> _toCrawlList,String url)\n\t{\n\n\t\tif(!(arrayList_contain(_toCrawlList,url)) && _toCrawlList.size() < ARRAYLIST_SIZE)\n\t\t\t_toCrawlList.add(url);\n\t}", "public void putIfAbsent(T item) {\n synchronized(this) {\n _treeSet.add(item);\n }\n }", "@Override\n public boolean addItem(T item) {\n //Make sure the Set does not already contain the item\n if(!this.contains(item)) {\n //Make sure there is enough room for the item. If there isn't\n //resize the array\n if(numItems == arr.length)\n this.ensureCap();\n //Add the item to the end and increment numItems\n arr[numItems++] = item;\n //return true\n return true;\n }\n //if item was already in set, return false\n return false;\n }", "public void m65917a(List<SearchTrack> list) {\n SpotifyTrackSearchTarget spotifyTrackSearchTarget = (SpotifyTrackSearchTarget) this.f56357a.H();\n if (spotifyTrackSearchTarget != null) {\n spotifyTrackSearchTarget.addTracks(list);\n }\n }", "public void mergeFrom(UniquePreferenceList from) {\n final Set<Preference> alreadyInside = this.toSet();\n from.internalList.stream()\n .filter(preferenceTag -> !alreadyInside.contains(preferenceTag))\n .forEach(internalList::add);\n\n assert CollectionUtil.elementsAreUnique(internalList);\n }", "public void add(Object o){\n list.add(o);\n }", "public void addAll (SetADT<T> set);", "public static ArrayList<String> saveDuplicates(ArrayList<String> arlList) {\n // this functions save all duplicated in an Array.\n\n Set<String> set = new HashSet<String>();\n List<String> newList = new ArrayList<String>();\n List<String> newListDuplicates = new ArrayList<String>();\n for (Iterator<String> iter = arlList.iterator(); iter.hasNext();) {\n String element = iter.next();\n if (set.add(element))\n newList.add(element);\n else {\n newListDuplicates.add(element);\n }\n }\n arlList.clear();\n arlList.addAll(newListDuplicates);\n return arlList;\n }", "public void testFindDuplicates() {\r\n System.out.println(\"findDuplicates\");\r\n \r\n List<String> elements = new ArrayList<>();\r\n elements.add(\"foo\");\r\n elements.add(\"bar\");\r\n elements.add(\"abc\");\r\n elements.add(\"foo\");\r\n elements.add(\"cde\");\r\n elements.add(\"cde\");\r\n elements.add(\"efg\");\r\n elements.add(\"cde\");\r\n \r\n Set<String> expResult = new LinkedHashSet<>();\r\n expResult.add(\"foo\");\r\n \r\n LexicalChecker instance = new LexicalChecker();\r\n Set<String> result = instance.findDuplicates(elements);\r\n \r\n assertNotSame(expResult, result);\r\n \r\n expResult.add(\"cde\");\r\n assertEquals(expResult, result);\r\n }", "public MyHashSet() {\n s = new ArrayList<>();\n }", "public boolean addAll(ISet<E> otherSet) {\n\t\tif (otherSet == null)\n\t\t\tthrow new IllegalArgumentException(\"The given set is null.\");\n\t\tboolean result = false;\n\t\tfor (E obj: otherSet) {\n\t\t\tif (!this.contains(obj)) {\n\t\t\t\tthis.add(obj);\n\t\t\t\tresult = true;\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "public void addProductToList(Product aProduct){\n listOfProduct.add(aProduct);\n }", "public void setCarList(List<VehicleVO> carList) {\n this.carList = carList;\n }", "public static void main(String[] args) {\n Set<Integer> S1 = new TreeSet<>();\r\n // add objects\r\n S1.add(65); S1.add(36); S1.add(24); S1.add(36);\r\n \r\n // show the content and assert they are sorted and no duplications\r\n System.out.println(\"set = \" + S1); \r\n //remove elements\r\n S1.remove(36); S1.remove(24);\r\n System.out.println(S1); //assert set = 65\r\n S1.add(15); S1.add(24); S1.add(80); // add 15, 24, 80\r\n System.out.println(\"set = \" +S1); //assert set = 15, 24, 65, 80\r\n \r\n System.out.println(\"Does S1 contain 10?\"\r\n + S1.contains(10)); // assert false\r\n System.out.println(\"S1 has \" + S1.size() +\" objects\"); // assert 4\r\n\r\n // create another Set object implemented using HashSet\r\n Set<Integer> S2 = new HashSet<>();\r\n // add all objects in S1 to S2\r\n S2.addAll(S1);\r\n System.out.println(\"hashset = \" +S2); //assert they may not be ordered\r\n\r\n // create another Set object implemented using LinkedHashSet\r\n Set<Integer> S3 = new LinkedHashSet<>();\r\n S3.add(150); // add 150\r\n S3.addAll(S1);// add all objects in S1 to S2\r\n System.out.println(\"LinkedHashSet = \" +S3);//assert s3=[150,15,24,65,80]\r\n \r\n S3.removeAll(S3); // remove all items\r\n System.out.println(\"LinkedHashSet = \" +S3);//assert s3=[]\r\n }", "@Override public boolean add(final VueMetadataElement vme)\n {\n if (DEBUG.Enabled) {\n if (DEBUG.CASTOR||DEBUG.XML||DEBUG.DATA||DEBUG.PAIN) Log.debug(Util.tag(this) + \":add: \" + Util.tags(vme));\n }\n\n if (vme.type == VME_EMPTY_IGNORE) { \n if (!unmarshalling) Log.info(\"ignoring \" + vme);\n return true;\n }\n \n if (vme.getObject() == null) {\n if (DEBUG_LOCAL) Log.debug(\"VME object is null, (re)setting type...\" + vme.getType());\n vme.setType(vme.getType()); // ick ick ick\n }\n \n if(DEBUG_LOCAL) \n Log.debug(\"categoryFirstList add - catEnd,ontEnd,size(): \"\n + categoryEndIndex + \",\" + ontologyEndIndex + \",\" + size());\n \n if (vme.type == VueMetadataElement.ONTO_TYPE && vme.getObject() instanceof OntType) {\n otherEndIndex++;\n super.add(ontologyEndIndex++, vme);\n }\n else if (vme.type == VueMetadataElement.RESOURCE_CATEGORY && vme.getObject() instanceof String[]) {\n ontologyEndIndex++;\n categoryEndIndex++;\n otherEndIndex++;\n super.add(rCategoryEndIndex++, vme);\n if(DEBUG_LOCAL) Log.debug(\"rCategoryIndex is now: \" + rCategoryEndIndex);\n }\n else if (vme.type == VueMetadataElement.CATEGORY && vme.getObject() instanceof String[]) {\n ontologyEndIndex++;\n otherEndIndex++;\n super.add(categoryEndIndex++, vme);\n }\n else {\n // WARNING: checks for getObject mean possible for a NON-OTHER type to wind up in other sub-list\n super.add(otherEndIndex++, vme);\n }\n\n // MAJOR ISSUE: THIS WAS FIRING DURING DESERIALIZATION, TO A GLOBALLY *STATIC* LIST OF\n // LISTENERS, WHICH MEANS CALLS TO AWT CODE FOR EVERY SINGLE VME IN ANY NODE IN ANY\n // MAP. Including one of the worse AWT calls: revalidate(). This could also sometimes\n // cause AWT hangs, often in somewhere down in cursor code(?) We've now reduced all\n // MDL update events to diagnostics only -- turns out there's no place in VUE where\n // there are AWT components watching meta-data that may change outside the UI changing\n // them.\n fireListChanged(\"CFL-add\");\n return true;\n }", "private static void test1() {\n HashSet<Contact> contacts = new HashSet<>();\n\n Contact contact1 = new Contact(123, \"Vasiliy\", \"+380681234136\");\n\n contacts.add(contact1);\n\n\n //------------------------------------------\n\n\n Contact contact2 = new Contact(123, \"Vasiliy\", \"+380689876543\");\n\n contacts.remove(contact2);\n contacts.add(contact2);\n\n printCollection(contacts);\n }", "public void checkNewAdded(Instance add) {\n List<Instance> keySet = new LinkedList<Instance>();\n keySet.addAll(backRelation.keySet());\n Boolean added = false;\n for (Instance inst : keySet) {\n if (inst.getName().equals(add.getName()) || inst.getMd5().equals(add.getMd5())) {\n added = true;\n ArrayList<Instance> tmp = backRelation.get(inst);\n tmp.add(add);\n backRelation.remove(inst);\n backRelation.put(inst, tmp);\n if (relatedInstances.containsKey(inst)) {\n ArrayList<Instance> tmpRI = relatedInstances.get(add);\n tmpRI.add(inst);\n relatedInstances.remove(add);\n relatedInstances.put(add, tmpRI);\n\n } else {\n ArrayList<Instance> tmpRI = new ArrayList<Instance>();\n tmpRI.add(inst);\n relatedInstances.put(add, tmpRI);\n }\n\n }\n }\n if (added) {\n instances.add(add);\n }\n }", "@Override\r\n\tpublic void add(T element) {\n\t\tthis._list.add(element);\r\n\t}", "@Override\n public boolean addItem(T item) {\n //Make sure the item is not already in the set\n if(!this.contains(item)){\n //create a new node with the item, and the current first node\n Node n = new Node(item, first);\n //update first node reference\n first = n;\n //increment numItems\n numItems++;\n return true;\n }\n //if item is already in the set return false\n return false;\n }", "public void addListObject(List<Student> list2)\r\n\t{\r\n\t\tlist2.add(s7);\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"after adding\");\r\n\t\tfor(Student e:list2)\r\n\t\t{\r\n\t\t\tSystem.out.println(e);\r\n\t\t}\r\n\t}", "public void addCarToCarRental(InterfaceAbstractCar car) {\r\n\t\tcompanyCars.add(car);\r\n\t}", "@SuppressWarnings (\"unchecked\") public void addAll(ItemList list){\n items.addAll(list.items);\n }", "private void update_auxlist(ArrayList<Line> auxlist, Line workingSet) {\n\t\tLine new_working_set = new Line(workingSet);\n\n\t\t// Add the working set copy to the set of maximal lines\n\t\tauxlist.add(new_working_set);\n\t}", "@Test\n\tpublic void testRepeatedInsert() {\n\t\tSetADT<String> items = new JavaSet<>();\n\t\titems.insert(\"A\");\n\t\titems.insert(\"B\");\n\t\titems.insert(\"C\");\n\t\titems.insert(\"C\");\n\t\t\n\t\t// No matter what, \"C\" can't be added twice.\n\t\titems.insert(\"C\");\n\t\tassertEquals(3, items.size());\n\t\t\n\t\t//double checking - same as for loop\n\t\titems.insert(\"C\");\n\t\tassertEquals(3, items.size());\n\t\t\n\t\tassertEquals(3, items.size());\n\t\tassertEquals(true, items.contains(\"A\"));\n\t\tassertEquals(true, items.contains(\"B\"));\n\t\tassertEquals(true, items.contains(\"C\"));\n\t\t\n\t}", "public static void main(String[] args) {\n HashSet<String> food = new HashSet<>();\n food.add(\"Sushi\");\n food.add(\"Sashimi\");\n food.add(\"Pizza\");\n food.add(\"Japadog\");\n food.add(\"Sushi\");\n System.out.println(food.size());\n\n HashSet<String> food2 = new HashSet<>();\n food2.add(\"Pizza\");\n food2.add(\"Pasta\");\n food2.add(\"Sushi\");\n food2.add(\"Taco\");\n food2.add(\"Burrito\");\n food2.add(\"Nachos\");\n food2.add(\"Feijoada\");\n food2.add(\"Coxinha\");\n// food.addAll(food2);\n// food.retainAll(food2); // common\n\n System.out.println(food);\n System.out.println(food.contains(\"Sushi\"));\n }", "public static <T> Set<T> duplicatedElementsOf(List<T> input) {\n int count = input.size();\n if (count < 2) {\n return ImmutableSet.of();\n }\n Set<T> duplicates = null;\n Set<T> elementSet = CompactHashSet.createWithExpectedSize(count);\n for (T el : input) {\n if (!elementSet.add(el)) {\n if (duplicates == null) {\n duplicates = new HashSet<>();\n }\n duplicates.add(el);\n }\n }\n return duplicates == null ? ImmutableSet.of() : duplicates;\n }", "public static void main(String[] args) {\nLinkedHashSet<String> name_set=new LinkedHashSet<String>();\nname_set.add(\"John\");\nname_set.add(\"Fletcher\");\nname_set.add(\"Kirill\");\nname_set.add(\"Kowing\");\n//Adding same Record again to Linked Hash Set , will not add duplicate record\nname_set.add(\"John\");\nSystem.out.println(\" Record Set\"+name_set);\nSystem.out.println(\"Size of the Set: \"+name_set.size());\nSystem.out.println(\"Set Contains Kirill: \"+name_set.contains(\"Kirill\"));\nSystem.out.println(\"Set Contains Johncena : \"+name_set.contains(\"Johncena\"));\nname_set.remove(\"Kowing\");\nSystem.out.println(\"-----------------------------------------------\");\n\nSystem.out.println(\"Updated Record Set: \"+name_set);\nSystem.out.println(\"Size of the Set: \"+name_set.size());\nSystem.out.println(\"Set Contains Kirill: \"+name_set.contains(\"Kirill\"));\nSystem.out.println(\"Set Contains Kowing : \"+name_set.contains(\"Kowing\"));\n\n\t}", "public void add( T obj )\n {\n // Any distinct object causes creation of a new tree-set.\n // We count any such sets as we go.\n if (!contains( obj ))\n {\n nodes.put(obj, new Node(obj));\n numSets++;\n }\n }", "protected /*@ non_null @*/ JMLObjectSet<E> fast_insert(E elem) {\n return new JMLObjectSet<E>( // cons() clones if necessary\n JMLListObjectNode.cons(elem, the_list),\n size+1);\n }", "private static final <T> List<T> append(List<T> list, T newElement) {\n List<T> newList = Lists.newArrayListWithCapacity(list.size() + 1);\n newList.addAll(list);\n newList.add(newElement);\n return newList;\n }", "@Override\n public boolean add(X x) {\n if (!allowElementsWithoutIdentification)\n throw new IllegalArgumentException(\"It is not allowed to put Elements without Identification in this Set\");\n\n return map.put(x, placeholder) == null;\n }", "public static void main(String[] args) {\n\t\t\n\t\t\n\t\t//create a list type and add\n\t\tList<Integer> jack = new ArrayList<Integer>();\n\t\t\n\t\tSystem.out.print(\"Adding to list [jack]: \");\n\t\t//do this twice to create duplicates\n\t\tfor(int i = 0; i < 10; i++) {\n\t\t\tSystem.out.print(i + \" \");\n\t\t\tjack.add(i);\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < 10; i++) {\n\t\t\tSystem.out.print(i + \" \");\n\t\t\tjack.add(i);\n\t\t}\n\t\t\n\t\tSystem.out.println(\"\\n\\nDone. Notice there are two of each integer in the ArrayList jack now.\");\n\t\t\n\t\t\n\t\t\n\t\t//user set to identify unique elements\n\t\t\n\t\tSystem.out.println(\"\\nUsing a set, we can identify unique values, if we try to add all elements from the ArrayList.\");\n\t\tHashSet<Integer> jackSet = new HashSet<Integer>();\n\t\tfor(int i = 0; i < jack.size(); i++) {\n\t\t\tjackSet.add(jack.get(i));\n\t\t}\n\t\t\n\t\tSystem.out.println(jackSet);\n\t\t\n\t\tSystem.out.println(\"This is a unique feature of Sets\");\n\t\t\n\t\t//hashmap\n\t\tHashMap<String, String> jackHash = new HashMap<String, String>();\n\t\t//populate hashmap\n\t\tString[] myNames = {\"Jack\", \"Brent\", \"Ethan\", \"Levi\"};\n\t\tfor(String s : myNames) {\n\t\t\tjackHash.put(s, \"Person\");\n\t\t}\n\t\t\n\t\t//treemap\n\t\tTreeMap<String, String> jackTree = new TreeMap<String, String>();\n\t\t//populate treemap\n\t\tfor(String s : myNames) {\n\t\t\tjackTree.put(s, \"Person\");\n\t\t}\n\t\t\n\t\t//now we have idenitical hashmap and treemap.\n\t\t\n\t\t//lets try to print them\n\t\t\n\t\t//remember the order names were added:\n\t\tSystem.out.println(\"\\nThis is the original order:\");\n\t\tfor(String s : myNames) {\n\t\t\tSystem.out.println(s);\n\t\t}\n\t\t\n\t\tSystem.out.println(\"\\nHere is the hashmap:\");\n\t\tfor(String h : jackHash.keySet()) {\n\t\t\tSystem.out.println(h);\n\t\t}\n\t\t\n\t\t\n\t\tSystem.out.println(\"\\nHere is the treemap:\");\n\t\tfor(String t : jackTree.keySet()) {\n\t\t\tSystem.out.println(t);\n\t\t}\n\t\t\n\t\tSystem.out.println(\"\\nNow, add another name to both collections\");\n\t\t\n\t\tjackTree.put(\"Carter\", \"Person\");\n\t\tjackHash.put(\"Carter\", \"Person\");\n\t\t\n\t\tSystem.out.println(\"\\nHas the order changed?\");\n\t\tSystem.out.println(\"\\nHere is the hashmap:\");\n\t\tfor(String h : jackHash.keySet()) {\n\t\t\tSystem.out.println(h);\n\t\t}\n\t\t\n\t\t\n\t\tSystem.out.println(\"\\nHere is the treemap:\");\n\t\tfor(String t : jackTree.keySet()) {\n\t\t\tSystem.out.println(t);\n\t\t}\n\t\t\n\t\t\n\t\tSystem.out.println(\"\\nTo guarantee (some type of order), use a TreeSet\");\n\t\tSystem.out.println(\"Notice how it is in alphabetical order.\");\n\t\t\n\t}", "public static void main(String[] args) {\n ArrayList<String> cars = new ArrayList<>();\n cars.add(\"Volvo\");\n cars.add(\"BMW\");\n cars.add(\"Ford\");\n cars.add(\"Mazda\");\n cars.add(\"Chevrolet\");\n cars.add(\"Kia\");\n\n ArrayList<String> cars2 = new ArrayList<>();\n cars2.add(\"Lamborghini\");\n cars2.add(\"Bugatti\");\n\n //1. Adding methods to the list\n //1.1 Add specified element to the end of the list\n cars.add(\"Nissan\");\n //1.2 Add specified element at the specified position\n //could be any position should be inside the length of the list, avoid out of bounds positions\n cars.add(1,\"Smart\");\n //1.3 Add all the elements a list to the another list\n cars.addAll(cars2);\n\n //2. Getting the size of the list\n int size = cars.size();\n System.out.println(\"Size of the list: \" + size);\n\n //3. Removing elements from the list\n //3.1 Remove the specified object from the list, by object or index\n cars.remove(\"Chevrolet\");\n cars.remove(7);\n //3.2 Remove all the elements from the list\n ArrayList<String> cars3 = new ArrayList<String>(cars);\n cars3.clear();\n //3.3 Remove elements from an specific range\n ArrayList<String> cars4 = new ArrayList<String>(cars);\n cars4.subList(4,6).clear();\n\n //4. Searching elements in the List\n //4.1 Search the specified element, return false if the specified element is not found\n cars.contains(\"Fiat\");\n //4.2 Returns the index of the first occurrence of the specified element\n cars.indexOf(\"BMW\");\n\n //5. Replaces the element at the specified position with the new element\n cars.set(3,\"Nissan\");\n }", "public void m65918a(List<SearchTrack> list) {\n SpotifyTrackSearchTarget spotifyTrackSearchTarget = (SpotifyTrackSearchTarget) this.f56358a.H();\n if (spotifyTrackSearchTarget != null) {\n this.f56358a.f56363e = true;\n spotifyTrackSearchTarget.addTracks(list);\n this.f56358a.f56361c = this.f56358a.f56361c + 1;\n }\n }", "public ListSet() {\n lists = new TernarySearchTree<>();\n }", "public boolean addToPlayList(int trackNumber, LinkedList<Song> playList){\n\n Song checkedSong = this.songArrayList.findSong(trackNumber);\n if (checkedSong != null){\n playList.add(checkedSong);\n return true;\n }\n System.out.println(\"This album does not have a track \" +trackNumber);\n return false;\n }", "public void isAllRecommended() {\n //Get ScoredId\n for(int i = 0; i < originalList.size(); i++) {\n Boolean isPresent = true;\n\n ScoredId sc = originalList.get(i);\n\n long m = sc.getId();\n\n //Check if it is present in all other lists\n for(Map.Entry<Long, List<ScoredId>> entry : recMap.entrySet()) {\n List<ScoredId> sco = entry.getValue();\n\n HashSet moovies = new HashSet<>();\n\n for(int j=0; j < sco.size(); j++) {\n ScoredId mov = sco.get(j);\n\n long moo = mov.getId();\n\n moovies.add(moo);\n }\n\n if(!moovies.contains(m)){\n isPresent = false;\n }\n }\n\n //Movie should be added to list here, after all lists examined\n if(isPresent) {\n commonRec.add(sc);\n }\n }\n\n //Commenting out as was used for testing purposes.\n //System.out.println(commonRec);\n\n obtainFinalRecs();\n }", "void addPerson(Person person) throws UniquePersonList.DuplicatePersonException;", "public void add(Item toAdd) throws DuplicateItemException {\n assert toAdd != null;\n if (contains(toAdd)) {\n throw new DuplicateItemException();\n }\n internalList.add(toAdd);\n }", "public void addMySmartDevicesItemsToList(List<SmartDevice> mySmartDevices) {\n mySmartDevicesObservableArrayList.clear();\n mySmartDevicesObservableArrayList.addAll(mySmartDevices);\n }", "public void addList(ShoppingList list) {\n\n lists.add(0, list);\n list.save();\n notifyItemInserted(0);\n\n }", "void addWordToCandidatesSet(String word) {\n candidates.add(word);\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic boolean addRollingStock(RollingStock car)\n\t{\n\t\tif(this.cars.add(car))\n\t\t{\n\t\t\tcar.setInChain(this.getId()); \n\t\t\treturn true; \n\t\t}\n\t\treturn false; \n\t}", "@Test\n public void find_redundant_interaction() {\n list1.add(1);\n list1.add(2);\n verify(list1, Mockito.times(2)).add(Mockito.anyInt());\n verifyNoMoreInteractions(list1);\n\n //List<Integer> list2 = Mockito.mock(List.class);\n list2.add(1);\n list2.add(2);\n verify(list2, Mockito.times(2)).add(Mockito.anyInt());\n verify(list2, Mockito.never()).add(3);\n verifyNoMoreInteractions(list2);\n }" ]
[ "0.5637952", "0.5617321", "0.5574295", "0.55405724", "0.5538671", "0.5418943", "0.540715", "0.5384398", "0.5308453", "0.5288815", "0.528754", "0.52409303", "0.52131325", "0.519", "0.5175531", "0.51649123", "0.5162506", "0.5159259", "0.5158791", "0.5151633", "0.5143294", "0.5124554", "0.5114026", "0.51100963", "0.50946283", "0.50828314", "0.5067906", "0.50472105", "0.5029256", "0.5022756", "0.5021384", "0.50155234", "0.4994474", "0.4992438", "0.4984255", "0.4969617", "0.49676532", "0.49638823", "0.49588114", "0.49451983", "0.49196547", "0.4918198", "0.49106964", "0.4906947", "0.49033916", "0.49003935", "0.48880655", "0.4884235", "0.48825872", "0.48793855", "0.48760062", "0.4875255", "0.48628947", "0.48538157", "0.48512027", "0.48463044", "0.48461115", "0.4833749", "0.48263884", "0.4822211", "0.48162034", "0.4813728", "0.4811759", "0.48112392", "0.48034042", "0.4799983", "0.47828355", "0.47820696", "0.47695944", "0.47691", "0.47684756", "0.47667342", "0.47638345", "0.47624773", "0.4755222", "0.47532126", "0.47515342", "0.4745401", "0.47448096", "0.47432432", "0.47425607", "0.47409663", "0.47391728", "0.47383517", "0.47248456", "0.4721163", "0.4713139", "0.4711096", "0.47074664", "0.47070947", "0.47028503", "0.47002566", "0.4699481", "0.46958166", "0.4694227", "0.4691194", "0.46883777", "0.4687504", "0.46870765", "0.46866527" ]
0.6461219
0
Removes all occurences of value from the List
public void removeFromLikedCars(String likedCars);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void removeAllWithValue(v val) {\n\t\tfor (int i = 0; i < buckets.length; i++) {\n\t\t\tNode<k,v> curr = buckets[i];\n\t\t\tNode<k,v> previous = null;\n\t\t\t\n\t\t\twhile (curr != null) {\n\t\t\t\tif (curr.getValue().equals(val)) {\n\t\t\t\t\t\n\t\t\t\t\tif (previous == null) {\n\t\t\t\t\t\tbuckets[i] = curr.getNext(); // if removing first item, set the next as first\t\t\n\t\t\t\t\t} else {\n\t\t\t\t\t\tprevious.setNext(curr.getNext()); // else set the previous' next to curr's next\n\t\t\t\t\t}\t\n\t\t\t\t} else {\t\t\t\t\t\t\t// if match wasn't found, set previous to current before moving on\n\t\t\t\t\tprevious = curr;\n\t\t\t\t}\t\n\t\t\t\tcurr = curr.getNext(); \t\t\t\t// move in SLL\n\t\t\t}\t\n\t\t}\n\t}", "public void removeValue(Object value)\n\t{\n\t\tif (values.contains(value))\n\t\t{\n\t\t\tvalues.remove(value + \"\");\n\t\t}\n\t}", "void remove(int v){\n if(isEmpty()!=1){\n for(int i=0;i<size;i++){\n if(values[i]==v){\n int j = i;\n while((j+1)!=size){\n values[j] = values[j+1];\n j++;\n\n }\n values[j] = (-1);\n break;\n }\n }\n }\n }", "@Override\n public void removeAllValues() {\n Map<String, ?> map = preferences.getAll();\n Iterator<String> iterator = map.keySet().iterator();\n while (iterator.hasNext()) {\n removeValue(iterator.next());\n }\n }", "@Override\n public boolean removeByValue(int value) {\n Entry tmp = first;\n for (int i = 0; i < size; i++) {\n if (tmp.value == value) {\n tmp.previous.next = tmp.next;\n tmp.next.previous = tmp.previous;\n size--;\n return true;\n }\n tmp = tmp.next;\n }\n return false;\n }", "private void removePressed() {\n\t\ts = allMedia.getSelectedValuesList();\n\t\t// now remove all the value that are in the list from the default list model\n\t\tfor(Object o : s){\n\t\t\tif(l.contains(o)){\n\t\t\t\tl.removeElement(o);\n\t\t\t}\n\t\t}\n\t}", "public void removeDuplication() {\r\n\t\t//checks if the array contains any elements\r\n\t\tif (!isEmpty()) {\t//contains elements\r\n\t\t\t//loop to execute for every element in the array\r\n\t\t\tfor (int i=0;i<size-1;i++) {\r\n\t\t\t\tObject element=list[i];\t//to store value of element in array\r\n\t\t\t\t//loop to execute for every element after the current element in the list\r\n\t\t\t\tfor (int j=i+1;j<size;j++) {\r\n\t\t\t\t\t//checks if there is are 2 elements in the list with the same value\r\n\t\t\t\t\tif (element==list[j]) {\r\n\t\t\t\t\t\tremove(j);\t//calls function to remove that element from array\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\t//contains 0 elements\r\n\t\t\tSystem.out.println(\"List is empty!\");\r\n\t\t}\r\n\t}", "@Override\n public Collection<V> removeAll( K key ) {\n List<V> result = new ArrayList<V>(currentCountFor(key));\n ValueIterator values = new ValueIterator(key);\n while (values.hasNext()) {\n result.add(values.next());\n values.remove();\n }\n return result;\n }", "private ArrayList<Equity> getUnwatchedEquities(ArrayList<Equity> list) {\n ArrayList<Equity> temp = new ArrayList<>();\n temp.addAll(list);\n ArrayList<WatchedEquity> watched = controller.getUser().watchedEquities;\n for (Equity e : list) {\n for (WatchedEquity we : watched) {\n if (e.getTickerSymbol().equals(we.getSymbol())) {\n temp.remove(e);\n break;\n }\n }\n }\n return temp;\n }", "public void remove(int v) {\n Lista iter = new Lista(this);\n if (iter.x != v) {\n while (iter.next.x != v) {\n if (iter.next != null) {\n iter = iter.next;\n }\n }\n }\n if (iter.next.x == v) {\n iter.next = iter.next.next;\n }\n }", "public static void removeDuplicate(ArrayList<Integer>list) {\n \n //create a temporary arraylist\n ArrayList<Integer> tempList = new ArrayList<>();\n \n //loop thru the list and check if list contains the same integer/number/value as tempList\n for (int i = 0; i < list.size(); i++) {\n if (!tempList.contains(list.get(i))) {\n tempList.add(list.get(i));\n }\n }\n \n //clear the list\n list.clear();\n \n //add all integers/numbers/value from tempList into list\n list.addAll(tempList);\n \n }", "private void removeLargeValues(ArrayList<Integer> myList)\n {\n // sort list to make removing values easy\n Collections.sort(myList);\n\n while (myList.size() > 1)\n {\n if (myList.get(myList.size() - 1) > 21)\n myList.remove(myList.size() - 1);\n else\n break;\n }\n }", "protected void resetValues() {\n synchronized (values) {\n values.removeAll(new ArrayList(values));\n }\n }", "public static void main(String[] args) {\n\n ArrayList<Integer> arrayList=new ArrayList<>();\n\n arrayList.add(1);\n arrayList.add(1);\n arrayList.add(2);\n arrayList.add(5);\n\n\n System.out.println(arrayList);\n System.out.println(arrayList.remove(1));\n System.out.println(arrayList);\n\n }", "private static ListNode removeElements(ListNode head, int val) {\n ListNode dummy = new ListNode(0);\n dummy.next = head;\n ListNode curr = dummy;\n // Iterate till current.next is null. Keep checking next with value\n while (curr.next != null) {\n // next element is a match so skip pointing to next element.\n if (curr.next.value == val) {\n curr.next = curr.next.next;\n } else {\n curr = curr.next; // else keep moving ahead.\n }\n }\n return dummy.next; \n }", "public void remove(int num) {\n // find the index of num\n for (int i = 0; i < count; i++) {\n if (list[i] == num) {\n // shift the elements leftward and decrement count\n for (int j = 0; j < count - 1; j++) {\n list[i+j] = list[i+j+1];\n }\n count--;\n return;\n }\n }\n }", "private void removeFromList(Visit visit){\n\t\tfor (int i=0; i<searchResults.size(); i++) {\n\t\t\tif(searchResults.get(i).getClientRegNo().equals(visit.getClientRegNo())\n\t\t\t\t\t&& searchResults.get(i).getPropertyRegNo().equals(visit.getPropertyRegNo())\n\t\t\t\t\t&& searchResults.get(i).getDate().equals(visit.getDate())){\n\t\t\t\tsearchResults.remove(i);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\t\n\t\t}\n\t}", "public void removeAllElementInsertionMaps()\n {\n list.removeAllElements();\n }", "@Override\n\tpublic void deleteAll(int pValueToDelete) {\n\t\twhile (find(pValueToDelete) != -1) {\n\t\t\tdelete(pValueToDelete);\n\t\t}\n\n//\t\tif (duplicatesAllowed == false) {\n//\t\t\tdelete(pValueToDelete);\n//\t\t} else {\n//\t\t\tfor (int n = 0; n < pointer; n++) {\n//\t\t\t\tif (values[n] == pValueToDelete) {\n//\t\t\t\t}\n//\t\t\t}\n//\t\t}\n\t}", "public void clearListNotIndex(){\n for(int z=0; z<list.length; z++){\n list [z] = 0;\n }\n }", "public void remove() {\n if (count == 0) {\n return;\n }\n \n Random rand = new Random();\n int index = rand.nextInt(count);\n for (int i = index; i < count - 1; i++) {\n list[i] = list[i+1];\n }\n count--; \n }", "protected void removeDuplicates() {\n log.trace(\"Removing duplicated\");\n long startTime = System.currentTimeMillis();\n int initial = size();\n E last = null;\n int index = 0;\n while (index < size()) {\n E current = get(index);\n if (last != null && last.equals(current)) {\n if (log.isTraceEnabled()) {\n log.trace(\"Removing duplicate '\" + current + \"'\");\n }\n remove(index);\n } else {\n index++;\n }\n last = current;\n }\n log.debug(String.format(\"Removed %d duplicates from a total of %d values in %dms\",\n initial - size(), initial, System.currentTimeMillis() - startTime));\n }", "void removeValue(String key);", "public void removeAll(String c) {\r\n int[] elements = new int[(c.length() / 2) + 1];\r\n if (containsAll(c)) {\r\n for (int i = 0; i < elements.length; i++) {\r\n elements[i] = Integer.parseInt(c.substring(0, c.indexOf(\",\")));\r\n c = c.substring((c.indexOf(\",\") + 1));\r\n remove(elements[i]);\r\n }\r\n } else {\r\n throw new RuntimeException(\"some or all elements dont exist in List.\");\r\n }\r\n }", "@Override\n\tpublic boolean remove(Object value) {\n\t\tint index = indexOf(value);\n\n\t\tif (index == -1) {\n\t\t\treturn false;\n\t\t}\n\n\t\tremove(index);\n\t\treturn true;\n\t}", "private Node removeDuplicate() {\n ArrayList<Integer> values = new ArrayList<Integer>();\n int len = this.getlength();\n Node result = this;\n\n if (len == 1) {\n System.out.println(\"only one element can't duplicate\");\n return result;\n } else {\n Node current = result;\n\n for (int i = 0; i < len; i++) {\n if (values.contains(current.value)) {\n result = result.remove(i);\n len = result.getlength();\n i--; // reset the loop back\n current = current.nextNode;\n } else {\n values.add(current.value);\n current = current.nextNode;\n }\n }\n return result;\n }\n }", "public void removeMatched(String v) {\n\t\t\tElementDPtr p = head;\n\t\t\tSystem.out.println(\" Value 1 \"+ v);\n\t\t\tif (head == null) \n\t\t\t\treturn;\n\t\t\tif (p.getValue().equals(v)) { \n\t\t\t\tSystem.out.println(\" Value 2 \"+ p.getValue());\n\t\t\t\thead = head.getNext(); \n\t\t\t\tif (head == null)\n\t\t\t\t\ttail = null;\n\t\t\t\tlength--;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse { p = head.getNext(); \n\t\t\t System.out.println(\" Value 3 \"+ p.getValue());\n\t\t\t while(p != null) {\n\t\t\t\t if (p.getValue().equals(v)) {\n\t\t\t\t\tSystem.out.println(\" Value \"+ p.getValue()\n\t\t\t\t\t+ p.getPrev().toString() );\n\t\t\t\t\tp.getPrev().setNext(p.getNext());\n\t\t\t\t\tp.getNext().setPrev(p.getPrev());\n\t\t\t\t\t\n\t\t\t\t\tlength--;\n\t\t\t\t\treturn;\n\t\t\t\t } \n\t\t\t\telse p = p.getNext();\n\t\t\t}\n\t\t\t}\n\t\t}", "@Override\n public int remove() {\n isEmptyList();\n int result = first.value;\n first = first.next;\n first.previous = null;\n size--;\n return result;\n }", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "@Override\r\n public void removeFilterValue(String value) {\n }", "@Override\r\n\tpublic void remove(List<GroupMember> list) {\n\t\tfor(int i = 0;i<list.size();i++)\r\n\t\t\tremove(list.get(i));\r\n\t}", "public void remove(int key) {\n int index = key % n;\n MapNode node = keys[index];\n for (int i =0; i < node.list.size(); ++i) {\n if (node.list.get(i) == key) {\n node.list.remove(i);\n vals[index].list.remove(i);\n }\n }\n }", "static List<String> removeDuplicates(List<String> list) {\n // Store unique items in result.\n List<String> result = new ArrayList<String>();\n // Loop over argument list.\n for (String token : list) {\n if (result.indexOf(token) == -1) { \n result.add(token);\n }\n }\n return result;\n }", "private ArrayList<Integer> remove_duplicates(ArrayList<Integer> l) {\n ArrayList<Integer> res = new ArrayList<Integer>();\n for (int i=0; i< l.size(); i++) {\n if (!(in(l.get(i), res))) {\n res.add(l.get(i));\n }\n }\n return res;\n }", "private DeleteByValue() {}", "private DeleteByValue() {}", "public void removeAll(Object element);", "public void\t\tremoveAll();", "@Override\n public void remove(T t) {\n for (int i = 0; i < elementsInArray; i++) {\n if(t.equals(arrayList[i])) {\n arrayList[i] = null;\n elementsInArray--;\n return;\n }\n }\n }", "@Test\n public void testRemoveAll() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n\n Collection c = Arrays.asList(2, 3);\n boolean expectedResult = true;\n boolean result = instance.removeAll(c);\n\n assertEquals(expectedResult, result);\n\n }", "public void removeAll() {\n this.arrayList = null;\n this.arrayList = new ArrayList<>();\n }", "public void RemoveValue(int value)\n {\n // Check if the value already exists\n if(_valuesToPut.contains(value))\n {\n _valuesToPut.remove(value);\n }\n }", "@Test\n public void testRemoveAll_Not_Empty() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(1);\n instance.add(2);\n\n Collection c = Arrays.asList(2, 3);\n instance.removeAll(c);\n\n int expectedResult = 1;\n assertEquals(expectedResult, instance.size());\n\n }", "public void removeAllElements();", "public void remove()\r\n { Exceptions.unmodifiable(\"list\"); }", "private List<Coordinate> trim(List<Coordinate> list) {\n\n List<Coordinate> temp = new ArrayList<>();\n if (list.size() == 0) {\n return temp;\n }\n temp.add(list.get(0));\n for (int i = 1; i < list.size(); i++) {\n if (list.get(i - 1).equals(list.get(i))) {\n continue;\n }\n temp.add(list.get(i));\n }\n return temp;\n }", "public void removeAllItems ();", "public T remove(T value){\n\t return value;\n\t}", "public boolean remove(int val) {\n if(!map.containsKey(val)) return false;\n int index = map.get(val);\n int size = list.size();\n int tmp = list.get(size-1);\n list.set(size-1, list.get(index));\n list.set(index, tmp);\n list.remove(size-1);\n map.put(tmp, index);\n map.remove(val);\n return true;\n }", "public void removeWritten(byte[] value) {\n\n writeSetLock.lock();\n \n Set<TimestampValuePair> temp = (HashSet<TimestampValuePair>) writeSet.clone();\n \n for (TimestampValuePair rv : temp) {\n\n if (Arrays.equals(rv.getValue(), value)) writeSet.remove(rv);\n }\n writeSetLock.unlock();\n\n }", "@Override\n\tpublic boolean remove(Object value) {\n\t\ttry {\n\t\t\tremove(indexOf(value));\n\t\t}catch(IndexOutOfBoundsException e){\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "@Test\n public void testRemoveAll_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n\n Collection c = Arrays.asList(2, 3);\n boolean expectedResult = true;\n boolean result = instance.removeAll(c);\n\n assertEquals(expectedResult, result);\n\n }", "public boolean remove(int val) {\r\n\r\n\t\tint pos = get_pos(val);\r\n\t\tif (bucket[pos] != null) {\r\n\t\t\tNode n = bucket[pos].list;\r\n\t\t\tNode p = n;\r\n\t\t\twhile (n != null) {\r\n\t\t\t\tif (n.val == val) {\r\n\t\t\t\t\tif (p == bucket[pos].list) {\r\n\t\t\t\t\t\tbucket[pos].list = n.next;\r\n\t\t\t\t\t\tbucket[pos].size--;\r\n\t\t\t\t\t\tif (bucket[pos].list == null)\r\n\t\t\t\t\t\t\tbucket[pos] = null;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tp.next = n.next;\r\n\t\t\t\t\t\tbucket[pos].size--;\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t\tp = n;\r\n\t\t\t\tn = n.next;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn false;\r\n\t}", "public ListNode removeElements(ListNode head, int val) {\n ListNode dummyNode = new ListNode(-1);\n dummyNode.next = head;\n ListNode pre = dummyNode;\n ListNode cur = pre.next;\n while(cur != null){\n if(cur.val == val){\n cur = cur.next;\n pre.next = cur;\n }else{\n pre = pre.next;\n cur = cur.next;\n }\n }\n return dummyNode.next;\n }", "@Test\n public void testRemoveAll_Not_Empty_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(1);\n instance.add(2);\n\n Collection c = Arrays.asList(2, 3);\n instance.removeAll(c);\n\n int expectedResult = 1;\n assertEquals(expectedResult, instance.size());\n\n }", "void removeAllEntries();", "private void arrayRemove(MyArrayList myArrayList, Results results, int value) {\r\n int old_size = myArrayList.size();\r\n myArrayList.removeValue(value);\r\n int new_size = myArrayList.size();\r\n if(old_size == new_size + 1) {\r\n results.storeNewResult(\"ArrayRemove test case: FAILED\");\r\n }\r\n else {\r\n results.storeNewResult(\"ArrayRemove test case: PASSED\");\r\n }\r\n }", "void removeAll();", "void removeAll();", "public final void remove(@NotNull T value) {\n\t\tObject priorValue;\n\t\tboolean replaced;\n\t\tdo {\n\t\t\tpriorValue = this.value.get();\n\t\t\tObject newValue = remove(priorValue, value);\n\t\t\treplaced = this.value.compareAndSet(priorValue, newValue);\n\t\t} while (!replaced);\n\t}", "void clear(int list) {\n\t\tint last = getLast(list);\n\t\twhile (last != nullNode()) {\n\t\t\tint n = last;\n\t\t\tlast = getPrev(n);\n\t\t\tfreeNode_(n);\n\t\t}\n\t\tm_lists.setField(list, 0, -1);\n\t\tm_lists.setField(list, 1, -1);\n\t\tsetListSize_(list, 0);\n\t}", "void clear() {\n\t\tfor (int list = getFirstList(); list != -1;) {\n\t\t\tlist = deleteList(list);\n\t\t}\n\t}", "public static ArrayList<String> complement(ArrayList<String> universe, ArrayList<String> value) {\n\t\tArrayList<String> result = new ArrayList<String>();\n\t\tfor(String element : universe) {\n\t\t\tif(!value.contains(element)) {\n\t\t\t\tresult.add(element);\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "public void removeValue(int i)\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(VALUE$0, i);\n }\n }", "public boolean remove(int val) {\n boolean contains = map.containsKey(val);\n if(!contains) return false;\n int pos = map.get(val);\n if (pos < nums.size() - 1) { // if not the last one, then swap the last one with this val\n int last = nums.get(nums.size() - 1); // arraylist get() O(1), basically a value in an array\n nums.set(pos, last); // set the element at \"pos\" position to be last element in the list , set like assign value in an array element\n map.put(last, pos); // put the last element in the list with the pos position\n }\n map.remove(val); // hashmap remove() It is O(1) only when removing the last element by index.\n // O(1); map remove(obj)\n //O(1+k/n) where k is the no. of collision elements\n // added to the same LinkedList (k elements had same hashCode)\n nums.remove(nums.size() - 1);\n return true;\n }", "public ListNode removeElements(ListNode head, int val) {\n ListNode fakeHead = new ListNode(0);\n fakeHead.next = head;\n head = fakeHead;\n while (head != null && head.next != null)\n {\n if (head.next.val == val)\n head.next = head.next.next;\n else {\n head = head.next;\n }\n }\n return fakeHead.next;\n }", "public void clear(){\n\n \tlist = new ArrayList();\n\n }", "@Override\n\tpublic V remove(K key) {\n\t\tint h = Math.abs(key.hashCode()) % nrb;// calculam hash-ul asociat cheii\n\n\t\tfor (int i = 0; i < b.get(h).getEntries().size(); i++) {\n\t\t\t// parcurgerea listei de elemente pentru a gasi cheia ceruta si\n\t\t\t// stergerea acesteiu din lista\n\t\t\tif (b.get(h).getEntries().get(i).getKey().equals(key)) {\n\t\t\t\tV x = b.get(h).getEntries().get(i).getValue();\n\t\t\t\tb.get(h).e.remove(i);\n\t\t\t\treturn x;\n\t\t\t}\n\t\t}\n\n\t\treturn null;\n\t}", "public boolean remove(int val) {\n if(map.containsKey(val)){\n \tif(map.get(val).size() == 1){\n \t\tint last = list.get(list.size()-1);\n \t\tint mvindex = map.get(val).iterator().next();\n \t\tmap.get(last).remove(list.size()-1);\n \t\tmap.get(last).add(mvindex);\n \t\tlist.set(mvindex,list.get(list.size()-1));\n \t\tlist.remove(list.size()-1);\n \t\tmap.remove(val);\n \t}else {\n \t\tint last = list.get(list.size()-1);\n \t\tint mvindex = map.get(val).iterator().next();\n \t\tmap.get(last).remove(list.size()-1);\n \t\tmap.get(last).add(mvindex);\n \t\tlist.set(mvindex, list.get(list.size()-1));\n \t\tlist.remove(list.size()-1);\n \t\tif(last != val)\n \t\t\tmap.get(val).remove(mvindex);\n\t\t\t} \t\n \treturn true;\n }else {\n\t\t\treturn false;\n\t\t}\n }", "@Test\r\n\tpublic void testRemoveAll() {\r\n\t\tDoubleList sample = new DoubleList(new Munitions(2, 3, \"iron\"));\r\n\t\tsample.add(new Munitions(new Munitions(3, 4, \"iron\")));\r\n\t\tAssert.assertTrue(list.removeAll(sample));\r\n\t\tAssert.assertFalse(list.removeAll(sample));\r\n\t\tAssert.assertEquals(13, list.size());\r\n\t}", "public void clear() {\n synchronized (LOCK) {\n myValues.clear();\n }\n }", "public void removeInterpretedBy( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.remove(this.model, this.getResource(), INTERPRETEDBY, value);\r\n\t}", "private List<String> removeEmptyLines(List<String> list) {\n for (int k1 = 0; k1 < list.size(); ++k1)\n {\n if (list.get(k1).isEmpty()) {\n list.remove(k1);\n }\n }\n return list;\n }", "public static List<String> noX(List<String> list) {\n\t\treturn list.stream().map(s -> s.replace(\"x\", \"\"))\n\t\t\t\t\t\t\t.collect(Collectors.toList());\n\t}", "public void removeAllWithKey(k key) {\n\t\t\n\t\tint b = hash(key);\n\t\tNode<k,v> curr = buckets[b];\n\t\tNode<k,v> previous = null;\n\t\t\n\t\twhile (curr != null) {\n\t\t\tif (key.equals(curr.getKey())) { // check if keys match\n\t\t\t\n\t\t\t\tif (previous == null) {\n\t\t\t\t\tbuckets[b] = curr.getNext(); // if removing first item, set the next as first\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\tprevious.setNext(curr.getNext()); // else set the previous' next to curr's next\n\t\t\t\t}\t\t\n\t\t\t} else {\n\t\t\t\tprevious = curr; // if match wasn't found, set previous to current before moving on\n\t\t\t}\n\t\t\tcurr = curr.getNext(); // move in SLL\n\t\t}\n\t}", "void unsetListOfServiceElements();", "private static <T> Object remove(Object baseValue, T value) {\n\t\tif (baseValue == value || baseValue == null) {\n\t\t\treturn null;\n\t\t}\n\n\t\tif (!(baseValue instanceof Object[])) {\n\t\t\t// baseValue is a single element not equal to value\n\t\t\treturn baseValue;\n\t\t}\n\n\t\tObject[] oldArray = (Object[])baseValue;\n\t\tfor (int i = 0; i < oldArray.length; i++) {\n\t\t\tif (oldArray[i] == value) {\n\t\t\t\tif (oldArray.length == 2) {\n\t\t\t\t\treturn oldArray[i == 0 ? 1 : 0];\n\t\t\t\t}\n\n\t\t\t\t// Shift remaining elements and return\n\t\t\t\tfor (int j = i + 1; j < oldArray.length; j++) {\n\t\t\t\t\toldArray[j - 1] = oldArray[j];\n\t\t\t\t}\n\n\t\t\t\treturn Arrays.copyOf(oldArray, oldArray.length - 1);\n\t\t\t}\n\t\t}\n\n\t\treturn baseValue;\n\t}", "public List<Integer> removeNumber(List<Integer> numbers) {\n List<Integer> result = new ArrayList<>();\n for (int number : numbers) {\n if (number != 7) {\n result.add(number);\n }\n }\n return result;\n }", "private void clearAll(byte value) {\n for (int i = 0; i < size; i++) {\n data[i] = (byte) (value & 0xff);\n }\n }", "public static void main(String[] args) {\n\n ArrayList<String> strArray = new ArrayList<>();\n strArray.add(\"man\");\n strArray.add(\"hi\");\n strArray.add(\"yo\");\n strArray.add(\"hi\");\n String strToBeRemoved =\"hi\";\n\n removeAll(strArray, strToBeRemoved);\n\n\n }", "@Override\n public E deleteMin()\n {\n return list.removeFirst();\n }", "private void removeEvicted() {\n Map<K,CacheableObject> removeMap = new HashMap<K,CacheableObject>(valueMap.size()/2);\n List<CacheListener<K>> tempListeners = new ArrayList<CacheListener<K>>();\n\n // Retrieve a list of everything that's to be removed\n synchronized(theLock) {\n removeMap.putAll(toEvictMap);\n toEvictMap.clear();\n tempListeners.addAll(listeners);\n }\n\n // Remove the entries one-at-a-time, notifying the listener[s] in the process\n for (Map.Entry<K,CacheableObject> entry : removeMap.entrySet()) {\n synchronized(theLock) {\n currentCacheSize -= entry.getValue().containmentCount;\n valueMap.remove(entry.getKey());\n }\n Thread.yield();\n\n for (CacheListener<K> listener : tempListeners) {\n listener.evictedElement(entry.getKey());\n }\n }\n }", "@Override\n\tpublic void removeValue(String arg0) {\n\t}", "public static void main(String[] args) {\r\n\t\t\r\n\tList<Integer> myList = new ArrayList<>();\r\n\tmyList.add(0);\r\n\tmyList.add(1);\r\n\tmyList.add(5);\r\n\tmyList.add(115);\r\n\tmyList.add(100);\r\n\tmyList.add(26);\r\n\tmyList.add(5555);\r\n\tmyList.add(-12);\r\n\t\r\n\tSystem.out.println(myList);\r\n\t\r\n\tfor(int i = 0; i<myList.size(); i++) {\r\n\t\tif(myList.get(i) > 100 || myList.get(i) < 1) {\r\n\t\t\tmyList.remove(i);\r\n\t\t\ti--;\r\n\t\t}\r\n\t}\r\n\t\r\n\tSystem.out.println(myList);\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t}", "public static void removeEvens(ArrayList<Integer> list)\n {\n /*\n * size method returns the number of elements in the list\n */\n //int size = list.size();//valid way to ge the size\n \n for(int i = 0; i < list.size(); )\n {\n /*\n * get method return the value of the elemtne at the index\n * list get smaller, elements are \"shifted left\"\n */\n int value = list.get(i);\n if( value %2 == 0)\n {\n /*\n * remove method deletes the element at the specified index\n */\n list.remove(i);\n //i--;// if remove move index back one to compensate\n }\n else//only increase i if you don't remove\n {\n i++;\n }\n }\n }", "public void removeAllItem() {\n orderList.clear();\n }", "public boolean remove(int val) {\n return list.remove(val);\n }", "Set<Card> remove();", "@Override\npublic void removeAll(Collection<Integer> collection) {\n\t\n}", "public void reduce(List<T> list) {\n\t\tfor(int i = 1; i < list.size(); i++) {\n\t\t\tif(list.get(i) == null || list.get(i-1) == null) continue;\n\t\t\tint hash = list.get(i-1).hashCode();\n\t\t\tif(!rule.containsKey(hash)) continue;\n\t\t\tif(rule.get(hash).contains(list.get(i))) {\n\t\t\t\tlist.remove(i);\ti--;\n\t\t\t}\n\t\t}\n\t}" ]
[ "0.6947017", "0.6750947", "0.66021454", "0.6526514", "0.64638007", "0.64427745", "0.6360537", "0.61673343", "0.61351264", "0.6115447", "0.6097846", "0.606517", "0.60465765", "0.60458964", "0.6008555", "0.5999753", "0.59915566", "0.5950291", "0.5942454", "0.59411395", "0.59388345", "0.59088904", "0.590399", "0.5885903", "0.58834165", "0.58724225", "0.58695257", "0.586607", "0.58599985", "0.58599985", "0.58599985", "0.58599985", "0.58599985", "0.58599985", "0.58599985", "0.58599985", "0.58599985", "0.58599985", "0.58599985", "0.58599985", "0.5852383", "0.58486944", "0.583045", "0.5826441", "0.5824425", "0.5823913", "0.5823913", "0.5803889", "0.57997966", "0.57955396", "0.5788623", "0.5784611", "0.5774934", "0.57708824", "0.57690513", "0.57688135", "0.57453823", "0.57425135", "0.5737609", "0.57338476", "0.5729495", "0.5718661", "0.5712207", "0.57103527", "0.56978333", "0.5695428", "0.56943774", "0.56850517", "0.5684148", "0.5684148", "0.5681002", "0.56655794", "0.5662828", "0.56558144", "0.5645435", "0.5642113", "0.56401336", "0.56356096", "0.56328636", "0.5630793", "0.5627128", "0.56252474", "0.5612094", "0.5602405", "0.55970675", "0.5595786", "0.55931664", "0.5592006", "0.55886793", "0.5572317", "0.55563223", "0.55554086", "0.5529794", "0.5526323", "0.55232835", "0.55191946", "0.55179125", "0.55168444", "0.55134463", "0.55103993", "0.5510021" ]
0.0
-1
Removes all occurences of all values from the List
public void removeFromLikedCars(List<String> likedCars);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void removeAllValues() {\n Map<String, ?> map = preferences.getAll();\n Iterator<String> iterator = map.keySet().iterator();\n while (iterator.hasNext()) {\n removeValue(iterator.next());\n }\n }", "protected void resetValues() {\n synchronized (values) {\n values.removeAll(new ArrayList(values));\n }\n }", "static List<String> removeDuplicates(List<String> list) {\n // Store unique items in result.\n List<String> result = new ArrayList<String>();\n // Loop over argument list.\n for (String token : list) {\n if (result.indexOf(token) == -1) { \n result.add(token);\n }\n }\n return result;\n }", "public void removeAllWithValue(v val) {\n\t\tfor (int i = 0; i < buckets.length; i++) {\n\t\t\tNode<k,v> curr = buckets[i];\n\t\t\tNode<k,v> previous = null;\n\t\t\t\n\t\t\twhile (curr != null) {\n\t\t\t\tif (curr.getValue().equals(val)) {\n\t\t\t\t\t\n\t\t\t\t\tif (previous == null) {\n\t\t\t\t\t\tbuckets[i] = curr.getNext(); // if removing first item, set the next as first\t\t\n\t\t\t\t\t} else {\n\t\t\t\t\t\tprevious.setNext(curr.getNext()); // else set the previous' next to curr's next\n\t\t\t\t\t}\t\n\t\t\t\t} else {\t\t\t\t\t\t\t// if match wasn't found, set previous to current before moving on\n\t\t\t\t\tprevious = curr;\n\t\t\t\t}\t\n\t\t\t\tcurr = curr.getNext(); \t\t\t\t// move in SLL\n\t\t\t}\t\n\t\t}\n\t}", "private ArrayList<Equity> getUnwatchedEquities(ArrayList<Equity> list) {\n ArrayList<Equity> temp = new ArrayList<>();\n temp.addAll(list);\n ArrayList<WatchedEquity> watched = controller.getUser().watchedEquities;\n for (Equity e : list) {\n for (WatchedEquity we : watched) {\n if (e.getTickerSymbol().equals(we.getSymbol())) {\n temp.remove(e);\n break;\n }\n }\n }\n return temp;\n }", "private ArrayList<Integer> remove_duplicates(ArrayList<Integer> l) {\n ArrayList<Integer> res = new ArrayList<Integer>();\n for (int i=0; i< l.size(); i++) {\n if (!(in(l.get(i), res))) {\n res.add(l.get(i));\n }\n }\n return res;\n }", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAllElementInsertionMaps()\n {\n list.removeAllElements();\n }", "public static void removeDuplicate(ArrayList<Integer>list) {\n \n //create a temporary arraylist\n ArrayList<Integer> tempList = new ArrayList<>();\n \n //loop thru the list and check if list contains the same integer/number/value as tempList\n for (int i = 0; i < list.size(); i++) {\n if (!tempList.contains(list.get(i))) {\n tempList.add(list.get(i));\n }\n }\n \n //clear the list\n list.clear();\n \n //add all integers/numbers/value from tempList into list\n list.addAll(tempList);\n \n }", "public void removeDuplication() {\r\n\t\t//checks if the array contains any elements\r\n\t\tif (!isEmpty()) {\t//contains elements\r\n\t\t\t//loop to execute for every element in the array\r\n\t\t\tfor (int i=0;i<size-1;i++) {\r\n\t\t\t\tObject element=list[i];\t//to store value of element in array\r\n\t\t\t\t//loop to execute for every element after the current element in the list\r\n\t\t\t\tfor (int j=i+1;j<size;j++) {\r\n\t\t\t\t\t//checks if there is are 2 elements in the list with the same value\r\n\t\t\t\t\tif (element==list[j]) {\r\n\t\t\t\t\t\tremove(j);\t//calls function to remove that element from array\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\t//contains 0 elements\r\n\t\t\tSystem.out.println(\"List is empty!\");\r\n\t\t}\r\n\t}", "public void removeAll(String c) {\r\n int[] elements = new int[(c.length() / 2) + 1];\r\n if (containsAll(c)) {\r\n for (int i = 0; i < elements.length; i++) {\r\n elements[i] = Integer.parseInt(c.substring(0, c.indexOf(\",\")));\r\n c = c.substring((c.indexOf(\",\") + 1));\r\n remove(elements[i]);\r\n }\r\n } else {\r\n throw new RuntimeException(\"some or all elements dont exist in List.\");\r\n }\r\n }", "public void removeAll() {\n this.arrayList = null;\n this.arrayList = new ArrayList<>();\n }", "@Override\n public Collection<V> removeAll( K key ) {\n List<V> result = new ArrayList<V>(currentCountFor(key));\n ValueIterator values = new ValueIterator(key);\n while (values.hasNext()) {\n result.add(values.next());\n values.remove();\n }\n return result;\n }", "public void clearListNotIndex(){\n for(int z=0; z<list.length; z++){\n list [z] = 0;\n }\n }", "protected void removeDuplicates() {\n log.trace(\"Removing duplicated\");\n long startTime = System.currentTimeMillis();\n int initial = size();\n E last = null;\n int index = 0;\n while (index < size()) {\n E current = get(index);\n if (last != null && last.equals(current)) {\n if (log.isTraceEnabled()) {\n log.trace(\"Removing duplicate '\" + current + \"'\");\n }\n remove(index);\n } else {\n index++;\n }\n last = current;\n }\n log.debug(String.format(\"Removed %d duplicates from a total of %d values in %dms\",\n initial - size(), initial, System.currentTimeMillis() - startTime));\n }", "void clear() {\n\t\tfor (int list = getFirstList(); list != -1;) {\n\t\t\tlist = deleteList(list);\n\t\t}\n\t}", "public void\t\tremoveAll();", "private void removeLargeValues(ArrayList<Integer> myList)\n {\n // sort list to make removing values easy\n Collections.sort(myList);\n\n while (myList.size() > 1)\n {\n if (myList.get(myList.size() - 1) > 21)\n myList.remove(myList.size() - 1);\n else\n break;\n }\n }", "void removeAll();", "void removeAll();", "public void delAll(List list);", "public void removeAllElements();", "private List<String> removeEmptyLines(List<String> list) {\n for (int k1 = 0; k1 < list.size(); ++k1)\n {\n if (list.get(k1).isEmpty()) {\n list.remove(k1);\n }\n }\n return list;\n }", "private List<Coordinate> trim(List<Coordinate> list) {\n\n List<Coordinate> temp = new ArrayList<>();\n if (list.size() == 0) {\n return temp;\n }\n temp.add(list.get(0));\n for (int i = 1; i < list.size(); i++) {\n if (list.get(i - 1).equals(list.get(i))) {\n continue;\n }\n temp.add(list.get(i));\n }\n return temp;\n }", "void removeAllEntries();", "public void reduce(List<T> list) {\n\t\tfor(int i = 1; i < list.size(); i++) {\n\t\t\tif(list.get(i) == null || list.get(i-1) == null) continue;\n\t\t\tint hash = list.get(i-1).hashCode();\n\t\t\tif(!rule.containsKey(hash)) continue;\n\t\t\tif(rule.get(hash).contains(list.get(i))) {\n\t\t\t\tlist.remove(i);\ti--;\n\t\t\t}\n\t\t}\n\t}", "private static void clearValues(final ArrayList<Integer[]> arrays)\n {\n arrays.clear();\n\n for (int x = 0; x < NUM_FILTERS; x++)\n {\n final Integer[] array = new Integer[NUM_STATISTICS];\n Arrays.fill(array, 0);\n arrays.add(array);\n }\n }", "void clear(int list) {\n\t\tint last = getLast(list);\n\t\twhile (last != nullNode()) {\n\t\t\tint n = last;\n\t\t\tlast = getPrev(n);\n\t\t\tfreeNode_(n);\n\t\t}\n\t\tm_lists.setField(list, 0, -1);\n\t\tm_lists.setField(list, 1, -1);\n\t\tsetListSize_(list, 0);\n\t}", "@Test\n public void testRemoveAll_Not_Empty() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(1);\n instance.add(2);\n\n Collection c = Arrays.asList(2, 3);\n instance.removeAll(c);\n\n int expectedResult = 1;\n assertEquals(expectedResult, instance.size());\n\n }", "void remove(int v){\n if(isEmpty()!=1){\n for(int i=0;i<size;i++){\n if(values[i]==v){\n int j = i;\n while((j+1)!=size){\n values[j] = values[j+1];\n j++;\n\n }\n values[j] = (-1);\n break;\n }\n }\n }\n }", "public static List<String> noX(List<String> list) {\n\t\treturn list.stream().map(s -> s.replace(\"x\", \"\"))\n\t\t\t\t\t\t\t.collect(Collectors.toList());\n\t}", "public void removeAll() {\n _hash = new Hashtable();\n _first = null;\n _last = null;\n }", "@Test\n public void testRemoveAll_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n\n Collection c = Arrays.asList(2, 3);\n boolean expectedResult = true;\n boolean result = instance.removeAll(c);\n\n assertEquals(expectedResult, result);\n\n }", "@Test\n public void testRemoveAll_Not_Empty_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(1);\n instance.add(2);\n\n Collection c = Arrays.asList(2, 3);\n instance.removeAll(c);\n\n int expectedResult = 1;\n assertEquals(expectedResult, instance.size());\n\n }", "@Test\r\n\tpublic void testRemoveAll() {\r\n\t\tDoubleList sample = new DoubleList(new Munitions(2, 3, \"iron\"));\r\n\t\tsample.add(new Munitions(new Munitions(3, 4, \"iron\")));\r\n\t\tAssert.assertTrue(list.removeAll(sample));\r\n\t\tAssert.assertFalse(list.removeAll(sample));\r\n\t\tAssert.assertEquals(13, list.size());\r\n\t}", "@Test\n public void testRemoveAll() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n\n Collection c = Arrays.asList(2, 3);\n boolean expectedResult = true;\n boolean result = instance.removeAll(c);\n\n assertEquals(expectedResult, result);\n\n }", "private void removeEmptyTokens(ArrayList<String> tokens) {\n Iterator<String> it = tokens.iterator();\n while (it.hasNext()) {\n if (it.next().equals(\"\")) {\n it.remove();\n }\n }\n }", "public void removeAll(Object element);", "public void clear() {\n duplicates.clear();\n }", "public void clear() {\n synchronized (LOCK) {\n myValues.clear();\n }\n }", "public void removeAllItems ();", "private void removePressed() {\n\t\ts = allMedia.getSelectedValuesList();\n\t\t// now remove all the value that are in the list from the default list model\n\t\tfor(Object o : s){\n\t\t\tif(l.contains(o)){\n\t\t\t\tl.removeElement(o);\n\t\t\t}\n\t\t}\n\t}", "@Override\n public void clear() {\n for (E e : this) {\n remove(e);\n }\n }", "public void removeAll() {\n\t\tsynchronized (mNpcs) {\n\t\t\tmNpcs = Collections.synchronizedList(new ArrayList<Npc>());\n\t\t\tmDemonCount = 0;\n\t\t\tmHumanCount = 0;\n\t\t}\n\t}", "@Test\n public void testList(){\n ArrayList<Integer> integers = Lists.newArrayList(1, 2, 3, 4);\n ArrayList<Integer> integers2 = Lists.newArrayList(1, 2, 3, 4, 5);\n// integers2.removeAll(integers);\n// System.out.println(integers2);\n integers2.retainAll(integers);\n System.out.println(integers2);\n }", "void unsetListOfServiceElements();", "abstract public void removeAll();", "private List<MutateOperation> removeAll() {\n return removeDescendantsAndFilter(rootResourceName);\n }", "public void clear() {\n values.clear();\n }", "private void removeFromList(Visit visit){\n\t\tfor (int i=0; i<searchResults.size(); i++) {\n\t\t\tif(searchResults.get(i).getClientRegNo().equals(visit.getClientRegNo())\n\t\t\t\t\t&& searchResults.get(i).getPropertyRegNo().equals(visit.getPropertyRegNo())\n\t\t\t\t\t&& searchResults.get(i).getDate().equals(visit.getDate())){\n\t\t\t\tsearchResults.remove(i);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\t\n\t\t}\n\t}", "@Override\r\n\tpublic void remove(List<GroupMember> list) {\n\t\tfor(int i = 0;i<list.size();i++)\r\n\t\t\tremove(list.get(i));\r\n\t}", "public static void collapseDuplicates( ArrayList<Integer> L ) { \n\tfor (int i = 1; i < L.size();) {\n\t if (L.get(i).equals(L.get(i - 1))) {\n\t\tL.remove(i - 1);\n\t } else {\n\t\ti++;\n\t }\n\t}\n }", "@Override\npublic void removeAll(Collection<Integer> collection) {\n\t\n}", "public static void removeEvens(ArrayList<Integer> list)\n {\n /*\n * size method returns the number of elements in the list\n */\n //int size = list.size();//valid way to ge the size\n \n for(int i = 0; i < list.size(); )\n {\n /*\n * get method return the value of the elemtne at the index\n * list get smaller, elements are \"shifted left\"\n */\n int value = list.get(i);\n if( value %2 == 0)\n {\n /*\n * remove method deletes the element at the specified index\n */\n list.remove(i);\n //i--;// if remove move index back one to compensate\n }\n else//only increase i if you don't remove\n {\n i++;\n }\n }\n }", "private void clearAll( )\n {\n for( Vertex v : vertexMap.values( ) )\n v.reset( );\n }", "public void removeAllEntries() {\n }", "public void clear() {\n \tIterator<E> iterateSet = this.iterator();\n \t\n \twhile(iterateSet.hasNext()) {\n \t\t// iterate through and remove all elements\n \t\titerateSet.next();\n \t\titerateSet.remove();\n \t}\n }", "public static <T> List<T> eliminateDuplicates(final List<T> list) {\n return list.stream().distinct().collect(Collectors.toList());\n }", "public void clear(){\n\n \tlist = new ArrayList();\n\n }", "private Node removeDuplicate() {\n ArrayList<Integer> values = new ArrayList<Integer>();\n int len = this.getlength();\n Node result = this;\n\n if (len == 1) {\n System.out.println(\"only one element can't duplicate\");\n return result;\n } else {\n Node current = result;\n\n for (int i = 0; i < len; i++) {\n if (values.contains(current.value)) {\n result = result.remove(i);\n len = result.getlength();\n i--; // reset the loop back\n current = current.nextNode;\n } else {\n values.add(current.value);\n current = current.nextNode;\n }\n }\n return result;\n }\n }", "public void removeAll(ArrayList<Integer> ruleNrs){\n\t\tList<Rule> toRemove = new ArrayList<Rule>();\n\t\tfor(int i=0;i<ruleNrs.size();i++){\n\t\t\ttoRemove.add(rules.get(ruleNrs.get(i) - 1));\n\t\t}\n\t\tremoveAll(toRemove);\n\t}", "@Override\n\tpublic void deleteAll(int pValueToDelete) {\n\t\twhile (find(pValueToDelete) != -1) {\n\t\t\tdelete(pValueToDelete);\n\t\t}\n\n//\t\tif (duplicatesAllowed == false) {\n//\t\t\tdelete(pValueToDelete);\n//\t\t} else {\n//\t\t\tfor (int n = 0; n < pointer; n++) {\n//\t\t\t\tif (values[n] == pValueToDelete) {\n//\t\t\t\t}\n//\t\t\t}\n//\t\t}\n\t}", "void unsetMultiple();", "public void clear() {\n list = new Object[MIN_CAPACITY];\n n = 0;\n }", "@Test\r\n public void removeAll() throws Exception {\r\n\r\n TreeSet<Integer> check = new TreeSet<>();\r\n check.addAll(sInt);\r\n ArrayList<Integer> l = new ArrayList<>();\r\n l.add(4);\r\n l.add(2);\r\n check.removeAll(l);\r\n assertFalse(check.containsAll(l));\r\n assertFalse(check.contains(2));\r\n assertFalse(check.contains(4));\r\n assertTrue(check.contains(1));\r\n assertTrue(check.contains(3));\r\n assertTrue(check.contains(5));\r\n }", "@Test\n public void testRemoveAll_Size() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n\n Collection c = Arrays.asList(2, 3);\n instance.removeAll(c);\n\n int expectedResult = 0;\n assertEquals(expectedResult, instance.size());\n\n }", "@Test\n public void testRemoveAll_Size_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n\n Collection c = Arrays.asList(2, 3);\n instance.removeAll(c);\n\n int expectedResult = 0;\n assertEquals(expectedResult, instance.size());\n\n }", "public void removeDuplitcate(List<Integer> a)\n\t{\n\t\tif(a==null ||a.size()==0 ) return ;\n\t\t\n\t\tHashMap<Integer, Integer> hm = new HashMap<Integer, Integer>();\n\t\t\n\t\tfor(int i=a.size()-1;i>=0;i--)\n\t\t{\n\t\t\tif(hm.containsKey(a.get(i)))\n\t\t\t{\n\t\t\t\ta.remove(i);\n\t\t\t}\n\t\t\telse hm.put(a.get(i), 1);\n\t\t}\n\t}", "public void remove() {\n if (count == 0) {\n return;\n }\n \n Random rand = new Random();\n int index = rand.nextInt(count);\n for (int i = index; i < count - 1; i++) {\n list[i] = list[i+1];\n }\n count--; \n }", "public List<VaccineDetails> removeDuplicates(final List<VaccineDetails> list)\n {\n\n Set<VaccineDetails> carSet = new HashSet<VaccineDetails>();\n for (VaccineDetails car : list) {\n carSet.add(car);\n }\n List<VaccineDetails> withoutDuplicates = new ArrayList<VaccineDetails>(carSet);\n\n return withoutDuplicates;\n }", "public void removeAllElements() {\n for (int i = 0; i < OLast; i++) O[i] = null;\n ON = OLast = 0;\n Gap = -1;\n }", "@Override\n\tpublic void clear() {\n\t\t\n\t\tsuperset.removeRange(lower, upper, fromInclusive, toInclusive);\n\t\t\n\t\t//Alternative direct implementation:\n\t\t//while (pollFirst() != null) {\n\t\t//}\n\t\t\n\t}", "public void removeAll(String s) {\n for (int i = 0; i < size; i++) {\n if (elements[i] == s) {\n elements[i] = null;\n }\n }\n }", "private List<AxiomTreeNode> reduceNodeList(List<AxiomTreeNode> list, int remove) {\n\n List<AxiomTreeNode> reduced = new ArrayList<AxiomTreeNode>(list);\n\n reduced.remove(remove);\n\n return reduced;\n }", "public static void removeDuplicatesWithoutBuffer(LinkedList list)\n\t{\n\t\t//**Needs only two pointers**//\n\t\tNode current = list.getHead();\n\t\twhile(current != null && current.getNext() != null)\n\t\t{\n\t\t\tNode temp = current;\n\t\t\twhile(temp.getNext() != null)\n\t\t\t{\n\t\t\t\tif(current.getData() == temp.getNext().getData())\n\t\t\t\t{\n\t\t\t\t\ttemp.setNext(temp.getNext());\n\t\t\t\t\ttemp.setNext(temp.getNext().getNext());;\n\t\t\t\t} \n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\ttemp = temp.getNext();\n\t\t\t\t}\n\t\t\t}\n\t\t\tcurrent = current.getNext();\n\t\t}\n\t}", "public void clear()\n {\n int llSize = ll.getSize();\n for(int i=0; i<llSize; i++){\n ll.remove(0);\n }\n }", "public void removeAll() {\n start = null;\n _size = 0;\n }", "private void clean() {\n //use iterator\n Iterator<Long> it = nodes.keySet().iterator();\n while (it.hasNext()) {\n Long node = it.next();\n if (nodes.get(node).adjs.isEmpty()) {\n it.remove();\n }\n }\n }", "public void removeAll()\n {\n this.front = null;\n this.rear = null;\n }", "private static void removeCurrentColors(){\n\t\tIterator<ArrayList<Peg>> itr = possibleCombinations.iterator();\n\t\twhile(itr.hasNext()){\n\t\t\tArrayList <Peg> victim=itr.next();\n\t\t\tfor(int i=0; i<aiGuess.size(); i++){\n\t\t\t\t\n\t\t\t\tif(victim.contains(aiGuess.get(i))){\n\t\t\t\t\titr.remove();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public List<Integer> removeNumber(List<Integer> numbers) {\n List<Integer> result = new ArrayList<>();\n for (int number : numbers) {\n if (number != 7) {\n result.add(number);\n }\n }\n return result;\n }", "public static void main(String[] args) {\n\n ArrayList<Integer> arrayList=new ArrayList<>();\n\n arrayList.add(1);\n arrayList.add(1);\n arrayList.add(2);\n arrayList.add(5);\n\n\n System.out.println(arrayList);\n System.out.println(arrayList.remove(1));\n System.out.println(arrayList);\n\n }", "public static void clearList(ArrayList<Student> sList){\n\t\tsList.clear();\n\t}", "void unsetUnordered();", "public void clearConcertList(){\n concertList.clear();\n }", "@Override\n public void clear() {\n for (LinkedList<Entry<K,V>> list : table) {\n list = null;\n }\n }", "private void clearLists(){\r\n\t\tfor(int i=0; i<potentialFriends.length; i++){\r\n\t\t\tpotentialFriends[i] = null;\r\n\t\t}\r\n\t\tfor(int i=0; i<mutualNum.length; i++){\r\n\t\t\tmutualNum[i] = -1;\r\n\t\t}\r\n\t}", "public void clearAll();", "public void clearAll();", "@Override\n public void Clear() {\n for (int i = 0; i < array.size(); i++) {\n array.remove(i);\n\n }//Fin del for\n }" ]
[ "0.6639631", "0.6507789", "0.63582087", "0.6356254", "0.63504463", "0.6336836", "0.6314781", "0.6314781", "0.6314781", "0.6314781", "0.6314781", "0.6314781", "0.6314781", "0.6314781", "0.6314781", "0.6314781", "0.6314781", "0.6314781", "0.6300363", "0.62967914", "0.6266169", "0.6252558", "0.6244538", "0.6217716", "0.6198025", "0.6197544", "0.6173073", "0.61092085", "0.61025745", "0.61019784", "0.61019784", "0.61015314", "0.60805917", "0.6063905", "0.6047287", "0.6028718", "0.6028135", "0.6002352", "0.5971931", "0.5954388", "0.5932308", "0.5923547", "0.59098345", "0.59001064", "0.589608", "0.5889608", "0.5888936", "0.58605033", "0.58550555", "0.584127", "0.5818456", "0.58144575", "0.5808223", "0.5794559", "0.5777957", "0.57716954", "0.57693475", "0.57658416", "0.5762956", "0.5750961", "0.5750635", "0.57457113", "0.5738768", "0.57284164", "0.57199854", "0.5715491", "0.56949204", "0.5684455", "0.56822056", "0.56546754", "0.5652842", "0.565025", "0.5646175", "0.5643076", "0.56419814", "0.5639403", "0.5637593", "0.56344193", "0.56241447", "0.56238705", "0.5616291", "0.56121695", "0.5609997", "0.5608377", "0.56047875", "0.560089", "0.55992925", "0.5597926", "0.5589928", "0.55871147", "0.5586741", "0.5584221", "0.5566814", "0.5555628", "0.55523896", "0.55409855", "0.55318445", "0.55316854", "0.55248374", "0.55248374", "0.5521337" ]
0.0
-1
Appends to the end of List, irrespective of value already existing. See addToFollowedUsers to add without duplicating.
public void appendToFollowedUsers(String followedUsers);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addToFollowedUsers(List<String> followedUsers);", "public void appendToFollowedUsers(List<String> followedUsers);", "public void addToFollowedUsers(String followedUsers);", "public void addFollowings(String following) {\n\tuserFollowings.add(following);\n }", "public void addFollower(Follower follower) {\n follower_list.add(follower);\n }", "public void addFollowers(String follower) {\n\tuserFollowers.add(follower);\n }", "public void addFollower(String follower, String following) {\n for (User u : users) {\n System.out.println(\"iterating: \" + u.getName() + \" : \" + following);\n if (u.getName().equals(follower)) {\n for (String f : u.getFollowers()) {\n\n if (f.equals(following)) {\n System.out.println(\"ENDDDDD\");\n return;\n }\n }\n System.out.println(\"adding follower!!!!!!!!\");\n getUser(follower).addFollower(following);\n }\n }\n }", "private void addFriendList(People value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureFriendListIsMutable();\n friendList_.add(value);\n }", "public void addToEnd(String value) {\n ListElement current = new ListElement(value);\n if (count == 0) {\n head = current;\n } else {\n tail.connectNext(current);\n }\n tail = current;\n count++;\n }", "@Override\n\t\tpublic void onUserListMemberAddition(User arg0, User arg1, UserList arg2) {\n\t\t\t\n\t\t}", "@Override\n\tpublic void onUserListMemberAddition(User addedMember, User listOwner, UserList list) {\n\n\t}", "public void addFriendList(FriendList list);", "private static final <T> List<T> append(List<T> list, T newElement) {\n List<T> newList = Lists.newArrayListWithCapacity(list.size() + 1);\n newList.addAll(list);\n newList.add(newElement);\n return newList;\n }", "public void more(User[] users, String next) {\n this.next = next;\n int count = users.length;\n for(int i=0; i< count; i++) {\n this.mList.add(users[i]);\n }\n this.notifyDataSetChanged();\n }", "public void add(User user) {\r\n this.UserList.add(user);\r\n }", "private void addUsers(List<String> userList, SubscriptionList subscriptionList, SubscriptionEventType eventType) {\n\t\tSubscription subscription = null;\n\t\t\n\t\tfor (Subscription s : subscriptionList.getSubscription()) {\n\t\t\tif (s.getEventType() == eventType) {\n\t\t\t\tsubscription = s;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (subscription != null) {\n\t\t\tfor (String userId : subscription.getUser()) {\n\t\t\t\tif (!userList.contains( userId )) {\n\t\t\t\t\tuserList.add( userId );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private void addAllFriendList(\n Iterable<? extends People> values) {\n ensureFriendListIsMutable();\n com.google.protobuf.AbstractMessageLite.addAll(\n values, friendList_);\n }", "private void updateUserList() {\n\t\tUser u = jdbc.get_user(lastClickedUser);\n\t\tString s = String.format(\"%s, %s [%s]\", u.get_lastname(), u.get_firstname(), u.get_username());\n\t\tuserList.setElementAt(s, lastClickedIndex);\n\t}", "public void addUser(ArrayList<Player> list,String U,String F,String G) {\r\n\t\tboolean flag = true;\r\n\t\tIterator<Player> aa = list.iterator();\r\n\t\twhile (aa.hasNext()) {\r\n\t\t\tPlayer in = aa.next();\r\n\t\t\tif(in.getUserName().equals(U)){\r\n\t\t\t\tSystem.out.println(\"The player already exists.\");\r\n\t\t\t\tflag =false;\r\n\t\t\t\treturn;\r\n\t\t\t}\t\r\n\t\t}\r\n\t\t\r\n\t\tif(flag)\r\n\t\t\tlist.add(new NimPlayer(U,F,G,0,0,\"Human\"));\r\n\t\tSystem.out.println(\"\");\r\n\t}", "private void addFriendList(\n int index, People value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureFriendListIsMutable();\n friendList_.add(index, value);\n }", "public void push(E value) {\n list.addLast(value);\n index++;\n }", "public void addToRecentMeetings (long user_id) {\n \tthis.recentMeetings.add(user_id);\n \tif (this.recentMeetings.size() > 5) {\n \t\tthis.recentMeetings.remove(0);\n \t}\n \tthis.save();\n }", "public HPTNode<K, V> append(V value) {\n if (values == null) {\n values = new ArrayList<>(2);\n }\n values.add(value);\n return this;\n }", "public void addUser() {\n\t\tthis.users++;\n\t}", "public void addLast(T listItem) {\n add(listItem);\n }", "public void append(int nodeValue)\n {\n ListNode newNode = new ListNode(nodeValue);\n\n // Check if the head is null\n if(this.head == null && this.tail == null)\n {\n this.head = newNode;\n this.tail = newNode;\n } else {\n\n ListNode currNode = this.head;\n ListNode prevNode = this.head;\n\n // Traverse the list\n while(currNode.getNextNode() != null)\n {\n // System.out.println(\"STUCK\");\n // System.out.println(\"CURRENT NODE VALUE: \" + currNode.getValue());\n // System.out.println(\"NEXT NODE FROM CURRENT: \" + currNode.getNextNode().getValue());\n prevNode = currNode;\n currNode = currNode.getNextNode();\n \n }\n\n // Wire the two nodes together\n currNode.setNextNode(newNode);\n newNode.setPrevNode(currNode);\n this.tail = newNode;\n }\n\n this.size = size + 1;\n\n }", "@Override\n\tpublic RDFList append( final RDFList list ) throws AccessDeniedException;", "private void addFriendList(\n People.Builder builderForValue) {\n ensureFriendListIsMutable();\n friendList_.add(builderForValue.build());\n }", "private void addToChatList(Chat[] newChats){\n if ( newChats == null || newChats.length == 0 ) {\n return;\n }\n if ( chatList.size() == 0 ) { // no chat history loaded yet\n for ( Chat chat : newChats ) {\n chatList.offer(chat);\n }\n headIndex = newChats[0].id; // update the tail index\n tailIndex = newChats[newChats.length-1].id; // update the tail index\n } else if ( newChats[newChats.length-1].id < chatList.get(0).id ) { // new.tail is prior to current.head\n // prepend the new chats to the head of the current chat\n int selection = lv_chat.getFirstVisiblePosition();\n selection += newChats.length;\n for ( int i = newChats.length-1; i >= 0; i-- ) {\n chatList.push(newChats[i]);\n }\n lv_chat.setSelection(selection);\n adapter.notifyDataSetChanged();\n Log.d(TAG,\"select:\"+selection);\n headIndex = newChats[0].id; // update the headIndex\n } else if ( newChats[0].id > chatList.get(chatList.size()-1).id ) { // new.head is after current.tail\n // append the new chats to the tail of the current chat\n for ( Chat chat : newChats ) {\n chatList.offer(chat);\n }\n tailIndex = newChats[newChats.length-1].id; // update the tail index\n } else {\n Log.e(TAG,\"Loaded duplicated chat!\");\n }\n }", "protected void addToTail(T val)\n\t{\n\t\tListElement<T> newElm = new ListElement<T>(val, null, tail);\n\t\t\n\t\tif(tail != null)\n\t\t\ttail.setNext(newElm);\n\t\telse\n\t\t\t//If list was empty befor addition\n\t\t\thead = newElm;\n\t\t\t\n\t\ttail = newElm;\n\t}", "List<User> addUsersToShowableList(UserListRequest userListRequest);", "private void addUser(People value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureUserIsMutable();\n user_.add(value);\n }", "public boolean addUsers(List<User> users);", "public void appendUser(String str) {\n\t\tDefaultListModel<String> listModel = (DefaultListModel<String>) userList.getModel();\n\t\tlistModel.addElement(str);\n\t}", "private void addAllUser(\n Iterable<? extends People> values) {\n ensureUserIsMutable();\n com.google.protobuf.AbstractMessageLite.addAll(\n values, user_);\n }", "public ArrayList<Follower> getFollower_list(){\n return follower_list;\n }", "public void setFollowing(ArrayList<Following> followings) {\n following_list = followings;\n }", "private void addToArrayList(String getName) {\n\t\tUser newUser = new User(getName);\n\t\tmgUsr.arrList.add(newUser);\n\t\tobs = FXCollections.observableArrayList(mgUsr.arrList);\n\n\t\tsetOnListView();\n\t}", "@Override\r\n public void onClick(View view) {\n String userName = entries.get(position);\r\n // TODO: ADD THE USER TO THE FOLLOWERS LIST\r\n entries.remove(position);\r\n notifyItemRemoved(position);\r\n notifyItemRangeChanged(position, entries.size());\r\n User user = AppLocale.getInstance().getUser();\r\n new ElasticSearch().acceptFollow(user, userName);\r\n Toast.makeText(mContext, \"Accepted : \" + u, Toast.LENGTH_SHORT).show();\r\n }", "@Override\n public void run() {\n chatListAdapter.add(sendToOthers);\n chatListAdapter.notifyDataSetChanged();\n getListView().setSelection(chatListAdapter.getCount() - 1);\n }", "public void add(String fullName, String username, String password, String accType, String email, String salary){\n\t\t\n\t\t// Determine position where new User needs to be added\n\t\tUser marker = new User();\t\t\t\t\t\t\t\t\t/* ====> Create a marker */\n\t\tmarker = this.getHead();\t\t\t\t\t\t\t\t\t/* ====> Set the marker at the beginning of the list */\n\t\t\n\t\t// Check if the list contains only the head\n\t\tif(marker.getNext()!= null){\n\t\tmarker = marker.getNext();\t\t\t\t\t\t\t\t\t/* ====> If not then skip the head */\n\t\t}\n\t\t\n\t\t\n\t\t/*Iterate through the whole list and compare Strings. Move the marker until it reaches the end or until the input\n\t\t * username is greater than the marker's username . */\n\t\twhile((marker.getNext() != null) && (username.compareTo(marker.getUsername())>0)){\n\t\t\t\t\tmarker = marker.getNext();\n\t\t\t\t}\t\t\n\t\t\n\t\t/* When marker finds a user whose username is greater than the input it moves the marker back a position so that the new\n\t\t * user can be appended to that marker */\n\t\tif(marker.getPrev() != null){\n\t\t\t\tif(username.compareTo(marker.getUsername())<0){\n\t\t\t\t\tmarker = marker.getPrev();\n\t\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t// Create new user with the method's parameters as properties. Append it to the marker\n\t\tUser newUser = new User(marker.getNext(), marker);\n\t\tnewUser.setFullName(fullName);\n\t\tnewUser.setUsername(username);\n\t\tnewUser.setPassword(password);\n\t\tnewUser.setAccType(accType);\n\t\tnewUser.setEmail(email);\n\t\tnewUser.setSalary(salary);\n\t\t\n\t\t// Set connections to the new User\n\t\tnewUser.getPrev().setNext(newUser);\n\t\tif(newUser.getNext() != null){\n\t\tnewUser.getNext().setPrev(newUser);\n\t\t}\n\n\t}", "public void append(E it) {\r\n\t\ttail = tail.setNext(new Link<E>(it, null));\r\n\t\tcnt++;\r\n\t}", "private void addAll(User[] users) {\n synchronized (this.base) {\n Stream.of(users).forEach(this::add);\n }\n }", "public Builder addFriendList(People value) {\n copyOnWrite();\n instance.addFriendList(value);\n return this;\n }", "public void appendList(ElementList<E> listToAppend) {\r\n\t\tif (listToAppend.first() != null) {\r\n\t\t\tif (last != null) {\r\n\t\t\t\tlast.next = listToAppend.first();\r\n\t\t\t\tlast = listToAppend.last();\r\n\t\t\t} else {\r\n\t\t\t\theader.next = listToAppend.first();\r\n\t\t\t\tlast = listToAppend.last();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n public void add(User member) {\n super.add(member);\n members.add(member);\n }", "public void addFriend(Profile p)\n {\n\n friendslist.add(p);\n }", "public void addRecentVisited(int position) {\n SharedPreferences sharedPref1 = getContext().getSharedPreferences(\"recentVisited\", Context.MODE_PRIVATE);\n Boolean removeOld=false;\n int toRemove=0;\n Log.d(\"size\", userName.size()+\"\");\n int count = sharedPref1.getInt(\"size\",0);\n for(int i=0;i<count+1;i++){\n\n // checks if user is in shared preferences.\n if(Objects.equals(sharedPref1.getString(\"uid_\" + i, \"null\"), uid.get(position))){\n toRemove=i;\n removeOld=true;\n }\n }\n SharedPreferences.Editor editor = sharedPref1.edit();\n if(removeOld){\n editor.remove(\"uid_\"+toRemove);\n editor.remove(\"name_\"+toRemove);\n }\n editor.putInt(\"size\",(count+1));\n editor.putString(\"name_\" + (count+1), userName.get(position));\n editor.putString(\"uid_\" + (count+1), uid.get(position));\n\n editor.apply();\n\n }", "@Override\r\n\tpublic void insert(FollowUp followup) {\n\t\t\r\n\t}", "List<User> getFollowersForUser(User user);", "public void appendData(T data){\n Node<T> newEnd = new Node<>(data); // new Node referenced by newEnd\n Node<T> thisNode = this; // grab this Node\n\n // traverse list and append to the tail\n while (thisNode.next != null){\n thisNode = thisNode.next;\n }\n thisNode.next = newEnd;\n }", "private void addUserAsMarker() {\n firestoreService.findUserById(new OnUserDocumentReady() {\n @Override\n public void onReady(UserDocument userDocument) {\n if(userDocument != null && userDocument.getUserid().equals(preferences.get(\"user_id\",0L))) {\n String id = preferences.get(DOCUMENT_ID, \"\");\n //Add current user to ListInBounds\n userDocumentAll.setDocumentid(id);\n userDocumentAll.setUsername(userDocument.getUsername());\n userDocumentAll.setPicture(userDocument.getPicture());\n userDocumentAll.setLocation(userDocument.getLocation());\n userDocumentAll.setFollowers(userDocument.getFollowers());\n userDocumentAll.setIsvisible(userDocument.getIsvisible());\n userDocumentAll.setIsprivate(userDocument.getIsprivate());\n userDocumentAll.setIsverified(userDocument.getIsverified());\n userDocumentAll.setUserid(userDocument.getUserid());\n userDocumentAll.setToken(userDocument.getToken());\n oneTimeAddableList.add(userDocumentAll);\n }\n }\n\n @Override\n public void onFail() {\n\n }\n\n @Override\n public void onFail(Throwable cause) {\n\n }\n });\n\n }", "public void addMeetingFollowupItem(MeetingFollowupItem mfi)\n throws Exception\n {\n }", "public void append(int data) {\r\n ListNode temp = head;\r\n while(temp.next !=null) {\r\n temp = temp.next;\r\n }\r\n ListNode new_node = new ListNode(data);\r\n temp.next=new_node;\r\n }", "public void append(Object item);", "@Override\n\tpublic void onUserListUpdate(User listOwner, UserList list) {\n\n\t}", "void append(E data) {\n Node<E> node = new Node<>(data);\n if (isNull(head)) {\n head = node;\n return;\n }\n\n Node<E> last = head;\n while (nonNull(last.next)) {\n last = last.next;\n }\n\n last.next = node;\n node.previous = last;\n }", "public void append(int value) {\n\t\t\n\t\tNode temp = new Node(value);\n\t\t\n\t\t// no node available therefore this is 1st node\n\t\tif(this.head == null) {\n\t\t\thead = temp;\n\t\t}\n\t\t// 1 and more than one node available\n\t\telse {\n\t\t\tNode it = this.head; // it pointed to head pointed\n\t\t\twhile(it.next != null) { //it++ up to it.next get null\n\t\t\t\tit = it.next;\n\t\t\t}\n\t\t\t// it pointed to last node\n\t\t\tit.next = temp; // insert value at last\n\t\t\ttemp.next = null;\n\t\t}\n\t}", "public void addFriend() {\n\n /* if (ageOK == true) {\n for (int i = 0; i < listRelationships.size(); i++) {\n if (firstFriend.equalsIgnoreCase(list.get(i).getFirstFriend())) {\n listRelationships.get(i).setFriends(secondFriend);\n System.out.println(listRelationships.get(i));\n System.out.println();\n\n } else if (secondFriend.equalsIgnoreCase(list.get(i).getSecondFriend())) {\n listRelationships.get(i).setFriends(firstFriend);\n System.out.println(listRelationships.get(i));\n System.out.println();\n }\n }\n } */\n }", "Data<List<User>> getFollowers();", "@Override\n\t\tpublic void onUserListUpdate(User arg0, UserList arg1) {\n\t\t\t\n\t\t}", "public static void adder(DoctorInformation NewUser) {\n int hola = 0;\n for (int i = 0; i < doctorsList.size(); i++) {\n String useremail = NewUser.getEmail();\n if (useremail.equals(doctorsList.get(i).getEmail())) {\n if (NewUser.getPassword().equals(doctorsList.get(i).getPassword())) {\n doctorsList.set(i, NewUser);\n hola = 1;\n }\n }\n }\n if (hola == 0) {\n doctorsList.add(NewUser);\n }\n }", "public void appendToList(int data){\r\n\t\tNode temp = head;\r\n\t\tNode new_node = new Node(data);\r\n\t\tif(head == null){\r\n\t\t\thead = new_node;\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\twhile(temp.next != null){\r\n\t\t\ttemp = temp.next;\r\n\t\t}\r\n\t\t\r\n\t\ttemp.next = new_node;\r\n\t\treturn;\r\n\t}", "public static void addFriendsList(String username, FriendsList friends)\r\n\t{\r\n\t\tfriendsLists.put(username, friends);\r\n\t}", "public void addValues(List newValues) {\n synchronized (values) {\n values.addAll(newValues);\n }\n }", "@Override\n public User addFollower(String followerName, String userToFollow) {\n int id = userDataMapper.addFollower(getUser(followerName).getId(), getUser(userToFollow).getId());\n if (id == -1)\n return null;\n return userDataMapper.getUserByID(id);\n }", "private void append_request(DataSnapshot dataSnapshot) {\n Iterator i = dataSnapshot.getChildren().iterator();\n //Go over all the requests\n while (i.hasNext()){\n\n //Add a new request iten to the list\n String message = (String) ((DataSnapshot)i.next()).getValue();\n String email = (String) ((DataSnapshot)i.next()).getValue();\n String newMessage= message ;\n //\" asked to join the group\"\n requestList.add(new requestItem(newMessage,email,activity_name));\n }\n request_item_adapter adapter = new request_item_adapter(this, R.layout.activity_request_item, requestList);\n //attaching adapter to the listview\n listView.setAdapter(adapter);\n }", "public void follow(int followerId, int followeeId) {\n if(!users.containsKey(followerId) && followerId != followeeId){ // If user is not in database\n HashSet<Integer> u_id = new HashSet<>();\n users.put(followerId, u_id);\n }\n users.get(followerId).add(followeeId); // Add the user and the followee to the hashmap\n }", "public void updateList(ArrayList<String> users) {\n System.out.println(\"Updating the list...\");\n listModel.removeAllElements();\n userArrayList = users;\n int index = userArrayList.indexOf(user);\n if(index >= 0) {\n \tuserArrayList.remove(index);\n }\n for(int i=0; i<userArrayList.size(); i++){\n\t\t System.out.println(\"Adding to GUI List: \" + userArrayList.get(i));\n\t\t listModel.addElement(userArrayList.get(i));\n }\n userList.repaint();\n \n if(listModel.size() == 0) {\n \tJOptionPane.showMessageDialog(null,\"There are no other members registered on the server.\");\n\t \tfrmMain.dispatchEvent(new WindowEvent(frmMain, WindowEvent.WINDOW_CLOSING));\n }\n }", "public void append(Integer data) {\n\t\t// Construct a node tmp and make null as the next pointer:Step1\n\t\tListNode tmp = new ListNode(data, null);\n\n\t\tif (!isEmpty()) {\n\t\t\t// make next pointer of tail as tmp :Step2\n\t\t\t tail.next = tmp;// tmp is new tail\n\t\t\t\n\t\t} else {\n\t\t\t// but if list is empty then the temp is the only element \n\t\t\t//and is new tail as wells as head[see next statement executed]\t\n\t\t\tthis.head = tmp;\n\t\t}\n\t\tthis.tail = tmp; // now make tmp the new tail:Step2\n\t\n\t\tlength++;\n\t}", "public boolean add (Object o) {return addLast(o);}", "@Override\n public void add(Object item)\n {\n if (size == list.length)\n {\n Object [] itemInListCurrently = deepCopy();\n list = new Object[size * 2];\n\n System.arraycopy(itemInListCurrently, 0, list, 0, size);\n }\n\n list[size++] = item;\n }", "public ArrayList<Following> getFollowing(){\n return following_list;\n }", "public void add(T value) {\n extend();\n this.list[size]=value;\n this.size++;\n }", "public RTWLocation append(Object... list);", "private void addUser(\n int index, People value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureUserIsMutable();\n user_.add(index, value);\n }", "public void addLast(Object item) {\r\n\t\tdata.add(item);\r\n\r\n\t}", "public void userListStart() {\n\t\tfor (int i = 0; i < userServices.getAllUsers().length; i++) {\n\t\t\tuserList.add(userServices.getAllUsers()[i]);\n\t\t}\n\t}", "void saveRealtimeListUsers(final RealtimeList realtimeList) {\n deleteRealtimeListUsers(realtimeList.getId());\n\n // Add in all of the entries.\n ejt.batchUpdate(\"insert into realtime_list_users values (?,?,?)\", new BatchPreparedStatementSetter() {\n @Override\n public int getBatchSize() {\n return realtimeList.getRealtimeListUsers().size();\n }\n\n @Override\n public void setValues(PreparedStatement ps, int i) throws SQLException {\n ShareUser wlu = realtimeList.getRealtimeListUsers().get(i);\n ps.setInt(1, realtimeList.getId());\n ps.setInt(2, wlu.getUserId());\n ps.setInt(3, wlu.getAccessType());\n }\n });\n }", "public void addValue(String listValue) {\n\t\tthis.listValues.add(listValue);\n\t}", "public void addLast(T value) {\n Node<T> node = new Node<T>(value);\n Node<T> prev = sentinel.prev;\n\n node.prev = prev;\n prev.next = node;\n sentinel.prev = node;\n node.next = sentinel;\n\n size += 1;\n }", "public void append(final T data) {\n Node<T> newNode = new Node<>(data);\n if (head == null) {\n head = newNode;\n } else {\n Node<T> iterator = head;\n while (iterator.getNext() != null) {\n iterator = iterator.getNext();\n }\n iterator.setNext(newNode);\n }\n numElement++;\n }", "public void addFollowingInstance(FlowNodeInstance flowNodeInstance) {\n\t\tthis.followingInstances.add(flowNodeInstance);\n\t}", "List<User> getFollowingForUser(User user);", "@RequestMapping(value= Constant.LIST_FOLLOW_BY_OTHER + Constant.WITHIN_ID , method = RequestMethod.POST)\n public ResponseEntity<RestAPIResponse> getListFollowByOther(\n HttpServletRequest request,\n @PathVariable(\"id\") String userId\n ) {\n\n List<FollowUser> followUserList = followUserService.getAllByFollowUserId(userId);\n\n List<Profile> usersProfile = new ArrayList<>();\n\n for (FollowUser user: followUserList) {\n\n Profile profile = profileService.getProfileByUserId(user.getId().getUserId());\n\n if(profile != null){\n usersProfile.add(profile);\n }\n }\n\n // Sorting\n usersProfile.sort(Comparator.comparing(Profile::getFirstName));\n\n return responseUtil.successResponse(usersProfile);\n }", "Data<List<User>> getFollowers(Integer limit);", "@Override\n\tprotected void getUserList(boolean isRefresh) {\n\t\tsuper.getUserList(isRefresh);\n\n\t\tDamiInfo.getFollowerList(mLogin.uid, searchHolder.getPage(), searchHolder.searchText, new MyListener(\n\t\t\t\tgetActivity(), isRefresh));\n\t}", "public UserDTOBuilder setFollowers(List<UserDTO> followers) {\n this.followers = followers;\n return this;\n }", "public void addMessageListBeforeLastOne(List<StringAndMessage> messageList){\n if(messageList.isEmpty()){\n //do nothing\n }\n if(this.messageListExpected.isEmpty()){\n this.messageListExpected.addAll(messageList);\n }\n else{\n this.messageListExpected.addAll(this.messageListExpected.size()- 1, messageList);\n }\n\n }", "public void followOrFriendUser(Author user) {\n\n switch (mSearchType) {\n case FOLLOW:\n mUser.addUserToList(Author.AuthorLists.FOLLOWING, user.firebaseId);\n user.addUserToList(Author.AuthorLists.FOLLOWERS, mUser.firebaseId);\n\n break;\n\n case FRIEND:\n mUser.addUserToList(Author.AuthorLists.SENT_REQUESTS, user.firebaseId);\n user.addUserToList(Author.AuthorLists.RECEIVED_REQUESTS, mUser.firebaseId);\n\n break;\n }\n }", "public void addUser(User user){\r\n users.add(user);\r\n }", "public Builder addFriendList(com.vine.vinemars.net.pb.SocialMessage.FriendObj value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureFriendListIsMutable();\n friendList_.add(value);\n\n return this;\n }", "public Builder addFriendList(\n com.vine.vinemars.net.pb.SocialMessage.FriendObj.Builder builderForValue) {\n ensureFriendListIsMutable();\n friendList_.add(builderForValue.build());\n\n return this;\n }", "public void follow(final int followerId, final int followeeId) {\n follows.computeIfAbsent(followerId, x -> new HashSet<>()).add(followeeId);\n }", "public void followUser(User user) \r\n\t{\n\t\tUser follow = user;\r\n\t\tthis.following.add(follow);//follows the user used as a parameter\r\n\t\tnotifyObservers(follow);//notifies observers of the user\r\n\t\tfollowers.add(follow);//adds you to their followers\r\n\t}", "public void addAll(List<Tweet> list) {\n tweetList.addAll(list);\n notifyDataSetChanged();\n }", "@Override\n\tpublic void onUserListCreation(User listOwner, UserList list) {\n\n\t}", "@Override\n\t\tpublic void onUserListCreation(User arg0, UserList arg1) {\n\t\t\t\n\t\t}", "private void checkFollowingUser() {\n Log.d(TAG, \"checkFollowingUser: Called\");\n FirebaseDatabase.getInstance().getReference().child(\"Follow\").child(FirebaseAuth.getInstance().getCurrentUser().getUid())\n .child(\"following\").addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot snapshot) {\n Log.d(TAG, \"onDataChange: Getting Following List\");\n followingList.clear();\n for(DataSnapshot dataSnapshot:snapshot.getChildren())\n {\n Log.d(TAG, \"onDataChange: getting following list\");\n followingList.add(dataSnapshot.getKey());\n }\n Log.d(TAG, \"onDataChange: going to read post for followings\");\n readPosts(); // get Following people post on Home Activity\n\n }\n @Override\n public void onCancelled(@NonNull DatabaseError error) {\n Log.d(TAG, \"onCancelled: Started\");\n\n }\n });\n }", "public static NodoListaS append(NodoListaS p1, NodoListaS p2) {\r\n\t\tNodoListaS r = new NodoListaS(null,null);\r\n\t\t// nodo generatore\r\n\t\tNodoListaS t = r;\r\n\t\tNodoListaS q = p1;\r\n\t\twhile (q != null) {\r\n\t\t\tt.next = new NodoListaS(q.info,null);\r\n\t\t\tq = q.next;\r\n\t\t\tt = t.next;\r\n\t\t}\r\n\t\tq = p2;\r\n\t\twhile (q != null) {\r\n\t\t\tt.next = new NodoListaS(q.info,null);\r\n\t\t\tq = q.next;\r\n\t\t\tt = t.next;\r\n\t\t}\r\n\t\treturn r.next;\r\n\t}" ]
[ "0.7512701", "0.7337031", "0.70146644", "0.67485136", "0.65677506", "0.6374346", "0.6308492", "0.6234582", "0.620164", "0.59965235", "0.58261347", "0.5813774", "0.5804054", "0.5793152", "0.5750822", "0.57082564", "0.5690002", "0.56554514", "0.564455", "0.5629281", "0.5626154", "0.56213886", "0.56138164", "0.5610638", "0.55876285", "0.55813885", "0.5579916", "0.55647594", "0.55605847", "0.55253196", "0.55224794", "0.55104077", "0.55057687", "0.5496909", "0.54659903", "0.5465193", "0.5455701", "0.5434308", "0.539103", "0.53787875", "0.53617746", "0.5345971", "0.53448534", "0.53314954", "0.53253543", "0.5320653", "0.5316718", "0.53164786", "0.5312629", "0.5307092", "0.53067595", "0.5306611", "0.5297829", "0.52860343", "0.5277651", "0.527731", "0.5273733", "0.5272513", "0.5267794", "0.52633375", "0.5261508", "0.52582717", "0.52460176", "0.52457714", "0.5242218", "0.524213", "0.5235294", "0.52339315", "0.5228866", "0.52271223", "0.5223215", "0.5221665", "0.5214012", "0.5207327", "0.51975447", "0.51951927", "0.51893383", "0.5186083", "0.51811814", "0.51708263", "0.51678187", "0.51645887", "0.51643425", "0.51630735", "0.5161298", "0.51607084", "0.5159499", "0.5154837", "0.5153646", "0.51526177", "0.5147", "0.5143944", "0.51303625", "0.5130303", "0.51289946", "0.51287526", "0.51283664", "0.51263046", "0.5125374", "0.5122095" ]
0.6607962
4
Appends to the end of List, irrespective of value already existing. See addToFollowedUsers to add without duplicating.
public void appendToFollowedUsers(List<String> followedUsers);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addToFollowedUsers(List<String> followedUsers);", "public void addToFollowedUsers(String followedUsers);", "public void addFollowings(String following) {\n\tuserFollowings.add(following);\n }", "public void appendToFollowedUsers(String followedUsers);", "public void addFollower(Follower follower) {\n follower_list.add(follower);\n }", "public void addFollowers(String follower) {\n\tuserFollowers.add(follower);\n }", "public void addFollower(String follower, String following) {\n for (User u : users) {\n System.out.println(\"iterating: \" + u.getName() + \" : \" + following);\n if (u.getName().equals(follower)) {\n for (String f : u.getFollowers()) {\n\n if (f.equals(following)) {\n System.out.println(\"ENDDDDD\");\n return;\n }\n }\n System.out.println(\"adding follower!!!!!!!!\");\n getUser(follower).addFollower(following);\n }\n }\n }", "private void addFriendList(People value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureFriendListIsMutable();\n friendList_.add(value);\n }", "public void addToEnd(String value) {\n ListElement current = new ListElement(value);\n if (count == 0) {\n head = current;\n } else {\n tail.connectNext(current);\n }\n tail = current;\n count++;\n }", "@Override\n\t\tpublic void onUserListMemberAddition(User arg0, User arg1, UserList arg2) {\n\t\t\t\n\t\t}", "@Override\n\tpublic void onUserListMemberAddition(User addedMember, User listOwner, UserList list) {\n\n\t}", "public void addFriendList(FriendList list);", "private static final <T> List<T> append(List<T> list, T newElement) {\n List<T> newList = Lists.newArrayListWithCapacity(list.size() + 1);\n newList.addAll(list);\n newList.add(newElement);\n return newList;\n }", "public void more(User[] users, String next) {\n this.next = next;\n int count = users.length;\n for(int i=0; i< count; i++) {\n this.mList.add(users[i]);\n }\n this.notifyDataSetChanged();\n }", "public void add(User user) {\r\n this.UserList.add(user);\r\n }", "private void addUsers(List<String> userList, SubscriptionList subscriptionList, SubscriptionEventType eventType) {\n\t\tSubscription subscription = null;\n\t\t\n\t\tfor (Subscription s : subscriptionList.getSubscription()) {\n\t\t\tif (s.getEventType() == eventType) {\n\t\t\t\tsubscription = s;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (subscription != null) {\n\t\t\tfor (String userId : subscription.getUser()) {\n\t\t\t\tif (!userList.contains( userId )) {\n\t\t\t\t\tuserList.add( userId );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private void addAllFriendList(\n Iterable<? extends People> values) {\n ensureFriendListIsMutable();\n com.google.protobuf.AbstractMessageLite.addAll(\n values, friendList_);\n }", "private void updateUserList() {\n\t\tUser u = jdbc.get_user(lastClickedUser);\n\t\tString s = String.format(\"%s, %s [%s]\", u.get_lastname(), u.get_firstname(), u.get_username());\n\t\tuserList.setElementAt(s, lastClickedIndex);\n\t}", "public void addUser(ArrayList<Player> list,String U,String F,String G) {\r\n\t\tboolean flag = true;\r\n\t\tIterator<Player> aa = list.iterator();\r\n\t\twhile (aa.hasNext()) {\r\n\t\t\tPlayer in = aa.next();\r\n\t\t\tif(in.getUserName().equals(U)){\r\n\t\t\t\tSystem.out.println(\"The player already exists.\");\r\n\t\t\t\tflag =false;\r\n\t\t\t\treturn;\r\n\t\t\t}\t\r\n\t\t}\r\n\t\t\r\n\t\tif(flag)\r\n\t\t\tlist.add(new NimPlayer(U,F,G,0,0,\"Human\"));\r\n\t\tSystem.out.println(\"\");\r\n\t}", "private void addFriendList(\n int index, People value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureFriendListIsMutable();\n friendList_.add(index, value);\n }", "public void push(E value) {\n list.addLast(value);\n index++;\n }", "public void addToRecentMeetings (long user_id) {\n \tthis.recentMeetings.add(user_id);\n \tif (this.recentMeetings.size() > 5) {\n \t\tthis.recentMeetings.remove(0);\n \t}\n \tthis.save();\n }", "public HPTNode<K, V> append(V value) {\n if (values == null) {\n values = new ArrayList<>(2);\n }\n values.add(value);\n return this;\n }", "public void addUser() {\n\t\tthis.users++;\n\t}", "public void addLast(T listItem) {\n add(listItem);\n }", "public void append(int nodeValue)\n {\n ListNode newNode = new ListNode(nodeValue);\n\n // Check if the head is null\n if(this.head == null && this.tail == null)\n {\n this.head = newNode;\n this.tail = newNode;\n } else {\n\n ListNode currNode = this.head;\n ListNode prevNode = this.head;\n\n // Traverse the list\n while(currNode.getNextNode() != null)\n {\n // System.out.println(\"STUCK\");\n // System.out.println(\"CURRENT NODE VALUE: \" + currNode.getValue());\n // System.out.println(\"NEXT NODE FROM CURRENT: \" + currNode.getNextNode().getValue());\n prevNode = currNode;\n currNode = currNode.getNextNode();\n \n }\n\n // Wire the two nodes together\n currNode.setNextNode(newNode);\n newNode.setPrevNode(currNode);\n this.tail = newNode;\n }\n\n this.size = size + 1;\n\n }", "@Override\n\tpublic RDFList append( final RDFList list ) throws AccessDeniedException;", "private void addFriendList(\n People.Builder builderForValue) {\n ensureFriendListIsMutable();\n friendList_.add(builderForValue.build());\n }", "private void addToChatList(Chat[] newChats){\n if ( newChats == null || newChats.length == 0 ) {\n return;\n }\n if ( chatList.size() == 0 ) { // no chat history loaded yet\n for ( Chat chat : newChats ) {\n chatList.offer(chat);\n }\n headIndex = newChats[0].id; // update the tail index\n tailIndex = newChats[newChats.length-1].id; // update the tail index\n } else if ( newChats[newChats.length-1].id < chatList.get(0).id ) { // new.tail is prior to current.head\n // prepend the new chats to the head of the current chat\n int selection = lv_chat.getFirstVisiblePosition();\n selection += newChats.length;\n for ( int i = newChats.length-1; i >= 0; i-- ) {\n chatList.push(newChats[i]);\n }\n lv_chat.setSelection(selection);\n adapter.notifyDataSetChanged();\n Log.d(TAG,\"select:\"+selection);\n headIndex = newChats[0].id; // update the headIndex\n } else if ( newChats[0].id > chatList.get(chatList.size()-1).id ) { // new.head is after current.tail\n // append the new chats to the tail of the current chat\n for ( Chat chat : newChats ) {\n chatList.offer(chat);\n }\n tailIndex = newChats[newChats.length-1].id; // update the tail index\n } else {\n Log.e(TAG,\"Loaded duplicated chat!\");\n }\n }", "protected void addToTail(T val)\n\t{\n\t\tListElement<T> newElm = new ListElement<T>(val, null, tail);\n\t\t\n\t\tif(tail != null)\n\t\t\ttail.setNext(newElm);\n\t\telse\n\t\t\t//If list was empty befor addition\n\t\t\thead = newElm;\n\t\t\t\n\t\ttail = newElm;\n\t}", "List<User> addUsersToShowableList(UserListRequest userListRequest);", "private void addUser(People value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureUserIsMutable();\n user_.add(value);\n }", "public boolean addUsers(List<User> users);", "public void appendUser(String str) {\n\t\tDefaultListModel<String> listModel = (DefaultListModel<String>) userList.getModel();\n\t\tlistModel.addElement(str);\n\t}", "public ArrayList<Follower> getFollower_list(){\n return follower_list;\n }", "private void addAllUser(\n Iterable<? extends People> values) {\n ensureUserIsMutable();\n com.google.protobuf.AbstractMessageLite.addAll(\n values, user_);\n }", "public void setFollowing(ArrayList<Following> followings) {\n following_list = followings;\n }", "private void addToArrayList(String getName) {\n\t\tUser newUser = new User(getName);\n\t\tmgUsr.arrList.add(newUser);\n\t\tobs = FXCollections.observableArrayList(mgUsr.arrList);\n\n\t\tsetOnListView();\n\t}", "@Override\r\n public void onClick(View view) {\n String userName = entries.get(position);\r\n // TODO: ADD THE USER TO THE FOLLOWERS LIST\r\n entries.remove(position);\r\n notifyItemRemoved(position);\r\n notifyItemRangeChanged(position, entries.size());\r\n User user = AppLocale.getInstance().getUser();\r\n new ElasticSearch().acceptFollow(user, userName);\r\n Toast.makeText(mContext, \"Accepted : \" + u, Toast.LENGTH_SHORT).show();\r\n }", "@Override\n public void run() {\n chatListAdapter.add(sendToOthers);\n chatListAdapter.notifyDataSetChanged();\n getListView().setSelection(chatListAdapter.getCount() - 1);\n }", "public void add(String fullName, String username, String password, String accType, String email, String salary){\n\t\t\n\t\t// Determine position where new User needs to be added\n\t\tUser marker = new User();\t\t\t\t\t\t\t\t\t/* ====> Create a marker */\n\t\tmarker = this.getHead();\t\t\t\t\t\t\t\t\t/* ====> Set the marker at the beginning of the list */\n\t\t\n\t\t// Check if the list contains only the head\n\t\tif(marker.getNext()!= null){\n\t\tmarker = marker.getNext();\t\t\t\t\t\t\t\t\t/* ====> If not then skip the head */\n\t\t}\n\t\t\n\t\t\n\t\t/*Iterate through the whole list and compare Strings. Move the marker until it reaches the end or until the input\n\t\t * username is greater than the marker's username . */\n\t\twhile((marker.getNext() != null) && (username.compareTo(marker.getUsername())>0)){\n\t\t\t\t\tmarker = marker.getNext();\n\t\t\t\t}\t\t\n\t\t\n\t\t/* When marker finds a user whose username is greater than the input it moves the marker back a position so that the new\n\t\t * user can be appended to that marker */\n\t\tif(marker.getPrev() != null){\n\t\t\t\tif(username.compareTo(marker.getUsername())<0){\n\t\t\t\t\tmarker = marker.getPrev();\n\t\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t// Create new user with the method's parameters as properties. Append it to the marker\n\t\tUser newUser = new User(marker.getNext(), marker);\n\t\tnewUser.setFullName(fullName);\n\t\tnewUser.setUsername(username);\n\t\tnewUser.setPassword(password);\n\t\tnewUser.setAccType(accType);\n\t\tnewUser.setEmail(email);\n\t\tnewUser.setSalary(salary);\n\t\t\n\t\t// Set connections to the new User\n\t\tnewUser.getPrev().setNext(newUser);\n\t\tif(newUser.getNext() != null){\n\t\tnewUser.getNext().setPrev(newUser);\n\t\t}\n\n\t}", "public void append(E it) {\r\n\t\ttail = tail.setNext(new Link<E>(it, null));\r\n\t\tcnt++;\r\n\t}", "private void addAll(User[] users) {\n synchronized (this.base) {\n Stream.of(users).forEach(this::add);\n }\n }", "public Builder addFriendList(People value) {\n copyOnWrite();\n instance.addFriendList(value);\n return this;\n }", "public void appendList(ElementList<E> listToAppend) {\r\n\t\tif (listToAppend.first() != null) {\r\n\t\t\tif (last != null) {\r\n\t\t\t\tlast.next = listToAppend.first();\r\n\t\t\t\tlast = listToAppend.last();\r\n\t\t\t} else {\r\n\t\t\t\theader.next = listToAppend.first();\r\n\t\t\t\tlast = listToAppend.last();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n public void add(User member) {\n super.add(member);\n members.add(member);\n }", "public void addRecentVisited(int position) {\n SharedPreferences sharedPref1 = getContext().getSharedPreferences(\"recentVisited\", Context.MODE_PRIVATE);\n Boolean removeOld=false;\n int toRemove=0;\n Log.d(\"size\", userName.size()+\"\");\n int count = sharedPref1.getInt(\"size\",0);\n for(int i=0;i<count+1;i++){\n\n // checks if user is in shared preferences.\n if(Objects.equals(sharedPref1.getString(\"uid_\" + i, \"null\"), uid.get(position))){\n toRemove=i;\n removeOld=true;\n }\n }\n SharedPreferences.Editor editor = sharedPref1.edit();\n if(removeOld){\n editor.remove(\"uid_\"+toRemove);\n editor.remove(\"name_\"+toRemove);\n }\n editor.putInt(\"size\",(count+1));\n editor.putString(\"name_\" + (count+1), userName.get(position));\n editor.putString(\"uid_\" + (count+1), uid.get(position));\n\n editor.apply();\n\n }", "public void addFriend(Profile p)\n {\n\n friendslist.add(p);\n }", "@Override\r\n\tpublic void insert(FollowUp followup) {\n\t\t\r\n\t}", "List<User> getFollowersForUser(User user);", "public void appendData(T data){\n Node<T> newEnd = new Node<>(data); // new Node referenced by newEnd\n Node<T> thisNode = this; // grab this Node\n\n // traverse list and append to the tail\n while (thisNode.next != null){\n thisNode = thisNode.next;\n }\n thisNode.next = newEnd;\n }", "private void addUserAsMarker() {\n firestoreService.findUserById(new OnUserDocumentReady() {\n @Override\n public void onReady(UserDocument userDocument) {\n if(userDocument != null && userDocument.getUserid().equals(preferences.get(\"user_id\",0L))) {\n String id = preferences.get(DOCUMENT_ID, \"\");\n //Add current user to ListInBounds\n userDocumentAll.setDocumentid(id);\n userDocumentAll.setUsername(userDocument.getUsername());\n userDocumentAll.setPicture(userDocument.getPicture());\n userDocumentAll.setLocation(userDocument.getLocation());\n userDocumentAll.setFollowers(userDocument.getFollowers());\n userDocumentAll.setIsvisible(userDocument.getIsvisible());\n userDocumentAll.setIsprivate(userDocument.getIsprivate());\n userDocumentAll.setIsverified(userDocument.getIsverified());\n userDocumentAll.setUserid(userDocument.getUserid());\n userDocumentAll.setToken(userDocument.getToken());\n oneTimeAddableList.add(userDocumentAll);\n }\n }\n\n @Override\n public void onFail() {\n\n }\n\n @Override\n public void onFail(Throwable cause) {\n\n }\n });\n\n }", "public void addMeetingFollowupItem(MeetingFollowupItem mfi)\n throws Exception\n {\n }", "public void append(int data) {\r\n ListNode temp = head;\r\n while(temp.next !=null) {\r\n temp = temp.next;\r\n }\r\n ListNode new_node = new ListNode(data);\r\n temp.next=new_node;\r\n }", "@Override\n\tpublic void onUserListUpdate(User listOwner, UserList list) {\n\n\t}", "public void append(Object item);", "void append(E data) {\n Node<E> node = new Node<>(data);\n if (isNull(head)) {\n head = node;\n return;\n }\n\n Node<E> last = head;\n while (nonNull(last.next)) {\n last = last.next;\n }\n\n last.next = node;\n node.previous = last;\n }", "public void append(int value) {\n\t\t\n\t\tNode temp = new Node(value);\n\t\t\n\t\t// no node available therefore this is 1st node\n\t\tif(this.head == null) {\n\t\t\thead = temp;\n\t\t}\n\t\t// 1 and more than one node available\n\t\telse {\n\t\t\tNode it = this.head; // it pointed to head pointed\n\t\t\twhile(it.next != null) { //it++ up to it.next get null\n\t\t\t\tit = it.next;\n\t\t\t}\n\t\t\t// it pointed to last node\n\t\t\tit.next = temp; // insert value at last\n\t\t\ttemp.next = null;\n\t\t}\n\t}", "public void addFriend() {\n\n /* if (ageOK == true) {\n for (int i = 0; i < listRelationships.size(); i++) {\n if (firstFriend.equalsIgnoreCase(list.get(i).getFirstFriend())) {\n listRelationships.get(i).setFriends(secondFriend);\n System.out.println(listRelationships.get(i));\n System.out.println();\n\n } else if (secondFriend.equalsIgnoreCase(list.get(i).getSecondFriend())) {\n listRelationships.get(i).setFriends(firstFriend);\n System.out.println(listRelationships.get(i));\n System.out.println();\n }\n }\n } */\n }", "Data<List<User>> getFollowers();", "@Override\n\t\tpublic void onUserListUpdate(User arg0, UserList arg1) {\n\t\t\t\n\t\t}", "public static void adder(DoctorInformation NewUser) {\n int hola = 0;\n for (int i = 0; i < doctorsList.size(); i++) {\n String useremail = NewUser.getEmail();\n if (useremail.equals(doctorsList.get(i).getEmail())) {\n if (NewUser.getPassword().equals(doctorsList.get(i).getPassword())) {\n doctorsList.set(i, NewUser);\n hola = 1;\n }\n }\n }\n if (hola == 0) {\n doctorsList.add(NewUser);\n }\n }", "public void appendToList(int data){\r\n\t\tNode temp = head;\r\n\t\tNode new_node = new Node(data);\r\n\t\tif(head == null){\r\n\t\t\thead = new_node;\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\twhile(temp.next != null){\r\n\t\t\ttemp = temp.next;\r\n\t\t}\r\n\t\t\r\n\t\ttemp.next = new_node;\r\n\t\treturn;\r\n\t}", "public static void addFriendsList(String username, FriendsList friends)\r\n\t{\r\n\t\tfriendsLists.put(username, friends);\r\n\t}", "public void addValues(List newValues) {\n synchronized (values) {\n values.addAll(newValues);\n }\n }", "@Override\n public User addFollower(String followerName, String userToFollow) {\n int id = userDataMapper.addFollower(getUser(followerName).getId(), getUser(userToFollow).getId());\n if (id == -1)\n return null;\n return userDataMapper.getUserByID(id);\n }", "private void append_request(DataSnapshot dataSnapshot) {\n Iterator i = dataSnapshot.getChildren().iterator();\n //Go over all the requests\n while (i.hasNext()){\n\n //Add a new request iten to the list\n String message = (String) ((DataSnapshot)i.next()).getValue();\n String email = (String) ((DataSnapshot)i.next()).getValue();\n String newMessage= message ;\n //\" asked to join the group\"\n requestList.add(new requestItem(newMessage,email,activity_name));\n }\n request_item_adapter adapter = new request_item_adapter(this, R.layout.activity_request_item, requestList);\n //attaching adapter to the listview\n listView.setAdapter(adapter);\n }", "public void follow(int followerId, int followeeId) {\n if(!users.containsKey(followerId) && followerId != followeeId){ // If user is not in database\n HashSet<Integer> u_id = new HashSet<>();\n users.put(followerId, u_id);\n }\n users.get(followerId).add(followeeId); // Add the user and the followee to the hashmap\n }", "public void updateList(ArrayList<String> users) {\n System.out.println(\"Updating the list...\");\n listModel.removeAllElements();\n userArrayList = users;\n int index = userArrayList.indexOf(user);\n if(index >= 0) {\n \tuserArrayList.remove(index);\n }\n for(int i=0; i<userArrayList.size(); i++){\n\t\t System.out.println(\"Adding to GUI List: \" + userArrayList.get(i));\n\t\t listModel.addElement(userArrayList.get(i));\n }\n userList.repaint();\n \n if(listModel.size() == 0) {\n \tJOptionPane.showMessageDialog(null,\"There are no other members registered on the server.\");\n\t \tfrmMain.dispatchEvent(new WindowEvent(frmMain, WindowEvent.WINDOW_CLOSING));\n }\n }", "public void append(Integer data) {\n\t\t// Construct a node tmp and make null as the next pointer:Step1\n\t\tListNode tmp = new ListNode(data, null);\n\n\t\tif (!isEmpty()) {\n\t\t\t// make next pointer of tail as tmp :Step2\n\t\t\t tail.next = tmp;// tmp is new tail\n\t\t\t\n\t\t} else {\n\t\t\t// but if list is empty then the temp is the only element \n\t\t\t//and is new tail as wells as head[see next statement executed]\t\n\t\t\tthis.head = tmp;\n\t\t}\n\t\tthis.tail = tmp; // now make tmp the new tail:Step2\n\t\n\t\tlength++;\n\t}", "public boolean add (Object o) {return addLast(o);}", "@Override\n public void add(Object item)\n {\n if (size == list.length)\n {\n Object [] itemInListCurrently = deepCopy();\n list = new Object[size * 2];\n\n System.arraycopy(itemInListCurrently, 0, list, 0, size);\n }\n\n list[size++] = item;\n }", "public ArrayList<Following> getFollowing(){\n return following_list;\n }", "public void add(T value) {\n extend();\n this.list[size]=value;\n this.size++;\n }", "public RTWLocation append(Object... list);", "private void addUser(\n int index, People value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureUserIsMutable();\n user_.add(index, value);\n }", "public void addLast(Object item) {\r\n\t\tdata.add(item);\r\n\r\n\t}", "public void userListStart() {\n\t\tfor (int i = 0; i < userServices.getAllUsers().length; i++) {\n\t\t\tuserList.add(userServices.getAllUsers()[i]);\n\t\t}\n\t}", "void saveRealtimeListUsers(final RealtimeList realtimeList) {\n deleteRealtimeListUsers(realtimeList.getId());\n\n // Add in all of the entries.\n ejt.batchUpdate(\"insert into realtime_list_users values (?,?,?)\", new BatchPreparedStatementSetter() {\n @Override\n public int getBatchSize() {\n return realtimeList.getRealtimeListUsers().size();\n }\n\n @Override\n public void setValues(PreparedStatement ps, int i) throws SQLException {\n ShareUser wlu = realtimeList.getRealtimeListUsers().get(i);\n ps.setInt(1, realtimeList.getId());\n ps.setInt(2, wlu.getUserId());\n ps.setInt(3, wlu.getAccessType());\n }\n });\n }", "public void addValue(String listValue) {\n\t\tthis.listValues.add(listValue);\n\t}", "public void addLast(T value) {\n Node<T> node = new Node<T>(value);\n Node<T> prev = sentinel.prev;\n\n node.prev = prev;\n prev.next = node;\n sentinel.prev = node;\n node.next = sentinel;\n\n size += 1;\n }", "public void addFollowingInstance(FlowNodeInstance flowNodeInstance) {\n\t\tthis.followingInstances.add(flowNodeInstance);\n\t}", "public void append(final T data) {\n Node<T> newNode = new Node<>(data);\n if (head == null) {\n head = newNode;\n } else {\n Node<T> iterator = head;\n while (iterator.getNext() != null) {\n iterator = iterator.getNext();\n }\n iterator.setNext(newNode);\n }\n numElement++;\n }", "List<User> getFollowingForUser(User user);", "@RequestMapping(value= Constant.LIST_FOLLOW_BY_OTHER + Constant.WITHIN_ID , method = RequestMethod.POST)\n public ResponseEntity<RestAPIResponse> getListFollowByOther(\n HttpServletRequest request,\n @PathVariable(\"id\") String userId\n ) {\n\n List<FollowUser> followUserList = followUserService.getAllByFollowUserId(userId);\n\n List<Profile> usersProfile = new ArrayList<>();\n\n for (FollowUser user: followUserList) {\n\n Profile profile = profileService.getProfileByUserId(user.getId().getUserId());\n\n if(profile != null){\n usersProfile.add(profile);\n }\n }\n\n // Sorting\n usersProfile.sort(Comparator.comparing(Profile::getFirstName));\n\n return responseUtil.successResponse(usersProfile);\n }", "Data<List<User>> getFollowers(Integer limit);", "@Override\n\tprotected void getUserList(boolean isRefresh) {\n\t\tsuper.getUserList(isRefresh);\n\n\t\tDamiInfo.getFollowerList(mLogin.uid, searchHolder.getPage(), searchHolder.searchText, new MyListener(\n\t\t\t\tgetActivity(), isRefresh));\n\t}", "public void addMessageListBeforeLastOne(List<StringAndMessage> messageList){\n if(messageList.isEmpty()){\n //do nothing\n }\n if(this.messageListExpected.isEmpty()){\n this.messageListExpected.addAll(messageList);\n }\n else{\n this.messageListExpected.addAll(this.messageListExpected.size()- 1, messageList);\n }\n\n }", "public UserDTOBuilder setFollowers(List<UserDTO> followers) {\n this.followers = followers;\n return this;\n }", "public void followOrFriendUser(Author user) {\n\n switch (mSearchType) {\n case FOLLOW:\n mUser.addUserToList(Author.AuthorLists.FOLLOWING, user.firebaseId);\n user.addUserToList(Author.AuthorLists.FOLLOWERS, mUser.firebaseId);\n\n break;\n\n case FRIEND:\n mUser.addUserToList(Author.AuthorLists.SENT_REQUESTS, user.firebaseId);\n user.addUserToList(Author.AuthorLists.RECEIVED_REQUESTS, mUser.firebaseId);\n\n break;\n }\n }", "public void addUser(User user){\r\n users.add(user);\r\n }", "public Builder addFriendList(com.vine.vinemars.net.pb.SocialMessage.FriendObj value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureFriendListIsMutable();\n friendList_.add(value);\n\n return this;\n }", "public Builder addFriendList(\n com.vine.vinemars.net.pb.SocialMessage.FriendObj.Builder builderForValue) {\n ensureFriendListIsMutable();\n friendList_.add(builderForValue.build());\n\n return this;\n }", "public void follow(final int followerId, final int followeeId) {\n follows.computeIfAbsent(followerId, x -> new HashSet<>()).add(followeeId);\n }", "public void addAll(List<Tweet> list) {\n tweetList.addAll(list);\n notifyDataSetChanged();\n }", "@Override\n\tpublic void onUserListCreation(User listOwner, UserList list) {\n\n\t}", "public void followUser(User user) \r\n\t{\n\t\tUser follow = user;\r\n\t\tthis.following.add(follow);//follows the user used as a parameter\r\n\t\tnotifyObservers(follow);//notifies observers of the user\r\n\t\tfollowers.add(follow);//adds you to their followers\r\n\t}", "@Override\n\t\tpublic void onUserListCreation(User arg0, UserList arg1) {\n\t\t\t\n\t\t}", "private void checkFollowingUser() {\n Log.d(TAG, \"checkFollowingUser: Called\");\n FirebaseDatabase.getInstance().getReference().child(\"Follow\").child(FirebaseAuth.getInstance().getCurrentUser().getUid())\n .child(\"following\").addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot snapshot) {\n Log.d(TAG, \"onDataChange: Getting Following List\");\n followingList.clear();\n for(DataSnapshot dataSnapshot:snapshot.getChildren())\n {\n Log.d(TAG, \"onDataChange: getting following list\");\n followingList.add(dataSnapshot.getKey());\n }\n Log.d(TAG, \"onDataChange: going to read post for followings\");\n readPosts(); // get Following people post on Home Activity\n\n }\n @Override\n public void onCancelled(@NonNull DatabaseError error) {\n Log.d(TAG, \"onCancelled: Started\");\n\n }\n });\n }", "public void addAll(List<Feed> object) {\n try {\n feedList.addAll(object);\n notifyDataSetChanged();\n } catch (Exception e) {\n //FirebaseCrash.report(e);\n }\n }" ]
[ "0.75117993", "0.70132756", "0.6748386", "0.660596", "0.65675765", "0.63731945", "0.6307834", "0.62353784", "0.62036467", "0.5996473", "0.5826584", "0.58142394", "0.58049744", "0.57936233", "0.575055", "0.5708191", "0.5690361", "0.5656327", "0.56456727", "0.5629946", "0.5629354", "0.56211513", "0.56150645", "0.56096333", "0.55888957", "0.55827546", "0.5580434", "0.55657864", "0.5561394", "0.5527516", "0.5523434", "0.55099595", "0.5505865", "0.54959935", "0.5466325", "0.5465319", "0.5456419", "0.5435729", "0.5392969", "0.53811085", "0.5360905", "0.5346472", "0.53436095", "0.53310734", "0.53256637", "0.5320517", "0.53178537", "0.5317274", "0.53135866", "0.53074163", "0.5307339", "0.5306886", "0.5297366", "0.5286959", "0.5278228", "0.52773565", "0.5274787", "0.5273679", "0.5268799", "0.526399", "0.5262163", "0.5258136", "0.52474666", "0.5245029", "0.5243791", "0.5240779", "0.52362746", "0.52329457", "0.52291983", "0.5228347", "0.52248675", "0.5222997", "0.5216102", "0.52091646", "0.51974404", "0.51948845", "0.51908207", "0.5185509", "0.51806223", "0.51729983", "0.51705086", "0.5165408", "0.51652414", "0.5163927", "0.5162514", "0.51618814", "0.51594424", "0.51550305", "0.5153989", "0.51517785", "0.5146422", "0.51438224", "0.51309824", "0.5129375", "0.51293516", "0.5128929", "0.51284665", "0.5126705", "0.51262575", "0.5122158" ]
0.7335577
1
Adds to the List by treating List as a Set. Thus adds only if not already exists in the List and avoids duplication. See appendToFollowedUsers to append to List.
public void addToFollowedUsers(String followedUsers);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addToFollowedUsers(List<String> followedUsers);", "public void appendToFollowedUsers(List<String> followedUsers);", "private void addUsers(List<String> userList, SubscriptionList subscriptionList, SubscriptionEventType eventType) {\n\t\tSubscription subscription = null;\n\t\t\n\t\tfor (Subscription s : subscriptionList.getSubscription()) {\n\t\t\tif (s.getEventType() == eventType) {\n\t\t\t\tsubscription = s;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (subscription != null) {\n\t\t\tfor (String userId : subscription.getUser()) {\n\t\t\t\tif (!userList.contains( userId )) {\n\t\t\t\t\tuserList.add( userId );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void addFollower(Follower follower) {\n follower_list.add(follower);\n }", "public void addFriendList(FriendList list);", "public void addFollowings(String following) {\n\tuserFollowings.add(following);\n }", "@Override\n\t\tpublic void onUserListMemberAddition(User arg0, User arg1, UserList arg2) {\n\t\t\t\n\t\t}", "@Override\n\tpublic void onUserListMemberAddition(User addedMember, User listOwner, UserList list) {\n\n\t}", "private void addFriendList(People value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureFriendListIsMutable();\n friendList_.add(value);\n }", "public boolean addUsers(List<User> users);", "public static <T> void addWithoutDuplicates(List<T> addedTo, T toBeAdded) {\n if (!addedTo.contains(toBeAdded))\n addedTo.add(toBeAdded);\n }", "public void addFollowers(String follower) {\n\tuserFollowers.add(follower);\n }", "public void addUser(ArrayList<Player> list,String U,String F,String G) {\r\n\t\tboolean flag = true;\r\n\t\tIterator<Player> aa = list.iterator();\r\n\t\twhile (aa.hasNext()) {\r\n\t\t\tPlayer in = aa.next();\r\n\t\t\tif(in.getUserName().equals(U)){\r\n\t\t\t\tSystem.out.println(\"The player already exists.\");\r\n\t\t\t\tflag =false;\r\n\t\t\t\treturn;\r\n\t\t\t}\t\r\n\t\t}\r\n\t\t\r\n\t\tif(flag)\r\n\t\t\tlist.add(new NimPlayer(U,F,G,0,0,\"Human\"));\r\n\t\tSystem.out.println(\"\");\r\n\t}", "public static <T> void addWithoutDuplicates(List<T> addedTo, List<T> toBeAdded) {\n if (addedTo == null | toBeAdded == null)\n return;\n outer:\n for (int i = 0; i < toBeAdded.size(); i++) {\n T item = toBeAdded.get(i);\n for (int j = 0; j < addedTo.size(); j++) {\n if (addedTo.get(j).equals(item))\n continue outer;\n }\n addedTo.add(item);\n }\n }", "synchronized void crawledList_add(HashSet _crawledList, String url)\n {\n _crawledList.add(url);\n System.out.println(\"Added\"+\"\\t\"+url);\n }", "public void addFollower(String follower, String following) {\n for (User u : users) {\n System.out.println(\"iterating: \" + u.getName() + \" : \" + following);\n if (u.getName().equals(follower)) {\n for (String f : u.getFollowers()) {\n\n if (f.equals(following)) {\n System.out.println(\"ENDDDDD\");\n return;\n }\n }\n System.out.println(\"adding follower!!!!!!!!\");\n getUser(follower).addFollower(following);\n }\n }\n }", "private void updateMemberList(Set<ChatRoomUser> chatRoomUserSet,\n boolean removeMember)\n {\n Iterator<ChatRoomUser> it = chatRoomUserSet.iterator();\n\n while (it.hasNext())\n {\n ChatRoomUser user = it.next();\n String uid = user.getScreenname().getFormatted();\n\n // we want to add a member and he/she is not in our member list\n if (!removeMember && !participants.containsKey(uid)\n && !uid.equals(provider.getAccountID().getUserID()))\n {\n OperationSetPersistentPresenceIcqImpl presenceOpSet =\n (OperationSetPersistentPresenceIcqImpl) getParentProvider()\n .getOperationSet(OperationSetPersistentPresence.class);\n\n Contact participant =\n presenceOpSet.getServerStoredContactList()\n .findContactByScreenName(uid);\n\n participants.put(uid, participant);\n\n fireParticipantPresenceEvent(participant,\n AdHocChatRoomParticipantPresenceChangeEvent.CONTACT_JOINED,\n null);\n }\n // we want to remove a member and found him/her in our member list\n if (removeMember && participants.containsKey(uid))\n {\n Contact participant = participants.get(uid);\n\n participants.remove(uid);\n\n fireParticipantPresenceEvent(participant,\n AdHocChatRoomParticipantPresenceChangeEvent.CONTACT_LEFT,\n null);\n }\n }\n }", "public void setFollowing(ArrayList<Following> followings) {\n following_list = followings;\n }", "public void follow(int followerId, int followeeId) {\n if (followeeId != followerId) {\n Set<Integer> friendSet = friends.computeIfAbsent(followerId, e -> new HashSet<>());\n friendSet.add(followeeId);\n }\n }", "public void follow(int followerId, int followeeId) {\n if(!users.containsKey(followerId) && followerId != followeeId){ // If user is not in database\n HashSet<Integer> u_id = new HashSet<>();\n users.put(followerId, u_id);\n }\n users.get(followerId).add(followeeId); // Add the user and the followee to the hashmap\n }", "private void addWithoutDuplicate(ArrayList<WordDocument> addTo, ArrayList<WordDocument> addFrom) {\n for (WordDocument x : addFrom)\n if (!addTo.contains(x))\n addTo.add(x);\n }", "@Test\n public void testSetUsersList() {\n System.out.println(\"setUsersList\");\n Set<User> usersList = new HashSet<>();\n usersList.add(new User(\"test1\", \"[email protected]\"));\n sn10.setUsersList(usersList);\n assertEquals(usersList, sn10.getUsersList());\n }", "@Override\n\tpublic void addEntry(E entry) {\n\n\t\t// Determine if the entry already exists in the list\n\t\tE current = this.getHead();\n\t\twhile (current != null) {\n\t\t\tif (this.isEqual(current, entry)) {\n\t\t\t\t// Already in list\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tcurrent = current.getNext();\n\t\t}\n\n\t\t// Not in list, so add the entry\n\t\tsuper.addEntry(entry);\n\t}", "@Override\n public boolean equals(Object o) {\n if (this == o) {\n return true;\n }\n if (o == null || getClass() != o.getClass()) {\n return false;\n }\n FollowingList followingList = (FollowingList) o;\n if (followingList.getId() == null || getId() == null) {\n return false;\n }\n return Objects.equals(getId(), followingList.getId());\n }", "public boolean add(List<T> e) {\n\t\treturn lists.add(e);\n\t}", "public void removeFromFollowedUsers(List<String> followedUsers);", "private void addAllFriendList(\n Iterable<? extends People> values) {\n ensureFriendListIsMutable();\n com.google.protobuf.AbstractMessageLite.addAll(\n values, friendList_);\n }", "@Override\n\tpublic void onUserListCreation(User listOwner, UserList list) {\n\n\t}", "@Override\n\tpublic void onUserListUpdate(User listOwner, UserList list) {\n\n\t}", "@SuppressWarnings(\"unchecked\")\n public static void addIfNotContained(List list, Object object) {\n if (!list.contains(object)) {\n list.add(object);\n }\n }", "public void follow(int followerId, int followeeId) {\n if (!followMap.containsKey(followerId)) followMap.put(followerId, new HashSet<Integer>());\n followMap.get(followerId).add(followeeId);\n }", "@Override\n\t\tpublic void onUserListCreation(User arg0, UserList arg1) {\n\t\t\t\n\t\t}", "@Override\n public boolean add(List<Buyer> buyers) {\n return false;\n }", "private static void removeExistingFromResults(List<Author> resultList, List<String> existingList) {\n\n // Check that existingList is not null\n if (existingList == null) return;\n\n // Remove items from resultList that are already in the user's friend/follow list\n for (String userId : existingList) {\n for (int i = resultList.size() - 1; i >= 0; i--) {\n Author user = resultList.get(i);\n\n if (user.firebaseId.equals(userId)) {\n resultList.remove(user);\n break;\n }\n }\n }\n }", "synchronized void toCrawlList_addAll(LinkedHashSet _toCrawlList, ArrayList _links)\n {\n _toCrawlList.addAll(_links);\n }", "public void insertUserListFromStatusList(List<Status> statusList) {\n\t\tIterator<Status> it = statusList.iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tStatus st = it.next();\n\t\t\tUser user = st.getUser();\n\t\t\tInsertUser(user);\n\t\t}\n\t}", "@Override\n public void appendCache(List<FavoriteEntity> ltEntity)\n {\n for (FavoriteEntity entity : ltEntity)\n {\n addWithCheckExistID(entity);\n }\n }", "public void follow(final int followerId, final int followeeId) {\n follows.computeIfAbsent(followerId, x -> new HashSet<>()).add(followeeId);\n }", "@Test\n public void testAddUser_User04() {\n System.out.println(\"addUser\");\n\n User user = new User(\"test\", \"[email protected]\");\n\n Set<User> expResult = new HashSet<>();\n expResult.add(new User(\"nick0\", \"[email protected]\"));\n expResult.add(new User(\"nick1\", \"[email protected]\"));\n expResult.add(new User(\"nick2\", \"[email protected]\"));\n expResult.add(new User(\"nick3\", \"[email protected]\"));\n expResult.add(new User(\"nick4\", \"[email protected]\"));\n expResult.add(new User(\"nick5\", \"[email protected]\"));\n expResult.add(new User(\"nick6\", \"[email protected]\"));\n expResult.add(new User(\"nick7\", \"[email protected]\"));\n expResult.add(new User(\"nick8\", \"[email protected]\"));\n expResult.add(new User(\"nick9\", \"[email protected]\"));\n expResult.add(user);\n\n sn10.addUser(user);\n Set<User> result = sn10.getUsersList();\n assertEquals(expResult, result);\n }", "public void addFriend() {\n\n /* if (ageOK == true) {\n for (int i = 0; i < listRelationships.size(); i++) {\n if (firstFriend.equalsIgnoreCase(list.get(i).getFirstFriend())) {\n listRelationships.get(i).setFriends(secondFriend);\n System.out.println(listRelationships.get(i));\n System.out.println();\n\n } else if (secondFriend.equalsIgnoreCase(list.get(i).getSecondFriend())) {\n listRelationships.get(i).setFriends(firstFriend);\n System.out.println(listRelationships.get(i));\n System.out.println();\n }\n }\n } */\n }", "public void appendToFollowedUsers(String followedUsers);", "@Override\n\t\tpublic void onUserListUpdate(User arg0, UserList arg1) {\n\t\t\t\n\t\t}", "public void follow(int followerId, int followeeId) {\n if (!followees.containsKey(followerId)) {\n followees.put(followerId, new HashSet<>());\n followees.get(followerId).add(followerId);\n }\n followees.get(followerId).add(followeeId);\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Followup)) {\n return false;\n }\n Followup other = (Followup) object;\n if ((this.idfollowup == null && other.idfollowup != null) || (this.idfollowup != null && !this.idfollowup.equals(other.idfollowup))) {\n return false;\n }\n return true;\n }", "public void addParticipant(String uid) {\n\r\n if (!participants.contains(uid))\r\n participants.add(uid);\r\n }", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t\tif(resultCode==2){\n\t\t\tHashMap<String, Object> map=new HashMap<String, Object>();\n\t\t\tmap.put(\"id\",data.getLongExtra(\"id\", -1));\n\t\t\tmap.put(\"members\", RecordUtil.shareRecordUtil(this).idToName(data.getStringExtra(\"ids\")));\n\t\t\tlist.addFirst(map);\n\t\t\tadapter.notifyDataSetChanged();\n\t\t}\n\t}", "@Override\n public boolean hasDuplicates() {\n ArrayList<String> itemList = new ArrayList(Arrays.asList(\"\"));\n Node currNode = this.head;\n while(true){\n if(itemList.contains(currNode.getItem())){ // need to edit\n return true;\n }else{\n itemList.add(currNode.getItem());\n }\n if(currNode.getNextNode() == null){\n break;\n }\n currNode = currNode.getNextNode();\n }\n return false;\n }", "public static void main(String[] args) {\n\n Integer[] integers = new Integer[] {1,2,3,4,5};\n List<Integer>list = new ArrayList<>(Arrays.asList(integers)); // correct one\n System.out.println(\"Converted from Array to List = \" + list);\n\n // this will be a fixed-size list- you can not use add method.\n List<Integer>fixedSizeList = Arrays.asList(integers); // bunu da yapabiliriz ama element ekleme yapamayiz.\n //fixedSizeList.add(6); bunda hata verecek. cunku fixedsize olarak convert ettik. \"unsupported operation exception\" uyarisi verir\n\n\n //Converting list to Array\n Integer[] convertedFromList =list.toArray(new Integer[0]); // sifir yerine herhangi bi sey yazilabilir. ama 0 yazmada fayda var.\n System.out.println(\"Converted from List to Array = \"+ Arrays.toString(convertedFromList));\n\n //Converting an Array to set\n Set<Integer>set = new HashSet<>(Arrays.asList(integers));\n System.out.println(\"Converted from Array to Set = \" + set);\n\n // Converting Set to Array\n Integer[] convertedFromSet = set.toArray(new Integer[0]);\n System.out.println(\"Converted from Set to Array = \" + Arrays.toString(convertedFromSet));\n\n // converting List to Set\n Set<Integer>setFromList = new HashSet<>(list); // bu en cok , ayni value varsa isimize yarar. cunku set'de duplicate yok\n System.out.println(\"Converted list to Set = \" + setFromList);\n\n // Converting Set to List\n List<Integer>listFromSet = new ArrayList<>(setFromList);\n listFromSet.add(9); // en sona ekler\n System.out.println(\"Converted Set to List = \" + listFromSet);\n\n }", "public void follow(int followerId, int followeeId) {\n\t\t//\n\t\tif (!followees.containsKey(followerId)) {\n\t\t\tfollowees.put(followerId, new HashSet<>());\n\t\t}\n\t\tfollowees.get(followerId).add(followeeId);\n\t}", "public ArrayList<Follower> getFollower_list(){\n return follower_list;\n }", "set.addAll(Arrays.asList(a));", "@Override\n public boolean add(Set<E> e) {\n throw new UnsupportedOperationException(\"Add not supported\");\n }", "public void addAll(List<Tweet> list) {\n tweetList.addAll(list);\n notifyDataSetChanged();\n }", "public UserDTOBuilder setFollowers(List<UserDTO> followers) {\n this.followers = followers;\n return this;\n }", "public void addAll(List<Tweet> list) {\n mTweets.addAll(list);\n notifyDataSetChanged();\n }", "public void addAll(List<Tweet> list) {\n mTweets.addAll(list);\n notifyDataSetChanged();\n }", "public void add(User user) {\r\n this.UserList.add(user);\r\n }", "public static void addList() {\n\t}", "public static void addFriendsList(String username, FriendsList friends)\r\n\t{\r\n\t\tfriendsLists.put(username, friends);\r\n\t}", "@Override\n public void add(User member) {\n super.add(member);\n members.add(member);\n }", "public void addAll(List<NYT> tweetList) {\n nyts.addAll(tweetList);\n notifyDataSetChanged();\n }", "public void follow(int followerId, int followeeId) {\n if (followeeId == followerId) {\n return;\n }\n if (!userId2Followers.containsKey(followeeId)) {\n userId2Followers.put(followeeId, new HashSet<>());\n }\n userId2Followers.get(followeeId).add(followerId);\n\n if (!userId2Followees.containsKey(followerId)) {\n userId2Followees.put(followerId, new HashSet<>());\n }\n\n // 自己关注的人,如果不包含当前操作的用户,就添加到set中,并且修改tweet\n if (!userId2Followees.get(followerId).contains(followeeId)) {\n userId2Followees.get(followerId).add(followeeId);\n if (userId2AllTweets.containsKey(followeeId)) {\n List<Tweet> followeeTweets = userId2AllTweets.get(followeeId);\n for (Tweet followeeTweet : followeeTweets) {\n putFollowerTweet(followerId, followeeTweet);\n }\n }\n }\n }", "public List<Person> addPeople(List<Person> personList) {\t\t\n\t\tList<Person> ret = new ArrayList<>();\n\t\t\n\t\tPerson temp = null;\t\t\n\t\tfor(Person p : personList) {\n\t\t\tif(pRepo.existsByPersonLOD(p.getPersonLOD())) {\n\t\t\t\ttemp = pRepo.findByPersonLOD(p.getPersonLOD());\n\t\t\t}\n\t\t\telse{\n\t\t\t\t//Enforces default gender\n\t\t\t\tif(p.getGender() == null) {\n\t\t\t\t\tp.setGender('U');\n\t\t\t\t}\n\t\t\t\ttemp = pRepo.save(p);\n\t\t\t}\n\t\t\t//We just want to know if it is in the database\n\t\t\tret.add(temp);\n\t\t}\n\t\t\n\t\treturn ret;\n\t}", "public void addAI(ArrayList<Player> list,String U,String F,String G) {\r\n\t\tboolean flag = true;\r\n\t\tIterator<Player> aa = list.iterator();\r\n\t\twhile (aa.hasNext()) {\r\n\t\t\tPlayer in = aa.next();\r\n\t\t\tif(in.getUserName().equals(U)){\r\n\t\t\t\tSystem.out.println(\"The player already exists.\");\r\n\t\t\t\tflag =false;\r\n\t\t\t\treturn;\r\n\t\t\t}\t\r\n\t\t}\r\n\t\tif(flag)\r\n\t\t\tlist.add(new NimAIPlayer(U,F,G,0,0,\"AI\"));\r\n\t\tSystem.out.println(\"\");\r\n\t}", "void saveRealtimeListUsers(final RealtimeList realtimeList) {\n deleteRealtimeListUsers(realtimeList.getId());\n\n // Add in all of the entries.\n ejt.batchUpdate(\"insert into realtime_list_users values (?,?,?)\", new BatchPreparedStatementSetter() {\n @Override\n public int getBatchSize() {\n return realtimeList.getRealtimeListUsers().size();\n }\n\n @Override\n public void setValues(PreparedStatement ps, int i) throws SQLException {\n ShareUser wlu = realtimeList.getRealtimeListUsers().get(i);\n ps.setInt(1, realtimeList.getId());\n ps.setInt(2, wlu.getUserId());\n ps.setInt(3, wlu.getAccessType());\n }\n });\n }", "public void m65917a(List<SearchTrack> list) {\n SpotifyTrackSearchTarget spotifyTrackSearchTarget = (SpotifyTrackSearchTarget) this.f56357a.H();\n if (spotifyTrackSearchTarget != null) {\n spotifyTrackSearchTarget.addTracks(list);\n }\n }", "public void m65918a(List<SearchTrack> list) {\n SpotifyTrackSearchTarget spotifyTrackSearchTarget = (SpotifyTrackSearchTarget) this.f56358a.H();\n if (spotifyTrackSearchTarget != null) {\n this.f56358a.f56363e = true;\n spotifyTrackSearchTarget.addTracks(list);\n this.f56358a.f56361c = this.f56358a.f56361c + 1;\n }\n }", "public void setUserList(CopyOnWriteArrayList<User> userList) {\r\n\t\tBootstrap.userList = userList;\r\n\t}", "List<User> addUsersToShowableList(UserListRequest userListRequest);", "@Test\n public void testAddUser_Nickname_Email04() {\n System.out.println(\"addUser\");\n String nickname = \"test1\";\n String email = \"[email protected]\";\n\n Set<User> expResult = new HashSet<>();\n expResult.add(new User(\"nick0\", \"[email protected]\"));\n expResult.add(new User(\"nick1\", \"[email protected]\"));\n expResult.add(new User(\"nick2\", \"[email protected]\"));\n expResult.add(new User(\"nick3\", \"[email protected]\"));\n expResult.add(new User(\"nick4\", \"[email protected]\"));\n expResult.add(new User(\"nick5\", \"[email protected]\"));\n expResult.add(new User(\"nick6\", \"[email protected]\"));\n expResult.add(new User(\"nick7\", \"[email protected]\"));\n expResult.add(new User(\"nick8\", \"[email protected]\"));\n expResult.add(new User(\"nick9\", \"[email protected]\"));\n expResult.add(new User(nickname, email));\n\n sn10.addUser(nickname, email);\n Set<User> result = sn10.getUsersList();\n assertEquals(expResult, result);\n }", "public void addAll(List<Tweet> tweetList) {\n tweets.addAll(tweetList);\n notifyDataSetChanged();\n }", "public void add(E elem) {\n if (!list.contains(elem))\n list.insertLast(elem);\n }", "public ContributorTrackingSet(NavigatorContentService aContentService, Object[] elements) {\n for (int i = 0; i < elements.length; i++) super.add(elements[i]);\n contentService = aContentService;\n }", "private void addFriendList(\n int index, People value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureFriendListIsMutable();\n friendList_.add(index, value);\n }", "public void follow(int followerId, int followeeId) {\n\t\t\tif (!userRelation.containsKey(followerId))\n\t\t\t\tuserRelation.put(followerId, new HashSet<>());\n\t\t\tuserRelation.get(followerId).add(followeeId);\n\t\t}", "private static final <T> List<T> append(List<T> list, T newElement) {\n List<T> newList = Lists.newArrayListWithCapacity(list.size() + 1);\n newList.addAll(list);\n newList.add(newElement);\n return newList;\n }", "@Override\n\tpublic boolean doInsertList(List<SysUser> b) throws Exception {\n\t\treturn false;\n\t}", "public void follow(int followerId, int followeeId) {\n if (followerId == followeeId) return;\n User follower = getOrCreateUser(followerId);\n User followee = getOrCreateUser(followeeId);\n\n if (!follower.following.contains(followee))\n follower.following.add(followee);\n }", "protected abstract Set<String> _addToSet(String key, Collection<String> str);", "public synchronized static void toCrawlList_add(ArrayList<String> _toCrawlList,String url)\n\t{\n\n\t\tif(!(arrayList_contain(_toCrawlList,url)) && _toCrawlList.size() < ARRAYLIST_SIZE)\n\t\t\t_toCrawlList.add(url);\n\t}", "public static <T> List<T> mergeWith(final List<T> extendee, final List<T> list2) {\n for (final T obj : list2) {\n if (!(extendee.contains(obj))) {\n extendee.add(obj);\n }\n }\n return extendee;\n }", "public void add(Preference toAdd) throws DuplicatePreferenceException {\n requireNonNull(toAdd);\n if (contains(toAdd)) {\n throw new DuplicatePreferenceException();\n }\n internalList.add(toAdd);\n\n assert CollectionUtil.elementsAreUnique(internalList);\n }", "private static void addSongsToPlaylists(List<Playlist> playlists, List<AddSong> songsToAdd)\n {\n for(AddSong songToAdd : songsToAdd)\n {\n Playlist playlist = playlists.stream().filter(pl -> songToAdd.getPlaylistId().equals(pl.getId())).findAny().orElse(null);\n if(playlist != null)\n {\n List<String> songs = playlist.getSongIds();\n songs.add(songToAdd.getSongId());\n }\n }\n }", "@Override\r\n\tpublic void insert(FollowUp followup) {\n\t\t\r\n\t}", "public final void mo69782a(List<SuggestUser> list) {\n Collection collection = list;\n if (!C6307b.m19566a(collection)) {\n StringBuilder sb = new StringBuilder();\n if (list == null) {\n C7573i.m23580a();\n }\n int size = collection.size();\n for (int i = 0; i < size; i++) {\n User user = ((SuggestUser) list.get(i)).user;\n if (user != null) {\n sb.append(user.getUid());\n if (i < list.size() - 1) {\n sb.append(\",\");\n }\n }\n }\n C6907h.m21524a(\"search_for_you_show\", (Map) C22984d.m75611a().mo59973a(\"search_type\", mo69547a()).mo59973a(\"user_list\", sb.toString()).f60753a);\n }\n }", "public Builder addFriendList(People value) {\n copyOnWrite();\n instance.addFriendList(value);\n return this;\n }", "public void add(int number) {\n for(int num : list) set.add(num + number);\n list.add(number);\n }", "void addList(ShoppingList _ShoppingList);", "private void addFriendList(\n People.Builder builderForValue) {\n ensureFriendListIsMutable();\n friendList_.add(builderForValue.build());\n }", "private void addAll(User[] users) {\n synchronized (this.base) {\n Stream.of(users).forEach(this::add);\n }\n }", "public void add(List list) throws PropException {\n if (!contains(list.obtainTitle())) lists.put(list.obtainTitle(), list);\n else throw new PropException(ErrorString.EXISTING_LIST);\n }", "public void updateList(ArrayList<String> users) {\n System.out.println(\"Updating the list...\");\n listModel.removeAllElements();\n userArrayList = users;\n int index = userArrayList.indexOf(user);\n if(index >= 0) {\n \tuserArrayList.remove(index);\n }\n for(int i=0; i<userArrayList.size(); i++){\n\t\t System.out.println(\"Adding to GUI List: \" + userArrayList.get(i));\n\t\t listModel.addElement(userArrayList.get(i));\n }\n userList.repaint();\n \n if(listModel.size() == 0) {\n \tJOptionPane.showMessageDialog(null,\"There are no other members registered on the server.\");\n\t \tfrmMain.dispatchEvent(new WindowEvent(frmMain, WindowEvent.WINDOW_CLOSING));\n }\n }", "public void add(List<?> list) {\n list.clear();\n pool.offer(list);\n }", "public void add(ContentValues values) {\n long startTime = values.getAsLong(DB.FEED.START_TIME);\n long endTime = startTime;\n if (values.containsKey(DB.FEED.DURATION))\n endTime = startTime + values.getAsLong(DB.FEED.DURATION);\n\n int endIndex = findEndIndex(startTime - TIME_MARGIN);\n int startIndex = findStartIndex(endIndex, endTime + TIME_MARGIN);\n\n for (int i = startIndex; i <= endIndex; i++) {\n ContentValues c = currList.get(i);\n if (match(values, c, filterDuplicates)) {\n // Set already contains matching row...skip this\n discarded++;\n return;\n }\n }\n added++;\n addList.add(values); // no match, add this row\n mDB.insert(DB.FEED.TABLE, null, values);\n }", "public Set<User> sort(List<User> list) {\n TreeSet result = new TreeSet();\n result.addAll(list);\n\n return result;\n }", "public void addAll(List<Activities> list) {\r\n mActivityList.addAll(list);\r\n notifyDataSetChanged();\r\n }", "public void addItem(Object item) throws SetException {\n\t\tif (member(item))\n\t\t\tthrow new SetException(\"Item already in set.\");\n\n\t\tlist.add(item);\n\t}", "public boolean add (Object o) {return addLast(o);}", "@Override\n public boolean equals(Object o) {\n if (this == o) {\n return true;\n }\n if (!(o instanceof Follower)) {\n return false;\n }\n return id != null && id.equals(((Follower) o).id);\n }", "@Transactional(propagation = Propagation.REQUIRED)\n\tpublic int addFollowChannels(List<Follow_channels> follow_channels) {\n\t\treturn followChannelsDAO.addFollowChannels(follow_channels);\n\t}" ]
[ "0.70345783", "0.6102445", "0.59052676", "0.58575386", "0.5850543", "0.58438385", "0.5730344", "0.57059544", "0.56787026", "0.56450546", "0.5606484", "0.5558827", "0.55513823", "0.5526995", "0.54997313", "0.5496355", "0.5445758", "0.5439074", "0.5424613", "0.5407507", "0.5368407", "0.53445846", "0.53332025", "0.5320976", "0.5285259", "0.52827126", "0.5263314", "0.525171", "0.5250011", "0.5231801", "0.5228858", "0.519748", "0.51921123", "0.51879185", "0.5175701", "0.51727283", "0.5155453", "0.5147322", "0.51264626", "0.51249987", "0.512413", "0.5119918", "0.5114709", "0.5107721", "0.50993395", "0.5093337", "0.5070707", "0.5048825", "0.50449663", "0.50378156", "0.5028483", "0.5007397", "0.49983436", "0.49975803", "0.4987869", "0.4987869", "0.49809977", "0.49776196", "0.497649", "0.49720052", "0.4967485", "0.49670577", "0.49592027", "0.49555695", "0.49534744", "0.49436572", "0.4943628", "0.4940402", "0.49224973", "0.4918433", "0.49175346", "0.49147427", "0.48977554", "0.4896363", "0.48912188", "0.4891111", "0.4886634", "0.48865473", "0.48863143", "0.4882745", "0.48740977", "0.48607787", "0.48607683", "0.48607066", "0.4860035", "0.48554888", "0.4853097", "0.48399878", "0.48264754", "0.48252213", "0.48177898", "0.48135075", "0.48120496", "0.48088944", "0.4800677", "0.47944918", "0.47939676", "0.47926688", "0.4792522", "0.47918418" ]
0.62874603
1